Handle unnecessary padding in getdents64.
[glibc.git] / ChangeLog
blob91ae1056f52bcb9c734e80076fd3647aa0260c13
1 2010-04-03  Ulrich Drepper  <drepper@redhat.com>
3         [BZ #11333]
4         * sysdeps/unix/readdir_r.c (__READDIR_R): Add support for platforms
5         which include unnecessary padding in d_reclen.
6         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Select work-around for
7         unnecessary padding.
9         [BZ #11387]
10         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlin): Don't abort on
11         unknown interface, return -1.
12         (getifaddrs_internal): Rename from getifaddrs.  Handle errors in
13         map_newlink be returning -EAGAIN.
14         (getifaddrs): If -EAGAIN is returned from getifaddrs_internal try
15         again.
17 2010-03-25  Ryan S. Arnold  <rsa@us.ibm.com>
19         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Remove
20         redundant and incorrect else block which overwrites current line
21         with the partial next line.
23 2010-04-03  Ulrich Drepper  <drepper@redhat.com>
25         [BZ #11438]
26         * posix/gai.conf: Document problems with IPv4 site-local addresses and
27         NATs.
29         [BZ #11449]
30         * crypt/crypt_util.c (__init_des_r): Add memory barrier before setting
31         small_tables_initialized.
33         * malloc/malloc.c (_int_free): Add one more sanity check for fastbins.
35         * malloc/malloc.c (set_max_fast): Fix computation of the value.
37 2010-03-30  David S. Miller  <davem@davemloft.net>
39         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Fix
40         MMAP2_PAGE_SHIFT test.
42 2010-03-29  Ulrich Drepper  <drepper@redhat.com>
44         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_WAITFORONE.
46 2010-03-28  Thomas Schwinge  <thomas@schwinge.name>
48         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Adapt to auxv
49         changes in the generic code.
50         * elf/rtld.c (dl_main): Conditionalize the code that dereferences auxv
51         to [HAVE_AUX_VECTOR].
53 2010-03-27  Ulrich Drepper  <drepper@redhat.com>
55         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): If
56         __ASSUME_AT_PAGESIZE we can rely on the value being set.
58         * include/wchar.h: Undefine __need_mbstate_t and __need_wint_t
59         unconditionally in the end.
61         * posix/glob.c (glob): Initialize oldcount early, too.
63 2010-03-26  Ulrich Drepper  <drepper@redhat.com>
65         * sysdeps/unix/sysv/linux/i386/fcntl.c: Define miss_F_GETOWN_EX
66         only if needed.
67         Patch mostly by Paul Pluzhnikov <ppluzhnikov@google.com>.
69 2010-03-26  Richard Henderson  <rth@redhat.com>
71         * sysdeps/generic/ldsodefs.h (_dl_random): Mark attribute_relro;
73         * stdio-common/psiginfo.c (psiginfo): Fix printf format
74         warning for si_band.
76         * locale/setlocale.c (free_category): Finish renaming
77         struct locale_data to __locale_data.
79         * csu/gmon-start.c (ENTRY_POINT, etext): Declare as char[], not void.
80         * elf/dl-sysdep.c (_end): Likewise.
81         * sysdeps/unix/sysv/dl-sysdep.c (frob_brk): Likewise with locally
82         declared _end, and associated variables.
84 2010-03-26  Ulrich Drepper  <drepper@redhat.com>
86         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't assume success always
87         means aborting the loop over the NSS methods.
89 2010-03-25  Andreas Schwab  <schwab@redhat.com>
91         * sysdeps/posix/getaddrinfo.c (gaih_inet): Reset no_data before
92         each action.
94 2010-03-26  Ulrich Drepper  <drepper@redhat.com>
96         * malloc/malloc.c: Remove stale reference to website.
98 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
100         [BZ #11389]
101         * bits/time.h: Define CLOCK_MONOTONIC_RAW, CLOCK_REALTIME_COARSE, and
102         CLOCK_MONOTONIC_COARSE.
103         * sysdeps/unix/sysv/linux/clock_getres.c: Handle CLOCK_MONOTONIC_RAW,
104         CLOCK_REALTIME_COARSE, and CLOCK_MONOTONIC_COARSE.
105         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
106         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
108 2010-03-25  Andreas Schwab  <schwab@redhat.com>
110         * sysdeps/posix/cuserid.c: Fix typo.
112 2010-03-16  Chris Demetriou  <cgd@google.com>
114         [BZ #11394]
115         * locale/programs/simple-hash.c: Include inttypes.h.
116         (hashval_t): Defined to be uint32_t.
117         * locale/programs/simple_hash.h: Include inttypes.h.
118         (compute_hashval): Change return type to uint32_t.
120 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
122         * sysdeps/unix/sysv/linux/getlogin_r.c: New file.
123         * sysdeps/unix/sysv/linux/getlogin.c: New file.
124         * sysdeps/unix/getlogin_r.c: Allow compiling getlogin as static
125         function.
126         * sysdeps/unix/getlogin.c: Likewise.  Move name variable to toplevel.
127         * include/unistd.h: Declare __getlogin_r_loginuid.
129         [BZ #11397]
130         * sysdeps/posix/cuserid.c (cuserid): Make sure the returned string
131         is NUL terminated.
132         Patch by Jonathan Geisler <jgeisler@cse.taylor.edu>.
134         * sysdeps/unix/sysv/linux/mmap64.c: Allow variable shift values.
136 2010-03-24  H.J. Lu  <hongjiu.lu@intel.com>
138         * sysdeps/x86_64/multiarch/strpbrk-c.c: Define only if SHARED
139         is defined.
141 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
143         * string/test-memcmp.c (check_result): New function.
144         (do_one_test): Use it.
145         (check1): New function.
146         (test_main): Use it.
148 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
150         * posix/tst-gnuglob.c: Add tests with empty patterns.  For this
151         rewrite the tests to add support for failing glob calls.
152         Some other minor cleanups.
153         * posix/bug-glob3.c: New file.
154         * posix/Makefile (tests): Add bug-glob3.
156 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
157             Andreas Schwab  <andreas@redhat.com>
159         * posix/glob.c (glob): Clean up gl_pathc and gl_pathv earlier.
160         If pattern is "" bail out early
162 2010-03-23  Jakub Jelinek  <jakub@redhat.com>
164         * elf/dl-lookup.c (do_lookup_x): If tab->entries is NULL,
165         but tab->size != 0, just unlock and goto success, without
166         allocating anything or entering anything into the hash table.
167         (_dl_debug_bindings): Temporarily set tab->entries to NULL
168         around do_lookup_x in undef_map->l_local_scope[0].  If
169         undef_map->l_symbolic_in_local_scope, lookup also in
170         symbolic_searchlist of following libraries in l_local_scope
171         that have DT_SYMBOLIC set.
172         * elf/dl-deps.c (_dl_map_object_deps): Compute
173         l_symbolic_in_local_scope.
174         * include/link.h (struct link_map): Add l_symbolic_in_local_scope
175         bitfield.
177 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
179         [BZ #11410]
180         * wctype/wctype.h: Use <wchar.h> to get the wint_t definition.
182         * wcsmbs/wchar.h: Correct preprocessor directive indentation.  Move
183         C++ prototype handling to a better place.
185 2010-03-18  Ulrich Drepper  <drepper@redhat.com>
187         * elf/dl-load.c (open_verify): Extend expected to the full size of the
188         e_ident array.  When loading, check that the fields in e_ident we don't
189         know are zero to allow future extensions.
191 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
193         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Update %xmm3
194         when exit from loop.
196 2010-03-16  Andreas Schwab  <schwab@redhat.com>
198         * resolv/res_send.c (__libc_res_nsend): Fix printing of server
199         address in debug statement.
200         (send_dg): Pass correct buffer pointer to DprintQ.
202 2010-03-17  Ulrich Drepper  <drepper@redhat.com>
204         * libc-abis: Add a few more entries.
206 2010-03-16  Ulrich Drepper  <drepper@redhat.com>
208         * elf/dl-load.c (VALID_ELF_ABIVERSION): Add additional osabi parameter.
209         Not used here.
210         (open_verify): Modify for extended VALID_ELF_ABIVERSION macro
211         interface.
212         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_ABIVERSION): Add
213         additional osabi parameter.  Only acceept nonzero ABI versions if osabi
214         is Linux.
215         Fix includes.
216         (expected2): Don't explicitly initialize EI_ABIVERSION byte.
218         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_ABIVERSION): Update
219         definition to follow generic code.
221 2010-03-15  Ulrich Drepper  <drepper@redhat.com>
223         * posix/getconf.c: Update copyright year.
224         * nss/getent.c: Likewise.
225         * iconv/iconvconfig.c: Likewise.
226         * iconv/iconv_prog.c: Likewise.
227         * elf/ldconfig.c: Likewise.
228         * catgets/gencat.c: Likewise.
229         * csu/version.c: Likewise.
230         * elf/ldd.bash.in: Likewise.
231         * elf/sprof.c (print_version): Likewise.
232         * locale/programs/locale.c: Likewise.
233         * locale/programs/localedef.c: Likewise.
234         * nscd/nscd.c (print_version): Likewise.
235         * debug/xtrace.sh: Likewise.
236         * malloc/memusage.sh: Likewise.
237         * malloc/mtrace.pl: Likewise.
238         * debug/catchsegv.sh: Likewise.
240         * Makerules: Add rule for libc-abis.h.
241         * csu/version.c: Use LIBC_ABIS_STRING string if available.
242         * elf/dl-load.c (VALID_ELF_ABIVERSION): Check using LIBC_ABI_MAX.
243         (open_verify): Only check EI_ABIVERSION bytes using VALID_ELF_HEADER.
244         Add extra call to VALID_ELF_ABIVERSION.
246 2010-03-12  Ulrich Drepper  <drepper@redhat.com>
248         * sysdeps/unix/sysv/linux/sys/mount.h (UMOUNT_NOFOLLOW): Define.
250 2010-03-12  Andreas Schwab  <schwab@redhat.com>
252         * elf/dl-dst.h: Include "trusted-dirs.h".
253         (DL_DST_REQUIRED): Take $LIB into account.
255 2010-03-11  Roland McGrath  <roland@redhat.com>
257         * elf/elf.h (R_X86_64_GOT64, R_X86_64_GOTPCREL64): New macros.
258         (R_X86_64_GOTPC64, R_X86_64_GOTPLT64, R_X86_64_PLTOFF64): New macros.
260 2010-03-10  Luis Machado  <luisgpm@br.ibm.com>
262         * sysdeps/powerpc/powerpc64/power7/memcpy.S: New file.
263         * sysdeps/powerpc/powerpc32/power7/memcpy.S: New file.
265 2010-03-09  David S. Miller  <davem@davemloft.net>
267         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handling
268         of R_SPARC_TLS_LE_* needs to use 32-bit loads and stores, not
269         64-bit ones.
271         * sysdeps/sparc/sparc32/memcpy.S: Fix build.
273         * sysdeps/sparc/sparc32/strlen.S: Optimize.
274         * sysdeps/sparc/sparc64/strlen.S: Likewise.
275         * sysdeps/sparc/sparc32/sparcv9/strlen.S (ASI_PNF, ASI_BLK_P,
276         XCC): Delete definitions, not needed.
278 2010-03-07  Ulrich Drepper  <drepper@redhat.com>
280         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
281         Little follow-up patch from last change.
283 2010-03-06  Ulrich Drepper  <drepper@redhat.com>
285         * sysdeps/unix/sysv/linux/internal_statvfs.c: Handle ext4 and logfs.
286         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add entry for logfs.
288 2010-02-18  Yann Droneaud  <yann@droneaud.fr>
290         * resolv/res_send.c: Fixed DEBUG statements.
291         Moved tmpbuf declaration to block beginning and
292         updated pointer names used in multiple DprintQ() calls
294 2010-02-18  H.J. Lu  <hongjiu.lu@intel.com>
296         * config.make.in (config-asflags-i686): Define.
297         * configure.in: Substitute libc_cv_as_i686.
298         * sysdeps/i386/configure.in: Check if assembler supports -mtune=i686.
299         * sysdeps/i386/i686/Makefile (CFLAGS-.oX): Add -Wa,-mtune=i686
300         if assembler supports -mtune=i686.
301         (ASFLAGS-.oX): Likewise.
303 2010-03-04  Ulrich Drepper  <drepper@redhat.com>
305         * elf/elf.h (R_X86_64_SIZE32): Define.
306         (R_X86_64_SIZE64): Define.
308 2010-03-02  Richard Guenther  <rguenther@suse.de>
310         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): R_X86_64_PC32
311         is sign-extending.
313 2010-03-03  Ulrich Drepper  <drepper@redhat.com>
315         * sysdeps/unix/sysv/linux/bits/in.h: Add a few more definitions from
316         the kernel headers.
318 2010-03-04  David S. Miller  <davem@davemloft.net>
320         * sysdeps/sparc/sparc64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
322         * sysdeps/sparc/sparc32/sparcv8/udiv_qrnnd.S: Delete.
323         * sysdeps/sparc/sparc32/udiv_qrnnd.S: Delete.
325 2010-03-03  David S. Miller  <davem@davemloft.net>
327         * math/math_private.h (INSERT_WORDS64): Fix argument order.
329 2010-03-03  Aurelien Jarno  <aurelien@aurel32.net>
331         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: New file.
333 2010-03-03  David S. Miller  <davem@davemloft.net>
335         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_lazy_rel): Must
336         pass '1' for 't' argument to sparc_fixup_plt.
337         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_lazy_rel):
338         Likewise.
339         * sysdeps/sparc/sparc32/dl-plt.h (OPCODE_BA_PT): Define.
340         (sparc_fixup_plt): Document 't' argument.  Enable branch
341         optimization and use v9 branches when possible.  Explain why we
342         cannot unconditionally patch the branch into the first PLT
343         instruction.
344         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Document 't'
345         argument.  Use v9 branches when possible.  Explain why we can in
346         fact unconditionally use a branch in the first PLT instruction
347         here.
349 2010-02-28  Roland McGrath  <roland@redhat.com>
351         * elf/elf.h (NT_X86_XSTATE): New macro.
353 2010-02-25  David S. Miller  <davem@davemloft.net>
355         * sysdeps/sparc/sparc64/Makefile: Add align-cpy rule.
356         * sysdeps/sparc/sparc64/align-cpy.S: New.
357         * sysdeps/sparc/sparc64/memcpy.S (__align_cpy_1, __align_cpy_2,
358         __align_cpy_4, __align_cpy_8, __align_cpy_16): Remove.
359         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (__align_cpy_1,
360         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
361         Remove.
362         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (__align_cpy_1,
363         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
364         Remove.
365         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (__align_cpy_1,
366         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
367         Remove.
369         * sysdeps/sparc/sparc32/bcopy.c: Delete.
370         * sysdeps/sparc/sparc32/memmove.c: Delete.
371         * sysdeps/sparc/sparc32/sparcv9/bcopy.c: Delete.
372         * sysdeps/sparc/sparc32/sparcv9/memmove.c: Delete.
373         * sysdeps/sparc/sparc64/bcopy.c: Delete.
374         * sysdeps/sparc/sparc64/memmove.c: Delete.
375         * sysdeps/sparc/sparc64/memcopy.h: New.
376         * sysdeps/sparc/sparc32/memcpy.S (bcopy, memmove): Remove.
377         * sysdeps/sparc/sparc64/memcpy.S (bcopy, memmove): Likewise.
378         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (bcopy, memmove): Likewise.
379         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (bcopy, memmove): Likewise.
380         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (bcopy, memmove): Likewise.
382         * sysdeps/sparc/elf/rtld-global-offsets.sym: New file.
383         * sysdeps/sparc/Makefile (csu): Add rtld-global-offsets.sym to
384         gen-as-const-headers.
385         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: New file.
386         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: New file.
387         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: New file.
388         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: Move to...
389         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra3.S: ...here.
390         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: Move to...
391         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara1.S: ...here.
392         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: Move to...
393         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara1.S: ...here.
394         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: Move to...
395         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara2.S: ...here.
396         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: Removed.
397         * sysdeps/sparc/sparc64/multiarch/Makefile: New file.
398         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: Move to...
399         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: ...here.
400         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Move to...
401         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: ...here.
402         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Move to...
403         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: ...here.
404         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Move to...
405         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: ...here.
406         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: Removed.
407         * sysdeps/sparc/sparc64/multiarch/memcpy.S: New file.
408         * sysdeps/sparc/sparc64/multiarch/memset.S: New file.
410 2010-02-20  H.J. Lu  <hongjiu.lu@intel.com>
412         [BZ #11332]
413         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Use cfi_remember_state
414         and cfi_restore_state only if USE_AS_STRNCMP is defined.
416 2010-02-24  Ulrich Drepper  <drepper@redhat.com>
418         * sysdeps/x86_64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
420 2010-02-24  H.J. Lu  <hongjiu.lu@intel.com>
422         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
423         (bk_write_less32bytes_2): Renamed to ...
424         (bk_write_less48bytes): This.
425         Use unsigned conditional jumps.
426         Correct unwind info.
427         Use add/sub instead of lea if possible.
428         (shl_0_gobble_cache_loop_tail): Removed.
429         (large_page): Properly adjust ECX.
431         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Use unsigned
432         conditional jumps.
433         Correct unwind info.
435         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Remove redundant
436         punpcklbw.
437         Use unsigned conditional jumps.
438         (128bytesormore_nt): Renamed to ...
439         (128bytesormore_endof_L1): This.
440         Use add instead of lea if possible.
441         Correct unwind info.
442         * sysdeps/i386/i686/multiarch/memset-sse2.S: Remove redundant
443         punpcklbw.
444         Use unsigned conditional jumps.
445         Use add instead of lea if possible.
446         Correct unwind info.
448 2010-02-24  Ulrich Drepper  <drepper@redhat.com>
450         [BZ #11319]
451         * libio/iovdprintf.c (_IO_vdprintf): Explicitly flush stream before
452         undoing the stream because _IO_FINISH doesn't report failures.
454         [BZ #5553]
455         * malloc/malloc.c (public_vALLOc): Set ar_ptr when trying main_arena.
456         (public_pVALLOc): Likewise.
457         Patch by Petr Baudis.
459 2010-02-22  Jim Meyering  <meyering@redhat.com>
461         * manual/math.texi (BSD Random): Fix a typo: s/are/is/
463         * manual/charset.texi: Adjust grammar.
465         * manual/errno.texi (Error Messages): Fix doubled-words and typos.
466         * manual/charset.texi (Selecting the Conversion): Likewise.
467         * manual/getopt.texi (Getopt Long Options): Likewise.
468         * manual/memory.texi (Resizing the Data Segment): Likewise.
469         * manual/message.texi (GUI program problems): Likewise.
470         * manual/resource.texi (CPU Affinity): Likewise.
471         * manual/stdio.texi (Streams and Threads): Likewise.
472         * manual/time.texi (High Accuracy Clock): Likewise.
474 2009-02-20  David S. Miller  <davem@davemloft.net>
476         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
477         Adjust rela->r_offset by l->l_addr when rewriting PLT.
479         * sysdeps/sparc/sparc64/memchr.S: Use unsigned branch on greater to
480         test end of buffer.
482         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c
483         (__makecontext): Adjust arg counter properly when copying arg
484         stack slots.
486 2009-02-20  Joseph Myers  <joseph@codesourcery.com>
488         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
489         Adjust rela->r_offset by l->l_addr when rewriting PLT.
491 2010-02-19  Carl Fredrik Hammar  <hammy.lite@gmail.com>
493         * hurd/hurdioctl.c (tiocsctty): Call `do_tiocsctty' instead of
494         non-existent `tiocsctty_port'.
496 2010-02-16  H.J. Lu  <hongjiu.lu@intel.com>
498         * sysdeps/i386/i686/multiarch/memcmp.S (memcmp): Use CPUID_OFFSET
499         instead of FEATURE_OFFSET.
500         * sysdeps/i386/i686/multiarch/strcmp.S (strcmp): Likewise.
502         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Add alignnments.
503         Fix one unwind info problem.
505         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S (less1bytes): Add CFI_POP.
507         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Simplify unwind info.
509 2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>
510             Ulrich Drepper  <drepper@redhat.com>
512         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Fix typo in unwind info.
513         Clean up a bit.
515 2010-02-17  Carl Fredrik Hammar  <hammy.lite@gmail.com>
517         * hurd/hurdioctl.c (tiocsctty): Only get FD ports, do work in...
518         (tiocsctty_port): ...this new function.
520         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): Cast to
521         `ioctl_handler_t'.
523 2010-02-15  Ulrich Drepper  <drepper@redhat.com>
525         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Fix unwind info.
526         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
527         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
528         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
530         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Don't fall through to
531         undefined code.
533 2010-02-12  H.J. Lu  <hongjiu.lu@intel.com>
535         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
536         strcmp-ssse3, strcmp-sse4, strncmp-c, strncmp-ssse3, strncmp-sse4,
537         memcmp-c, memcmp-ssse3, and memcmp-sse4.
538         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: New file.
539         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: New file.
540         * sysdeps/i386/i686/multiarch/memcmp.S: New file.
541         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: New file.
542         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: New file.
543         * sysdeps/i386/i686/multiarch/strcmp.S: New file.
544         * sysdeps/i386/i686/multiarch/strncmp-c.c: New file.
545         * sysdeps/i386/i686/multiarch/strncmp-sse4.S: New file.
546         * sysdeps/i386/i686/multiarch/strncmp-ssse3.S: New file.
547         * sysdeps/i386/i686/multiarch/strncmp.S: New file.
549 2010-02-12  Luis Machado  <luisgpm@br.ibm.com>
551         * sysdeps/powerpc/powerpc32/dl-machine.h: Removed old PPC_REL16 check.
552         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
553         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
554         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
555         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
556         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
557         * sysdeps/powerpc/powerpc32/configure.in: Fail if R_PPC_REL16
558         is not supported.
559         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
560         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
561         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
562         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
563         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
564         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Likewise.
565         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
566         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
567         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
568         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
569         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
570         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
571         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
572         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
573         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
574         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
575         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
576         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S:
577         Likewise.
578         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
579         Likewise.
580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
581         Likewise.
582         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
583         Likewise.
584         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
586 2010-02-12  Alan Modra  <amodra@gmail.com>
588         * elf/tls-macros.h [__powerpc__] (__TLS_CALL_CLOBBERS): Remove r3.
589         Define and use for __powerpc64__ too.
590         [__powerpc__] (TLS_LD): Add r3 to clobbers.
591         [__powerpc__] (TLS_GD): Set asm output.  Make __result r3 reg.
592         [__powerpc64__] (TLS_GD): Make __result r3 reg.
593         [__powerpc64__] (TLS_IE): Relax output constraint.
595 2010-02-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
597         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Disable hardware
598         instructions cu21 and cu24.  Add well-formedness checking
599         parameter and adjust the software implementation.
600         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
602 2010-02-10  Ulrich Drepper  <drepper@redhat.com>
604         [BZ #11271]
605         * io/ftw.c (ftw_startup): Close descriptor for initial directory
606         after changing back to it.
608 2010-02-05  David S. Miller  <davem@davemloft.net>
610         * elf/elf.h (R_SPARC_JMP_IREL, R_SPARC_IRELATIVE): Define.
611         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle new
612         ifunc relocs.
613         (elf_machine_lazy_rel): Likewise.
614         (sparc_fixup_plt): Pull out to...
615         * sysdeps/sparc/sparc32/dl-plt.h: ...here.
616         * sysdeps/sparc/sparc32/dl-irel.h: New file.
617         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle new
618         ifunc relocs.
619         (elf_machine_lazy_rel): Likewise.
620         (sparc64_fixup_plt): Pull out to...
621         * sysdeps/sparc/sparc64/dl-plt.h: ...here.
622         * sysdeps/sparc/sparc64/dl-irel.h: New file.
624 2010-02-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
626         * elf/elf.h: Define m68k TLS relocations.
628 2010-02-10  Luis Machado  <luisgpm@br.ibm.com>
630         * sysdeps/powerpc/powerpc64/power7/Implies: Removed.
631         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Removed.
632         * sysdeps/powerpc/powerpc32/power7/Implies: Removed.
633         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: Removed.
634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Add
635         64-bit power7 fpu path.
636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Add
637         32-bit power7 fpu math.
639 2010-02-09  Ulrich Drepper  <drepper@redhat.com>
641         * sysdeps/i386/rshift.S: More compact unwind information.
643         * sysdeps/i386/lshift.S: Fix unwind information.
645 2010-02-08  Luis Machado  <luisgpm@br.ibm.com>
647         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: New file.
648         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: New file.
649         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: New file.
650         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: New file.
651         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: New file.
652         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: New file.
653         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: New file.
654         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: New file.
655         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: New file.
656         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: New file.
657         * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: New file.
658         * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: New file.
660 2010-02-08  Andreas Schwab  <schwab@redhat.com>
662         * include/fenv.h: Add hidden proto for fegetenv.
663         * math/fegetenv.c: Add hidden alias.
664         * sysdeps/i386/fpu/fegetenv.c: Likewise.
665         * sysdeps/ia64/fpu/fegetenv.c: Likewise.
666         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
667         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
668         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
669         * sysdeps/x86_64/fpu/fegetenv.c: Likewise
670         * sysdeps/s390/fpu/fegetenv.c: Likewise.  Remove unused headers.
672 2010-02-05  H.J. Lu  <hongjiu.lu@intel.com>
674         [BZ #11230]
675         * sysdeps/ia64/memchr.S: Don't read beyond the last byte
676         during recovery.
678 2010-01-26  Andreas Schwab  <schwab@redhat.com>
680         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: Use internal
681         interface.
682         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: Likewise.
683         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Declare internal
684         utmpx interface.
686         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
687         entry for 2.12.
689 2010-02-03  Ulrich Drepper  <drepper@redhat.com>
691         [BZ #11235]
692         * sysdeps/unix/sysv/linux/sys/mount.h: Remove S_WRITE, S_APPEND,
693         S_IMMUTABLE.  Add MS_DIRSYNC, MS_MOVE, MS_SILENT, MS_REC,
694         MS_POSIXACL, MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED,
695         MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME,
696         MS_ACTIVE, and MS_NOUSER.
697         (MS_RMT_MASK): Update according to current kernels.
699         [BZ #11242]
700         * misc/getusershell.c (initshells): Allocate one more byte in input
701         buffer so that fgets doesn't loop undefinitely.
703 2010-02-02  Ulrich Drepper  <drepper@redhat.com>
705         * stdlib/setenv.c (__add_to_environ): Don't use alloca if
706         __libc_use_alloca tells us not to.  Fix memory leak in an error
707         situation.  Based partially on patch by Jim Meyering.
709 2010-01-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
711         * sysdeps/mach/getsysstats.c (get_nprocs_conf, get_nprocs,
712         get_phys_pages, get_avphys_pages): Add weak aliases.
714 2010-01-25  Andreas Schwab  <schwab@redhat.com>
716         * iconv/iconv_prog.c (write_output): Fix check for open failure.
718 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
720         [BZ #11200]
721         * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
722         mmap resource problem.  Patch by Joe Landers <jlanders@vmware.com>.
724 2010-01-22  Jim Meyering  <jim@meyering.net>
726         [BZ #11193]
727         * posix/regexec.c (extend_buffers): Avoid overflow in realloc
728         buffer length computation.
730         [BZ #11192]
731         * posix/regexec.c (re_copy_regs): Don't leak when allocation
732         of the start buffer succeeds but allocation of the "end" one fails.
734         [BZ #11191]
735         * posix/regexec.c (re_search_2_stub): Check for overflow
736         when adding the sizes of the two strings.
738         [BZ #11190]
739         * posix/regexec.c (re_search_internal): Avoid overflow
740         in computing re_malloc buffer size.
742         [BZ #11189]
743         * posix/regexec.c (prune_impossible_nodes): Avoid overflow
744         in computing re_malloc buffer size.
746         [BZ #11188]
747         * posix/regexec.c (build_trtable): Avoid arithmetic overflow
748         in size calculation.
750         [BZ #11187]
751         * posix/regexec.c (re_search_2_stub): Use simpler method than
752         boolean for freeing internal storage.
754 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
756         * posix/regex_internal.c (re_string_skip_chars): Simplify test for
757         failed mbrtowc call.
759 2010-01-22  Jim Meyering  <jim@meyering.net>
761         [BZ #11186]
762         * posix/regex_internal.c (re_string_skip_chars): Don't assume WEOF
763         fits in wchar_t.  Problem reported by Eric Blake.
765         [BZ #11185]
766         * posix/regex_internal.c (re_string_reconstruct): Remove declaration
767         and stores into set-but-not-used local, "q".
769         [BZ #11184]
770         * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
771         detection test.  Patch by Paul Eggert.
773         [BZ #11183]
774         * posix/regex_internal.c (re_string_realloc_buffers):
775         Detect and handle internal overflow.  Patch by Paul Eggert
777 2010-01-20  Andreas Schwab  <schwab@redhat.com>
779         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
780         (CHECK_SP): Fix check for alternate stack.
781         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
782         (CHECK_SP): Likewise.
784 2010-01-19  H.J. Lu  <hongjiu.lu@intel.com>
786         * sysdeps/i386/i686/multiarch/memmove.S: Also check
787         bit_Fast_Rep_String when SHARED isn't defined.
789 2010-01-19  Ulrich Drepper  <drepper@redhat.com>
791         [BZ #11194]
792         * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
794 2010-01-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
796         * sysdeps/mach/hurd/bits/libc-lock.h
797         (__rtld_lock_recursive_t): New type.
798         (__rtld_lock_initialize): New macro.
800 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
802         * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
803         * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
804         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
807 2010-01-18  Andreas Schwab  <schwab@redhat.com>
809         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
810         definitions of O_DSYNC and O_RSYNC.
812         * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
813         casting d_tag.
815         * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
816         dynamic entry types.
818 2010-01-16  Jakub Jelinek  <jakub@redhat.com>
820         * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
821         constant.
822         * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
823         * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
824         overflow.
825         * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
827         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
828         math_opt_barrier and math_force_eval macros.
830 2010-01-15  Ulrich Drepper  <drepper@redhat.com>
832         * posix/regcomp.c: Fix a few more cases of ignored return values.
833         * posix/regex_internal.c: Likewise.
834         * posix/regexec.c: Likewise.
836         * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
837         used without _XOPEN_SOURCE.  Don't base any decisions on this macro
838         if _XOPEN_SOURCE is not defined as well.
840 2010-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
842         * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
843         high gprs kernel facility.
844         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
845         Added high gprs check for DSOs.
846         * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
847         new elf header flag.
849 2010-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
851         * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
852         dl_main.
853         * elf/dl-open.c (_dl_sysdep_start): Likewise..
854         * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
855         * elf/rtld.c (dl_main): Added new parameter auxv.  Adjust the
856         AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
857         started.
859 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
861         [BZ #11027]
862         * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
863         to RFC 2474.
864         Patch by Philip Prindeville <philipp@redfish-solutions.com>.
866         [BZ #11141]
867         * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
868         addresses.
870         [BZ #11127]
871         * posix/regcomp.c (alc_eclosure_iter): Do not ignore
872         re_node_set_insert failure; return REG_ESPACE.
873         Patch by Paul Eggert.
875         * bits/confname.h: Make pre-C99-safe.
877 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
879         * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
880         $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
881         files are found by GCC.
883 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
885         * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
886         brk, and sbrk.
888         * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
889         index, and rindex.
891         * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
893         * Versions.def: Add GLIBC_2.12 for libpthread.
895         [BZ #11126]
896         * malloc/malloc.c (malloc_info): Initialize malloc if not already
897         done.  Handle empty bin lists.
899         * posix/unistd.h: Change getpagesize and getdtablesize declaration
900         visibility some more.
902         * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
904         * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
906         [BZ #11120]
907         * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
908         needed outside libc.
910 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
912         * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
914 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
916         * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
918 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
920         * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
922 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
924         * conform/data/complex.h-data: Test for POSIX2008.
926         * conform/data/ctype.h-data: Fix POSIX testing.
928         * conform/data/dirent.h-data: ino_t only needed for XSI.
930         * grp/grp.h: Declare getgrent and endgrent for XPG7.
932         * conform/data/inttypes.h-data: Use same types as the headers.
934         * resolv/netdb.h: Don't define old resolver macros for XPG7.
936         * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
938         * conform/conformtest.pl: Implement tag for allow-header.
939         Fix newline handling in allow-header implementation.
941         * conform/data/time.h-data: Use allow-header instead of duplicating
942         information.
944         * conform/data/time.h-data: Allow sigevent tag.
946         * posix/sched.h: Define time_t and pid_t for XPG7.
948 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
950         * sysdeps/i386/i686/bcopy.S: New file.
952         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
954         * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
955         and END_CHK.
956         * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
957         * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
958         * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
960         * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
962         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
963         bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
964         memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
965         bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
966         * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
967         * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
968         * sysdeps/i386/i686/multiarch/bcopy.S: New file.
969         * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
970         * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
971         * sysdeps/i386/i686/multiarch/bzero.S: New file.
972         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
973         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
974         * sysdeps/i386/i686/multiarch/memcpy.S: New file.
975         * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
976         * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
977         * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
978         * sysdeps/i386/i686/multiarch/memmove.S: New file.
979         * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
980         * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
981         * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
982         * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
983         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
984         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
985         * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
986         * sysdeps/i386/i686/multiarch/memset.S: New file.
987         * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
989         * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
990         (END_CHK): Likewise.
992         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
993         FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
994         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
996         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
997         for 0x0e and 0x80.
998         (__x86_64_data_cache_size): New.
999         (init_cacheinfo): Set __x86_64_data_cache_size.
1001         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
1002         on bit_Fast_Rep_String for Intel Core i7.
1004         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
1005         (index_Fast_Rep_String): Likewise.
1006         (FEATURE_INDEX_1): Likewise.
1007         (FEATURE_INDEX_MAX): Likewise.
1008         (cpu_features): Add feature.
1010 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
1012         * conform/data/sys/select.h-data: Fix up for XPG7.
1014 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
1016         * posix/sys/wait.h: Don't define W* macros etc. if
1017         stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
1019 2010-01-11  Ulrich Drepper  <drepper@redhat.com>
1021         * io/sys/stat.h: Declare fchmod for XPG7.
1022         * conform/data/sys/stat.h-data: Fix up for XPG7.
1024         * termios/termios.h: Define pid_t for XPG7.
1026         * conform/data/math.h-data: Fix up for XPG6 and XPG7.
1027         * conform/data/tgmath.h-data: Likewise.
1029         * conform/data/time.h-data: Fix POSIX tests.
1031         * conform/data/wchar.h-data: Fix up XPG7 tests.
1033         * include/features.h: Fix __USE_ISOC95 handling.
1035         * conform/data/wordexp.h-data: Fix typo in last change.
1037         * conform/data/unistd.h-data: Fix up older POSIX tests.
1039         * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
1040         * posix/unistd.h: Likewise.
1042         * posix/unistd.h: Include environments.h also for XPG6 and up.
1043         Define intptr_t for XPG6 and up.
1044         Fix up for XPG7.
1045         * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
1047         * conform/data/sys/types.h-data: Fix up for XPG7.
1049         * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
1050         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1051         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1052         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1053         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1054         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1055         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1056         * sysdeps/unix/sysv/bits/stat.h: Likewise.
1057         * sysdeps/mach/hurd/bits/stat.h: Likewise.
1059         * bits/confname.h: Fix typo in last change.
1061         * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
1063 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
1065         * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
1066         and SA_RESETHAND now available in Base.
1067         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
1068         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
1069         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
1070         * conform/data/signal.h-data: Update for XPG7.
1072         * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
1074         * string/strings.h: Don't declare obsolete functions for XPG7.
1075         Declare ffs only for XSI.
1076         * conform/data/strings.h-data: Update for XPG7.
1078 2010-01-10  Jakub Jelinek  <jakub@redhat.com>
1080         [BZ #11125]
1081         * libio/stdio.h: Define va_list, off_t, and ssize_t.
1083         * posix/glob.h: Define size_t.
1085         * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
1087         * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
1089 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
1091         * conform/conformtest.pl: For XPG7 testing the headers are supposed to
1092         be self-contained.
1094         * conform/data/stdio.h-data: Expect off_t and ssize_t.
1096 2010-01-09  Ulrich Drepper  <drepper@redhat.com>
1098         * libio/stdio.h: Define va_list also for XPG7.
1100         * conform/conformtest.pl: Update for XPG7 and some bug fixes.
1101         * conform/data/ctype.h-data: Likewise.
1102         * conform/data/dirent.h-data: Likewise.
1103         * conform/data/errno.h-data: Likewise.
1104         * conform/data/fcntl.h-data: Likewise.
1105         * conform/data/fmtmsg.h-data: Likewise.
1106         * conform/data/fnmatch.h-data: Likewise.
1107         * conform/data/ftw.h-data: Likewise.
1108         * conform/data/glob.h-data: Likewise.
1109         * conform/data/grp.h-data: Likewise.
1110         * conform/data/iconv.h-data: Likewise.
1111         * conform/data/langinfo.h-data: Likewise.
1112         * conform/data/libgen.h-data: Likewise.
1113         * conform/data/limits.h-data: Likewise.
1114         * conform/data/locale.h-data: Likewise.
1115         * conform/data/math.h-data: Likewise.
1116         * conform/data/monetary.h-data: Likewise.
1117         * conform/data/mqueue.h-data: Likewise.
1118         * conform/data/ndbm.h-data: Likewise.
1119         * conform/data/netdb.h-data: Likewise.
1120         * conform/data/pthread.h-data: Likewise.
1121         * conform/data/pwd.h-data: Likewise.
1122         * conform/data/regex.h-data: Likewise.
1123         * conform/data/sched.h-data: Likewise.
1124         * conform/data/search.h-data: Likewise.
1125         * conform/data/semaphore.h-data: Likewise.
1126         * conform/data/setjmp.h-data: Likewise.
1127         * conform/data/signal.h-data: Likewise.
1128         * conform/data/spawn.h-data: Likewise.
1129         * conform/data/stdio.h-data: Likewise.
1130         * conform/data/stdlib.h-data: Likewise.
1131         * conform/data/string.h-data: Likewise.
1132         * conform/data/strings.h-data: Likewise.
1133         * conform/data/sys/ipc.h-data: Likewise.
1134         * conform/data/sys/msg.h-data: Likewise.
1135         * conform/data/sys/resource.h-data: Likewise.
1136         * conform/data/sys/sem.h-data: Likewise.
1137         * conform/data/sys/shm.h-data: Likewise.
1138         * conform/data/sys/socket.h-data: Likewise.
1139         * conform/data/sys/stat.h-data: Likewise.
1140         * conform/data/sys/time.h-data: Likewise.
1141         * conform/data/sys/types.h-data: Likewise.
1142         * conform/data/sys/uio.h-data: Likewise.
1143         * conform/data/sys/wait.h-data: Likewise.
1144         * conform/data/syslog.h-data: Likewise.
1145         * conform/data/tar.h-data: Likewise.
1146         * conform/data/termios.h-data: Likewise.
1147         * conform/data/time.h-data: Likewise.
1148         * conform/data/ulimit.h-data: Likewise.
1149         * conform/data/unistd.h-data: Likewise.
1150         * conform/data/utmpx.h-data: Likewise.
1151         * conform/data/wchar.h-data: Likewise.
1152         * conform/data/wctype.h-data: Likewise.
1153         * conform/data/wordexp.h-data: Likewise.
1155         * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
1156         * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
1157         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1158         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1159         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1160         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1161         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1162         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1163         * sysdeps/unix/sysv/bits/stat.h: Likewise.
1164         * sysdeps/mach/hurd/bits/stat.h: Likewise.
1166         * stdlib/stdlib.h: Define wait-related bits for XPG7.
1167         Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and  up.
1168         Declare mkstemp and getsubopt for XPG7.
1169         Declare posix_openpt for XPG6 XSI.
1171         * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
1172         and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
1174         * string/string.h: Declare strdup for XPG7.
1176 2010-01-08  Ulrich Drepper  <drepper@redhat.com>
1178         * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
1179         * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
1181         * dirent/dirent.h: Really fix feature selection.
1183         * locale/localeinfo.h: Rename struct locale_data to __locale_data.
1184         Fix all users.
1185         * locale/C-address.c: Fix all users.
1186         * locale/C-collate.c: Likewise.
1187         * locale/C-ctype.c: Likewise.
1188         * locale/C-identification.c: Likewise.
1189         * locale/C-measurement.c: Likewise.
1190         * locale/C-messages.c: Likewise.
1191         * locale/C-monetary.c: Likewise.
1192         * locale/C-name.c: Likewise.
1193         * locale/C-numeric.c: Likewise.
1194         * locale/C-paper.c: Likewise.
1195         * locale/C-telephone.c: Likewise.
1196         * locale/C-time.c: Likewise.
1197         * locale/findlocale.c: Likewise.
1198         * locale/global-locale.c: Likewise.
1199         * locale/loadarchive.c: Likewise.
1200         * locale/loadlocale.c: Likewise.
1201         * locale/nl_langinfo_l.c: Likewise.
1202         * locale/setlocale.c: Likewise.
1203         * locale/xlocale.c: Likewise.
1204         * locale/xlocale.h: Likewise.
1205         * stdio-common/vfscanf.c: Likewise.
1206         * stdlib/strfmon_l.c: Likewise.
1207         * stdlib/strtod_l.c: Likewise.
1208         * stdlib/strtol_l.c: Likewise.
1209         * string/strcoll_l.c: Likewise.
1210         * string/strxfrm_l.c: Likewise.
1211         * time/alt_digit.c: Likewise.
1212         * time/asctime.c: Likewise.
1213         * time/era.c: Likewise.
1214         * time/lc-time-cleanup.c: Likewise.
1215         * time/strftime_l.c: Likewise.
1216         * time/strptime_l.c: Likewise.
1217         * wcsmbs/wcsmbsload.c: Likewise.
1218         * wcsmbs/wcsmbsload.h: Likewise.
1220         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
1221         O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
1222         for XPG7.
1223         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1224         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1225         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1226         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1227         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1228         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1230 2010-01-07  Roland McGrath  <roland@redhat.com>
1232         * elf/elf.h (PN_XNUM): New macro.
1234         * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
1235         literal 2.
1237 2010-01-06  Ulrich Drepper  <drepper@redhat.com>
1239         * dirent/dirent.h: Fix typo in feature selection macro use.
1241 2009-12-15  Maciej W. Rozycki  <macro@codesourcery.com>
1243         [BZ #11115]
1244         * stdlib/tst-makecontext3.c: New file.
1245         * stdlib/Makefile (tests): Add new test.
1247         * stdlib/tst-setcontext.c (check_called): Fix a typo.
1249 2009-12-17  H.J. Lu  <hongjiu.lu@intel.com>
1251         * configure.in: Enable multi-arch by default if the assembler
1252         supports gnu_indirect_function symbol type and the architecture
1253         supports it.
1255 2009-12-23  Ulrich Drepper  <drepper@redhat.com>
1257         * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
1258         is defined.
1260 2009-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1262         * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
1263         MACH_PORT_NULL when id != cttyid.
1265 2009-12-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1267         * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
1268         __mach_port_deallocate on rootdevid.
1270 2009-12-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1272         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
1273         R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
1274         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
1275         unneeded R_390_PLT16DBL and R_390_PLT32DBL.
1277 2009-12-21  Ulrich Drepper  <drepper@redhat.com>
1279         [BZ #10992]
1280         * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
1281         Patch by Eric Blake <ebb9@byu.net>.
1283 2009-12-15  Ulrich Drepper  <drepper@redhat.com>
1285         [BZ #11093]
1286         * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
1287         POLLWRBAND also for POSIX 2008.
1288         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
1289         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
1291         * include/link.h (struct link_map): Move l_used into its own word.
1292         * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
1293         still zero.
1294         * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
1295         never really used.
1297 2009-12-13  H.J. Lu  <hongjiu.lu@intel.com>
1299         * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
1300         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
1301         check processor feature.
1302         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1303         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1304         * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
1305         (index_SSE2): Likewise.
1307 2009-12-09  H.J. Lu  <hongjiu.lu@intel.com>
1309         * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
1310         if __ASSEMBLER__ is defined.
1311         (bit_SSSE3): New.  Defined for __ASSEMBLER__.
1312         (bit_SSE4_2): Likewise.
1313         (index_SSSE3): Likewise.
1314         (index_SSE4_2): Likewise.
1315         * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
1316         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
1317         check processor feature.
1318         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1319         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1320         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1321         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1322         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1323         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1324         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1326 2009-12-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1328         * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
1330 2009-12-01  Mike Frysinger  <vapier@gentoo.org>
1332         * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
1334 2009-12-11  Ulrich Drepper  <drepper@redhat.com>
1336         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
1337         O_DSYNC to match 2.6.33+ kernels.
1338         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1339         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1340         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1341         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1342         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1343         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1345 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
1347         [BZ #11000]
1348         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
1349         *herrnop before returning.
1350         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
1351         Likewise.
1352         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
1353         TRYAGAIN errors separately.
1354         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
1355         *name4_r after functions.
1357 2009-12-09  Ulrich Drepper  <drepper@redhat.com>
1359         [BZ #11046]
1360         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
1361         version check.
1363 2009-11-05  Bruno Haible  <bruno@clisp.org>
1365         [BZ #11056]
1366         * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
1367         argv argument as non-NULL.
1368         (execle, execl, execlp): Mark the first ARG argument as non-NULL.
1370 -2009-12-08  Ulrich Drepper  <drepper@redhat.com>
1372         * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
1373         recvmmsg.
1374         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
1375         * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
1377 2009-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1379         * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
1380         registers.
1381         * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
1382         * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
1383         * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
1385 2009-11-30  Ulrich Drepper  <drepper@redhat.com>
1387         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
1388         SCHED_RESET_ON_FORK.
1390 2009-11-26  Ulrich Drepper  <drepper@redhat.com>
1392         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
1393         only used on truly ancient kernel if configuration requires a more
1394         recent kernel.
1396 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
1398         [BZ #3662]
1399         * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
1400         Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
1402         * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
1403         pass it on to __ptsname_internal.
1404         (grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
1405         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
1406         All the code from __ptsname_r but take additional parameter.  Use that
1407         instead of pointer to local stat64 variable.
1408         (__ptsname_r): Call __ptsname_internal with pointer to local stat64
1409         variable.
1410         * include/stdlib.h: Declare __ptsname_internal.
1412         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
1413         before the exec.
1414         * sysdeps/unix/sysv/linux/grantpt.c: New file.
1415         * login/programs/pt_chown.c (main): Don't print message on errors
1416         when doing real work.
1418         * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
1419         once.
1421         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
1422         irel relocations split out from...
1423         (__libc_csu_init): ...here.
1424         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
1426 2009-11-23  Andreas Schwab  <schwab@redhat.com>
1428         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
1429         for timestamps also if __USE_XOPEN2K8.
1430         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1431         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1432         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1433         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1435 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
1437         * nscd/connections.c (restart): Try harder to re-exec.
1439         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
1441         * sysdeps/unix/sysv/linux/ntp_gettimex.c:  New file.
1442         * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
1443         * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
1444         * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
1445         some placeholders.  Redirect ntp_gettime to ntp_gettimex.
1446         * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
1448         * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
1449         Define.
1450         (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
1452 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
1454         [BZ #10162]
1455         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
1456         than software pipeline.  Properly recover from shorter read.
1458 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
1460         [BZ #10958]
1461         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
1462         initialized before using it.
1463         (_IO_putwc_unlocked): Likewise.
1465         [BZ #10918]
1466         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
1467         in cast to not throw away const-ness of parameters.
1468         (__CPU_EQUAL_S): Likewise.
1469         (__CPU_OP_S): Likewise.
1471         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
1472         F_OWNER_PGRP and mark F_OWNER_GID obsolete.  The kernel people made
1473         this gratuitous change and we have to keep compatibility.
1474         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1475         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1476         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1477         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1478         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1479         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1481 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1483         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
1484         of parameters of sync_file_range.
1485         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1486         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1487         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1488         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1489         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1490         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1492 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
1494         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
1495         Implement using sync_file_range2 syscall if __NR_sync_file_range2
1496         is defined.
1497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
1498         file.
1500 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
1502         * posix/bug-regex30.c: New file.
1503         * posix/Makefile: Add rules to build and run bug-regex30.
1504         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
1505         character lead bytes when there is a range in a COMPLEX_BRACKET.
1506         Reported by Oleg Bylatov.
1508 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1510         [BZ #10969]
1511         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
1512         * locale/tst-duplocale.c: New file.
1513         * locale/Makefile (tests): Add tst-duplocale.
1515         [BZ #10968]
1516         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
1517         Patch by Bruno Haible <bruno@clisp.org>.
1518         * locale/tst-locname.c: New file.
1519         * locale/Makefile (tests): Add tst-locname.
1521         [BZ #10972]
1522         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
1523         constants from recent kernels.
1524         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1525         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
1526         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1527         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1528         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1529         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1531 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
1533         [BZ #10162]
1534         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
1535         software pipeline.
1537 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
1539         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
1540         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
1541         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
1543 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
1545         * posix/bug-regex29.c: Include stdio.h.
1547 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
1549         [BZ #10939]
1550         * Versions.def: Define GLIBC_2.12 for libc.
1551         * manual/errno.texi: Add ERFKILL entry.
1552         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
1553         for 2.12.
1554         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
1555         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
1557         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
1558         F_GETOWN_EX definitions according to corrected kernel definitions.
1559         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1560         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1561         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1562         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1563         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1564         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1566 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
1568         * version.h: Bump for 2.12 development.
1570 2009-11-10  Andreas Schwab  <schwab@redhat.com>
1572         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
1573         out of buffer space.
1574         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
1575         map_v4v6_hostent running out of space.
1577 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
1579         * string/bits/string3.h (memset): If the second parameter is constant
1580         and zero there is likely no transposition.
1581         Patch by Caolan McNamara <caolanm@redhat.com.
1583 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
1585         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
1586         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1588 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
1590         * malloc/memusagestat.c (main): Fix spelling in an error message.
1592 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1594         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
1595         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
1597 2009-11-03  Andreas Schwab  <schwab@redhat.com>
1599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
1600         readahead.
1602 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
1604         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
1605         relocate opd entry when resolving prelink conflicts.
1607 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
1609         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
1610         when -D_FILE_OFFSET_BITS=64.
1612         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
1613         of last two arguments when -D_FILE_OFFSET_BITS=64.
1614         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
1615         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
1616         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
1617         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
1618         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
1619         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
1621 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1623         [BZ #4457]
1624         * sysdeps/generic/libgcc_s.h: New file.
1625         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
1627 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
1629         * malloc/hooks.c (free_check): Restore locking and call _int_free
1630         appropriately.
1632 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1634         * version.h (VERSION): Bump for 2.11 release.
1635         * include/features.h (__GLIBC_MINOR__): Bump to 11.
1637         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
1639         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
1641         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
1642         to avoid warning.
1643         * stdlib/tst-strtoll.c (tests): Likewise.
1645         [BZ #9986]
1646         * time/strftime_l.c (__strftime_internal): Allow %OC.
1648         * misc/mkostemps.c: New file.
1649         * misc/mkostemps64.c: New file.
1651 2009-10-30  Andreas Schwab  <schwab@redhat.com>
1653         * locale/programs/locale-spec.c: Include <error.h> and
1654         <libintl.h>.
1656         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
1658 2009-10-28  Roland McGrath  <roland@redhat.com>
1660         * Makefile (dist-prepare): New target.
1661         (tag-for-dist): Target removed.
1662         (glibc-%.tar): Pattern rule removed.
1663         (%.tar): New pattern rule, does simple use of git archive.
1664         (dist-version): Remove variable definition.
1665         (dist): Just depend on that.  Add .tar.xz dependency.
1666         If dist-version variable not set on command line, depend on
1667         dist-prepare, re-invoke with dist-version set via git describe.
1669         * Makerules (%.xz): New pattern rule.
1671 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
1673         * elf/ifuncdep2.c: Include ifunc-sel.h.
1674         (global): Delete.
1675         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
1676         * elf/ifuncmain1.c (global): Delete.
1677         * elf/ifuncmain1vis.c: Likewise.
1678         * elf/ifuncmain2.c: Likewise.
1679         * elf/ifuncmain5.c: Likewise.
1680         * elf/ifuncmod3.c: Likewise.
1681         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
1682         (foo_ifunc): Use ifunc_one.
1683         * elf/ifuncmain7.c: Likewise.
1684         * elf/ifuncmod1.c: Include ifunc-sel.h.
1685         (global): Define protected var.
1686         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
1687         * elf/ifuncmod5.c: Likewise.
1688         * sysdeps/generic/elf/ifunc-sel.h: New file.
1689         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
1691 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
1693         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
1694         (R_PPC_REL16*): Correct comments.
1695         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
1696         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
1697          R_PPC64_REL16_HA): Define.
1698         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
1699         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
1700         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
1701         Delete unused "reloc" param.
1702         (__process_machine_rela): Handle R_PPC_IRELATIVE.
1703         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
1704         Delete "reloc" param.
1705         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
1706         R_PPC_IRELATIVE.
1707         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
1708         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
1709         relocations.
1711 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1713         [BZ #10315]
1714         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
1715         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
1716         UDP_ENCAP_L2TPINUDP.
1718         [BZ #10349]
1719         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
1720         parameter, specifying length of prefix.
1721         * stdio-common/tempname.c: Likewise.
1722         * include/stdio.h: Adjust prototypes.
1723         * libio/oldtmpfile.c: Adjust caller.
1724         * misc/mkdtemp.c: Likewise.
1725         * misc/mkostemp.c: Likewise.
1726         * misc/mkostemp64.c: Likewise.
1727         * misc/mkstemp.c:  Likewise.
1728         * misc/mkstemp64.c: Likewise.
1729         * misc/mktemp.c: Likewise.
1730         * stdio-common/tempnam.c: Likewise.
1731         * stdio-common/tmpfile.c: Likewise.
1732         * stdio-common/tmpnam.c: Likewise.
1733         * stdio-common/tmpnam_r.c: Likewise.
1734         * misc/mkstemps.c: New file.
1735         * misc/mkstemps64.c: New file.
1736         * stdlib/stdlib.h: Add prototypes.
1737         * misc/Makefile (routines): Add mkstemps and mkstemps64.
1738         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
1740 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1742         * locale/iso-639.def: Add sml entry.
1744         [BZ #10391]
1745         * resolv/res_send.c (send_dg): Initialize resplen.
1747         [BZ #10446]
1748         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
1749         definition to the kernel's.
1750         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1752 2009-08-18  Anders Johansson  <ajohansson@novell.com>
1754         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
1755         offsets and record sizes in assert()s and response sending.
1756         * nscd/grpcache.c: Likewise.
1757         * nscd/hstcache.c: Likewise.
1758         * nscd/initgrcache.c: Likewise.
1759         * nscd/pwdcache.c: Likewise.
1761 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1763         [BZ #10540]
1764         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
1765         /etc/hosts does not exist set errnop and herrnop appropriately.
1766         Patch by Steve Langasek <vorlon@debian.org>.
1768         [BZ #10553]
1769         * malloc/malloc.c (malloc_info): Fix typos in format strings.
1770         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1772         [BZ #10564]
1773         * login/utmp_file.c (TIMEOUT): Increase to 10.
1775         [BZ #10609]
1776         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1777         for file names in case the syscall is not available.
1778         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1779         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1780         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1781         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1782         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1783         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1784         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1785         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1786         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1787         * sysdeps/unix/sysv/linux/openat.c: Likewise.
1788         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1789         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1790         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1791         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1792         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1793         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1794         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1796         [BZ #10643]
1797         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1798         creation filed, remove the request from the 'requests' list and signal
1799         the caller that the request is finished.
1801         [BZ #10692]
1802         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1803         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
1805         [BZ #10713]
1806         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1807         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
1809         [BZ #10780]
1810         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1811         overflows the int return type.
1813         [BZ #10717]
1814         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
1815         have to compute maxsize_total, we have to update the variables, and
1816         the also_total handling must happen after the repair.
1818         [BZ #10742]
1819         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1820         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1822 2009-10-27  Andreas Schwab  <schwab@redhat.com>
1824         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1825         errno is always set when returning unsuccessfully.
1827 2009-10-29  Andreas Schwab  <schwab@redhat.com>
1829         * malloc/memusage.c (update_data): Fix index wraparound handling
1830         so that buffer_cnt is actually reset.
1832 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1834         [BZ #10784]
1835         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1836         of the directory we look at into the static buffer if there is one
1837         at the start of the loop.
1839         [BZ #10789]
1840         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1841         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1843         [BZ #10840]
1844         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1845         __ASSUME_F_GETOWN_EX.
1846         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1847         if possible.
1848         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1850         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1851         and f_owner_ex.
1852         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1853         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1854         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1855         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1856         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1857         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1859         [BZ #10847]
1860         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
1861         getutmpx symbol.
1863         [BZ #10823]
1864         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
1865         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
1867 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
1869         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
1871 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
1873         [BZ #10817]
1874         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
1875         Reported by Ray Chason.
1877 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1879         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1880         strend-sse4.
1881         * sysdeps/x86_64/multiarch/strchr.S: New file.
1882         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
1883         * sysdeps/x86_64/multiarch/strrchr.S: New file.
1885 2009-10-21  Andreas Schwab  <schwab@redhat.com>
1887         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1889 2009-10-19  Andreas Schwab  <schwab@redhat.com>
1891         * include/math.h: Add hidden protos for __exp/__expf/__expl.
1892         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1893         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1894         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1895         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1896         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1897         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1898         __ieee751_expl to handle overflow.
1900 2009-10-14  David S. Miller  <davem@davemloft.net>
1902         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1903         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1905 2009-10-13  Andreas Schwab  <schwab@redhat.com>
1907         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1908         !USE_MULTIARCH.
1910 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
1912         [BZ #10730]
1913         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
1914         Patch in part by Steve Ward <planet36@gmail.com>.
1916         [BZ #10731]
1917         * stdlib/rand_r.c: Fix typo.
1919         * po/cs.po: Update from translation team.
1921 2009-10-06  Andreas Schwab  <schwab@redhat.com>
1923         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1924         returning if RTLD_NOLOAD.
1926 2009-10-06  Roland McGrath  <roland@redhat.com>
1928         * sysdeps/x86_64/multiarch/strstr-c.c
1929         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1931         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1932         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1934         * sysdeps/x86_64/multiarch/init-arch.h
1935         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1936         (HAS_CPU_FEATURE): New macro.
1937         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1938         * sysdeps/x86_64/multiarch/init-arch.c
1939         (__get_cpu_features): #undef it before definition.
1941 2009-10-05  Andreas Schwab  <schwab@redhat.com>
1943         * locale/C-time.c: Revert week-1stday back to 19971130 and set
1944         first_weekday to 1 and first_workday to 2.
1946 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
1948         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1949         F_GETOWN_EX.
1950         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1951         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1952         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1953         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1954         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1955         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1957 2009-09-28  Andreas Schwab  <schwab@redhat.com>
1959         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1960         * stdio-common/vfprintf.c: Likewise.
1962 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1964         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1965         (mkdirat): Call __directory_name_split_at instead of
1966         __directory_name_split.
1968 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
1970         * locale/programs/locale-spec.c (locale_special): If nothing matches
1971         fail with an appropriate message.
1973 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1975         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
1976         and XX.
1978 2009-09-25  Andreas Schwab  <schwab@redhat.com>
1980         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
1981         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
1983 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1985         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
1987 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
1989         * iconvdata/iso646.c (gconv_init): Correctly initialize the
1990         character size elements in step data.
1992 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
1994         * po/hu.po: Update from translation team.
1995         * po/vi.po: Likewise.
1997 2009-09-19  Roland McGrath  <roland@redhat.com>
1999         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
2001 2009-09-15  Roland McGrath  <roland@redhat.com>
2003         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
2004         * nptl/sysdeps/pthread/configure: Regenerated.
2005         * nptl/sysdeps/x86_64/configure: Regenerated.
2006         * sysdeps/unix/sysv/linux/configure: Regenerated.
2007         * sysdeps/x86_64/elf/configure: Regenerated.
2009         * Makefile (autoconf-it): Set execute bit only on top-level configure.
2011         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
2012         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
2013         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
2014         * configure: Regenerated.
2016 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
2018         * posix/getconf.c (main): Handle -- on command line.
2020 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
2022         * configure.in: Support binutils 2.100 and 3.0.
2024 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
2026         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
2027         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
2028         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
2029         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
2031 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
2033         * locale/programs/ld-collate.c (struct locale_collate_t): Add
2034         unnamed_section_defined field.
2035         (collate_read): Test and set unnamed_section_defined.
2037         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
2038         _POSIX2_LINE_MAX.
2040 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
2042         * configure.in: Support binutils 2.20.
2044 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
2046         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
2047         __strstr_ia32): Add attribute_hidden.
2049 2009-09-01  Andreas Schwab  <schwab@redhat.com>
2051         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
2052         parsing of group entry.
2054 2009-09-02  Andreas Schwab  <schwab@redhat.com>
2056         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
2057         external buffer.  Always discard readahead in internal buffer.
2058         * libio/Makefile (tests): Add bug-wsetpos.
2059         * libio/bug-wsetpos.c: New file.
2061 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
2063         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
2064         Add attribute_hidden.
2065         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
2066         __strcasestr_sse2): Likewise.
2067         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
2068         (__fma_fma): Make static.
2069         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
2070         (__fmaf_fma): Make static.
2072 2009-08-31  Andreas Schwab  <schwab@redhat.com>
2074         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
2075         reformulate in-buffer optimisation check to match code in
2076         _IO_new_file_seekoff.
2078 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
2080         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
2081         to srwi in 32-bit memcpy for power6.
2083 2009-09-01  Andreas Schwab  <schwab@redhat.com>
2085         * include/stdio.h: Declare hidden proto for fflush.
2086         * libio/iofflush.c: Add hidden weak alias for fflush.
2088 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
2090         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
2091         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
2093 2009-08-31  Andreas Schwab  <schwab@redhat.com>
2095         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
2097 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
2099         [BZ #10560]
2100         * malloc/malloc.c: Add local assert definition to avoid problems with
2101         memory allocation in the real one.
2103 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
2105         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
2106         Removed.
2107         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
2108         turn off SSSE3 on Atom.
2110 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
2112         * stdlib/tst-strtol.c (tests): More tests.
2113         * stdlib/tst-strtoll.c (tests): Likewise.
2115 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
2117         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
2119         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
2121 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
2123         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
2124         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
2126         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
2128         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
2130         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
2132 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
2134         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
2136 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
2138         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
2139         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
2141         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
2143         * sysdeps/x86_64/fpu/s_signbit.S: New file.
2144         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
2146         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
2147         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
2149         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
2150         leftover YMM_SIZE definition.
2152 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
2154         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
2155         union.
2156         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
2157         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
2158         Redefine.
2159         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
2161         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
2162         and SET_FLOAT_WORD definitions.
2164 2009-08-24  Roland McGrath  <roland@redhat.com>
2166         * sysdeps/unix/syscall-template.S: New file.
2167         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
2168         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
2169         (compile-syscall): Pass mkdep and -g options as normal.
2170         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
2171         (common-generated): Don't add them here.
2173 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
2175         * math/s_fdim.c: In case of overflows set errno.
2176         * math/s_fdimf.c: Likewise.
2177         * math/s_fdiml.c: Likewise.
2179         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
2180         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
2181         are using the inline optimizations.
2183         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
2184         (__signbitf): Likewise.
2186 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
2188         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
2189         terminated.
2190         * posix/Makefile (tests): Add bug-regex29.
2191         * posix/bug-regex29.c: New file.
2193         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
2194         older POSIX versions are selected.
2196         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
2197         as well.
2198         * stdio-common/printf_fphex.c: Likewise.
2199         * stdio-common/tstdiomisc.c: Add more tests.
2201         * locale/locale.h: Include xlocale.h and the thread-local locale
2202         declarations for XPG7, not XPG6.
2204 2009-08-21  Andreas Schwab  <schwab@redhat.com>
2206         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
2207         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
2208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
2209         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
2210         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
2211         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2213 2009-08-20  Roland McGrath  <roland@redhat.com>
2215         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
2216         Use l_addr instead of l_map_start (dli_fbase).
2217         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
2218         address when there is no proximate symbol.
2219         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
2220         Likewise.
2222 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
2224         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
2226 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
2228         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
2229         Also handle SIGINT.  In that case only do the cleanup and then
2230         re-raise the signal.
2231         (main): Install handler for SIGINT.
2233 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
2235         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
2236         clobber list.
2238 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
2240         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
2241         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
2242         tst-auditmod7b.c.
2243         (tests): Add tst-audit6 tst-audit7.
2244         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
2245         tst-auditmod7a tst-auditmod7b.
2246         ($(objpfx)tst-audit6): New.
2247         ($(objpfx)tst-audit6.out): Likewise.
2248         ($(objpfx)tst-audit7): Likewise.
2249         ($(objpfx)tst-audit7.out): Likewise.
2250         (tst-audit6-ENV): Likewise.
2251         (tst-audit7-ENV): Likewise.
2252         (CFLAGS-tst-auditmod6b.c): Likewise.
2253         (CFLAGS-tst-auditmod6c.c): Likewise.
2254         (CFLAGS-tst-auditmod7b.c): Likewise.
2255         * elf/tst-audit6.c: New file.
2256         * elf/tst-audit7.c: New file.
2257         * elf/tst-auditmod6a.c: New file.
2258         * elf/tst-auditmod6b.c: New file.
2259         * elf/tst-auditmod6c.c: New file.
2260         * elf/tst-auditmod7a.c: New file.
2261         * elf/tst-auditmod7b.c: New file.
2262         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2263         saving and restoring SSE/AVX registers to ...
2264         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2266 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2268         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
2269         only if SHARED is defined.
2270         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
2272 2009-08-03  Jim Meyering  <meyering@redhat.com>
2274         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
2276 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
2278         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
2279         section as the other functions for this architecture.
2280         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2282 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
2284         * sysdeps/x86_64/strcmp.S: Add support to compile with
2285         USE_SSSE3.  In this case palignr is used.
2286         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
2287         available but SSSE3 is, pick __str{,n}cmp_ssse3.
2288         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
2289         Add strcmp-ssse3 and strncmp-ssse3.
2290         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
2291         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
2293         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
2294         warning through fake initialization.
2296 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2298         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
2300 2009-08-07  Andreas Schwab  <schwab@redhat.com>
2302         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
2303         unique symbols.
2305 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
2307         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
2308         EBX from EAX = 1.  Handle EAX = 11.
2310 2009-08-07  Andreas Schwab  <schwab@redhat.com>
2312         * Makefile (TAGS): Use separate sed -e expressions to avoid \
2313         inside ''.
2315 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
2317         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
2318         hidden IFUNC functions.
2319         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2321         * sysdeps/i386/i686/multiarch/strlen.S: New file.
2323         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
2324         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
2325         strcasestr-c.
2326         (CFLAGS-strcspn-c.c): Define.
2327         (CFLAGS-strpbrk-c.c): Define.
2328         (CFLAGS-strspn-c.c): Define.
2329         (CFLAGS-strstr.c): Define.
2330         (CFLAGS-strcasestr.c): Define.
2331         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
2332         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
2333         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
2334         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
2335         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
2336         * sysdeps/i386/i686/multiarch/strspn.S: New file.
2337         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
2338         * sysdeps/i386/i686/multiarch/strstr.c: New file.
2339         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
2340         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
2341         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
2342         -16L instead of 0xfffffffffffffff0L.
2343         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
2345 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
2347         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
2349 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
2351         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
2352         another rewrite.  Much smaller and faster.
2353         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
2355         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
2356         ss_flags from the correct location.
2358 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2360         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
2361         * sysdeps/i386/i686/cacheinfo.c: New file.
2362         * sysdeps/i386/i686/multiarch/Makefile: New file.
2363         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
2364         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
2365         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
2366         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
2367         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
2368         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
2369         (__cpuid_count): New. Provide the default.
2370         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
2371         (__x86_64_preferred_memory_instruction): Define only if
2372         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
2373         (intel_check_word): Use __cpuid.
2374         (handle_intel): Likewise.
2375         (handle_amd): Likewise.
2376         (__cache_sysconf): Likewise.
2377         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
2378         (__cache_sysconf): Likewise.
2379         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
2380         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
2381         (get_common_indeces): Use __cpuid.
2382         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
2383         if ENABLE_SSSE3_ON_ATOM is not defined.
2384         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
2385         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
2386         popcnt instead of popcntq.
2388 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
2390         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
2392 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
2394         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
2395         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
2396         which always causes a compile error.
2398         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
2400         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
2401         comes from...
2402         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
2403         which always causes a compile error.
2405         * debug/Makefile (tests): Add tst-longjmp_chk2.
2406         * debug/tst-longjmp_chk2.c: New file.
2408         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
2409         Remove incorrect use of BP_SYM.
2410         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
2411         here now since it is more complex than just a simple check.
2413         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
2414         we make no more progress.
2416 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
2418         * math/s_fma.c: Don't define alias if __fma is a macro.
2419         * math/s_fmaf.c: Likewise.
2420         * sysdeps/x86_64/multiarch/s_fma.c: New file.
2421         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
2422         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
2424         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
2425         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
2426         New macro HAS_FMA.
2427         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
2428         function.
2429         * include/libc-symbols.h (libm_ifunc): Define.
2430         * sysdeps/x86_64/multiarch/Versions: New file.
2432         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
2434 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
2436         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
2438 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
2440         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
2441         call that registers used in calling conventions need to be preserved.
2442         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
2443         to preserve register content if necessary.
2444         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
2445         (_dl_x86_64_restore_sse): New function.
2446         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
2447         is allowed to modify xmm/ymm registers.
2449         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
2450         application's perspective.
2451         * stdio-common/scanf17.c: Likewise.
2453 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
2455         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
2456         size to memsz.
2457         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
2458         here.
2459         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
2460         two steps to catch bugs.
2462 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
2464         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
2465         determines which files are used in runtime lookups and only checks
2466         those for SSE use.
2467         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
2468         testing.
2469         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
2470         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
2471         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
2472         take a while.
2474         * elf/dl-open.c: Move _dl_scope_free to...
2475         * elf/dl-scope.c: ...here.  New file.
2476         * elf/Makefile (dl-routines): Add scope.
2478         * resolv/resolv.h (RES_USE_DNSSEC): Define.
2479         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
2480         RES_USE_DNSSEC.
2481         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
2482         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
2483         all the places we handled RES_USE_EDNS0 only before.
2484         Patch by Adam Tkac <atkac@redhat.com>.
2486 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
2488         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
2489         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
2490         Update size when reallocating.
2492 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2494         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
2495         functions used in ld.so modify xmm/ymm registers.
2496         * sysdeps/x86_64/Makefile:  Hook new test up.
2497         * sysdeps/x86_64/rtld-memchr.c: New file.
2498         * sysdeps/x86_64/rtld-memcmp.c: New file.
2499         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
2500         * sysdeps/x86_64/rtld-strchr.S: New file.
2501         * sysdeps/x86_64/rtld-strlen.S: New file.
2502         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
2503         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
2505 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
2507         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
2508         strncmp-c.
2509         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
2510         (exit): Likewise.
2511         (Byte1): Likewise.
2512         (Byte2): Likewise.
2513         (Byte3): Likewise.
2514         (Byte4): Likewise.
2515         (Byte5): Likewise.
2516         (Byte6): Likewise.
2517         (next_8_bytes): Likewise.
2518         (Byte0): Remove commented out codes.
2519         (unaligned_table): Align jump table at 8 bytes.
2520         Add _sse4_2 to all labels.  Always include "../strcmp.S".
2521         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
2522         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
2523         * sysdeps/x86_64/strncmp.S: New file.
2525 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2527         [BZ #10422]
2528         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
2529         kernels, dropped when eventfd2 support was added.
2530         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
2531         kernels, dropped when signalfd4 support was added.
2532         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
2533         added, name them.
2535         [BZ #10452]
2536         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
2537         replies up.
2539         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
2541 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
2543         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
2544         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
2546         [BZ #10448]
2547         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
2548         callback we must touch the status to avoid using stale value.
2550         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
2551         compiled in.
2553 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
2555         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
2556         /lib/modules/* headers anymore.  We have sane headers in the standard
2557         place now.
2559 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2561         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
2562         "etf3enh" and "highgprs" added.
2563         (_dl_s390_platforms): "z10" added.
2564         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
2565         Increased for the new entries.
2566         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
2567         HWCAP_S390_HIGH_GPRS added.
2569         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
2570         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
2571         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
2572         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
2573         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
2575 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
2577         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
2578         avoid additional cpuid instructions.  Most of the information is
2579         stored somewhere.
2581         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
2582         cache descriptors.
2583         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
2585         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
2586         SSSE3 bit for Atoms.
2587         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
2588         here anymore.
2590         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
2591         structure before copying it to avoid warning.
2592         * posix/tst-rfc3484-2.c (do_test): Likewise.
2593         * posix/tst-rfc3484-3.c (do_test): Likewise.
2595         [BZ #10416]
2596         * include/unistd.h: Make header file suitable for C++ test cases.
2597         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
2599         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
2600         stack alignment in the exit code.
2602         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
2603         potentially be zero.
2605         * elf/tst-unique1.c: Extend test to check for unloading DSO with
2606         unique symbol definition.
2607         Patch by Jakub Jelinek.
2608         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
2609         make sure the object with the definition cannot be unloaded.  Adjust
2610         a few types.
2611         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
2612         the unique symbol hash table should not be const.
2614 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
2616         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
2617         unnecesary variables.  Comment fixes.
2619 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2621         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
2622         Use NONASCII_CASE information provided by the locale to determine
2623         whether optimized string load function can be used.  Minor cleanups.
2625 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
2627         * string/strcasestr.c (STRCASESTR): New macro.
2628         (__strcasestr): Renamed to ..
2629         (STRCASESTR): ...this.
2630         * string/strstr.c (STRSTR): New macro.
2631         (strstr): Renamed to ..
2632         (STRSTR): ...this.
2633         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2634         strstr-c strcasestr-c
2635         (CFLAGS-strstr.c): New.
2636         (CFLAGS-strcasestr.c): Likewise.
2637         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
2638         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
2639         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
2640         * sysdeps/x86_64/multiarch/strstr.c: New file.
2642 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2644         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
2645         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
2646         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
2647         _NL_CTYPE_NONASCII_CASE.
2648         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
2649         field.
2650         (ctype_finish): Check whether there are any 8-bit characters outside
2651         the range ASCII has or whether the mapping isn't the same as for
2652         ASCII (±0x20).  Set nonascii_case appropriately.
2653         (ctype_output): Add output handler for nonascii_case.
2655 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
2657         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
2658         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
2660 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2662         [BZ #10360]
2663         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
2664         0xffff in the EDNS0 record.
2666 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2668         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
2669         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
2670         is written before the list head update.
2671         Patch by Andreas Schwab <aschwab@redhat.com>.
2673 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2674             Jakub Jelinek  <jakub@redhat.com>
2676         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
2677         corruption thread-safe.
2679 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
2681         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
2682         overrides atomic_compare_and_exchange_val_rel, define to
2683         atomic_compare_and_exchange_val_rel by default, otherwise default
2684         to catomic_compare_and_exchange_val_acq.
2685         (catomic_compare_and_exchange_bool_rel): If arch overrides
2686         atomic_compare_and_exchange_bool_rel, define to
2687         atomic_compare_and_exchange_bool_rel by default.
2688         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
2689         Use catomic_compare_and_exchange_val_rel instead of
2690         catomic_compare_and_exchange_val_acq.
2692 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2694         * sysdeps/generic/ldsodefs.h: Add prototype for
2695         _dl_higher_prime_number.
2696         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
2698         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
2699         restoring of ymm registers a bit.
2701 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
2703         * sysdeps/x86_64/memcmp.S: New file.
2705 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
2707         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
2708         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
2709         pointers in writable memory.
2711 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
2713         * config.h.in: Add HAVE_AVX_SUPPORT entry.
2714         * config.make.in: Add config-cflags-avx entry.
2715         * configure.in: Substitute libc_cv_cc_avx.
2716         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
2717         * elf/tst-audit4.c: New file.
2718         * elf/tst-audit5.c: New file.
2719         * elf/tst-auditmod4a.c: New file.
2720         * elf/tst-auditmod4b.c: New file.
2721         * elf/tst-auditmod5a.c: New file.
2722         * elf/tst-auditmod5b.c: New file.
2723         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
2724         link-defines.sym.
2725         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
2726         (La_x86_64_vector): Likewise.
2727         (La_x86_64_regs): Append lr_vector.
2728         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
2729         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2730         saving and restoring SSE registers to ...
2731         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2732         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
2733         <link-defines.h>.
2734         (_dl_runtime_profile): Use LR_SIZE to allocate space for
2735         La_x86_64_regs.  Allocate extra space and jump to memory at
2736         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
2737         (save_and_restore_vector_sse): New.
2738         (save_and_restore_vector_avx): Likewise.
2739         (check_avx): Likewise.
2740         (save_and_restore_vector): Likewise.
2741         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
2742         HAVE_AVX_SUPPORT.
2743         * sysdeps/x86_64/link-defines.sym: New file.
2745 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
2747         * elf/do-lookup.h: Removed after folding content into...
2748         * elf/dl-lookup.c: ...here.
2750         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
2752 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
2754         * configure.in: Check for gnu_unique_symbol symbol type.
2755         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
2756         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
2757         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
2758         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
2759         change.
2760         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
2761         unique symbol table.
2762         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
2763         for first namespace.
2764         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
2765         unique symbol hash table.
2766         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
2767         * elf/tst-unique1.c: New file.
2768         * elf/tst-unique1mod1.c: New file.
2769         * elf/tst-unique1mod2.c: New file.
2770         * elf/tst-unique2.c: New file.
2771         * elf/tst-unique2mod1.c: New file.
2772         * elf/tst-unique2mod2.c: New file.
2774 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
2776         * elf/elf.h (STB_GNU_UNIQUE): Define.
2778         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
2779         from...
2780         * include/inline-hashtab.h: ...here.
2781         (htab_expand): Adjust for renamed function.  Correct memory handling.
2783 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
2785         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2787 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
2789         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2790         (PPC_FEATURE_HAS_VSX): Likewise.
2792 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
2794         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2795         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2797         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2798         aligned to 16 byte boundaries.
2799         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2800         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2801         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2803 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2805         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2806         * config.make.in (config-cflags-sse4): New variable.
2807         * configure.in: Substitute libc_cv_cc_sse4.
2808         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2809         HAVE_SSE4_SUPPORT.
2810         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2811         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2812         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2813         * sysdeps/x86_64/multiarch/strcspn.S: New file.
2814         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2815         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2816         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2817         * sysdeps/x86_64/multiarch/strspn.S: New file.
2819 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2821         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
2822         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2823         (tests): Add tst-audit3 for x86_64.
2824         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2825         ($(objpfx)tst-audit3): Define.
2826         ($(objpfx)tst-audit3.out): Define.
2827         (tst-audit3-ENV): Define.
2828         * elf/tst-audit3.c: New file.
2829         * elf/tst-auditmod3a.c: New file.
2830         * elf/tst-auditmod3b.c: New file.
2831         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2832         and restore xmm6.
2834         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
2835         (__stpncpy): Renamed to ...
2836         (STPNCPY): This.
2837         (stpncpy): Create alias only if STPNCPY is not defined.
2838         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
2839         defined.
2840         (strncpy): Renamed to ...
2841         (STRNCPY): This.
2842         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2843          stpncpy-c strncpy-c for string.
2844         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2845         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2846         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2847         * sysdeps/x86_64/multiarch/strcpy.S: New file.
2848         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2849         * sysdeps/x86_64/multiarch/strncpy.S: New file.
2851 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
2853         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
2854         adding to fast bin list.
2856 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
2858         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
2859         inet_makeaddr.  This worked only with class-based networks.
2860         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2861         Likewise.
2863         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
2864         recognize all types.
2865         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
2866         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
2867         be in host byte order.
2869 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
2871         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
2872         (MODEL_OFFSET): Define.
2873         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
2874         family and model.
2875         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
2876         out common code into new function get_common_indeces. Determine
2877         extended family and model for Intel processors.
2879 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
2881         * resolv/resolv.h: Define RES_SNGLKUPREOP.
2882         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
2883         option.
2884         * resolv/res_send.c (reopen): New function.  Broken out of...
2885         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
2886         fallback mechanism.  If single-request fails switch to
2887         single-request-reopen mode which opens a new socket for the second
2888         request.
2890 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
2892         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2893         (CHECK_SP): Use it.
2895 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
2897         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2898         for saved registers.
2899         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2900         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2901         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2903 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
2905         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2907 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
2909         * po/id.po: Update from translation team.
2911         * po/bg.po: Update from translation team.
2913 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2915         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
2916         defined.
2917         (strncmp): Renamed to STRNCMP.
2918         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2919         strncmp-c for string.
2920         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2921         * sysdeps/x86_64/multiarch/strcmp.S: New file.
2922         * sysdeps/x86_64/multiarch/strncmp.S: New file.
2923         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2925 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
2927         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2928         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2929         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2930         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2931         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2932         ifuncmain7static.c.
2933         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2934         ifuncmain7static, and ifuncmain7picstatic.
2935         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2936         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2937         $(objpfx)ifuncmain7pie.out.
2938         (modules-names): Add ifuncmod5 ifuncmod6
2939         (ifuncmod5.so-no-z-defs): Define.
2940         (ifuncmod6.so-no-z-defs): Define.
2941         (CFLAGS-ifuncmain5pic.c): Define.
2942         (CFLAGS-ifuncmain5picstatic.c): Define.
2943         (CFLAGS-ifuncmain5staticpic.c): Define.
2944         (CFLAGS-ifuncdep5pic.c): Define.
2945         (CFLAGS-ifuncmain7pic.c): Define.
2946         (CFLAGS-ifuncmain7picstatic.c): Define.
2947         (CFLAGS-ifuncmain1staticpie.c): Define.
2948         (CFLAGS-ifuncmain5pie.c): Define.
2949         (CFLAGS-ifuncmain6pie.c): Define.
2950         (CFLAGS-ifuncmain7pie.c): Define.
2951         ($(objpfx)ifuncmain1staticpie.out): Define.
2952         ($(objpfx)ifuncmain1staticpie): Define.
2953         ($(objpfx)ifuncmain5pie.out): Define.
2954         ($(objpfx)ifuncmain5pie): Define.
2955         ($(objpfx)ifuncmain6pie.out): Define.
2956         ($(objpfx)ifuncmain6pie): Define.
2957         ($(objpfx)ifuncmain5): Define.
2958         ($(objpfx)ifuncmain5pic): Define.
2959         ($(objpfx)ifuncmain5static): Define.
2960         ($(objpfx)ifuncmain5staticpic): Define.
2961         ($(objpfx)ifuncmain5picstatic): Define.
2962         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2963         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2964         ifuncmain6pie.out.
2965         * elf/b/elf/ifuncmain1staticpie.c: New file.
2966         * elf/ifuncdep5.c: New file.
2967         * elf/ifuncdep5pic.c: New file.
2968         * elf/ifuncmain5.c: New file.
2969         * elf/ifuncmain5pic.c: New file.
2970         * elf/ifuncmain5picstatic.c: New file.
2971         * elf/ifuncmain5pie.c: New file.
2972         * elf/ifuncmain5static.c: New file.
2973         * elf/ifuncmain5staticpic.c: New file.
2974         * elf/ifuncmain6pie.c: New file.
2975         * elf/ifuncmain7.c: New file.
2976         * elf/ifuncmain7pic.c: New file.
2977         * elf/ifuncmain7picstatic.c: New file.
2978         * elf/ifuncmain7pie.c: New file.
2979         * elf/ifuncmain7static.c: New file.
2980         * elf/ifuncmod5.c: New file.
2981         * elf/ifuncmod6.c: New file.
2983 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
2985         [BZ #10085]
2986         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
2987         (nss_endgrent): New variable.
2988         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
2989         fields. Change type of files to bool and adjust all users.
2990         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
2991         (internal_endgrent): Call nss_endgrent if necessary.
2992         (add_group): New function.  Broken out of...
2993         (check_and_add_group): ...here.
2994         (getgrent_next_nss): Remove test that any callback is available.
2995         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
2996         callback.  If there is no blacklist we can trust the results returned
2997         by the initgroups_dyn callback.  In case there is a callback and we
2998         find a group entry for the group ID but it doesn't contain the
2999         correct member, switch to the slow mode and use getgrent_r.
3000         (internal_getgrent_r): When we see a +: entry, determine whether
3001         there is any callback and which we can use the initgroups_dyn
3002         callback.
3004 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
3006         * malloc/malloc.c (_int_malloc): Add some consistency checks.
3007         (_int_free): Likewise.
3009         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
3010         AF_IEEE802154.
3011         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3012         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
3013         and ARPHRD_IEEE802154_PHY.
3015         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
3016         relative to generic Linux version.
3018 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
3020         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
3021         ($(objpfx)ifuncmain1vispie): Likewise.
3023 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
3025         * login/Makefile: Build pt_chown as PIE.
3027 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
3029         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
3030         a format string.
3031         * elf/sln.c (usage): Likewise.
3032         * malloc/memusage.sh (do_help): Likewise.
3033         * nss/getent.c (more_help): Likewise.
3034         * posix/getconf.c (main): Likewise.
3035         * sunrpc/rpcinfo.c (usage): Likewise.
3036         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
3038 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
3040         * login/programs/pt_chown.c: Use libcap to drop privileges other than
3041         those needed.
3042         * login/Makefile: If necessary link pt_chown with -lcap.
3043         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
3044         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
3046 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
3048         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
3049         comparisons.
3050         * string/test-memchr.c (do_random_tests): Test very large lengths
3051         as well.
3053 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
3055         * Makeconfig (+link-pie): Define.
3056         (+prectorS): Define.
3057         (+postctorS): Define.
3058         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
3059         * nscd/Makefile ($(objpfx)nscd): Likewise.
3061 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
3063         [BZ #10107]
3064         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
3065         with cmplwi.
3066         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
3068 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
3070         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
3071         into ...
3072         * sysdeps/unix/grantpt.c: ...here.
3074 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
3076         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
3077         chmod if it is necessary.
3079         [BZ #10166]
3080         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
3081         when the slave device is in devpts or devfs.
3083         [BZ #10183]
3084         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
3086         [BZ #10195]
3087         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
3088         of nd_opt_home_agent_info_preference to uint16_t.
3089         Patch by Arnaud Ebalard <arno@natisbad.org>.
3091         [BZ #10207]
3092         * nss/getent.c: Add support for printing gshadow data.
3094         [BZ #10203]
3095         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
3096         not just the currently used one and those which follow.
3097         Patch by Joe Landers <jlanders@vmware.com>.
3099         [BZ #10196]
3100         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
3101         * libio/Makefile: Run tst-fgetwc with necessary envvar.
3102         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
3104         [BZ #10217]
3105         * stdlib/abort.c: Define variable __abort_msg.
3106         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
3107         * include/stdlib.h: Declare __abort_msg.
3108         * assert/assert-perr.c: Don't free buffer for message immediately.
3109         Store atomically in __abort_msg and free old buffer if necessary.
3110         * assert/assert.c: Likewise.
3111         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
3112         store pointer in __abort_msg, and possibly free old string.
3113         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
3115         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
3117         [BZ #10211]
3118         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
3119         handle leap seconds if they are available.
3120         Patch by Akinori Hattori <hattya@gentoo.org>.
3122         * timezone/tzselect.ksh: Update from tzcode2009i.
3123         * timezone/zdump.c: Likewise.
3124         * timezone/zic.c: Likewise.
3126         * timezone/africa: Update from tzdata2009i.
3127         * timezone/antarctica: Likewise.
3128         * timezone/asia: Likewise.
3129         * timezone/australasia: Likewise.
3130         * timezone/backward: Likewise.
3131         * timezone/etcetera: Likewise.
3132         * timezone/europe: Likewise.
3133         * timezone/factory: Likewise.
3134         * timezone/iso3166.tab: Likewise.
3135         * timezone/leapseconds: Likewise.
3136         * timezone/northamerica: Likewise.
3137         * timezone/pacificnew: Likewise.
3138         * timezone/solar87: Likewise.
3139         * timezone/solar88: Likewise.
3140         * timezone/solar89: Likewise.
3141         * timezone/southamerica: Likewise.
3142         * timezone/systemv: Likewise.
3143         * timezone/yearistype: Likewise.
3144         * timezone/zone.tab: Likewise.
3146 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
3148         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
3149         STT_GNU_IFUNC symbol or in 8 into type_class.
3151         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
3152         instead of Elf64_Addr.
3154 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
3156         * po/sv.po: Update from translation team.
3158         [BZ #10229]
3159         * misc/sys/select.h (__NFDBITS): Expression should have type int.
3160         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
3161         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
3162         the C version.
3164 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
3166         * Versions.def: Add GLIBC_2.11 for libpthread.
3168 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
3170         * resolv/res_send.c (send_dg): Remember we switched to
3171         single-request mode.
3173 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
3175         * dlfcn/dlfcn.h: Remove comma at end of enum.
3176         Patch by J.H.M. Dassen <rdassen@redhat.com>.
3178         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
3179         parsing mode string.
3181 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
3183         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
3185         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
3187         * sysdeps/x86_64/multiarch/strlen.S: New file.
3188         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
3189         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
3190         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
3191         content.
3193         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
3194         is defined.
3196 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
3198         * sysdeps/x86_64/strlen.S: Minor optimizations.
3200 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
3202         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
3203         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
3204         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
3205         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
3206         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
3207         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
3208         ifuncmain3.c, ifuncmod3.c,.
3209         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
3210         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
3211         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
3212         ifuncmain4picstatic.
3213         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
3214         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
3215         ifuncmain3, ifuncmain4.
3216         (tests): Depend on $(objpfx)ifuncmain1pie.out and
3217         $(objpfx)ifuncmain1vispie.out.
3218         (modules-names): Add ifuncmod1 ifuncmod3.
3219         (generated): Add ifuncmain1pie ifuncmain1pie.out
3220         ifuncmain1vispie ifuncmain1vispie.out.
3221         Define rules to build and run the tests.
3222         * elf/ifuncdep1.c: New file.
3223         * elf/ifuncdep1pic.c: New file.
3224         * elf/ifuncdep2.c: New file.
3225         * elf/ifuncdep2pic.c: New file.
3226         * elf/ifuncmain1.c: New file.
3227         * elf/ifuncmain1pic.c: New file.
3228         * elf/ifuncmain1picstatic.c: New file.
3229         * elf/ifuncmain1pie.c: New file.
3230         * elf/ifuncmain1static.c: New file.
3231         * elf/ifuncmain1staticpic.c: New file.
3232         * elf/ifuncmain1vis.c: New file..
3233         * elf/ifuncmain1vispic.c: New file..
3234         * elf/ifuncmain1vispie.c: New file.
3235         * elf/ifuncmain2.c: New file.
3236         * elf/ifuncmain2pic.c: New file.
3237         * elf/ifuncmain2picstatic.c: New file.
3238         * elf/ifuncmain2static.c: New file.
3239         * elf/ifuncmain3.c: New file.
3240         * elf/ifuncmain4.c: New file.
3241         * elf/ifuncmain4picstatic.c: New file.
3242         * elf/ifuncmain4static.c: New file.
3243         * elf/ifuncmod1.c: New file.
3244         * elf/ifuncmod3.c: New file.
3246 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
3248         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
3250 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
3252         [BZ #10221]
3253         * posix/Makefile (routines): Add execvpe.
3254         * posix/Versions: Export execvpe for GLIBC_2.11.
3255         * posix/execvp.c: Now only a wrapper.  Move code to...
3256         * posix/execvpe.c: ...here.  New file.
3257         * posix/unistd.h: Declare execvpe.
3259 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
3261         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
3262         for STT_GNU_IFUNC handling for efficiency.
3263         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3265         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
3266         _exit.
3267         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
3269 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
3271         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
3272         for !SHARED.
3274 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
3276         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
3277         is not defined.
3278         (__rela_iplt_start): New declaration.
3279         (__rela_iplt_end): Likewise.
3280         (__rel_iplt_start): Likewise.
3281         (__rel_iplt_end): Likewise.
3282         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
3283         * elf/elf.h (R_386_IRELATIVE): New macro.
3284         (R_X86_64_IRELATIVE): New macro.
3285         (R_386_NUM): Updated.
3286         (R_X86_64_NUM): Likewise.
3287         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
3288         (libc_ifunc_hidden_def): New macro.
3289         * sysdeps/generic/dl-irel.h: New file.
3290         * sysdeps/i386/dl-irel.h: New file.
3291         * sysdeps/x86_64/dl-irel.h: New file.
3292         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
3293         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
3294         Handle R_386_IRELATIVE.
3295         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
3296         (elf_machine_lazy_rela): Likewise.
3297         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
3298         R_X86_64_IRELATIVE.
3299         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
3301 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
3303         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
3304         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
3305         are no differences.  If an architecture has bits in CPUID index 1
3306         meaning different things the values for the COMMON_CPUID_INDEX_1
3307         index must not be set.
3308         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
3309         (HAS_POPCOUNT): ...this.  New macro.
3310         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
3311         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
3312         to set the value for Intel and AMD architectures.
3313         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
3314         INTEL_CPUID_INDEX_1.
3315         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
3316         change.
3318 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3320         * configure.in: Move AC_CANONICAL_HOST before first use of $host
3321         and $build.
3323 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
3325         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
3326         (__expm1l): Set errno to ERANGE on overflow.
3327         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
3328         (__tanl): Set errno to EDOM for Â±Inf.
3329         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
3330         (__cosl): Set errno to EDOM for Â±Inf.
3331         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
3332         (__sinl): Set errno to EDOM for Â±Inf.
3334         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
3335         defined, use it.
3336         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
3337         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
3338         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
3340 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
3342         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
3343         code accessing it.
3344         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
3346 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
3348         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
3349         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
3350         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
3351         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
3353         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
3354         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
3355         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
3356         defined.
3357         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
3358         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
3360 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
3362         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
3363         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
3364         is, either do nothing at all if __ASSUME_ACCEPT4, or
3365         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
3366         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
3367         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
3368         define.
3369         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
3370         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
3371         internal_accept4 in socket directory.
3373 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
3375         * sysdeps/ia64/configure.in: New file.
3377 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3379         [BZ #10162]
3380         * sysdeps/ia64/memchr.S: Use speculative load.
3382         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
3383         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
3384         use it.
3386         * sysdeps/i386/__longjmp.S: Add .text.
3387         * sysdeps/x86_64/__longjmp.S: Likewise.
3389 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
3391         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
3392         __ASSUME_ACCEPT4 for IA-64.
3394 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
3396         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
3398         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
3399         (SOCKOP_accept4): Define.
3401 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
3403         Sun approved the change of the license.
3404         * sunrpc/auth_des.c: Replace license text.
3405         * sunrpc/auth_none.c: Likewise.
3406         * sunrpc/auth_unix.c: Likewise.
3407         * sunrpc/authdes_prot.c: Likewise.
3408         * sunrpc/authuxprot.c: Likewise.
3409         * sunrpc/bindrsvprt.c: Likewise.
3410         * sunrpc/clnt_gen.c: Likewise.
3411         * sunrpc/clnt_perr.c: Likewise.
3412         * sunrpc/clnt_raw.c: Likewise.
3413         * sunrpc/clnt_simp.c: Likewise.
3414         * sunrpc/clnt_tcp.c: Likewise.
3415         * sunrpc/clnt_udp.c: Likewise.
3416         * sunrpc/clnt_unix.c: Likewise.
3417         * sunrpc/des_crypt.c: Likewise.
3418         * sunrpc/des_soft.c: Likewise.
3419         * sunrpc/get_myaddr.c: Likewise.
3420         * sunrpc/getrpcport.c: Likewise.
3421         * sunrpc/key_call.c: Likewise.
3422         * sunrpc/key_prot.c: Likewise.
3423         * sunrpc/openchild.c: Likewise.
3424         * sunrpc/pm_getmaps.c: Likewise.
3425         * sunrpc/pm_getport.c: Likewise.
3426         * sunrpc/pmap_clnt.c: Likewise.
3427         * sunrpc/pmap_prot.c: Likewise.
3428         * sunrpc/pmap_prot2.c: Likewise.
3429         * sunrpc/pmap_rmt.c: Likewise.
3430         * sunrpc/rpc/auth.h: Likewise.
3431         * sunrpc/rpc/auth_unix.h: Likewise.
3432         * sunrpc/rpc/clnt.h: Likewise.
3433         * sunrpc/rpc/des_crypt.h: Likewise.
3434         * sunrpc/rpc/key_prot.h: Likewise.
3435         * sunrpc/rpc/netdb.h: Likewise.
3436         * sunrpc/rpc/pmap_clnt.h: Likewise.
3437         * sunrpc/rpc/pmap_prot.h: Likewise.
3438         * sunrpc/rpc/pmap_rmt.h: Likewise.
3439         * sunrpc/rpc/rpc.h: Likewise.
3440         * sunrpc/rpc/rpc_des.h: Likewise.
3441         * sunrpc/rpc/rpc_msg.h: Likewise.
3442         * sunrpc/rpc/svc.h: Likewise.
3443         * sunrpc/rpc/svc_auth.h: Likewise.
3444         * sunrpc/rpc/types.h: Likewise.
3445         * sunrpc/rpc/xdr.h: Likewise.
3446         * sunrpc/rpc_clntout.c: Likewise.
3447         * sunrpc/rpc_cmsg.c: Likewise.
3448         * sunrpc/rpc_common.c: Likewise.
3449         * sunrpc/rpc_cout.c: Likewise.
3450         * sunrpc/rpc_dtable.c: Likewise.
3451         * sunrpc/rpc_hout.c: Likewise.
3452         * sunrpc/rpc_main.c: Likewise.
3453         * sunrpc/rpc_parse.c: Likewise.
3454         * sunrpc/rpc_parse.h: Likewise.
3455         * sunrpc/rpc_prot.c: Likewise.
3456         * sunrpc/rpc_sample.c: Likewise.
3457         * sunrpc/rpc_scan.c: Likewise.
3458         * sunrpc/rpc_scan.h: Likewise.
3459         * sunrpc/rpc_svcout.c: Likewise.
3460         * sunrpc/rpc_tblout.c: Likewise.
3461         * sunrpc/rpc_util.c: Likewise.
3462         * sunrpc/rpc_util.h: Likewise.
3463         * sunrpc/rpcinfo.c: Likewise.
3464         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
3465         * sunrpc/rpcsvc/key_prot.x: Likewise.
3466         * sunrpc/rpcsvc/klm_prot.x: Likewise.
3467         * sunrpc/rpcsvc/mount.x: Likewise.
3468         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
3469         * sunrpc/rpcsvc/rex.x: Likewise.
3470         * sunrpc/rpcsvc/rstat.x: Likewise.
3471         * sunrpc/rpcsvc/rusers.x: Likewise.
3472         * sunrpc/rpcsvc/sm_inter.x: Likewise.
3473         * sunrpc/rpcsvc/spray.x: Likewise.
3474         * sunrpc/rpcsvc/yppasswd.x: Likewise.
3475         * sunrpc/rtime.c: Likewise.
3476         * sunrpc/svc.c: Likewise.
3477         * sunrpc/svc_auth.c: Likewise.
3478         * sunrpc/svc_authux.c: Likewise.
3479         * sunrpc/svc_raw.c: Likewise.
3480         * sunrpc/svc_run.c: Likewise.
3481         * sunrpc/svc_simple.c: Likewise.
3482         * sunrpc/svc_tcp.c: Likewise.
3483         * sunrpc/svc_udp.c: Likewise.
3484         * sunrpc/svc_unix.c: Likewise.
3485         * sunrpc/svcauth_des.c: Likewise.
3486         * sunrpc/xcrypt.c: Likewise.
3487         * sunrpc/xdr.c: Likewise.
3488         * sunrpc/xdr_array.c: Likewise.
3489         * sunrpc/xdr_float.c: Likewise.
3490         * sunrpc/xdr_mem.c: Likewise.
3491         * sunrpc/xdr_rec.c: Likewise.
3492         * sunrpc/xdr_ref.c: Likewise.
3493         * sunrpc/xdr_sizeof.c: Likewise.
3494         * sunrpc/xdr_stdio.c: Likewise.
3496         * po/da.po: Update from translation team.
3498 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3500         * sysdeps/sh/____longjmp_chk.S: New file.
3501         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
3502         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3504 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
3505             Ulrich Drepper  <drepper@redhat.com>
3507         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
3508         (__nscd_cache_search): Assume each entry in the
3509         hash chain needs one hashentry and half of datahead.  Use
3510         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
3512 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
3514         * posix/sys/wait.h: Fix typos.  Pretty printing.
3515         * stdlib/stdlib.h: Likewise.  Correct comments.
3517         [BZ #10159]
3518         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
3520         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
3521         patch.
3523 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3525         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
3526         Use it if we absolutely cannot reach any more correct list elements
3527         because that many do not fit into the currently mapped database.
3529 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
3531         * nscd/nscd_helper.c: Include stddef.h.
3532         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
3533         in a couple of places.  Return NULL if trail is not less than
3534         datasize, don't consider dataheads with length smaller than
3535         offsetof (struct datahead, data) + datalen.
3536         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
3537         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
3538         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3539         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3540         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3541         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
3542         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3544         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
3545         Rename ...
3546         (fallocate64): ... to this.
3547         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
3548         Rename ...
3549         (fallocate64): ... to this.
3550         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
3551         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
3552         fallocate64@@GLIBC_2.10.
3553         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
3554         fallocate64@@GLIBC_2.11.
3555         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
3556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
3557         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
3558         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
3560         * nscd/selinux.c (nscd_avc_destroy): Removed.
3561         * nscd/selinux.h (nscd_avc_destroy): Likewise.
3562         * nscd/nscd.c (termination_handler): Don't call
3563         nscd_avc_destroy.
3565 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
3567         * include/atomic.h: Formatting.
3568         (catomic_compare_and_exchange_val_acq): Don't define if already
3569         defined by bits/atomic.h.
3571 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3573         * math/libm-test.inc (expm1_test): Add test for range error.
3575         * Versions.def: Add GLIBC_2.11 for libc.
3576         * debug/Makefile (routines): Add longjmp_chk.
3577         Add rules to build and run tst-longjmp_chk.
3578         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
3579         * debug/longjmp_chk.c: New file.
3580         * debug/tst-longjmp_chk.c: New file.
3581         * include/bits/setjmp2.: New file.
3582         * include/stdio.h: Mark __fortify_fail as internal_function.
3583         * setjmp/Makefile (headers): Add bits/setjmp2.h.
3584         * setjmp/bits/setjmp2.h: New file.
3585         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
3586         of the aliases.
3587         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
3588         defined.
3589         * sysdeps/i386/____longjmp_chk.S: New file.
3590         * sysdeps/x86_64/____longjmp_chk.S: New file.
3591         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
3592         * sysdeps/x86_64/__longjmp.S: Likewise.
3594         * version.h: Bump for 2.11 development.
3596         * elf/check-execstack.c: New file.
3597         * elf/Makefile: Add rules to build and run check-execstack.
3599 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
3601         * version.h (VERSION): Bump to 2.10.1.
3603         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
3604         compatibility functions.
3605         * nss/getXXent_r.c: Likewise.
3606         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
3607         * gshadow/getsgnam_r.c: Likewise.
3608         * gshadow/Version: Remove duplicate entries.
3610         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
3611         for recent processor.
3612         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
3613         Likewise.
3615 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
3617         * version.h (VERSION): Bump for 2.10 release.
3618         * include/features.h (__GLIBC_MINOR__): Bump to 10.
3620         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
3621         same place we add ASFLAGS-config.
3623 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
3625         [BZ #10128]
3626         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
3627         or FORMERR and the other NOERROR, don't raise an error.
3629 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
3631         [BZ #10118]
3632         * Makeconfig (+asflags): New variable based upon ASFLAG or
3633         asflags-cpu.
3634         (ASFLAGS): Add override to set ASFLAGS to +asflags.
3635         * config.make.in (asflags-cpu): Add variable based upon
3636         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
3637         the assembler.
3638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3639         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
3640         recognizes power6 instruction set due to passing -mcpu=power6 from
3641         --with-cpu=power6 when compiling .S files.
3642         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3643         Likewise.
3644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3645         Likewise.
3646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3647         Likewise.
3649 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
3651         * string/stratcliff.c (do_test): Test for zero length
3652         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
3653         at the end of the page.
3655 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
3657         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
3659         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
3660         count is zero.
3662         * po/da.po: Update from translation team.
3664 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
3666         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
3667         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
3669 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
3671         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
3672         and READ_IMPLIES_EXEC.
3674 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
3676         * po/da.po: Update from translation team.
3678 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
3680         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
3681         comment change.
3683 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
3685         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
3686         to MAP_ANON in PROT_NONE mmap64 call.
3687         (open_archive): Likewise.
3688         (file_data_available_p): Use mmap64 instead of mremap.
3689         (enlarge_archive): Likewise.  Update head if ah->addr changed.
3690         Attempt to reserve address space after mmap64 region.
3692 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
3694         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
3695         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3696         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3698         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
3699         atanh should set ERANGE.
3701         [BZ #10087]
3702         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
3703         result of lookup to make call to implement STT_GNU_IFUNC.
3704         (_dl_profile_fixup): Likewise.
3705         Patch by H.J. Lu <hjl.tools@gmail.com>.
3707         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
3708         warning.
3710         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
3711         from definition.
3713         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
3714         label if it is not used.
3716         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
3717         of gmon_hist_hdr and gmon_hdr structures and use them.
3718         * elf/sprof.c: Likewise.
3720         * elf/dl-load.c (open_verify): Add temporary variable to avoid
3721         warning.
3723         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
3725         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
3726         to avoid cast.
3728         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
3729         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
3730         to avoid warnings.
3731         (iruserok_af): Use ss_family instead of casts.
3733         * gmon/gmon.c (write_hist): Define real-type variant of
3734         gmon_hist_hdr structure and use it.
3735         (write_gmon): Likewise for gmon_hdr.
3737         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
3738         function if we are not going to define it.
3739         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3741         * inet/inet6_option.c (option_alloc): Add temporary variable to
3742         avoid warning.
3744         * libio/strfile.h (struct _IO_streambuf): Use correct type and
3745         name of VTable element.
3746         * libio/iovsprintf.c: Avoid casts to avoid warnings.
3747         * libio/iovsscanf.c: Likewise.
3748         * libio/vasprintf.c: Likewise.
3749         * libio/vsnprintf.c: Likewise.
3750         * stdio-common/isoc99_vsscanf.c: Likewise.
3751         * stdlib/strfmon_l.c: Likewise.
3752         * debug/vasprintf_chk.c: Likewise.
3753         * debug/vsnprintf_chk.c: Likewise.
3754         * debug/vsprintf_chk.c: Likewise.
3756         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
3757         function pointers.
3759 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
3761         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
3763 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
3765         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
3767         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
3768         * sysdeps/i386/fpu/s_tanf.S: Likewise.
3769         * sysdeps/i386/fpu/s_tanl.S: Likewise.
3770         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3771         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3772         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3773         * math/libm-test.inc: Add tests for errno after tan calls with
3774         Â±Inf.
3776         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3777         errno value vor pow(+-0,neg).
3778         * math/libm-test.inc (pow_test): Add tests for errno value for
3779         pole errors.
3781         * math/w_fmod.c: Also handle x=±Inf as error.
3782         * math/w_fmodf.c: Likewise.
3783         * math/w_fmodl.c: Likewise.
3784         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3785         x=±Inf or y=0.
3787         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
3788         * sysdeps/i386/fpu/s_cosf.S: Likewise.
3789         * sysdeps/i386/fpu/s_cosl.S: Likewise.
3790         * sysdeps/i386/fpu/s_sin.S: Likewise.
3791         * sysdeps/i386/fpu/s_sinf.S: Likewise.
3792         * sysdeps/i386/fpu/s_sinl.S: Likewise.
3793         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3794         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3795         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3796         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3797         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3798         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3799         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3800         * math/libm-test.inc: Add tests for errno after sin/cos calls with
3801         Â±Inf.
3803         * stdlib/strtod_l.c (round_and_return): We have to set errno to
3804         ERANGE for underflows.
3805         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3807         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3808         the 2001 revision.
3810         * libio/tst-widetext.input: Remove surrogates.
3812         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3814         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3815         for lgamma should set errno to ERANGE, not EDOM.
3816         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3818 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3820         [BZ #10093]
3821         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3822         UTF-16 surrogates.
3824         * locale/programs/locarchive.c (enlarge_archive): Conserve address
3825         space when temporarily mapping the whole content of the old file.
3827         [BZ #10100]
3828         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3829         not zero.
3831 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
3833         * iconvdata/sjis.c (BODY): Don't advance inptr before
3834         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3835         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3836         two byte chars.
3838 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3840         * locale/locarchive.h (struct locarhandle): Rename len field to
3841         mmaped and add new reserved field.
3842         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3843         (create_archive): Reserve address space and then map file into it.
3844         (open_archive): Likewise.
3845         (file_data_available_p): New function.
3846         (compare_from_file): New function.
3847         (close_archive): Adjust to member name changes.
3848         (add_locale): Before comparing locale data, check it is mapped.
3849         Otherwise fall back to reading from the file.
3851 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3853         * stdio-common/psiginfo.c: Include <errno.h>.
3855 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3857         [BZ #9920]
3858         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
3859         to get consistency between 32 and 64 bit architectures.
3861         [BZ #10052]
3862         * sysdeps/unix/make-syscalls.sh: Add rule to create target
3863         directory for dummy syscall rules.
3864         Patch by Chris Steinbroner <hesh@pobox.com>.
3866 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
3868         [BZ #10092]
3869         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
3870         MNT_EXPIRE.
3872 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3874         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
3875         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3877 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
3879         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
3880         data from vector to temporary buffer and call PWRITEV after it
3881         instead of vice versa.
3882         * sysdeps/posix/preadv.c: Fix up comment.
3883         * misc/preadv.c: Likewise.
3884         * misc/preadv64.c: Likewise.
3885         * misc/pwritev.c: Likewise.
3886         * misc/pwritev64.c: Likewise.
3887         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3889 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3891         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3893         * shadow/Makefile (tests): Add tst-shadow.
3894         * shadow/tst-shadow.c: New file.
3896         [BZ #9955]
3897         * gshadow/Makefile: New file.
3898         * gshadow/Versions: New file.
3899         * gshadow/fgetsgent.c: New file.
3900         * gshadow/fgetsgent_r.c: New file.
3901         * gshadow/getsgent.c: New file.
3902         * gshadow/getsgent_r.c: New file.
3903         * gshadow/getsgnam.c: New file.
3904         * gshadow/getsgnam_r.c: New file.
3905         * gshadow/gshadow.h: New file.
3906         * gshadow/putsgent.c: New file.
3907         * gshadow/sgetsgent.c: New file.
3908         * gshadow/sgetsgent_r.c: New file.
3909         * gshadow/tst-gshadow.c: New file.
3910         * include/gshadow.h: New file.
3911         * Makeconfig (all-subdirs): Add gshadow.
3912         * Makefile (installed-headers): Add gshadow/gshadow.h.
3913         * nss/Makefile (databases): Add sgrp.
3914         * nss/Versions: Add gshadow functions as private exports.
3915         * nss/nsswitch.conf: Add gshadow entry.
3916         * nss/sgrp-lookup.c: New file.
3917         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
3918         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
3919         * nss/nss_files/files-sgrp.c: New file.
3920         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3921         * sysdeps/unix/sysv/linux/paths.h: Likewise.
3923 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
3925         * stdio-common/printf.h: Add missing const to register_printf_modifier.
3926         * stdio-common/reg-modifier.c: Likewise.
3928 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
3930         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3931         is no FPU.
3933 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
3935         [BZ #10086]
3936         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3937         headers up to 2.6.30.
3939         * po/ca.po: Update from translation team.
3941 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
3943         [BZ #10069]
3944         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3945         an object that uses static TLS if the TLS modid is higher than the
3946         reserve we always allocate.  At least for multi-threaded code.
3948 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
3950         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3951         Numerically stable check for valid width.
3953         * locale/programs/locarchive.c (open_archive): Map the entire file
3954         and not just the administrative data.
3955         (add_locale): When we find a hash sum match compare the content
3956         to be sure.
3958         * malloc/malloc.c (malloc_info): Output address space information.
3960 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
3962         * malloc/malloc.c (malloc_info): Also output system memory information.
3964         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3965         architectures have preadv/pwritev in 2.6.30.
3967         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3968         * sysdeps/posix/readv.c: Likewise.
3969         Reported by Markus Armbruster <armbru@redhat.com>.
3971         * malloc/hooks.c (top_check): Force hook value into register.
3973 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3975         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3976         calls to _dl_relocate_object.
3978 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3980         [BZ #9957]
3981         * malloc/malloc.c (force_reg): Define.
3982         (sYSMALLOc): Load hook variable into variable
3983         before test and force into register.
3984         (sYSTRIm): Likewise.
3985         (public_mALLOc): Force hook value into register.
3986         (public_fREe): Likewise.
3987         (public_rEALLOc): Likewise.
3988         (public_mEMALIGn): Likewise.
3989         (public_vALLOc): Likewise.
3990         (public_pVALLOc): Likewise.
3991         (public_cALLOc): Likewise.
3992         (__posix_memalign): Likewise.
3993         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
3994         before test and force into register.
3995         * malloc/hooks.c (top_check): Likewise.
3996         (public_sET_STATe): Pretty printing.
3998         * resolv/res_send.c (send_dg): Don't just ignore the result we got
3999         in case we only receive one reply in single-request mode.
4001 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
4003         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
4004         are dlopened in statically linked program even for __LM_ID_CALLER.
4006 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
4008         * resolv/res_send.c (send_dg): Don't switch into single-request
4009         mode if we already are in it.
4011 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
4013         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
4014         are always at least 4 bytes in the returned line.
4016 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
4018         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
4019         __libc_use_alloca (8192), if the stack is too small use 512 bytes
4020         instead of 8K.  Stop searching in /proc/stat after hitting first
4021         line not starting with cpu.
4022         (next_line): Truncate too long
4023         lines at buffer size * 3/4 instead of pretending there were line
4024         breaks inside of large lines.
4026 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
4028         * sysdeps/x86_64/mp_clz_tab.c: New file.
4030 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
4031             Ulrich Drepper  <drepper@redhat.com>
4033         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
4034         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
4035         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
4037 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
4039         * sysdeps/sh/libc-tls.c: New file.
4041         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
4043 2009-04-14  Roland McGrath  <roland@redhat.com>
4045         * elf/elf.h: Add various missing ARM constants, to match binutils.
4047 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
4049         Optimizations from GMP.
4050         * sysdeps/x86_64/add_n.S: New file.
4051         * sysdeps/x86_64/addmul_1.S: New file.
4052         * sysdeps/x86_64/lshift.S: New file.
4053         * sysdeps/x86_64/mul_1.S: New file.
4054         * sysdeps/x86_64/rshift.S: New file.
4055         * sysdeps/x86_64/sub_n.S: New file.
4056         * sysdeps/x86_64/submul_1.S: New file.
4058 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
4060         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
4061         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
4062         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
4063         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4065 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
4067         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
4068         preadv/pwritev.
4070 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
4072         * sysdeps/x86-64/strrchr.S: New file.
4074 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
4076         * stdio-common/printf.h (struct printf_info): Add user element.
4077         New types printf_arginfo_size_function, printf_va_arg_function.
4078         Declare register_printf_specifier, register_printf_modifier,
4079         register_printf_type.
4080         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
4081         (union printf_arg): Add pa_user element.
4082         Adjust __printf_arginfo_table type.
4083         Add __printf_va_arg_table, __printf_modifier_table,
4084         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
4085         declarations.
4086         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
4087         If registered arginfo call failed try normal specifier.
4088         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
4089         function.
4090         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
4091         * stdio-common/Versions: Export register_printf_modifier,
4092         register_printf_type, and register_printf_specifier for GLIBC_2.10.
4093         * stdio-common/reg-modifier.c: New file.
4094         * stdio-common/reg-type.c: New file.
4095         * stdio-common/reg-printf.c (__register_printf_specifier): New
4096         function.  Mostly the old __register_printf_function function but
4097         uses locking and type of third parameter changed.
4098         (__register_printf_function): Implement using
4099         __register_printf_specifier.
4100         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
4101         calls to arginfo functions.  Allocate enough memory for user-defined
4102         types.  Call new va_arg functions to get user-defined types.
4103         Try installed handlers even for existing format specifiers first.
4105 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
4107         * sysdeps/x86_64/rawmemchr.S: New file.
4109         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
4110         Simplified code and possible copy problem fixed.
4112         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
4113         function if it is not defined.  Add some necessary casts.
4114         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
4116         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
4117         have preadv/pwritev in 2.6.30.
4119 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
4121         * malloc/malloc.c (malloc_info): New function.
4122         * malloc/malloc.h: Declare it.
4123         * malloc/Versions: Export malloc_info for GLIBC_2.10.
4125         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
4126         to avoid PLT slot.
4128         * malloc/malloc.c (_int_realloc): Add parameter with old block
4129         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
4130         Adjust all callers.
4131         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
4133 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
4135         * sysdeps/x86_64/strchrnul.S: New file.
4137         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
4138         depending libcrypt on -lfreebl3.
4140         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
4141         preadv/pwritev in 2.6.30.
4143         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
4144         instead of __strcasecmp.
4146         * string/stratcliff.c (do_test): Add memchr tests..
4147         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
4148         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
4149         first read quad word.
4151 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
4153         * string/strverscmp.c (__strverscmp): Fix last cleanups.
4154         * string/tst-svc.input: Add new test case.
4155         * string/tst-svc.expect: Adjust.
4156         * string/Makefile: Don't ignore tst-svc error.
4158         * sysdeps/x86_64/memchr.S: New file.
4160         * resolv/resolv.h (RES_SNGLKUP): Define.
4161         * resolv/res_init.c (res_setoptions): Recognize single-request option.
4162         * resolv/res_send.c (send_dg): If we sent two requests at once and
4163         only get one reply before timeout switch to mode where we send the
4164         second request only after the first answer has been received.
4166 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
4168         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
4169         * sysdeps/x86_64/strchr.S: Likewise.
4171 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
4173         * configure.in: We need to test for the compiler earlier.
4175         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
4176         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
4177         GLIBC_2.10.
4178         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
4179         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
4180         and pwritev.
4181         * misc/preadv.c: New file.
4182         * misc/preadv64.c: New file.
4183         * misc/pwritev.c: New file.
4184         * misc/pwritev64.c: New file.
4185         * sysdeps/posx/preadv.c: New file.
4186         * sysdeps/posx/preadv64.c: New file.
4187         * sysdeps/posx/pwritev.c: New file.
4188         * sysdeps/posx/pwritev64.c: New file.
4189         * sysdeps/unix/sysv/linux/preadv.c: New file.
4190         * sysdeps/unix/sysv/linux/preadv64.c: New file.
4191         * sysdeps/unix/sysv/linux/pwritev.c: New file.
4192         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
4193         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
4194         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
4196         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
4197         compatibility code.
4198         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
4200         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4201         __ASSUME_COMPLETE_READV_WRITEV.
4202         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
4203         with modern kernels.
4204         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4206         * sysdeps/posix/readv.c: Since read is a cancellation point we have
4207         to free a possible malloced buffer in case of cancellation.
4208         * sysdeps/posix/writev.c: Likewise for write.
4210 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
4212         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
4214         * configure.in: Recognize --enable-nss-crypt.
4215         * config.make.in: Add nss-crypt entry.
4216         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
4217         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
4218         and include path for NSS directory to compiler for md5-crypt,
4219         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
4220         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
4221         function implementation, use NSS.  Introduce wrappers around the
4222         hash function calls.  Little code size optimization.
4223         * crypt/sha256-crypt.c: Likewise.
4224         * crypt/sha512-crypt.c: Likewise.
4225         * scripts/check-local-headers.sh: Ignore nss3 directory.
4227         * configure.in: Rename pic_default to libc_cv_pic_default.
4228         * config.make.in: Likewise.
4230 2009-04-01  Roland McGrath  <roland@redhat.com>
4232         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
4233         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
4234         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
4235         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
4236         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
4237         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
4238         (R_SPARC_NUM): Update.
4239         From Dave Miller <davem@davemloft.net>.
4241 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
4243         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
4245 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
4247         * elf/dl-open.c: Keep track of used name spaces and only iterate over
4248         those which are used.
4249         * elf/dl-addr.c: Likewise.
4250         * elf/dl-caller.c: Likewise.
4251         * elf/dl-fini.c: Likewise.
4252         * elf/dl-iteratephdr.c: Likewise.
4253         * elf/dl-libc.c: Likewise.
4254         * elf/dl-load.c: Likewise.
4255         * elf/dl-support.c: Likewise.
4256         * elf/dl-sym.c: Likewise.
4257         * elf/rtld.c: Likewise.
4258         * sysdeps/generic/ldsodefs.h: Likewise.
4260         * elf/dl-load.c: Remove support for systems without MAP_ANON.
4261         * elf/dl-minimal.c: Likewise.
4262         * elf/dl-misc.c: Likewise.
4263         * elf/rtld.c: Likewise.
4264         * sysdeps/generic/ldsodefs.h: Likewise.
4266 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
4268         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
4269         Avoid reuse of complex expression.
4271         * po/fr.po: Update from translation team.
4273 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
4275         * include/dirent.h: Yet more changes to match sort function type
4276         change.
4277         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
4278         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
4279         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
4281 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
4283         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
4285 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
4287         * nscd/connections.c (restart): Try to preserve the process name
4288         by reading the /proc/self/exe symlink and using the return name.
4289         Patch by Jeff Bastian <jbastian@redhat.com>.
4291 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
4293         [BZ #9733]
4294         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
4295         if we are not loading a new audit library.
4296         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
4297         Only use profiling trampoline for auditing if we are not relocating
4298         an audit library.
4299         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
4300         * elf/rtld.c: Likewise.
4301         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
4303         * elf/rtld.c (dl_main): Extend help message for --audit option.
4305         [BZ #9759]
4306         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
4307         alphasort64, versionsort, and versionsort64 to POSIX 2008.
4308         * dirent/alphasort.c: Adjust implementation to type change.
4309         * dirent/alphasort64.c: Likewise.
4310         * dirent/scandir.c: Likewise.
4311         * dirent/versionsort.c: Likewise.
4312         * dirent/versionsort64.c: Likewise.
4313         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
4314         declaration.
4315         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
4316         declaration.
4318         [BZ #9880]
4319         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
4320         correctly.  Set segleft member in output as required.
4321         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4322         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
4324         [BZ #9881]
4325         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
4326         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4327         * inet/Makefile (tests): Add tst-inet6_rth.
4328         * inet/tst-inet6_rth.c: New file.
4330         [BZ #5807]
4331         * string/strlen.c (strlen): Fix omission in the expression to test
4332         for NUL bytes.
4334 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
4336         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
4338         * elf/dl-runtime.c (reloc_offset): Define.
4339         (reloc_index): Define.
4340         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
4341         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
4342         computing index from reloc_offset.
4343         (_dl_call_pltexit): Likewise.
4344         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
4345         the relocation index to _dl_fixup.
4346         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
4347         _dl_call_pltexit.
4348         * sysdeps/x86_64/dl-runtime.c: New file.
4350         [BZ #9893]
4351         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
4352         alignment of La_x86_64_regs.  Store xmm parameters.
4353         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
4355         [BZ #9913]
4356         * string/strverscmp.c (__strverscmp): Fix case of different digits
4357         in fractional part of string.
4358         Patch by Jingyu Liu <jyliu@fortinet.com>.
4359         * string/Makefile (tests): Add tst-svc2.
4360         * string/tst-svc2.c: New file.
4362         * string/strverscmp.c (__strverscmp): Optimize size of tables.
4364         * locale/iso-639.def: Add Min Nan.
4366 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4368         [BZ #9948]
4369         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
4371 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
4373         * elf/dl-sysdep.c (auxvars): Compress data structure.
4375         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
4376         STT_GNU_IFUNC handling.
4377         (elf_machine_rela): Likewise.
4379 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
4381         * config.h.in (USE_MULTIARCH): Define.
4382         * configure.in: Handle --enable-multi-arch.
4383         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
4384         (_dl_fixup_profile): Likewise.
4385         * elf/do-lookup.c (dl_lookup_x): Likewise.
4386         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
4387         * elf/elf.h (STT_GNU_IFUNC): Define.
4388         * include/libc-symbols.h (libc_ifunc): Define.
4389         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
4390         framework in init-arch.h to get CPUID values.
4391         * sysdeps/x86_64/multiarch/Makefile: New file.
4392         * sysdeps/x86_64/multiarch/init-arch.c: New file.
4393         * sysdeps/x86_64/multiarch/init-arch.h: New file.
4394         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
4396         * config.make.in (experimental-malloc): Define.
4397         * configure.in: Handle --enable-experimental-malloc.
4398         * malloc/Makefile: Handle experimental-malloc flag.
4399         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
4400         * malloc/arena.c: Likewise.
4401         * malloc/hooks.c: Likewise.
4402         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
4404 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
4406         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
4407         prediction.  A few size optimizations.
4409 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4411         * time/tzset.c: Optimize a bit for size.
4413 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
4415         * include/stdio.h (fmemopen): Add libc_hidden_proto.
4416         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
4418         * elf/sprof.c: Avoid warning about multi-line comment.
4420 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4422         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
4423         DST name.
4424         * time/tst-posixtz.c: Add tests for quoted timezone names.
4426 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
4428         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
4429         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
4430         200809L instead of 200112L.
4431         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
4432         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
4434         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
4435         instead of __quick_exit_funcs to __run_exit_handlers.
4436         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
4437         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
4438         (__cxa_at_quick_exit): Remove attribute_hidden.
4439         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
4440         to __run_exit_handlers.
4441         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
4442         attribute_hidden.
4444 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4446         * po/id.po: Update from translation team.
4448 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
4450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
4451         .machine push; .machine "power6" and .machine pop around mtfsf
4452         insns outside of _ARCH_PWR6 define.
4453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4454         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4455         Likewise.
4456         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4457         Likewise.
4458         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
4459         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
4460         relax_fenv_state): Likewise.
4462 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
4464         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
4465         cxa_at_quick_exit.
4466         (static-only-routines): Add at_quick_exit.
4467         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
4468         GLIBC_2.10.
4469         * stdlib/quick_exit.c: New file.
4470         * stdlib/at_quick_exit.c: New file.
4471         * stdlib/cxa_at_quick_exit.c: New file.
4472         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
4473         it appropriately.
4474         (__internal_atexit): New function.
4475         (__new_exitfn): Now takes parameter to point to the list to use.
4476         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
4477         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
4478         (exit): ...here.  Just call __run_exit_handlers appropriately.
4479         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
4480         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
4481         * stdlib/on_exit.c: Adjust call to __new_exitfn.
4482         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
4484         * po/id.po: Update from translation team.
4486 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
4488         * po/ru.po: Update from translation team.
4490 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
4492         * po/nl.po: Update from translation team.
4494 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
4496         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
4497         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4498         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4499         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4500         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4501         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4502         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4504         * po/pl.po: Update from translation team.
4506 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4508         [BZ #7083]
4509         * sysdeps/unix/sysv/linux/fallocate.c: New file.
4510         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
4511         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
4512         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
4513         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
4514         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
4515         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
4516         for GLIBC_2.10.
4517         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4518         Add fallocate and fallocate64.
4520         * io/fcntl.h: Pretty printing.
4522 2009-03-02  Richard Guenther  <rguenther@suse.de>
4524         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
4525         attribute also for non-C99 inline semantics variant.
4527 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4529         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
4530         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
4531         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
4532         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
4533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
4534         Likewise.
4535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
4536         Likewise.
4538 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4540         * po/cs.po: Update from translation team.
4542 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
4544         * po/bg.po: Update from translation team.
4545         * po/sv.po: Likewise.
4546         * po/fi.po: Likewise.
4547         * po/vi.po: Likewise.
4549 2009-02-27  Roland McGrath  <roland@redhat.com>
4551         * Makeconfig (%.v.i): Depend on Makeconfig.
4552         Exclude % lines from initial #-comment removal.
4554 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
4556         * po/ko.po: Update from translation team.
4558 2009-02-26  Roland McGrath  <roland@redhat.com>
4560         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
4561         avoids unused warning.
4563 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
4564             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
4566         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
4567         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
4568         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
4569         and asm/user.h.  Include asm/ptrace.h.
4570         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
4571         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
4572         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
4573         Undefine.
4574         (start_thread): Don't undefine.
4575         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
4576         Define.
4578 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
4580         * wctype/wctype.h: The *_l functions are in POSIX 2008.
4581         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
4582         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
4583         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
4584         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
4585         200112L to 200809L.
4586         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
4587         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4588         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
4589         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4590         _SC_THREAD_ROBUST_PRIO_PROTECT.
4591         * posix/unistd.h: fexecve is in POSIX 2008.
4592         * time/time.h: strftime_l is in POSIX 2008.
4593         * io/sys/stat.h: futimens is in POSIX 2008.
4594         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
4595         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
4596         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
4597         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
4598         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
4599         open_memstream, and vdprintf are in POSIX 2008.
4601 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
4603         * include/features.h: Define macros for XPG7/POSIX 2008.
4604         * ctype/ctype.h: The *_l functions are in POSIX 2008.
4605         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
4606         POSIX 2008.
4607         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
4608         * locale/xlocale.h: Define locale_t type.
4609         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
4610         in POSIX 2008.  Don't define locale_t here.
4611         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
4612         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
4613         UTIME_OMIT only with __USE_ATFILE.
4614         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
4615         * stdio-common/psiginfo.c: New file.
4616         * stdio-common/psiginfo-data.h: New file.
4617         * stdio-common/psiginfo-define.h: New file.
4618         * stdio-common/Makefile (routines): Add psiginfo.
4619         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
4620         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4621         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4622         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4623         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4624         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4625         * io/sys/stat.h: Move mknodat definition into same conditional as
4626         mknod.
4627         * time/sys/time.h: futimesat is not among the functions accepted
4628         into the POSIX standard.
4630         * include/features.h: If no feature selection given and we select
4631         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
4632         * posix/Versions: Export __posix_getopt.
4633         * posix/getopt.c (_getopt_initialize): Take additional parameter.
4634         Use it to alternatively initialize __posixly_correct.
4635         (_getopt_internal_r): Take addition parameter.  Pass on to
4636         _getopt_initialize.
4637         (_getopt_internal): Take addition parameter.  Pass on to
4638         _getopt_internal_r.
4639         (getopt): Pass additional zero to _getopt_internal.
4640         (__posix_getopt): New function.
4641         * posix/getopt.h: Add redirection for getopt.
4642         * posix/getopt1.c (getopt_long): Pass additional zero to
4643         _getopt_internal.
4644         (getopt_long_only): Likewise.
4645         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
4646         (_getopt_long_only_r): Likewise.
4647         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
4648         _getopt_internal_r.
4650 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4652         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
4653         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4654         * sysdeps/posix/sysconf.c (__sysconf): Handle
4655         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
4656         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4658 2009-02-24  Roland McGrath  <roland@redhat.com>
4660         [BZ #9895]
4661         * README.template: Reworded not to use substituted version number.
4662         Renamed to ...
4663         * README: ... here (no longer generated).
4664         * Makefile (README): Target removed.
4666 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4668         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
4669         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
4670         instead.
4672         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
4674         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
4676 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
4678         * po/bg.po: Update from translation team.
4680 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
4682         * stdlib/monetary.h: Uglify function parameter names.
4683         * sunrpc/rpc/pmap_clnt.h: Likewise.
4684         * sunrpc/rpc/svc.h: Likewise.
4685         * sunrpc/rpc/xdr.h: Likewise.
4686         * sunrpc/rpc/clnt.h: Likewise.
4687         * resolv/netdb.h: Likewise.
4688         * resolv/arpa/nameser.h: Likewise.
4689         * resolv/resolv.h: Likewise.
4690         * argp/argp.h: Likewise.
4691         * locale/langinfo.h: Likewise.
4692         * io/sys/stat.h: Likewise.
4693         * posix/spawn.h: Likewise.
4694         * nis/rpcsvc/nislib.h: Likewise.
4695         * malloc/obstack.h: Likewise.
4696         * sysdeps/ia64/bits/link.h: Likewise.
4697         * sysdeps/i386/bits/link.h: Likewise.
4698         * sysdeps/s390/bits/link.h: Likewise.
4699         * sysdeps/powerpc/bits/link.h: Likewise.
4700         * sysdeps/x86_64/bits/link.h: Likewise.
4701         * sysdeps/sparc/bits/link.h: Likewise.
4702         * sysdeps/sh/bits/link.h: Likewise.
4703         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
4704         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
4705         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
4706         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
4708 2008-12-01  Fredrik Unger  <fred@tree.se>
4710         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
4711         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
4712         _FP_UNPACK_RAW_2, fix up first argument.
4714 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
4716         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
4717         (GET_NPROCS_PARSER): Change parameters and use next_line.
4718         (__get_nprocs): Rewrite to not use stdio routines.
4719         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
4720         Change parameters and use next_line.
4722 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
4724         [BZ #5381]
4725         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
4726         Change mempool_alloc prototype.
4727         * nscd/mem.c (gc): Don't handle mem_in_flight.
4728         (mempool_alloc): Third parameter now only indicates whether this is the
4729         first call (to allocate data) or not.  If it is, get db rdlock.
4730         Release it on error.  Don't handle mem_in_flight.
4731         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
4732         Adjust third parameter of mempool_alloc calls.
4733         Nothing to do here in case mempool_alloc fails.
4734         Avoid local variable shadowing parameter.  No need to get db rdlock
4735         before calling cache_add.
4736         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
4737         no mem_in_flight array anymore.
4738         * nscd/connections.c: Remove definition and handling of mem_in_flight.
4739         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
4740         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
4741         in case mempool_alloc fails. No need to get db rdlock before calling
4742         cache_add.
4743         * nscd/hstcache.c (cache_addhst): Likewise.
4744         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4745         * nscd/servicescache.c (cache_addserv): Likewise.
4746         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
4748 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
4750         * po/lt.po: Update from translation team.
4752 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
4754         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
4755         defined, allow additional data to be added using the optional
4756         MORE_ELF_HEADER_DATA macro.
4757         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
4758         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
4760 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
4762         * include/atomic.h: Define catomic_and if not already defined.
4763         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
4764         * sysdeps/i386/i486/bits/atomic.h: Likewise.
4766 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
4768         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
4769         Change all callers.
4770         (_int_realloc): Likewise.  Third argument is now padded size
4771         All _int_* functions are now static.
4773         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4774         * malloc/arena.c: Likewise.
4775         * include/malloc.h: Remove now unnecessary declarations of the _int_*
4776         functions.
4778         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4779         easily.
4781         * malloc/malloc.c: Add branch prediction for use of the hooks.
4783         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4785 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4787         [BZ #7095]
4788         * bits/confname.h: Add SUSv7 macros for getconf environments.
4789         * bits/environments.h: Likewise.
4790         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4791         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4792         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4793         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4794         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4795         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4796         * posix/getconf.c: Likewise.
4797         * posix/sysconf.c: Likewise.
4798         * sysdeps/posix/sysconf.c: Likewise.
4799         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4800         environments.
4802 2009-01-16  Petr Baudis  <pasky@suse.cz>
4804         [BZ #9753]
4805         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4806         even if we currently have zero nscount.
4808 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4810         [BZ #9781]
4811         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4812         the input line is too long.
4814         * po/Makefile (libc.pot): Add f_print as function taking c-format
4815         parameter.
4817         * debug/xtrace.sh: Unify translatable messages.
4818         * elf/ldd.bash.in: Likewise.
4819         * elf/sprof.c: Likewise.
4820         * locale/programs/locale.c: Likewise.
4821         * malloc/memusage.sh: Likewise.
4822         * nss/getent.c: Likewise.
4824 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
4826         * debug/pcprofiledump.c (print_version,
4827         argp_program_version_hook): New function.
4828         * elf/ldconfig.c (more_help): New function.
4829         (argp): Use it.
4830         * elf/sln.c (usage): New function.
4831         (main): Support --help and --version.
4832         * malloc/memusagestat.c (print_version): New function.
4833         (argp_program_version_hook): New variable.
4834         * nscd/nscd.c (more_help): New function.
4835         (argp): Use it.
4836         * posix/getconf.c (main): Send --version output to stdout.
4837         Support --help.
4838         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4839         arguments.  All callers changed.
4840         (print_version): New function.
4841         (parseargs): Support --help and --version.
4842         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
4843         changed.
4844         (print_version): New function.
4845         (main): Use getopt_long.  Support --help and --version.
4846         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4847         --version.
4849 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4851         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4852         (update_data): Fix handling of wrapping back
4853         to the beginning of the buffer.
4855         [BZ #9823]
4856         * stdio-common/psignal.c (psignal): Fix test for empty string.
4858 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
4860         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
4861         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
4862         move _null_auth to .rodata.
4864         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
4865         value of 24.
4867         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
4869         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
4870         today than when the original code was written.  Use larger
4871         buffers.  This also makes it unnecessary to have stat information,
4872         if this causes extra efforts.
4873         (__opendir): In case O_DIRECTORY works, don't call fstat just for
4874         __alloc_dir.
4876 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
4878         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4879         is set.
4880         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
4881         * sysdeps/sh/sh4/__longjmp.S: Likewise.
4882         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
4883         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
4884         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
4885         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4887 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4889         * po/ru.po: Update from translation team.
4891 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
4893         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4894         Add _tid slot to maintain consistency with kernel.
4896 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4898         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4899         incomplete characters at end of input buffer.
4900         * libio/Makefile (tests): Add tst-fgetwc.
4901         * libio/tst-fgetwc.c: New file.
4902         * libio/tst-fgetwc.input: New file.
4904 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
4906         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4908 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
4910         [BZ #9793]
4911         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4912         *OUTBUFSTART unless the whole output fit into the buffer.
4913         * iconv/Makefile (tests): Add tst-iconv4.
4914         * iconv/tst-iconv4.c: New file.
4916 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
4918         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
4919         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4921 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
4923         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4924         newer linker scripts.
4926 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4928         [BZ #7040]
4929         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4930         inotify_rm_watch should have type int.
4932 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
4934         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4935         Make aligned_restore_vmx a local symbol.
4936         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4937         Likewise.
4939 2009-01-30  Andreas Jaeger  <aj@suse.de>
4941         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4942         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4943         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4944         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4945         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4946         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4947         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4949 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
4951         [BZ #9726]
4952         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4953         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4955 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
4957         [BZ #9726]
4958         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4959         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4960         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4961         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4963 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
4965         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4966         memcpy instead of memcmp.
4967         (_dl_setup_pointer_guard): Likewise.
4969 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4971         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4972         manipulated brk, use malloc_printerr.
4973         * misc/sbrk.c (__sbrk): Better error handling for nonsense
4974         requests.
4976 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
4978         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
4979         rindex): For C++ add inlines so that they can be recognized as
4980         builtins.
4981         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
4983 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4984             Jakub Jelinek  <jakub@redhat.com>
4986         * string/string.h: Define correct C++ prototypes for gcc 4.4.
4987         * wcsmbs/wchar.h: Likewise.
4989 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4991         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4992         (stackinfo_sub_sp): Define.
4994 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4996         [BZ #9750]
4997         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
4998         * include/alloca.h (alloca_account): Define.
4999         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
5000         (stackinfo_sub_sp): Define.
5002         * nscd/connections.c (nscd_init): If database file access fails
5003         check whether this is due to permission problems and bail in that
5004         case.
5006         [BZ #9741]
5007         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
5008         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
5010 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5012         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
5013         Add "t" to clobber list.
5014         (INTERNAL_SYSCALL_NCS): Likewise.
5016 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
5018         * nss/getent.c (print_networks): Don't print comma between aliases.
5020 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
5022         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
5024         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
5025         the hash table.
5026         * misc/Makefile (tests): Add bug-hsearch1.
5027         * misc/bug-hsearch1.c: New file.
5029 2009-01-22  Roland McGrath  <roland@redhat.com>
5031         * Makeconfig (%.v.i): Strip trailing # comments,
5032         not only whole-line comments.
5034 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
5036         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
5037         one parameter.  If non-NULL use it to initialize return value.
5038         (_dl_setup_pointer_guard): New function.
5039         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
5040         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
5041         * elf/rtld.c (security_init): Pass _dl_random to
5042         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
5043         pointer_chk_guard.
5044         * elf/dl-sysdep.c (_dl_random): New variable.
5045         (_dl_sysdep_start): Handle AT_RANDOM.
5046         (_dl_show_auxv): Likewise.
5047         * elf/dl-support.c (_dl_random): New variable.
5048         (_dl_aux_init): Handle AT_RANDOM.
5049         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
5050         to _dl_setup_stack_chk_guard.
5052         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
5054 2009-01-10  Roland McGrath  <roland@redhat.com>
5056         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
5058 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
5060         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
5062         [BZ #9706]
5063         * nss/nss_files/files-parse.c (strtou32): New function.
5064         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
5065         across 32-bit and 64-bit platforms.
5066         (INT_FIELD_MAYBE_NULL): Likewise.
5068 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
5070         [BZ #9720]
5071         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
5072         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
5073         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
5074         Likewise.
5076 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
5078         [BZ #697]
5079         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
5080         being NULL also if there are no backreferences.
5081         * posix/rxspencer/tests: Add testcases.
5083 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
5085         [BZ #9697]
5086         * posix/bug-regex17.c: Add testcases.
5087         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
5088         handling.
5090 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5092         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
5093         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
5094         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
5095         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
5096         for elf subdir.
5097         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
5098         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
5099         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
5100         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
5101         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
5102         * sysdeps/unix/sysv/linux/s390/Versions: New file.
5104 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
5106         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
5107         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
5108         re_string_skip_chars, re_string_reconstruct): Likewise.
5109         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
5111 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
5113         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
5114         adjust the buffer alignment.
5116 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5118         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
5119         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
5120         net/route.h.
5122         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
5123         flavor to description only when flavor is not NULL.
5125         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
5126         mutex after SIGIO/SIGURG lookup loop.
5128 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5130         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
5132 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
5134         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
5135         handling.
5137 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
5139         * sysdeps/unix/sysv/linux/kernel-features.h
5140         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
5142         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
5143         if no output is written.
5145         * version.h: Bump to 2.10 development.
5147         * posix/getconf.c: Update copyright year.
5148         * nss/getent.c: Likewise.
5149         * iconv/iconvconfig.c: Likewise.
5150         * iconv/iconv_prog.c: Likewise.
5151         * elf/ldconfig.c: Likewise.
5152         * catgets/gencat.c: Likewise.
5153         * csu/version.c: Likewise.
5154         * elf/ldd.bash.in: Likewise.
5155         * elf/sprof.c (print_version): Likewise.
5156         * locale/programs/locale.c: Likewise.
5157         * locale/programs/localedef.c: Likewise.
5158         * nscd/nscd.c (print_version): Likewise.
5159         * debug/xtrace.sh: Likewise.
5160         * malloc/memusage.sh: Likewise.
5161         * malloc/mtrace.pl: Likewise.
5162         * debug/catchsegv.sh: Likewise.
5164 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
5166         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
5167         script.
5169 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
5171         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
5172         gethostbyname4_r function call succeeded, just leave the loop.
5174         [BZ #9694]
5175         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
5176         very end.
5177         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
5178         * wctype/Makefile (tests): Add bug-wctypeh.
5179         * wctype/bug-wctypeh.c: New file.
5181         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
5182         LOCALDOMAIN is defined.
5183         * nscd/nscd_getai.c (__nscd_getai): Likewise.
5185         * sysdeps/x86_64/bits/select.h: New file.
5187         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
5189 2008-12-21  Bruno Haible  <bruno@clisp.org>
5191         [BZ #9677]
5192         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
5193         if no output is written.
5195 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
5197         * login/utmp_file.c (pututline_file): Replace call to dup2 with
5198         libc internal symbol __dup2 to avoid access through the PLT.
5200 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
5202         [BZ #6545]
5203         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
5204         available only for __USE_GNU.
5206         * inet/Makefile (tests): Add tst-getni2.
5207         * inet/tst-getni2.c: New file.
5209         [BZ #7080]
5210         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
5211         NULL when NI_NAMEREQD is set.
5212         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
5213         * inet/Makefile (tests): Add tst-getni1.
5214         * inet/tst-getni1.c: New file.
5216 2008-12-03  Petr Baudis  <pasky@suse.cz>
5218         [BZ #7067]
5219         * nscd/connections.c (invalidate_cache): Use prune_run_lock
5220         instead of prune_lock.
5221         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
5222         * nscd/nscd.h (database_dyn): Add prune_run_cache.
5224 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
5226         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
5227         use.
5229         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
5230         handling.
5232         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
5233         after reading name server list.
5235         [BZ #7058]
5236         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
5237         handling for host name aliases.
5239 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
5241         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
5242         instead of doing things manually.
5244 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
5246         * posix/regex_internal.h (build_wcs_upper_buffer):
5247         Return type is reg_error_t.
5249 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
5251         * posix/globtest.sh: Use mktemp to create temporary file and
5252         directory.
5254         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
5255         sets correctly.
5256         (__CPU_CLR_S): Likewise.
5257         (__CPU_ISSET_S): Likewise.
5259 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
5260             Ulrich Drepper  <drepper@redhat.com>
5262         * scripts/firstversion.awk: Use custom comparison function to compare
5263         version numbers.
5264         * scripts/versions.awk: Use sort invocation which can handle
5265         multi-digit sub-version numbers.
5267 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
5269         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
5270         * locale/iso-639.def: Add Chhattisgarhi entry.
5272 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
5274         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
5275         ESRCH return value.
5276         (_nss_dns_gethostbyname4_r): Likewise.
5277         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
5278         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
5279         gethostbyname4_r, we don't have a separate IPv6 status, so copy
5280         the no_data variable.
5282         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
5283         information at the correct index.
5285         * socket/sys/socket.h: Declare accept4.
5286         * socket/accept4.c: New file.
5287         * sysdeps/unix/sysv/linux/accept4.c: New file.
5288         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
5289         * socket/Makefile (routines): Add accept4.
5290         * socket/Versions: Export accept4 with version GLIBC_2.10.
5291         * socket/paccept.c: Removed.
5292         * sysdeps/unix/sysv/linux/paccept.c: Removed.
5293         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
5294         * Versions.def: Define GLIBC_2.10 for libc.
5295         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
5297         * nscd/connections.c: Use accept4.
5299         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
5301 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
5303         * resolv/res_send.c (send_dg): Create sockets with non-blocking
5304         flag already set.
5306         * stdlib/setenv.c (unsetenv): Don't search environment if it does
5307         not exist.
5308         * stdlib/Makefile (tests): Add tst-unsetenv1.
5309         * stdlib/tst-unsetenv1.c: New file.
5311 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
5313         * login/utmp_file.c (file_writable): New variable.
5314         (setutent_file): Don't try to open file for writing.
5315         (pututline_file): Before writing, make descriptor writable if
5316         necessary.
5318 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
5320         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
5321         to IPv4 or IPv6 if an interface has been found.
5323 2008-11-26  Roland McGrath  <roland@redhat.com>
5325         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
5326         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
5328         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
5329         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
5330         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
5332         * elf/elf.h (NT_386_IOPERM): New macro.
5333         (NT_PPC_VSX): New macro.
5335 2008-11-25  Roland McGrath  <roland@redhat.com>
5337         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
5338         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
5339         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
5340         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
5341         Subdirectories moved to ports repository.
5342         * configure.in (base_machine): Remove alpha case.
5344 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
5346         * sysdeps/mach/strerror_l.c: New file.
5348 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
5350         [BZ #6411]
5351         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
5352         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
5353         magic numbers.
5354         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
5355         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
5356         (relax_fenv_state): Same as above.
5357         (FPSCR_29): Reserve bit in ISA 2.05.
5358         (FPSCR_NI): Provide define for compat.
5359         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
5360         magic numbers.
5361         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
5362         magic numbers.
5363         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
5364         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
5365         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
5366         access to hwcap to account for hwcap size increase to uint64_t.
5367         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
5368         Likewise.
5369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
5370         (*setcontext): Likewise.
5371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
5372         New file.
5373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
5374         New file.
5375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
5376         (*setcontext): dynamically select mtfsf insn based on
5377         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
5378         increase to uint64_t.
5379         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
5380         (*swapcontext): dynamically select mtfsf insn based on
5381         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
5382         increase to uint64_t.
5383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
5384         New file.
5385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
5386         New file.
5387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5388         (*setcontext): dynamically select mtfsf insn based on
5389         PPC_FEATURE_HAS_DFP.
5390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5391         (*swapcontext): dynamically select mtfsf insn based on
5392         PPC_FEATURE_HAS_DFP.
5394 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
5396         * version.h: Bump for 2.9 release.
5397         * include/features.h (__GLIBC_MINOR__): Bump to 9.
5399         [BZ #7029]
5400         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
5401         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
5402         all the rounding.
5404 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
5406         [BZ #7009]
5407         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
5408         unknown request types for now.
5410 2008-11-11  Roland McGrath  <roland@redhat.com>
5412         * sysdeps/x86_64/configure: New file.
5414         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
5415         * configure: Regenerated.
5417 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5419         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
5420         correct instruction to remove the stack frame.
5422 2008-11-03  Michael Matz  <matz@suse.de>
5424         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
5425         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
5427 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
5429         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
5430         Remove.
5432         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
5433         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
5434         of the thread variable instead of void *.
5435         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
5436         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
5437         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5438         __libc_tsd_define arguments.
5439         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
5440         __libc_tsd_address arguments.  Remove union hack.
5441         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
5442         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
5443         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
5444         Adjust __libc_tsd_{set,get} arguments.
5445         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5446         __libc_tsd_define arguments.
5447         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
5448         arguments.
5449         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
5450         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
5451         (LOCALE): Adjust __libc_tsd_define arguments.
5452         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
5453         arguments.
5454         (LOCALE): Adjust __libc_tsd_define arguments.
5455         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
5456         arguments.
5457         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
5458         arguments.
5460 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
5462         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
5463         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5465 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
5467         [BZ #6966]
5468         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
5470 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
5471             Ulrich Drepper  <drepper@redhat.com>
5473         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
5474         definition for GCC 3.1 and later.
5476 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
5478         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
5479         refetch dtv, as it might have changed.
5480         * elf/Makefile: Add rules to build and run tst-tls18.
5481         * elf/tst-tls18.c: New test.
5482         * elf/tst-tlsmod18a.c: New file.
5484 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
5486         [BZ #6875]
5487         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
5489 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5491         [BZ #6867]
5492         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
5494         [BZ #6919]
5495         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
5496         Fix length of copy operation.
5498 2008-10-02  Pierre Habouzit <madcoder@debian.org>
5500         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
5501         and fix its calling convention.
5503 2008-10-07  Andreas Schwab  <schwab@suse.de>
5505         [BZ #6942]
5506         * resolv/res_send.c (send_vc): Fix last change.
5507         (send_dg): Align here as well.
5509 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5511         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
5512         return value in case rlimit is RLIM_INFINITY.
5514         [BZ #6947]
5515         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
5516         for UL_SETFSIZE.
5517         * resource/Makefile (tests): Add bug-ulimit1.
5518         * resource/bug-ulimit1.c: New file.
5520         [BZ #6974]
5521         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
5522         without dot.  Properly terminate the string with a null byte.
5523         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
5525         [BZ #6980]
5526         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
5527         negative sizees.
5528         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
5529         negative __size.
5531         [BZ #6995]
5532         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
5534 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
5536         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
5537         abort if there is no initgroups_dyn function.
5539         * resolv/res_send.c (send_dg): On timeout, only return nonzero
5540         result if any of the queries really provided an answer.
5542 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
5544         * po/lt.po: Update from translation team.
5546 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
5548         * po/id.po: Update from translation team.
5550 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
5552         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
5553         Fix tests for existence of second reply.
5555 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
5557         * po/id.po: New file.
5558         Contributed by the Indonesian translation team.
5560 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
5562         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
5563         initialization.
5565 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
5567         * elf/Makefile: Add rules to build and run tst-tls17.
5568         * elf/tst-tls17.c: New test.
5569         * elf/tst-tlsmod17a.c: New file.
5570         * elf/tst-tlsmod17b.c: Likewise.
5572 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
5574         * stdlib/divmod_1.c: Use correct type for dummy variable.
5575         * stdlib/mod_1.c: Likewise.
5577 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
5579         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
5581 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
5583         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
5584         __nonnull order for C++.
5585         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
5586         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
5588 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
5590         * stdlib/longlong.h: Update from GCC.
5592 2008-10-09  Jakub Jelinek <jakub@redhat.com>
5593             David S. Miller  <davem@davemloft.net>
5595         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
5596         make sure any registers used with 64-bit 'branch-on-register'
5597         instructions have their top 32-bits clear.
5598         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
5599         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
5601 2008-09-18  Andreas Schwab  <schwab@suse.de>
5603         [BZ #6942]
5604         * resolv/res_send.c (send_vc): Fix use of unaligned address.
5605         Properly handle partial reads.
5607 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
5609         * elf/elf.h (STO_MIPS_PLT): New.
5610         (R_MIPS_COPY): New.
5611         (R_MIPS_JUMP_SLOT): New.
5612         (R_MIPS_NUM): Redefine to 128.
5613         (DT_MIPS_PLTGOT): New.
5614         (DT_MIPS_RWPLT): New.
5615         (DT_MIPS_NUM): Redefine to 0x35.
5617 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
5619         * timezone/africa: Update from tzdata2008f.
5620         * timezone/asia: Likewise.
5621         * timezone/australasia: Likewise.
5622         * timezone/europe: Likewise.
5623         * timezone/leapseconds: Likewise.
5624         * timezone/northamerica: Likewise.
5625         * timezone/southamerica: Likewise.
5626         * timezone/zone.tab: Likewise.
5628 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
5630         * nscd/connections.c: Disable use of paccept for now.
5632 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
5634         * socket/Versions: Remove paccept export for GLIBC_2.9.
5635         * socket/Makefile (routines): Remove paccept.
5636         * socket/sys/socket.h: Remove paccept declaration.
5638         * po/sv.po: Update from translation team.
5640 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
5642         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
5643         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5645 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
5647         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
5648         Patch by Olivier Fourdan <ofourdan@redhat.com>.
5650 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
5652         * sunrpc/rpc/svc.h: Declare svcfd_create.
5653         Patch by Michael Solberg <msolberg@redhat.com>.
5655 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
5656             Ulrich Drepper  <drepper@redhat.com>
5658         * malloc/malloc.c (public_vALLOc): Try other arenas in case
5659         _int_valloc fails.
5660         (public_pVALLOc): Likewise.
5662 2008-09-02  Andreas Jaeger  <aj@suse.de>
5664         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
5665         commit.
5667 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
5669         [BZ #6860]
5670         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
5672 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
5674         * Makefile (check-data): Check data directory in add-ons.
5675         * elf/Makefile (check-data): Likewise.
5677 2008-08-18  Roland McGrath  <roland@redhat.com>
5679         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
5680         * configure: Regenerated.
5681         * config.make.in (cflags-cpu): New substituted variable.
5682         (with-cpu): Variable removed.
5683         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
5685 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
5687         [BZ #6845]
5688         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
5689         __signbitl definition and __LONG_DOUBLE_128__ guard from:
5690         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
5691         redundant.  Functions which call floating point assembler operations
5692         should go into a sysdeps powerpc/fpu directory.
5694 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
5696         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
5697         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5699 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
5701         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
5703         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
5704         change related to AT_EXECFN.  We cannot use that string.
5705         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
5706         _dl_execfn member.
5707         * elf/dl-support.c: Remove _dl_execfn variable.
5708         (_dl_aux_init): Remove handling of AT_EXECFN.
5709         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
5710         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
5712 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
5714         [BZ #6544]
5715         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
5716         byte gets added to writes and seeks from the end use the length of
5717         the buffer and not the currently terminating NUL byte.
5719         [BZ #6634]
5720         * login/utmp_file.c (getutent_r_file): Take additional parameter.
5721         Set to true if locking failed.
5722         (getutid_r_file): Adjust caller.
5723         (pututline_file): Likewise.  Return NULL in this case.
5724         Patch mostly by halesh.s@gmail.com.
5726 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
5728         [BZ #6589]
5729         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
5730         Define.
5731         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
5733 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
5735         [BZ #6839]
5736         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
5737         macro since it is now available in elf/dynamic-link.h.
5739 2008-08-12  Roland McGrath  <roland@frob.com>
5741         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
5742         in case used outside of libc.
5743         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
5745 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
5747         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
5748         directly instead of going through dn_comp.
5750 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
5752         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5753         Fix asm constraints.
5755 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5757         [BZ #6790]
5758         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
5759         (IPV6_PMTUDISC_PROBE): Likewise.
5761 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
5763         [BZ #6791]
5764         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
5766 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
5767             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5769         [BZ #6817]
5770         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5771         Added the members 'vsx' and 'arch_2_06'.
5772         (_dl_powerpc_platforms): Add the member 'power7'.
5773         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5774         to reflect the changes required by VSX and ISA 2.06.
5775         Modify _DL_PLATFORMS_COUNT to reflect the addition of
5776         'power7'.
5777         Defined PPC_PLATFORM_POWER7.
5778         (_dl_string_platform): Add support for POWER7.
5779         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5780         capability and ISA 2.06.
5782 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5784         [BZ #6824]
5785         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5786         macro to detect use of 128 bit long double.
5787         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5789 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
5791         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5793         [BZ #5794]
5794         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5795         parameters.
5796         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5797         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5799 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
5801         * nscd/connections.c (main_loop_poll): Pass a buffer which is
5802         guaranteed to be large enough to read inotify event.  Ignore
5803         EAGAIN error.  Better error message.  Add branch predicition.
5804         (main_loop_epoll): Likewise.
5806 2008-08-02  Roland McGrath  <roland@frob.com>
5808         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5809         Add memory clobbers.
5811 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
5813         * manual/arith.texi: Avoid @strong{Note:}.
5814         * manual/creature.texi: Likewise.
5815         * manual/filesys.texi: Likewise.
5816         * manual/math.texi: Likewise.
5817         * manual/memory.texi: Likewise.
5818         * manual/resource.texi: Likewise.
5819         * manual/syslog.texi: Likewise.
5820         * manual/time.texi: Likewise.
5822         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5823         to prevent warning.
5825 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
5827         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5828         new epoll_create1 interface.
5829         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5830         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5831         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5833         * include/arpa/nameser.h (NS_GET16): Use const pointer.
5834         (NS_GET32): Likewise.
5836         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5837         syscalls, too.
5839         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5840         use the AT_EXECFN value if it is no absolute path.
5841         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5842         __ASSUME_AT_EXECFN.
5844         * Versions.def: Add GLIBC_2.9 to libresolv.
5845         * include/resolv.h: Remove hidden proto declarations for __ns_*
5846         functions.  Add them for __dn_count_labels and __p_secstodate.
5847         * include/arpa/nameser.h: Add a number of hidden proto declarations.
5848         Define ns_msg_getflags macro here.
5849         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5850         and __p_secstodate.
5851         * resolv/Versions: Export functions from <arpa/nameser.h> from
5852         libresolv in version GLIBC_2.9.
5853         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
5854         hidden definitions.
5855         * resolv/ns_netint.c: Likewise.
5856         * resolv/ns_parse.c: Likewise.
5857         * resolv/ns_print.c: Likewise.
5858         * resolv/ns_samedomain.c: Likewise.
5859         * resolv/ns_ttl.c: Likewise.
5860         * resolv/arpa/nameser_compat.h: Likewise.
5861         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
5862         function calls.
5863         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
5864         instead of ns_get16.
5865         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
5866         __ns_get32 instead of ns_get16 and ns_get32 respectively.
5867         (gaih_getanswer_slice): Likewise.
5868         * resolv/Makefile (libresolv-routines): Add ns_date.
5869         * resolv/ns_date.c: New file.
5871         * elf/Makefile (check-localplt.out): Also check libresolv and
5872         libcrypt.
5874 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
5876         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5877         __ASSUME_O_CLOEXEC.
5879 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
5881         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
5882         buffer passed to NSS functions.
5884         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
5886         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5887         Define.
5889         * misc/syslog.c (openlog_internal): Fix compile problem.
5891 2008-07-28  Roland McGrath  <roland@redhat.com>
5893         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5895 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
5897         * io/ftw.c (add_object): Remove inline to avoid warning.
5899         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5901         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5902         Use it instead of locally defined resplen2 variable.
5903         (res_nsend): Adjust for __libc_res_nsend interface change.
5904         (send_vc): Initialize *resplen2 if necessary.  Read length of
5905         package into an appropriately aligned variable.  Store converted length
5906         in new variable and use it appropriately.
5907         Add branch prediction help.
5908         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5909         and pass it on to __libc_res_nsend.  Adjust all callers.
5910         (__libc_res_nsearch): Likewise.
5911         (__libc_res_nqeurydomain): Likewise.
5912         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5913         change.
5914         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
5915         Define resplen2 variable and pass it to __libc_res_nsearch and then
5916         to gaih_getanswer.
5917         (getanswer_r): In case of incorrect DNS data don't overread buffer.
5918         Add branch prediction.
5919         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
5920         (gaih_getanswer): Don't decode second slice if first one failed due
5921         to a too small buffer.  Don't let not found status of second
5922         decoder shadow results of the first.
5923         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5924         and __libc_res_nquery interface changes
5925         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5926         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5927         __libc_res_nsearch, and __libc_res_nsend.
5928         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5929         change.
5930         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5931         __libc_res_nsearch interface changes.
5933 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
5935         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5937         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5938         file descriptors with close-on-exec set.
5939         (exec_comm_child): Fix the case where the write end of the pipe is
5940         STDOUT_FILENO already.  In case it is, clear close-on-exec.
5942         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5943         * io/pipe2.c: Likewise.
5944         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5945         instead of __ASSUME_PACCEPT.
5946         * include/unistd.h: Declare __have_pipe2.
5947         * libio/iopopen.c: Implement "e" flag.
5948         * libio/Makefile (tests): Add tst-popen1.
5949         * libio/tst-popen1.c: New file.
5951         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5952         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5954 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5956         [BZ #6771]
5957         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5958         success call of _IO_SEEKOFF or calls which failed because the
5959         descriptor is for a pipe.
5961         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5962         magic number.
5964         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
5966         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
5967         F_SETFD use if we know fopen set the flag.
5969         * login/utmp_file.c (setutent_file): Minor optimization in case
5970         O_CLOEXEC is available.
5972 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
5974         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
5975         * elf/Makefile: Use pie-ccflag variable.
5976         * nscd/Makefile: Likewise.
5977         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
5979 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
5981         [BZ #6724]
5982         * Versions.def: Add GLIBC_2.9 version tag for libutil.
5983         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
5984         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
5985         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
5986         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
5987         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
5988         utmp32, utmpx32 and login32.
5989         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
5990         versions of struct utmp functions to libc and libutil.
5991         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
5992         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
5993         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
5994         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
5995         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
5996         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
5997         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
5998         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
5999         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
6000         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
6001         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
6002         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
6003         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
6004         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
6005         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
6006         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
6007         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
6008         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
6009         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
6010         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
6011         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
6012         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
6014 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
6016         * scripts/gen-as-const.awk: Generate more widely usable code by
6017         using 64-bit arithmetic.
6019         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
6020         the same treatment as narrow output code in last patch.
6022         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
6024         [BZ #6763]
6025         * elf/dl-load.c (local_strdup): Remove inline.
6026         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
6027         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
6028         part of the object.
6030         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
6032 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
6034         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
6035         the new syscalls, too.
6037         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
6038         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
6040         [BZ #6698]
6041         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
6042         parameter for end of buffer.  If temporary copy is too large use
6043         malloc.
6044         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
6045         interface change.
6046         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
6047         string rewrite when allocating buffer.
6049         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
6050         syscalls, too.
6052         * nscd/connections.c (nscd_init): Clean up fcntl call.
6054         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
6055         SOCK_NONBLOCK if possible.
6057         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
6058         SOCK_CLOEXEC if available.
6060         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
6061         __libc_clntudp_bufcreate_internal.
6062         * include/sys/socket.h: Declare __have_sock_cloexec.
6063         * socket/Makefile (aux): Add have_sock_cloexec.
6064         * socket/have_sock_cloexec.c: New file.
6065         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
6066         __libc_clntudp_bufcreate.
6067         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
6068         which takes an additional parameter.  Create socket with non-blocking
6069         mode and close-on-exec flag set, if wanted.
6070         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
6071         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
6072         instead of clntudp_create.  The socket has already the close-on-exec
6073         flag set if SOCK_CLOEXEC is defined.
6075 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
6077         * sysdeps/unix/sysv/linux/kernel-features.h: Define
6078         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
6079         appropriate.
6080         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
6081         non-blocking mode by using socket, paccept, and inotify_init1.
6083         * Versions.def (glibc): Add GLIBC_2.9.
6084         * io/Makefile (routines): Add dup3 and pipe2.
6085         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
6086         * io/dup3.c: New file.
6087         * io/pipe2.c: New file.
6088         * posix/unistd.h: Declare dup3 and pipe2.
6089         * socket/Makefile (routines): Add paccept.
6090         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
6091         * socket/paccept.c: New file.
6092         * socket/sys/socket.h: Declare paccept.
6093         * sysdeps/unix/syscalls.list: Add entry for dup3.
6094         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
6095         epoll_create2 and inotify_init1.
6096         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
6097         * sysdeps/unix/sysv/linux/paccept.c: New file.
6098         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
6099         possible.
6100         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
6101         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
6102         inotify_init1, and pipe2 entries.
6103         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
6104         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
6105         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
6106         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
6107         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
6108         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
6109         SOCK_NONBLOCK.
6110         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
6111         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
6112         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
6113         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
6114         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
6115         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
6116         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
6117         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
6118         EPOLL_NONBLOCK.  Declare epoll_create2.
6119         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
6120         EFD_NONBLOCK.
6121         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
6122         IN_NONBLOCK.  Declare inotify_init1.
6123         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
6124         SFD_NONBLOCK.
6125         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
6126         TFD_NONBLOCK.
6128         * elf/elf.h: Define AT_EXECFN.
6129         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
6130         LD_ORIGIN_PATH.
6131         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
6132         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
6133         if __ASSUME_AT_EXECFN is defined.
6134         (_dl_aux_init): Handle AT_EXECFN.
6135         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
6136         for 2.6.27 and up.
6137         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
6138         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
6139         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
6140         _dl_execfn if available and avoid compatibility code if
6141         __ASSUME_AT_EXECFN is defined.
6143         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
6144         _dl_discover_osversion only for older kernels.
6146 2008-07-22  Roland McGrath  <roland@frob.com>
6148         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
6150 2008-07-21  Roland McGrath  <roland@frob.com>
6152         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
6153         returned too much data out of line.
6155 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
6157         * locale/setlocale.c (setname): Remove inline to avoid compiler
6158         warning.
6160         [BZ #6712]
6161         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
6163 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
6165         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
6166         doesn't manage to write anything, fail.
6168         * malloc/hooks.c (__malloc_check_init): Remove printf.
6170 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6172         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
6174 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
6176         * nscd/connections.c (main_loop_poll): Fix handling of read errors
6177         from inotify.
6178         (main_loop_epoll): Likewise.
6180 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
6182         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
6184         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
6185         if DEBUG is defined.
6187         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
6188         query.  Adjust buffer size computation for padding.
6190 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
6192         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
6193         * stdio-common/tst-setvbuf1.c: New file.
6194         * stdio-common/tst-setvbuf1.expect: New file.
6196         [BZ #6719]
6197         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
6198         when selecting fully-buffered stream.
6199         Patch by Wang Xin <wxinee@gmail.com>.
6201 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6203         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
6204         (__open_2): New function.
6205         (__open64_2): New alias to __open_2.
6206         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
6207         (__openat_2): New function.
6208         (__openat64_2): New alias to __openat_2.
6210 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
6212         [BZ #6723]
6213         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
6215 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6217         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
6218         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
6219         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
6220         __hurd_dfail.
6221         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
6222         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
6223         * sysdeps/mach/hurd/send.c (__send): Likewise.
6224         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
6225         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
6227 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6229         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
6230         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
6231         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
6232         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
6233         * hurd/get-host.c (_hurd_get_host_config): Likewise.
6234         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
6236 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
6238         [BZ #6657]
6239         * time/strptime_l.c: Don't clear s.era_cnt after successful match
6240         of %EY.
6241         Patch by Petr Baudis.
6243 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
6245         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
6246         Patch by Peter Jones <pjones@redhat.com>.
6248 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
6250         [BZ #6654]
6251         * stdlib/canonicalize.c (__realpath): readlink can write too much
6252         into the buffer on platforms without PATH_MAX.
6254 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
6256         [BZ #6653]
6257         * posix/tst-regex.c (main): Rename to...
6258         (do_test): ... this. Remove cmdline option processing.
6259         (TIMEOUT): Define.
6260         (TEST_FUNCTION): Define.
6261         (CMDLINE_OPTIONS): Define.
6263 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
6265         [BZ #5210]
6266         * configure.in: Add -Werror to -fstack-protector test to catch
6267         unsupported architectures.
6268         Patch by Gilles Esponasse <g.esp@free.fr>.
6270 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
6272         * stdlib/tst-setcontext.c: Set back_in_main before exit if
6273         getcontext returns ENOSYS.
6275 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
6277         * nscd/connections.c (main_loop_poll): Fix test for read error.
6278         (main_loop_epoll): Likewise.
6280 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
6282         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
6283         better place so it is not called when nscd is used.
6285         * nscd/connections.c: Also recognize and handle changes to the
6286         resolver configuration file.
6288 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
6290         * time/strftime.c: Pass reference to tzset_called around to handle
6291         recursive calls.
6293         [BZ #6612]
6294         * time/strftime.c (__strftime_internal): Call tzset() only
6295         when printing timezone-dependent values.
6296         Based on a patch by Petr Baudis <pasky@suse.cz>.
6298         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
6299         unconditionally use second gaih_getanswer_slice result.
6301         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
6302         (getaddrinfo): RES must always be non-NULL.
6304 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
6306         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
6307         cr[34] registers.
6308         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6309         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6310         Likewise.
6311         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
6312         register.
6314 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
6316         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
6317         fields.
6318         * nscd/connections.c (inotify_fd): New variable.
6319         (nscd_init): Try to open an inotify descriptor.
6320         If successful, watch files for databases using inotify instead of
6321         having prune threads stat the files.
6322         (nscd_run_prune): Recognize clear_cache flag being set and call
6323         prune_cache appropriately.
6324         (main_loop_poll): Add inotify descriptor to wait set and handle the
6325         reported changes.
6326         (main_loop_epoll): Likewise.
6327         * nscd/cache.c (prune_cache): Don't stat files for databases if
6328         inotify is used.
6329         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
6330         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
6332         * nscd/grpcache.c (cache_addgr): Correctly compute size of
6333         fixed-size portion of the record.
6334         * nscd/servicescache.c (cache_addserv): Likewise.
6335         * nscd/pwdcache.c (cache_addpw): Likewise.
6336         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6338 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
6340         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
6341         out we don't use uninitialized memory.
6343         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
6344         the client.
6346 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
6348         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
6349         ignore T_DNAME messages.
6350         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
6352 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
6354         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
6355         Avoid segfault if first GETC returns eof/'\0'/'\n'.
6357 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
6359         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
6360         instead of portstr to nscd_getserv_r.  Patch by
6361         Roman Kagan <rkagan@mail.ru>.
6363 2008-05-26  Jim Meyering  <meyering@redhat.com>
6365         Remove more useless "if" tests before "free".
6366         * include/inline-hashtab.h (htab_delete): Likewise.
6367         * libio/freopen.c (freopen): Likewise.
6368         * libio/freopen64.c (freopen64): Likewise.
6369         * locale/programs/ld-collate.c (collate_read): Likewise.
6370         * misc/fstab.c (libc_freeres_fn): Likewise.
6371         * posix/glob.c (globfree): Likewise.
6373 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
6375         * string/Makefile (strop-tests): Add memmem.
6376         * string/test-memmem.c: New file.
6377         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
6378         (test_init): Size buf1 according to BUF1PAGES.
6380 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
6382         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
6383         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
6384         (CFLAGS-scanf17.c): New.
6385         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
6386         * stdio-common/scanf15.c (main): Likewise.
6387         * stdio-common/scanf16.c: New file.
6388         * stdio-common/scanf17.c: New file.
6390 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
6392         * resolv/res_send.c (send_dg): If we already have one of two
6393         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
6394         use the one answer insted of failing.
6396 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
6398         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
6399         being executed on PowerPC as the expected result exceeds IBM
6400         long double 128 __LDBL_MAX__.
6402 2008-05-21  Roland McGrath  <roland@redhat.com>
6404         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
6406         * Makefile (check-data): Use $(abi-name) before other guesses.
6407         Look in $(add-ons) dirs before scripts/data/.
6408         * elf/Makefile (check-data): Likewise.
6410         * scripts/soversions.awk: Grok ABI line.
6411         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
6412         Emit definition for abi-name variable.
6414 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
6416         * string/endian.h: Define new fixed-size hto* and *toh macros only
6417         if [__USE_BSD].
6419         * iconvdata/Depend: Add localedata.
6421 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6423         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
6425 2008-05-08  David S. Miller  <davem@davemloft.net>
6427         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
6428         HIDDEN_JUMPTARGET.
6429         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6430         (__SYSCALL_CLOBBERS): Remove %g* registers.
6431         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6432         (__SYSCALL_CLOBBERS): Likewise.
6433         * scripts/data/localplt-sparc-linux-gnu.data: New file.
6434         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
6436 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
6438         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6439         (CALL_ERRNO_LOCATION): Define.
6440         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6441         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6442         (CALL_ERRNO_LOCATION): Define.
6443         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6444         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
6445         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
6447 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
6449         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
6450         variable.
6452 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
6454         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
6455         (FIRST_FRAME_POINTER): Define.
6457 2008-05-09  David S. Miller  <davem@davemloft.net>
6459         * sysdeps/sparc/sparc64/backtrace.c: New file.
6461 2008-05-14  David S. Miller  <davem@davemloft.net>
6463         * sysdeps/sparc/machine-gmon.h: New file.
6464         * sysdeps/sparc/sparc-mcount.S: Likewise.
6465         * sysdeps/sparc/Makefile: Add sparc-mcount target to
6466         sysdep_routines in gmon directory.
6468 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
6470         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
6472 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
6474         * resolv/res_query.c (__libc_res_nquery): In case one of two
6475         answer was too short don't try to read that answer's header.
6477         * resolv/res_send.c (send_dg): In case of timeout and there are
6478         two queries and one has been answered, return value indicating
6479         success.
6481 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
6483         * nscd/cache.c (cache_add): Take additional parameter specifying
6484         whether this is in response of a cache refill.  Check alignment
6485         of package data.  Revamp waking of pruning thread.
6486         (prune_cache): Small optimization.
6487         * nscd/nscd.h: Adjust cache_add prototypes.
6488         * nscd/aicache.c: Adjust cache_add calls.
6489         * nscd/grpcache.c: Likewise.
6490         * nscd/hstcache.c: Likewise.
6491         * nscd/initgrcache.c: Likewise.
6492         * nscd/pwdcache.c: Likewise.
6493         * nscd/servicescache.c: Likewise.
6494         * nscd/connections.c (restart): Really disable cache use before
6495         exec attempt.  If it fails, reenable cache.
6496         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
6497         time to max to be able to notice concurrent cache additions.  Unlock
6498         prune_lock while performing gc.  Afterwards compute wakeup time with
6499         current wakeup_time value in mind.
6501 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
6503         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
6505         * nscd/mem.c (gc): Correctly determine highest used array element
6506         in mark.
6508         * nscd/mem.c (markrange): Add assert to check entries are all
6509         aligned.  Small cleanup in bitmap use.
6511         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
6512         blockoff of type nscd_ssize_t.
6513         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
6514         (mempoll_alloc): Record block offset and not address.
6516         * nscd/mem.c (gc): Fix test for stack overuse.
6518         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
6519         more asserts.
6521         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
6522         entry is available, believe it.
6524         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
6525         no answers return NSS_STATUS_NOTFOUND.
6526         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
6527         buffer does not have any content.
6529 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
6531         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
6533         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
6534         lookup, don't assign canon unconditionally.
6536 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6538         * string/Makefile (distribute): Add str-two-way.h.
6540 2008-03-29  Eric Blake  <ebb9@byu.net>
6542         Rewrite string searches to O(n) rather than O(n^2).
6543         * string/str-two-way.h: New file.  For linear fixed-allocation
6544         string searching.
6545         * string/memmem.c: New implementation.
6546         * string/strstr.c: New implementation.
6547         * string/strcasestr.c: New implementation.
6549 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
6551         * posix/regcomp.c (optimize_utf8): Add a note on why we test
6552         opr.ctx_type.
6553         (calc_first): Initialize constraint field.
6554         (duplicate_node_closure): Use it instead of special casing ANCHORS.
6555         Use search_duplicated_node to avoid loops.  Fix grammar.
6556         (duplicate_node): Merge constraint field for all node types.
6557         (calc_eclosure_iter): Look at constraint field for all node types.
6558         * posix/regex_internal.c (create_cd_newstate): Don't look at
6559         create_cd_newstate.
6561 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6563         [BZ #6428]
6564         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
6566         [BZ #6442]
6567         * string/endian.h: Add macros for fixed-size endian conversion.
6568         * bits/byteswap.h: Allow inclusion from <endian.h>.
6569         * sysdeps/i386/bits/byteswap.h: Likewise.
6570         * sysdeps/ia64/bits/byteswap.h: Likewise.
6571         * sysdeps/s390/bits/byteswap.h: Likewise.
6572         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6573         * string/Makefile (tests): Add tst-endian.
6574         * string/tst-endian.c: New file.
6576         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
6577         Patch by Reuben Thomas.
6579 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
6581         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
6583 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6585         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
6587         [BZ #6461]
6588         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
6589         Add missing braces.
6590         (BODY for __gconv_transform_internal_ascii): Likewise.
6592         [BZ #6472]
6593         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
6594         to be treated like link-local addresses.
6595         (match_prefix): Don't treat IPv4 loopback address special when
6596         converting to v4 mapped addressed.
6598         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
6599         if necessary.
6600         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
6601         * posix/tst-rfc3484-2.c: Likewise.
6602         * posix/tst-rfc3484-3.c: Likewise.
6604         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
6605         and SCTP.
6607         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
6609         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
6611         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
6613 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
6615         * po/lt.po: New file.  From Lituanian translation team.
6617 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
6619         Introduce TLS descriptors for i386 and x86_64.
6620         * include/inline-hashtab.h: New file, copied from 2005's
6621         libiberty, with fix for memory leak imported afterwards by
6622         Glauber de Oliveira Costa.
6623         * elf/tlsdeschtab.h: New file.
6624         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
6625         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
6626         (CHECK_STATIC_TLS): Move to...
6627         * elf/dynamic-link.h: ... this file.
6628         (TRY_STATIC_TLS): New macro.
6629         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
6630         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
6631         R_386_TLS_DESC): Define.
6632         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
6633         binutils.
6634         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
6635         R_X86_64_TLSDESC): Define.
6636         (R_386_NUM, R_X86_64_NUM): Adjust.
6637         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
6638         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6639         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6640         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6641         release tlsdesc_table.
6642         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
6643         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
6644         (elf_machine_rel): Handle R_386_TLS_DESC.
6645         (elf_machine_rela): Likewise.
6646         (elf_machine_lazy_rel): Likewise.
6647         (elf_machine_lazy_rela): Likewise.
6648         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
6649         * sysdeps/i386/dl-tlsdesc.S: New file.
6650         * sysdeps/i386/dl-tlsdesc.h: New file.
6651         * sysdeps/i386/tlsdesc.c: New file.
6652         * sysdeps/i386/tlsdesc.sym: New file.
6653         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
6654         tlsdesc_table.
6655         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
6656         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6657         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6658         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6659         release tlsdesc_table.
6660         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
6661         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
6662         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
6663         (elf_machine_rel): Handle R_X86_64_TLSDESC.
6664         (elf_machine_rela): Likewise.
6665         (elf_machine_lazy_rel): Likewise.
6666         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
6667         (__tls_get_addr): Do not declare for non-shared compiles.
6668         * sysdeps/x86_64/dl-tlsdesc.S: New file.
6669         * sysdeps/x86_64/dl-tlsdesc.h: New file.
6670         * sysdeps/x86_64/tlsdesc.c: New file.
6671         * sysdeps/x86_64/tlsdesc.sym: New file.
6672         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
6673         tlsdesc_table for both 32- and 64-bit structs.
6675 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6677         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
6678         its own function.  This reduces the frame setup costs and more.
6680 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
6682         [BZ #3406]
6683         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
6684         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
6686 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6688         * io/openat.c (__openat_2): Also pass fd to __openat.
6689         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
6690         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
6692         * string/tester.c (test_memcmp): Add a few more tests.
6693         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
6695 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6697         * nscd/cache.c (cache_add): Before returning with failure and this
6698         is the first use of the record, mark it as unusable.
6699         * nscd/aicache.c: Don't touch the dataset after cache_add returns
6700         reporting a failure.
6701         * nscd/grpcache.c: Likewise
6702         * nscd/hstcache.c: Likewise.
6703         * nscd/initgrcache.c: Likewise.
6704         * nscd/pwdcache.c: Likewise.
6705         * nscd/servicescache.c: Likewise.
6707 2008-05-10  Roland McGrath  <roland@redhat.com>
6709         [BZ #6505]
6710         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
6712 2008-05-08  David S. Miller  <davem@davemloft.net>
6714         * misc/truncate64.c (truncate64): Use __truncate not truncate.
6716         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
6717         (__ieee754_y0l): Likewise.
6718         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
6719         (__ieee754_y1l): Likewise.
6720         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
6721         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
6722         frexpl and ldexpl.  math_private.h provides them and the latter
6723         is not even used.
6724         (__log1pl): Use __frexpl.
6726 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6728         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
6729         prototypes.
6730         * include/arpa/nameser_compat.h: Define T_UNSPEC.
6731         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
6732         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
6733         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
6734         af==AF_UNSPEC.
6735         (_nss_nis_gethostbyname4_r): New function.
6736         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
6737         Change to also handle af==AF_UNSPEC.
6738         (get_tablename): New function.  Use it to avoid duplication.
6739         (_nss_nisplus_gethostbyname4_r): New function.
6740         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
6741         available.
6742         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
6743         * nss/nss.h: Define struct gaih_addrtuple.
6744         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
6745         af==AF_UNSPEC.
6746         (_nss_files_gethostbyname4_r): New function.
6747         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
6748         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
6749         calls.
6750         * resolv/res_query.c (__libc_res_nquery): Take two additional
6751         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
6752         look up IPv4 and IPv6.
6753         Change all callers.
6754         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
6755         for an additional query and answer buffer.  Pass to send_vc and
6756         send_dg.
6757         (send_vc): Send possibly two requests and receive two answers.
6758         (send_dg): Likewise.
6759         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
6760         __libc_res_nquery.
6761         (_nss_dns_gethostbyname4_r): New function.
6762         (gaih_getanswer_slice): Likewise.
6763         (gaih_getanswer): Likewise.
6764         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
6765         __libc_res_nquery call.
6766         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6767         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
6768         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
6769         available.
6771 2008-05-05  David S. Miller  <davem@davemloft.net>
6773         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6774         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6776 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6778         Fix termios bit macros.
6779         Move *DLY definitions where they belong, in termios.h.
6780         Add *[0-3] definitions.
6781         Fixes confusion between VT and FF.
6782         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6783         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6784         are already defined to avoid collision with termios.h.
6785         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6786         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6787         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6788         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6789         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6790         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6791         VTDLY, VT0, VT1): New macros.
6792         [__USE_GNU] (OLCUC): Change value of macro.
6793         [__USE_XOPEN] (OFILL): New macro.
6794         [__USE_BSD] (CRTSCTS): Change value.
6795         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6796         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6797         (B7200, B14400, B28800, B76800): New macros.
6799 2008-05-01  David S. Miller  <davem@davemloft.net>
6801         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6802         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6803         (gen-as-const-headers): Add it.
6804         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6805         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6806         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6807         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6809         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6810         six system call parameters.
6811         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6813 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
6815         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6816         RUSAGE_LWP.
6817         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6818         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6820 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
6822         * stdlib/tst-setcontext.c: Include unistd.h.
6824 2008-04-25  David S. Miller  <davem@davemloft.net>
6826         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6827         Pass "union semun" properly in to sys_ipc, it must be passed
6828         by value, not by reference.
6830 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
6832         * nscd/Makefile (nscd-cflags): Set back to -fpie.
6833         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6834         * nscd/connections.c (mem_in_flight): Likewise.
6836         * nscd/nscd.h (dbs): Make hidden.
6838         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6839         Avoid returning -1, return 0 instead.
6841 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
6843         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6845 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
6847         [BZ #5209]
6848         * sysdeps/unix/sysv/linux/times.c: New file.
6850         [BZ #5381]
6851         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6852         mem_in_flight_list variables.  Add new parameter to mempool_alloc
6853         prototype.
6854         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
6855         appropriate mem_in_flight element.
6856         (gc): Take allocations which have not yet been committed to the
6857         database into account.
6858         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
6859         Reset mem_in_flight before returning.
6860         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
6861         cue it up in mem_in_flight_list.
6862         * nscd/aicache.c: Adjust mempool_alloc call.
6863         * nscd/grpcache.c: Likewise.
6864         * nscd/hstcache.c: Likewise.
6865         * nscd/initgrcache.c: Likewise.
6866         * nscd/pwdcache.c: Likewise.
6867         * nscd/servicescache.c: Likewise.
6868         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
6869         of -fpie.
6871         * nscd/connections.c (handle_request): Provide better error message
6872         in case SELinux forbids the service.
6874         * version.h (VERSION): Bump to 2.8.90.
6876 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
6878         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
6880 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6882         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
6883         Also use for 32-bit.
6884         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
6885         __nextafter instead of nextafter to avoid local PLT.
6886         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6887         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6889         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6891         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6892         __fe_nomask_env.
6893         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
6894         <fenv_libc.h> instead of <fenv.h>.
6895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6898         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6900         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6901         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6902         function from fegetexcept and make old name weak alias.
6903         * include/fenv.h: Declare __fegetexcept.
6904         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6905         fegetexcept.
6906         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6907         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6908         to fetestexcept.
6909         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6910         instead of frexpl to avoid local PLT.
6911         * math/s_significandl.c (__significandl): Use __ilogbl instead of
6912         ilogbl to avoid local PLT.
6913         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
6914         instead of ldexpl to avoid local PLT.
6915         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
6916         __roundl not roundl to avoid local PLT.
6917         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
6918         local PLTs.  Use __sincosl instead of separate sinl and cosl
6919         calls.
6920         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6922         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6923         version for ppc64 to 2.4.21 since without it makecontext will fail.
6925         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6926         to the ABI in use.
6927         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6928         .__tls_get_addr.
6929         [__powerpc64__] (TLS_GD): Likewise.
6931 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
6933         [BZ #4997]
6934         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6935         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6936         mantissa.
6937         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6938         Likewise.  Also account for when x is an odd number between 2^52
6939         and 2^53-1.
6940         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6941         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6942         * math/libm-test.inc (lround_test, llround_test): Added test cases to
6943         detect aforementioned erroneous conditions.
6945 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6947         * configure.in: Check for -fno-section-anchors in addition to
6948         -fno-toplevel-reorder.
6950 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6952         * include/features.h (__GLIBC_MINOR__): Bump to 8.
6954         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6955         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6956         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6957         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6958         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6959         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6961 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6963         [BZ #5443]
6964         * time/era.c: Transform __libc_setlocale_lock into rwlock.
6965         * time/alt_digit.c: Likewise.
6966         * wcsmbs/wcsmbsload.c: Likewise.
6968 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
6970         * version.h (VERSION): Bump to 2.8.
6972         * timzeone/asia: Update from tzdata2008b.
6973         * timezone/backward: Likewise.
6974         * timezone/europe: Likewise.
6975         * timezone/northamerica: Likewise.
6976         * timezone/southamerica: Likewise.
6977         * timezone/iso3166.tab: Likewise.
6978         * timezone/leapseconds: Likewise.
6979         * timezone/zone.tab: Likewise.
6980         * timezone/private.h: Update from tzcode2008a.
6981         * timezone/zdump.c: Likewise.
6982         * timezone/zic.c: Likewise.
6984 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
6986         [BZ #5741]
6987         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
6988         Define additonal Data Cache Block instruction macros.
6989         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
6990         Replace dcbst with dcbf and sync with sync/isync.
6992 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
6994         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
6995         Always set ELF_RTYPE_CLASS_PLT.
6996         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
6998 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
7000         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
7001         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
7002         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
7003         For ISA 2.01 and later replace mftb with mfspr 268.
7005 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
7007         [BZ #5768]
7008         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
7009         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
7011 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
7013         [BZ #5768]
7014         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
7015         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
7016         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
7017         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
7019 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
7021         * stdlib/tst-makecontext.c (othervar): New variable.
7022         (cf): Test sign extending the argument to long.
7024 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
7026         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
7027         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
7028         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
7029         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
7030         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
7031         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
7032         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
7034 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
7036         * elf/Makefile (tests): Substitute tests-vis-yes here.
7037         (tests-vis-yes): Delete.
7038         (modules-name, modules-vis-yes): Similarly.
7040 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
7042         [BZ #4407]
7043         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7044         Preserve sign in signgamp when x is zero.
7046 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
7048         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
7049         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
7050         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
7051         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
7052         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
7053         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
7055 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
7057         [BZ #4314]
7058         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
7059         buffers.
7061         [BZ #5209]
7062         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
7063         a reserved error value.
7065         * stdlib/tst-makecontext.c: Change parameter to cf to negative
7066         value to check for correct sign extension.
7068         [BZ #5436]
7069         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
7070         Copy 64-bit parameter values even though this is not required in
7071         the standard.
7073         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
7074         PC save.
7076 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
7078         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
7079         PC save.
7081 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
7083         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
7085 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
7087         [BZ #5998]
7088         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
7089         in line-buffered stream failed.
7090         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
7092 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
7094         [BZ #6024]
7095         * scripts/abi-versions.awk: If the version specified by
7096         --enable-oldest-abi is older than the first version for this
7097         architecture, use the default version.
7099         * locale/programs/ld-collate.c (collate_read): Ignore script lines
7100         as well when ignoring the whole category.
7102 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
7104         [BZ #6042]
7105         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
7106         ETHERTYPE_* definitions.
7107         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
7109 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
7111         * stdlib/mbtowc.c (__no_r_state): Remove.
7112         (mbtowc): New static state variable.  Use it instead of
7113         __no_r_state.
7114         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
7115         (__wctomb_state): New hidden variable.
7116         (wctomb): Use __wctomb_state instead of __no_r_state.
7117         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
7118         (__wctomb_state): New extern decl.
7119         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
7121 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
7123         [BZ #5475]
7124         * resolv/res_init.c: Handle scope IDs in resolv.conf.
7126 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
7128         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
7130 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
7132         * po/nl.po: Update from translation team.
7134 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
7136         [BZ #6007]
7137         * string/strfry.c: Handle empty strings again.
7139 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
7141         [BZ #5443]
7142         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
7143         before looking for translation.
7144         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
7145         * locale/freelocale.c: Likewise.
7146         * locale/newlocale.c: Likewise.
7147         * locale/setlocale.c: Likewise.
7148         Based partially on a patch by ryo@np.css.fujitsu.com.
7150 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
7152         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
7153         acquiring wrlock.  Do conv_tab allocation while holding lock.
7154         * intl/Makefile: Add rules to build and run tst-gettext6.
7155         * intl/tst-gettext6.c: New test.
7156         * intl/tst-gettext6.sh: New file.
7158 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
7160         * po/nl.po: Update from translation team.
7162         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
7163         provided through st_blksize, try the default size before giving up.
7165 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
7167         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
7169         [BZ #5939]
7170         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
7172         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
7173         error message.  POSIX today does not require the messages to be in
7174         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
7176         [BZ #5979]
7177         * sunrpc/auth_unix.c: Unify printed strings.
7178         * sunrpc/clnt_tcp.c: Likewise.
7179         * sunrpc/clnt_udp.c: Likewise.
7180         * sunrpc/clnt_unix.c: Likewise.
7181         * sunrpc/svc_tcp.c: Likewise.
7182         * sunrpc/svc_udp.c: Likewise.
7183         * sunrpc/svc_unix.c: Likewise.
7184         * sunrpc/xdr.c: Likewise.
7185         * sunrpc/xdr_array.c: Likewise.
7186         * sunrpc/xdr_rec.c: Likewise.
7187         * sunrpc/xdr_ref.c: Likewise.
7188         * locale/programs/ld-time.c (time_finish): Unify messages.
7189         * locale/programs/locfile.c (handle_copy): Fix typo.
7190         * nscd/nscd.c (options): Fix typo.
7192         [BZ #5995]
7193         * stdlib/strtod_l.c: Use correct sign for result in one more
7194         underflow case.
7195         Patch by Eric Blake <ebb9@byu.net>.
7197 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
7199         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
7200         and creat system calls.
7201         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
7202         call.
7203         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
7204         system calls.
7205         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
7206         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7207         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7209 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
7211         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
7212         <linux/limits.h> has defined it.
7213         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
7214         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
7215         headers.
7216         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
7217         it instead of ARG_MAX.
7219 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
7221         * posix/gai.conf: Fix comment for scope nullbits.
7222         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
7223         default to 128 bits for v4 mapped addresses.
7225 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7227         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
7228         ptrace call to get the ieee_instruction_pointer from the kernel.
7229         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
7230         ptrace call to set the ieee_instructtion_pointer.
7231         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
7232         Add comment that ieee_instruction_pointer is always 0.
7234 2008-03-09  Andreas Jaeger  <aj@suse.de>
7236         [BZ #5857]
7237         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
7238         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
7239         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
7241         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
7242         (rint_test): Likewise.
7244 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
7246         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
7247         call.
7248         (__nisfind_server): Similar for open readColdStartFile call.
7249         Patch partially by Jim Meyering.
7250         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
7251         around internal_setent call.
7253         * po/vi.po: New Vietnamese translation.
7255         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
7256         ADJ_OFFSET_SS_READ.
7258         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
7259         remove CLONE_STOPPED.
7261 2008-02-10  Jim Meyering  <meyering@redhat.com>
7263         Remove useless "if" before "free":
7264         * elf/ldconfig.c (parse_conf_include): Likewise.
7265         * gmon/gmon.c (weak_alias): Likewise.
7266         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
7267         * inet/rcmd.c (__validuser2_sa): Likewise.
7268         * intl/bindtextdom.c (set_binding_values): Likewise.
7269         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
7270         * libio/genops.c (save_for_backup): Likewise.
7271         * libio/wgenops.c (save_for_wbackup): Likewise.
7272         * locale/programs/ld-collate.c (collate_read): Likewise.
7273         * locale/programs/linereader.c (get_string): Likewise.
7274         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
7275         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
7276         * resolv/res_debug.c (do_section): Likewise.
7277         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
7278         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
7279         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
7280         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
7281         * time/tzset.c (tzset_internal): Likewise.
7283 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
7285         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
7286         of ASSEMBLER.
7288 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
7290         [BZ #5903]
7291         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
7292         not stream for output file.  Open output file here.
7293         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
7294         and output file name.
7295         (process_fd): Likewise.
7296         (process_file): Likewise.
7297         (main): Adjust callers of changed functions.
7298         * iconv/iconv_prog.h: Adjust prototype.
7300 2008-03-09  Andreas Jaeger  <aj@suse.de>
7302         [BZ #5753]
7303         * sysdeps/ia64/ieee754.h: Use protected namespace
7304         __BIG_ENDIAN/__LITTLE_ENDIAN.
7305         * sysdeps/ieee754/ieee754.h: Likewise.
7306         Patch by Aurelien Jarno <aurelien@aurel32.net>.
7308 2008-03-08  Roland McGrath  <roland@frob.com>
7310         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
7311         ignore a signal that came from a machine exception, treat it as a
7312         fatal core-dump signal instead.
7313         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7315         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
7316         Clear DF bit in thread state's eflags.
7317         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7319 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
7321         [BZ #5774]
7322         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
7323         of NAN(...) sequence.
7324         * stdlib/Makefile (tests): Add tst-strtod6.
7325         * stdlib/tst-strtod6.c: New file.
7327         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
7329         [BZ #5762]
7330         * posix/getopt.c (_getopt_internal_r): Clarify error message by
7331         putting offending option character in quotes.  Clean up error
7332         messages.
7333         * po/be.po: Adjust msgstr in translation file.
7334         * po/bg.po: Likewise.
7335         * po/ca.po: Likewise.
7336         * po/cs.po: Likewise.
7337         * po/da.po: Likewise.
7338         * po/de.po: Likewise.
7339         * po/es.po: Likewise.
7340         * po/fr.po: Likewise.
7341         * po/hr.po: Likewise.
7342         * po/ko.po: Likewise.
7343         * po/nl.po: Likewise.
7344         * po/rw.po: Likewise.
7345         * po/sk.po: Likewise.
7346         * po/sv.po: Likewise.
7347         * po/tr.po: Likewise.
7348         * po/zh_CN.po: Likewise.
7349         * po/zh_TW.po: Likewise.
7351         [BZ #5760]
7352         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
7353         Patch by Roland Bless <roland@bless.de>.
7355         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
7356         .o file.
7357         * elf/Makefile (routines): Add dl-sysdep.
7358         (elide-routines.os): Likewise.
7360 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
7362         [BZ #5786]
7363         * elf/dl-sysdep.c: Undefine ROUND after use.
7364         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
7365         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
7366         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
7367         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
7368         to ...
7369         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
7370         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
7371         if necessary.
7372         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
7374         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
7375         _dl_tls_get_addr_soft element.
7376         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
7377         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
7378         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
7379         GLRO.
7380         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7381         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
7382         of internal_function.
7384         * stdlib/Makefile (aux): Add tens_in_limb.
7385         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
7386         * stdlib/tens_in_limb.c: ...here.  New file.
7388         [BZ #5778]
7389         * sysdeps/unix/sysv/linux/pathconf.h: Declare
7390         __statfs_chown_restricted.
7391         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
7392         for _PC_CHOWN_RESTRICTED.
7393         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
7394         Implement __statfs_chown_restricted.
7395         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
7396         _POSIX_CHOWN_RESTRICTED value to zero.
7397         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
7398         defined to zero.
7400         * sysdeps/x86_64/rtld-memset.c: New file.
7402 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
7404         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
7406         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
7407         Barcelona machine.  Make default fall through branch of
7408         __x86_64_preferred_memory_instruction check as the integer code path.
7410 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7412         * sysdeps/x86_64/cacheinfo.c
7413         (__x86_64_preferred_memory_instruction): New variable.
7414         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7416         * sysdeps/x86_64/memset.S: Rewrite.
7418 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
7420         * include/stdio.h (__asprintf_chk, __dprintf_chk,
7421         __obstack_printf_chk): New prototypes.
7422         (__vasprintf_chk, __vdprintf_chk,
7423         __obstack_vprintf_chk): Likewise.
7424         Add libc_hidden_proto.
7425         * libio/obprintf.c
7426         (_IO_obstack_jumps): No longer static, add attribute_hidden.
7427         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
7428         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7429         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
7430         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
7431         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7432         __obstack_vprintf_chk): New prototypes.
7433         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
7434         obstack_vprintf): New inlines.
7435         * debug/dprintf_chk.c: New file.
7436         * debug/vdprintf_chk.c: New file.
7437         * debug/asprintf_chk.c: New file.
7438         * debug/vasprintf_chk.c: New file.
7439         * debug/obprintf_chk.c: New file.
7440         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
7441         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
7442         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
7443         @@GLIBC_2.8.
7444         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
7445         vdprintf_chk and obprintf_chk, set CFLAGS for them.
7446         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
7447         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
7448         libc_hidden_proto.
7449         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
7450         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
7451         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
7452         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
7453         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
7454         @@GLIBC_2.8.
7455         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
7456         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
7457         obstack_vprintf_chk.
7458         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
7459         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
7460         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
7461         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
7462         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
7463         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
7465 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
7467         [BZ #5779]
7468         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
7469         Patch by Roy Marples <roy@marples.name>.
7471         [BZ #5736]
7472         * malloc/malloc.c: Fix typo in comment.
7474         [BZ #5627]
7475         * locale/iso-639.def: Add Shuswap.
7477 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
7479         [BZ #5790]
7480         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
7481         overwrite *h_errnop/*errnop values from getanswer_r in case of
7482         failure.
7484 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
7486         [BZ #5818]
7487         * nscd/connections.c (dbs): Add initializers for .suggested_module.
7488         (verify_persistent_db): Remove one unnecessary test and add a new one
7489         for bad configuration.
7490         (nscd_init): Improve error reported when persistent database cannot
7491         be reused.
7492         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
7493         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
7494         .suggested_module and .max_db_size and case config file says the
7495         values are zero.
7496         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
7498         [BZ #5854]
7499         * nis/ypclnt.c (yp_order): Fix handling of return value of
7500         do_ypcall_tr call.
7501         Patch by Jeff Moyer <jmoyer@redhat.com>.
7503         * po/fr.po: Update from translation team.
7505 2008-02-22  Andreas Jaeger  <aj@suse.de>,
7506             Carlos O'Donell <carlos@systemhalted.org>
7508         [BZ #5012]
7509         * FAQ.in: Describe why glibc needs to be compiled with
7510         optimization.
7512 2008-02-19  Roland McGrath  <roland@redhat.com>
7514         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
7516 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
7518         [BZ #5737]
7519         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
7520         __USE_MISC is defined.
7522 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
7524         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
7525         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
7526         sys/timerfd.h.
7527         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
7528         timerfd_gettime, timerfd_settime.
7529         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
7530         timerfd_gettime, timerfd_settime for GLIBC_2.8.
7532 2008-02-08  Roland McGrath  <roland@redhat.com>
7534         * elf/elf.h (NT_PPC_SPE): New macro.
7536 2008-02-06  Roland McGrath  <roland@redhat.com>
7538         * Makerules ($(common-objpfx)sysd-rules):
7539         Depend on $(sysdep-makeconfigs).
7541 2008-01-31  Roland McGrath  <roland@redhat.com>
7543         [BZ #5442]
7544         * configure.in: Use -print-file-name if it yields a directory,
7545         for each of include and include-fixed.
7546         * configure: Regenerated.
7548         * Makeconfig (sysd-rules-targets): New variable.
7549         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
7550         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
7552 2008-01-30  Roland McGrath  <roland@redhat.com>
7554         * manual/libc.texinfo: Update back-cover text.
7556         * elf/elf.h (NT_386_TLS): New macro.
7558 2008-01-29  Roland McGrath  <roland@redhat.com>
7560         * Makeconfig (sysd-rules-patterns): New variable.
7561         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
7562         (check-inhibit-asm): New canned sequence, replaces ...
7563         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
7564         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
7565         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
7566         (CFLAGS-rtld): Variable removed.
7568 2008-01-24  Roland McGrath  <roland@redhat.com>
7570         * configure.in: Let configure fragments set base_os.
7571         * configure: Regenerated.
7573 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
7575         * po/ko.po: Update from translation team.
7577 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
7579         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
7581 2008-01-12  Andreas Jaeger  <aj@suse.de>
7583         [BZ #5040]
7584         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
7585         Add EPOLLRDHUP.
7587 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7589         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
7590         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
7591         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
7593 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
7595         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
7596         * elf/dl-close.c (_dl_close): Check for it.
7597         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
7598         (_dl_allocate_static_tls): Likewise.
7599         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
7600         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
7601         to it.
7602         * elf/tst-tls16.c: New file.
7603         * elf/tst-tlsmod16a.c: New file.
7604         * elf/tst-tlsmod16b.c: New file.
7605         * elf/Makefile: Add rules to build and run tst-tls16.
7607 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
7609         [BZ #5628]
7610         * bits/shm.h: Fix comment describing shmid_ds.
7611         * sysdeps/gnu/bits/shm.h: Likewise.
7612         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
7613         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7614         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7615         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7616         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7617         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7618         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7619         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7620         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
7622         [BZ #5607]
7623         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
7624         prototypes.
7625         * conform/data/limits.h-data: Adjust limits changed in v6 and add
7626         additional suffixes.
7627         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
7628         Add optional functions mq_timedreceive and mq_timedsend.
7629         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
7630         * conform/data/pthread.h-data: Fix prototype of
7631         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
7632         * conform/data/semaphore.h-data: Allow time.h definitions.
7633         * conform/data/signal.h-data: Likewise.
7634         * conform/data/stdio.h-data: getw and putw are not required in v6.
7635         * conform/data/stdlib.h-data: Change setstate prototype.
7636         * conform/data/string.h-data: Fix strerror_r prototype.
7637         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
7638         * conform/data/unistd.h-data: pthread_atfork not required in v6.
7639         Fix readlink prototype.
7640         * conform/data/netinet/in.h-data: Add const to in6addr_any and
7641         in6addr_loopback.
7642         * inet/netinet/in.h: Cleanup namespace.
7643         * posix/regex.h: Likewise.
7644         * resolv/netdb.h: Likewise.
7645         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
7646         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7647         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7648         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
7649         of names of in in6_addr.
7650         (default_precedence): Likewise.
7651         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
7652         NULL definition.
7654 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
7656         * conform/data/fmtmsg.h-data: Add missing allows.
7657         * conform/data/ftw.h-data: Likewise.
7658         * conform/data/inttypes.h-data: Likewise.
7659         * conform/data/math.h-data: Likewise.
7660         * conform/data/signal.h-data: Likewise.
7661         * conform/data/net/if.h-data: Likewise.
7662         * conform/data/netinet/in.h-data: Likewise.
7663         * conform/data/sys/socket.h-data: Likewise.
7665         [BZ #5614]
7666         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
7667         (__strtok_r): Simplify.
7668         * string/tester.c (test_strtok_r): Add test case for futile search
7669         with single-character seach string.
7671 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
7673         * po/ko.po: Update from translation team.
7675 2008-01-11  Andreas Jaeger  <aj@suse.de>
7677         [BZ #5600]
7678         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7679         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
7680         kernel header.
7682 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
7684         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
7685         native interface lookup in all the relevant places.
7687 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
7688             Ulrich Drepper  <drepper@redhat.com>
7690         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
7691         field.  Use sockaddr_in6 for source_addr.
7692         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
7693         (match_prefix): Likewise.
7694         (get_label): Likewise.
7695         (get_precedence): Likewise.
7696         (rfc3484_sort): Change to use indirect access to results array.
7697         Adjust to use of sockaddr_in6.  Replace service_order test with
7698         simple index comparison.
7699         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
7700         service_order field.  Adjust qsort_t calls.  Access sorted result
7701         array indirectly through order array.
7702         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
7703         * posix/tst-rfc3484-2.c: Likewise.
7704         * posix/tst-rfc3484-3.c: Likewise.
7706 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
7708         [BZ #5541]
7709         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
7710         pollfd structures.
7711         Patch by André Cruz.
7713         [BZ #5545]
7714         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
7715         (clnt_spcreateerror): Likewise.
7717         [BZ #5553]
7718         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
7719         (public_mEMALIGn): Likewise.
7720         Patch mostly by Daniel Jacobowitz.
7722 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
7724         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
7725         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
7726         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
7727         * stdlib/tst-makecontext2.c: New test.
7729 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
7731         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
7732         defined.
7733         (REINIT_PARAMS): Likewise.  Undefine before end of file.
7734         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
7735         transliteration hooks and REINIT_PARAMS afterwards.
7736         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
7737         status.
7738         (REINIT_PARAMS): Define.
7739         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
7740         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
7741         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
7742         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
7743         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
7744         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
7745         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
7746         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
7747         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
7748         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
7749         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
7750         * iconvdata/tst-iconv7.c: New test.
7752 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
7754         * libio/stdio.h (vscanf): Fix definition for loser compilers.
7756 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
7758         [BZ #5112]
7759         * nscd/connections.c (restart): Fix condition.
7761 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
7763         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
7764         __ctype_toupper_loc): Add __THROW.
7766 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
7768         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
7769         recognition of interface family.
7771         * posix/getconf.c: Update copyright year.
7772         * nss/getent.c: Likewise.
7773         * iconv/iconvconfig.c: Likewise.
7774         * iconv/iconv_prog.c: Likewise.
7775         * elf/ldconfig.c: Likewise.
7776         * catgets/gencat.c: Likewise.
7777         * csu/version.c: Likewise.
7778         * elf/ldd.bash.in: Likewise.
7779         * elf/sprof.c (print_version): Likewise.
7780         * locale/programs/locale.c: Likewise.
7781         * locale/programs/localedef.c: Likewise.
7782         * nscd/nscd.c (print_version): Likewise.
7783         * debug/xtrace.sh: Likewise.
7784         * malloc/memusage.sh: Likewise.
7785         * malloc/mtrace.pl: Likewise.
7786         * debug/catchsegv.sh: Likewise.
7788 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
7790         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7791         second lookup.
7793 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
7795         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7796         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7798 2007-12-17  Roland McGrath  <roland@redhat.com>
7800         * inet/ether_line.c (ether_line): Remove unused variable.
7802 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7804         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7805         and winp.
7806         * login/openpty.c (openpty): Likewise.
7807         * login/pty.h (openpty, forkpty): Likewise.
7808         * manual/terminal.texi (openpty, forkpty): Likewise.
7810 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
7812         * malloc/malloc.c (public_cALLOc): For arenas other than
7813         main_arena, count all bytes inside the mprotect_size range of the
7814         heap as uninitialized.
7816 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
7818         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7819         executable stacks.
7821         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7822         mTRIm for all of them.
7823         (mTRIm): Additionally iterate over all free blocks and use madvise
7824         to free memory for all those blocks which contain at least one
7825         memory page.
7826         * malloc/tst-trim1.c: New file.
7827         * malloc/Makefile (tests): Add tst-trim1.
7829         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7831 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
7833         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7834         First cast argument to long
7835         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7836         Return long.
7837         (__vdso_clock_gettime): Likewise.
7838         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7839         return long.
7841 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
7843         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7844         * locale/nl_langinfo_l.c: Real implementation, copied from
7845         nl_langinfo.c.
7846         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7848 2007-12-01  Jim Meyering  <meyering@redhat.com>
7850         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7851         that would inhibit utf8-optimization of a regexp containing line-
7852         or buffer-anchors, e.g., `^', `$'.
7854 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7856         * time/bug-getdate1.c (do_test): Don't use century values which
7857         aren't valid on 32-bit systems.
7859 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
7861         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
7862         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
7863         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
7864         __strcat_g, __strncat_g): Add __asm__.
7866 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7868         [BZ #5477]
7869         * io/fchmodat.c: Fix typo in stub_warning use.
7870         Patch by Petr Salinger.
7872 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
7874         * iconvdata/hp-thai8.c: New file.
7875         * iconvdata/Makefile: Add rules for hp-thai8.c.
7876         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
7877         * iconvdata/gconv-modules: Likewise.
7879         [BZ #5464]
7880         * iconvdata/hp-greek8.c: New file.
7881         * iconvdata/Makefile: Add rules for hp-greek8.c.
7882         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
7883         * iconvdata/gconv-modules: Likewise.
7885         [BZ #5463]
7886         * iconvdata/hp-turkish8.c: New file.
7887         * iconvdata/Makefile: Add rules for hp-turkish8.c.
7888         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7889         * iconvdata/gconv-modules: Likewise.
7891         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7892         (shrink_heap): ... this new function.
7893         (heap_trim): Call shrink_heap instead of grow_heap.
7895         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7896         case don't call alloc_perturb.
7898 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
7900         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7901         possible.
7902         * sysdeps/unix/sysv/linux/kernel-features.h
7903         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7904         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7906 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
7908         [BZ #5424]
7909         * stdio-common/vfprintf.c: Do not overflow when adding to done.
7910         * stdio-common/Makefile (tests): Add bug22.
7911         * stdio-common/bug22.c: New file.
7913         [BZ #5451]
7914         * time/getdate.c: Fix filling in default values.
7915         * time/bug-getdate1.c: New file.
7916         * time/Makefile: Add rules to build and run bug-getdate1.
7918         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
7919         * iconvdata/ebcdic-es.c: Likewise.
7920         * iconvdata/ebcdic-es-a.c: Likewise.
7921         * iconvdata/ebcdic-uk.c: Likewise.
7922         * iconvdata/iso8859-16.c: Likewise.
7923         * iconvdata/viscii.c: Likewise.
7924         * iconvdata/iso8859-9e.c: Likewise.
7925         * iconvdata/Makefile: Adjust appropriately.
7927         [BZ #5428]
7928         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7929         __need_wint_t.
7931 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7933         [BZ #5427]
7934         * iconvdata/hp-roman9.c: New file.
7935         * iconvdata/Makefile: Add rules for hp-roman9.c.
7936         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7937         * iconvdata/gconv-modules: Likewise.
7939         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7940         * iconvdata/Makefile: Adjust appropriately.
7942         [BZ #5441]
7943         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7944         structure, it's allocated with alloca.
7945         * stdio-common/Makefile (tests): Add bug21.
7946         * stdio-common/bug21.c: New file.
7948 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
7950         [BZ #5452]
7951         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7952         keyword for gcc's braced-groups.
7954 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7956         [BZ #5454]
7957         * inet/ether_line.c: Strip hostname of whitespaces.
7958         * inet/Makefile (tests): Add tst-ether_line.
7959         * inet/tst-ether_line.c: New file.
7961 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
7963         [BZ #5439]
7964         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
7966         [BZ #5435]
7967         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
7969         * stdlib/tst-setcontext.c: Catch the case where the links gets
7970         messed up and we do not reach main again.
7972         * po/ca.po: Update from translation team.
7974 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
7976         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
7977         * posix/regex.h (REG_ENOSYS): Likewise.
7978         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
7980 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
7982         * nscd/nscd.h (MAX_STACK_USE): Define.
7983         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
7984         (gc): Initialize stack_used based on allocation in prune_cache.
7985         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
7986         Clear array before use.
7988         * nscd/aicache.c (addhstaiX): Update statistics counter in case
7989         memory allocation failed.
7990         * nscd/hstcache.c (cache_addhst): Likewise.
7991         * nscd/grpcache.c (cache_addgr): Likewise.
7992         * nscd/servicescache.c (cache_addserv): Likewise.
7993         * nscd/pwdcache.c (cache_addpw): Likewise.
7994         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7996 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
7998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
7999         and creat system calls.
8001         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
8003 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8005         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
8006         Add netiucv/iucv.h.
8007         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
8008         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
8009         protocol.
8010         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
8011         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
8012         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
8014 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8016         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
8017         strncat): Define as macros to avoid compile errors.
8019         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
8020         creat entries.
8022 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
8024         [BZ #5382]
8025         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
8026         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
8027         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
8028         overflow it.
8029         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
8031         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
8032         Return zero in case the thread library is not NPTL.
8034         [BZ #5375]
8035         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
8036         initializing interface list.
8038         [BZ #5378]
8039         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
8040         use result of nss_getgrgid_r if nothing was found.  For other
8041         error return with a failure.
8042         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
8044         * locale/programs/ld-collate.c (collate_read): Fix loop to match
8045         macro name.
8047 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
8049         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
8050         (get_scope): For IPv4 scope, use scopes table.
8051         (fini): Free scopes table if necessary.
8052         (free_scopelist): New function.
8053         (scopecmp): New function.
8054         (gaiconf_init): Also handle scopev4 entries.
8055         * posix/tst-rfc3484.c (do_test): Initialize scopes.
8056         * posix/tst-rfc3484-2.c (do_test): Likewise.
8057         * posix/gai.conf: Document scopev4 defaults.
8058         * posix/Makefile (tests): Add tst-rfc3484-3.
8059         * posix/tst-rfc3484-3.c: New file.
8061         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
8062         Teredo tunnels.
8063         * posix/gai.conf: Update for current default tables.
8065 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
8067         * po/tr.po: Update from translation team.
8069 2007-11-18  Roland McGrath  <roland@frob.com>
8071         * manual/arith.texi (Remainder Functions): Spelling fix.
8072         From Shaun Silk <genix@mysoul.com.au>.
8074         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
8076 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
8078         * po/zh_CN.po: Update from translation team.
8080         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
8081         Add sys/signalfd.h and sys/eventfd.h.
8083 2007-11-15  Bruno Haible  <bruno@clisp.org>
8085         [BZ #5346]
8086         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
8087         union.
8088         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
8089         (DCIGETTEXT): Change the allocation of the 'search' variable so that
8090         it needs only fixed stack space. Delay the initialization of
8091         msgid_len until it is needed.
8093 2007-11-15  Andreas Jaeger  <aj@suse.de>
8095         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
8096         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
8098 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
8100         * po/ko.po: Update from translation team.
8102 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
8104         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
8105         significantly.  The device type is also part of the ifinfomsg data.
8107         * po/sv.po: Update from translation team.
8108         * po/nl.po: Likewise.
8110         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
8111         to wake up in 24 hours.
8113         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
8115 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
8117         * po/cs.po: Update from translation team.
8118         * po/pl.po: Likewise.
8120         * include/ifaddrs.h: Remove in6ai_temporary.
8121         (struct in6addrinfo): Add index element.
8122         Declare __check_native.
8123         * inet/Makefile (aux): Add check_native.
8124         * sysdeps/unix/sysv/linux/check_native.c: New file.
8125         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
8126         IFA_F_TEMPORARY.  Pass back ifa_index.
8127         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
8128         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
8129         call __check_native if necessary.
8130         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
8131         to sort addresses.  Pass information about the results.
8132         * posix/tst-rfc3484.c: Adjust for addition of index field and change
8133         of rfc3484_sort interface.
8134         * posix/tst-rfc3484-2.c: Likewise.
8136         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
8137         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
8138         for _quicksort.
8139         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
8140         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
8141         on as third parameter to compare function and _quicksort.
8142         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
8143         to the compare function.
8144         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
8145         * Versions.def: Add GLIBC_2.8 for libc.
8147         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
8148         * posix/tst-rfc3484-2.c: Likewise.
8150         * include/kernel-features.h: Moved to...
8151         * sysdeps/mach/hurd/kernel-features.h: ...here.
8153 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
8155         * sysdeps/i386/i586/memcpy_chk.S: New file.
8156         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
8157         * sysdeps/i386/i586/memset_chk.S: Likewise.
8159 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
8161         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
8162         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
8163         list of interfaces.  Also store prefix length.
8164         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
8165         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
8166         prefix if source and destination address are in the same subnet.
8167         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
8168         Always look for matching record in in6ai list.
8169         Correct source_addr_len value for IPv6->IPv4 converted records.
8171 2007-11-11  Roland McGrath  <roland@frob.com>
8173         * include/kernel-features.h: New file.
8175 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
8177         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
8178         complications for 64-bit platforms.
8180         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
8181         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
8182         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
8183         open64_2.
8184         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
8185         entries.
8186         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8187         * sysdeps/wordsize-64/alphasort.c: New file.
8188         * sysdeps/wordsize-64/alphasort64.c: New file.
8189         * sysdeps/wordsize-64/fseeko.c: New file.
8190         * sysdeps/wordsize-64/fseeko64.c: New file.
8191         * sysdeps/wordsize-64/ftello.c: New file.
8192         * sysdeps/wordsize-64/ftello64.c: New file.
8193         * sysdeps/wordsize-64/ftw.c: New file.
8194         * sysdeps/wordsize-64/ftw64.c: New file.
8195         * sysdeps/wordsize-64/iofgetpos.c: New file.
8196         * sysdeps/wordsize-64/iofgetpos64.c: New file.
8197         * sysdeps/wordsize-64/iofopen.c: New file.
8198         * sysdeps/wordsize-64/iofopen64.c: New file.
8199         * sysdeps/wordsize-64/iofsetpos.c: New file.
8200         * sysdeps/wordsize-64/iofsetpos64.c: New file.
8201         * sysdeps/wordsize-64/lockf.c: New file.
8202         * sysdeps/wordsize-64/lockf64.c: New file.
8203         * sysdeps/wordsize-64/mkostemp.c: New file.
8204         * sysdeps/wordsize-64/mkostemp64.c: New file.
8205         * sysdeps/wordsize-64/mkstemp.c: New file.
8206         * sysdeps/wordsize-64/mkstemp64.c: New file.
8207         * sysdeps/wordsize-64/scandir.c: New file.
8208         * sysdeps/wordsize-64/scandir64.c: New file.
8209         * sysdeps/wordsize-64/tmpfile.c: New file.
8210         * sysdeps/wordsize-64/tmpfile64.c: New file.
8211         * sysdeps/wordsize-64/versionsort.c: New file.
8212         * sysdeps/wordsize-64/versionsort64.c: New file.
8213         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
8214         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
8215         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
8216         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
8217         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
8218         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
8219         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
8220         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
8221         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
8222         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
8223         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
8224         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
8226         * crypt/sha256-crypt.c: Fix a comment.
8227         * crypt/sha512-crypt.c: Likewise.
8229 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
8231         * sysdeps/x86_64/memset.S: Add sfence after movnti.
8233 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
8235         [BZ #5277]
8236         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
8237         because output buffer is too small break, don't loop.
8238         * iconvdata/Makefile (tests): Add bug-iconv6.
8239         * iconvdata/bug-iconv6.c: New file.
8241 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
8243         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
8244         with size_t type.
8245         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
8246         size_t.  Add casts where needed.
8248         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
8249         old headers, don't call avc_has_perm if we don't have the
8250         permission information.
8252 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
8254         * elf/rtld.c (dl_main): Use the page size to find the map start.
8256 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
8258         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
8259         Patch by Szymon Siwek <sls@poczta.wp.pl>.
8261         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
8262         when the lookup call failed.
8264         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
8265         Add prune_cond and wakeup_time.
8266         (CACHE_PRUNE_INTERNAL): Define.
8267         Update declarations of prune_cache and setup_thread.
8268         * nscd/connections.c (dbs): Update initializers.
8269         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
8270         (nscd_init): Default number of threads is now 4.
8271         (invalidate_cache): Take lock before calling prune_cache.
8272         (handle_request): If SELinux forbids the request, say so.
8273         (readylist_cond): Use static initializer.
8274         (nscd_run_prune): New function.  Used only by pruning threads.
8275         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
8276         here.
8277         (fd_ready): Update nscd_run reference.
8278         (start_threads): No need to initialize readylist_cond.
8279         Start pruning threads separately.
8280         * nscd/nscd_setup_thread.c: Change return value type to int and always
8281         return 0.
8282         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
8283         to int and return nonzero value if we can use the TID address hack.
8284         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
8285         the database is later than the new entry's timeout, update the
8286         wakeup time and wake the cleanup thread.
8287         (prune_cache): Return seconds the next entry in the database is still
8288         valid.  Remove locking for pruning here.
8289         * nscd/nscd.conf: Document default number of threads.
8291 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
8293         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
8294         stack is properly aligned for the target function.
8295         Correct unwind info.
8297         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
8298         when using auditing libraries.
8300 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
8302         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
8303         _nss_dns_getnetbyaddr2_r.
8304         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
8305         extra parameter to getanswer_r.
8306         (_nss_dns_getnetbyaddr_r): Now a wrapper around
8307         _nss_dns_getnetbyaddr2_r.
8309         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
8310         gethstbynm3_r.
8311         * nscd/gethstbynm2_r.c: Remove.
8312         * nscd/gethstbynm3_r.c: New file.
8313         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
8314         __gethostbyaddr_r.
8315         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
8316         __gethostbyaddr_r compatibility wrapper.
8317         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
8318         determining timeout of entry.
8319         (lookup): Take new parameter and pass it to __gethostbyname3_r and
8320         __gethostbyaddr2_r.
8321         (addhstbyX): Pass reference to variable for TTL to lookup and
8322         cache_addhst.
8323         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
8324         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
8325         and __nss_next2.  Remove __nss_services_lookup.
8326         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
8327         Add compat wrapper.
8328         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
8329         __nss_next2.
8330         * nss/getXXent_r.c: Likewise.
8331         * nss/getnssent_r.c: Likewise.
8332         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
8333         does not exist in module, try the optional second name.
8334         (__nss_next2): New function.
8335         (__nss_next): Now wrapper around __nss_next2.
8336         * nss/nsswitch.h: Adjust __nss_lookup prototype.
8337         Declare __nss_next2.
8338         Adjust definition of db_lookup_function type.
8339         * nss/service-lookup.c: Define NO_COMPAT.
8340         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
8341         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
8342         * inet/ether_ntoh.c: Likewise.
8343         * sunrpc/netname.c: Likewise.
8344         * sunrpc/publickey.c: Likewise.
8345         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
8346         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
8347         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
8348         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
8349         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
8351         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
8353         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
8355 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
8357         [BZ #5204]
8358         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
8359         * crypt/sha512c-test.c: Likewise.
8361         [BZ #5225]
8362         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
8363         to keep track of end of %[ format string element.
8364         * stdio-common/Makefile (tests): Add bug20.
8365         * stdio-common/bug20.c: New file.
8367         [BZ #5222]
8368         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
8369         path elements in counting mode.
8371 2007-10-27  Andreas Jaeger  <aj@suse.de>
8373         [BZ #5040]
8374         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
8376         [BZ #3112]
8377         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
8378         (__cleanup): Free shared library when exiting.
8379         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
8380         (__cleanup): Free shared library when exiting.
8382 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
8384         [BZ #2549]
8385         * math/libm-test.inc (check_float_internal): Support
8386         denormalized return.
8388 2007-10-23  Andreas Jaeger  <aj@suse.de>
8390         [BZ #5208]
8391         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
8392         __LONG_LONG_PAIR to handle little endian byte order.
8393         Suggested by abhishekrai@google.com
8395 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
8397         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
8399 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
8401         * nscd/cache.c (prune_cache): Move test for modified file outside
8402         of locking.
8404 2007-10-21  Andreas Jaeger  <aj@suse.de>
8406         * manual/texinfo.tex: Update to latest version.
8408         * manual/sysinfo.texi (System Parameters): Fix Formatting.
8410         * manual/arith.texi (Status bit operations): Fix formatting.
8412         * manual/errno.texi (Error Messages): Fix formatting.
8414         * manual/sysinfo.texi (System Parameters): Fix formatting.
8416         * manual/libc.texinfo: Update VERSION and UPDATED.
8418 2007-10-19  Roland McGrath  <roland@redhat.com>
8420         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
8422 2007-10-06  David S. Miller  <davem@davemloft.net>
8424         * configure.in: Add sparcv9v2 and sparc64v2.
8425         * scripts/config.sub: Likewise.
8426         * configure: Regenerate.
8427         * elf/elf.h (HWCAP_SPARC_N2): New.
8428         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
8429         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
8430         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
8431         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
8432         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
8433         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
8434         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
8436 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
8438         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
8439         even if the poll result indicates there is data to read.
8440         Patch by Jeff Moyer <jmoyer@redhat.com>.
8442 2007-10-18  Roland McGrath  <roland@redhat.com>
8444         * elf/elf.h (NT_PPC_VMX): New macro.
8446 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8448         * version.h (VERSION): Set to 2.7.90.
8450 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
8452         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
8453         weak_alias.
8455 2007-10-17  Roland McGrath  <roland@frob.com>
8457         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
8458         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
8460 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8462         * version.h (VERSION): Bump to 2.7.
8463         * include/features.h (__GLIBC_MINOR__): Bump to 7.
8465         [BZ #5186]
8466         * time/tzset.c (__tz_convert): Don't force testing for a change of
8467         TZ if not called from localtime.  But then also see whether the
8468         file changed, in case __use_tzfile is set.
8470         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
8471         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8472         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8473         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8474         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8475         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8476         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
8477         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8479 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
8481         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
8482         and admin selects to be able to replace the gai.conf file, lock
8483         data structures around the qsort call.
8485 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8487         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
8488         new memset.
8489         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
8490         too high for the improvements.  Implement bzero unconditionally for
8491         use in libc.
8493 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8494             Jakub Jelinek  <jakub@redhat.com>
8496         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
8497         even when time_t is 32-bit.
8498         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
8499         timezone data read by __tzfile_default.  Ensure __tzname[0] is
8500         always set after the search.
8502 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8504         * time/tzfile.c (__tzfile_read): Help the compiler recognize
8505         unreachable code on 32-bit machines.
8507 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8509         [BZ #5184]
8510         * time/strftime_l.c: Include stdbool.h.
8511         (my_strftime): New wrapper, old function renamed to...
8512         (__strftime_internal): ... new function.  Add tzset_called
8513         argument, pass it down to recursive calls, don't call tzset ()
8514         if already true, set to true after call to tzset ().
8516 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8518         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
8519         into account when copying TZ string.
8521 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8523         * time/tzfile.c (__tzfile_compute): For use_last case set i to
8524         num_transition rather than num_transitions - 1.
8526 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8528         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
8529         PIC indirect jump.
8531         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
8532         a local label rather than HIDDEN_JUMPTARGET.
8534 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8536         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
8537         (init_cacheinfo): Initialize it.
8538         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
8539         Always define bzero.
8540         Remove non-glibc code.
8541         * sysdeps/x86_64/bzero.S: Make an empty file.
8543 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
8545         * sysdeps/x86_64/cacheinfo.c
8546         (__x86_64_preferred_memory_instruction): New.
8547         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
8549         * sysdeps/x86_64/memset.S: Rewrite.
8551 2007-10-15  Roland McGrath  <roland@redhat.com>
8553         * po/libc.pot: Regenerated.
8555 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8557         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
8558         pointers.
8560         [BZ #3425]
8561         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
8562         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
8563         address record to T_A/T_AAAA requests.
8565 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
8567         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
8569         * posix/glob.c: Add some branch prediction throughout.
8571         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
8572         read from nscd.
8574         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
8575         service_order.
8576         (rfc3484_sort): Make sure that even if qsort doesn't support
8577         stable sorting out sorting here is stable by comparing service_order.
8578         (getaddrinfo): Initialize service_order.
8579         * posix/tst-rfc3484.c (do_test): Adjust for addition of
8580         service_order field to sorting structure.
8581         * posix/tst-rfc3484-2.c (do_test): Likewise.
8583         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
8584         * time/tzset.c (tzset_internal): Break TZ string parsing out into
8585         __tzset_parse_tz and updating of daylight, timezone, tzname into
8586         update_vars.
8587         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
8588         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
8589         happens in __tz_compute.
8590         * time/tzfile.c (__tzfile_read): Also read TZ string.
8591         (find_transition): Fold into __tzfile_compute.
8592         (__tzfile_compute): For times beyond the last transition try to
8593         use the TZ string.
8594         * timezone/tst-timezone.c: Information in daylight and tzname does
8595         change for Asia/Tokyo timezone with more concrete information.
8596         Remove the test.
8598         * include/stdio.h: Add libc_hidden_proto for ftello.
8599         * libio/ftello.c: Add libc_hidden_def.
8601         [BZ #1140]
8602         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
8603         on the specified time and not the last entries in the file.  Move
8604         code to determine tzname[] to...
8605         (find_transition): ...here.  Add ugly guess for times before the
8606         first transition.
8608 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8610         [BZ #3195]
8611         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
8612         no entry.
8613         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
8614         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8615         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8616         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8618         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
8619         read mechanism when there are no group members and avoid no-op
8620         read syscall in this case.
8622         [BZ #3242]
8623         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
8624         (__readall): If reading failed due to EAGAIN error wait a bit
8625         and possibly try again.
8626         (__readvall): Likewise.
8628 2007-10-13  Bruno Haible  <bruno@clisp.org>
8630         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
8631         when we cannot recode the message.
8633 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8635         [BZ #4359]
8636         * libio/__freading.c (__freading): Don't return true for
8637         write-only streams.  For read/write streams, check whether we
8638         performed a read operation already.
8639         * libio/Makefile (tests): Add tst-ext2.
8640         * libio/tst-ext2.c: New file.
8642 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8644         * locale/programs/repertoire.c (repertoire_read): Always free
8645         memory for repertoire file name [Coverity CID 270].
8647         * elf/cache.c (save_aux_cache): Free memory allocated for
8648         temporary file name [Coverity CID 267].
8650 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8652         * misc/Makefile (headers): Add bits/error.h.
8654 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8656         * posix/fnmatch_loop.c: Take rule index returned as part of
8657         findidx return value into account when accessing weights.
8658         * posix/regcomp.c: Likewise.
8659         * posix/regexec.c: Likewise.
8661         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
8662         (skip_to): Fix problems with parameter of elifdef/elifndef.
8664 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
8666         * iconv/gconv_simple.c: Add some branch prediction.
8668 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8670         * locale/programs/ld-collate.c (collate_read): If ignore_content
8671         and nowtok is tok_define, eat any tok_eol tokens.
8673 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
8675         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
8676         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
8678         * inet/netinet/in.h: Don't include bits/socket.h.
8679         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
8680         macro.
8681         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8683 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
8685         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
8686         and tok_elifndef.
8687         * locale/programs/locfile-kw.gperf: Likewise.
8688         * locale/programs/ld-collate.c: Implement primitive preprocessor.
8690 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
8692         * stdio-common/printf-parse.h: Include string.h and wchar.h.
8693         (__find_specwc): Change into __extern_always_inline function.
8694         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
8695         (__parse_one_specmb): Remove ps argument.
8696         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
8697         Adjust __find_specmb and __parse_one_specmb callers.
8698         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
8699         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
8700         Removed.
8701         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
8702         caller.
8704 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
8706         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
8707         with some Pentium Ds.
8709 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
8711         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
8712         __read not read.
8713         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
8714         __write not write.
8716 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
8718         [BZ #181]
8719         * locale/C-time.c: Set week_1stday data to 19971201.
8720         * locale/programs/ld-time.c (time_finish): Default for
8721         first_workday is Monday.
8723         [BZ #2633]
8724         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
8726         [BZ #5103]
8727         * posix/glob.c (glob): Recognize patterns starting \/.
8728         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
8729         (main): Add test for pattern starting \/.
8731         * misc/error.h: Use __const instead of const.
8732         * misc/bits/error.h: Likewise.
8734 2007-10-07  Andreas Jaeger  <aj@suse.de>
8736         * include/bits/error.h: New file.
8738         * misc/bits/error.h (error_at_line): Fix prototype.
8740 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
8742         [BZ #3924]
8743         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
8744         more little bugs in creating the stack frame when pltexit has to
8745         be called.
8747         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
8748         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8750         [BZ #4407]
8751         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
8752         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8753         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8754         * math/libm-test.inc: Add test for this case.
8756         [BZ #5010]
8757         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
8758         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
8759         map service succeeded.
8760         (svc_is_mapped): New function.
8761         (svc_unregister): Use it before trying to unmap service.
8763 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
8765         * timezone/zic.c: Update from tzcode2007h.
8767         [BZ #5063]
8768         * timezone/africa: Update from tzdata2007h.
8769         * timezone/antarctica: Likewise.
8770         * timezone/asia: Likewise.
8771         * timezone/australasia: Likewise.
8772         * timezone/europe: Likewise.
8773         * timezone/leapseconds: Likewise.
8774         * timezone/northamerica: Likewise.
8775         * timezone/southamerica: Likewise.
8776         * timzeone/zone.tab: Likewise.
8778         [BZ #5104]
8779         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8781         [BZ #5113]
8782         * string/bits/string2.h (__strdup): Cast parameters to calloc to
8783         avoid warning with -Wconversion.
8784         (__strndup): Likewise.
8785         Half the patch by Christian Iseli <christian.iseli@licr.org>.
8787         [BZ #5112]
8788         * nscd/connections.c (restart): Don't resync if database is
8789         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8791         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8792         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
8794         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8795         evetnfd_read, eventfd_write.
8796         * sysdeps/unix/sysv/linux/eventfd.c: New file.
8797         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8798         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8799         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8800         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8801         eventfd_write for GLIBC_2.7.
8803         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8804         * sysdeps/unix/sysv/linux/signalfd.c: New file.
8805         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8806         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8808 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
8810         * stdlib/msort.c: Include stdint.h.
8811         (struct msort_param): New type.
8812         (msort_with_tmp): Use struct msort_param pointer for unchanging
8813         parameters.  Add optimized handling for several common sizes
8814         and indirect sorting mode.
8815         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
8816         sorting.
8817         Suggested by Belazougui Djamel .
8819         * stdlib/Makefile (tests): Add tst-qsort2.
8820         * stdlib/tst-qsort2.c: New test.
8822 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
8824         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8825         for dup2 in case another thread races with the current one.  Retry
8826         in this case.
8828         * misc/error.h: Remove support for use outside of libc.  We have to
8829         include <features.h> now.  Include <bits/error.h> if possible.
8830         * misc/bits/error.h: New file.
8832 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
8834         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8835         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8836         __extern_always_inline functions unconditionally, drop macros.
8838         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8839         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8840         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8842         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8843         add __artificial__ attribute.
8845 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
8847         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8848         backward to forward direction.
8850         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8852         [BZ #645]
8853         * locale/programs/ld-collate.c (collate_finish): Compare against last
8854         used section which is known to have rules defined.
8855         (collate_read): After order_start, correctly record order of sections
8856         and queue sections up.
8858 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
8860         [BZ #5071]
8861         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
8862         the same number of pages.
8863         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
8865         * locale/programs/ld-collate.c (collate_read): After initial copy
8866         statement, continue in state 0.
8868         * include/stdio_ext.h (__fsetlocking): Define as macro.
8870 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
8872         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
8873         of section order.
8875         * po/pt_BR.po: Fix typo.
8877 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
8879         * iconvdata/Makefile (modules): Add ISO8859-9E.
8880         (distribute): Add iso8859-9e.c.
8881         (gen-8bit-gap-modules): Add iso8859-9e.
8882         * iconvdata/iso8859-9e.c: New file.
8883         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
8884         * iconvdata/TESTS: Likewise.
8885         * iconvdata/tst-tables.sh: Likewise.
8887         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8889         * locale/iso-639.def: Add several new entries.
8891 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8893         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8894         void * pointers instead of struct link_map **.
8895         (_dl_scope_free): Change argument type to void *.
8896         * include/link.h (struct link_map): Change type of l_reldeps
8897         to struct link_map_reldeps, move l_reldepsact into that
8898         struct too.
8899         * elf/dl-deps.c: Include atomic.h.
8900         (_dl_map_object_deps): Only change l->l_initfini when it is
8901         fully populated, use _dl_scope_free for freeing it.  Optimize
8902         removal of libs from reldeps by using l_reserved flag, when
8903         some removal is needed, allocate a new list instead of
8904         reallocating and free the old with _dl_scope_free.  Adjust
8905         for l_reldeps and l_reldepsact changes.
8906         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
8907         searching in l_initfini and l_reldeps without holding dl_load_lock.
8908         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8909         l_reldepsact changes.
8910         * elf/dl-close.c (_dl_close_worker): Likewise.
8911         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8913 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
8915         * iconvdata/Makefile (modules): Add KOI8-RU.
8916         (distribute): Add koi8-ru.c.
8917         (gen-8bit-gap-modules): Add koi8-ru.
8918         * iconvdata/koi8-ru.c: New file.
8919         * iconvdata/gconv-modules: Add entries for KOI8-RU.
8920         * iconvdata/TESTS: Likewise.
8921         * iconvdata/tst-tables.sh: Likewise.
8923         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8925 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
8927         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8928         with __warning__/__error__ attributes.
8929         (__warnattr): Define.
8930         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8931         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8932         __warnattr.
8933         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8934         of __*_chk if compile time detectable overflow is found.
8935         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8936         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8937         with __warnattr.
8938         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8939         instead of __*_chk if compile time detectable overflow is found.
8940         (__gets_alias): Rename to...
8941         (__gets_warn): ... this.  Add __warnattr.
8942         (gets): Call __gets_warn instead of __gets_alias.
8943         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8944         aliases with __warnattr.
8945         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8946         time detectable overflow is found.
8947         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8948         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8949         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8950         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8951         __getdomainname_chk_warn): New aliases with __warnattr.
8952         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8953         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8954         __*_chk_warn instead of __*_chk if compile time detectable overflow
8955         is found.
8956         (__getgroups_chk): Rename argument to __listlen from listlen.
8957         (__getwd_alias): Rename to...
8958         (__getwd_warn): ... this.  Add __warnattr.
8959         (getwd): Call __getwd_warn instead of __getwd_alias.
8960         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8961         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8962         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8963         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8964         __wcsnrtombs_chk_warn): New aliases with __warnattr.
8965         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
8966         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
8967         compile time detectable overflow is found.
8968         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
8969         to use __*_chk or not.
8970         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
8971         in comparisons which function should be called and in __*_chk*
8972         arguments.  Call __*_chk_warn instead of __*_chk if compile time
8973         detectable overflow is found.
8974         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
8975         __*_chk argument.
8976         * debug/tst-chk1.c (do_test): Add a few more tests.
8978 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
8980         [BZ #5058]
8981         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
8982         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
8983         (_nl_unload_domain): Finalize conversions_lock.
8984         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
8985         handling table of known conversions.
8987 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8989         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
8990         close_not_cancel_no_status instead of close.
8992 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
8994         [BZ #5028]
8995         * posix/regcomp.c (lookup_collation_sequence_value): Check that
8996         nrules != 0 for multibyte chars.
8998 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
9000         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
9001         Provide better error message in case the type is unknown.
9003         [BZ #4963]
9004         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
9005         * string/stratcliff.c: Make usable to test wide char functions.
9006         * wcsmbs/wcsatcliff.c: New file.
9007         * wcsmbs/Makefiel (tests): Add wcsatcliff.
9009         [BZ #4972]
9010         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
9011         (distribute): Add mac-centraleurope.c.
9012         (gen-8bit-gap-modules): Add mac-centraleurope.
9013         * iconvdata/mac-centraleurope.c: New file.
9014         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
9015         * iconvdata/TESTS: Likewise.
9016         * iconvdata/tst-tables.sh: Likewise.
9018         [BZ #5043]
9019         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
9021 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
9023         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
9024         from __x86_64_core_cache_size_half.
9025         (init_cacheinfo): Compute shared cache size for AMD processors with
9026         shared L3 correctly.
9027         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
9028         name change.
9029         Patch in large parts by Evandro Menezes.
9031 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
9033         * elf/dl-lookup.c (add_dependency): Handle failing memory
9034         allocation for dependency list.  Remove unnecessary check.
9036         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
9037         open/close when determining source addresses.
9039         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
9040         sha512-crypt, and sha512.
9041         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
9042         (distribute): Add sha256.h and sha512.h.
9043         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
9044         and call the appropriate code.
9045         * crypt/sha256-crypt.c: New file.
9046         * crypt/sha256.c: New file.
9047         * crypt/sha256.h: New file.
9048         * crypt/sha256c-test.c: New file.
9049         * crypt/sha256test.c: New file.
9050         * crypt/sha512-crypt.c: New file.
9051         * crypt/sha512.c: New file.
9052         * crypt/sha512.h: New file.
9053         * crypt/sha512c-test.c: New file.
9054         * crypt/sha512test.c: New file.
9056 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
9058         * misc/bits/syslog.h (syslog): Remove extraneous argument from
9059         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
9060         __syslog_chk.
9062 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
9064         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
9065         %as in fscanf format strings.
9067         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
9068         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
9069         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
9070         Likewise.
9071         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
9072         Likewise.
9074         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
9075         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
9076         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
9077         * elf/dl-sym.c (do_sym): Likewise.
9078         * include/link.h (struct link_map): Add l_serial field.
9079         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
9080         * elf/dl-lookup.c (add_dependency): Add flags argument.
9081         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
9082         flags, use THREAD_GSCOPE_RESET_FLAG before and
9083         THREAD_GSCOPE_SET_FLAG after
9084         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
9085         Don't dereference map until it has been found on some list.
9086         If map->l_serial changed, return -1.
9088 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
9090         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
9091         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
9092         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
9093         libc_hidden_proto.
9094         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
9095         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
9096         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
9097         add libc_hidden_proto.
9098         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
9099         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
9100         conformance requested.
9101         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
9102         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
9103         conformance requested.
9104         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
9105         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
9106         conformance requested.
9107         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
9108         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
9109         ISO C99 or POSIX conformance requested.
9110         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
9111         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
9112         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
9113         and __isoc99_vsscanf@@GLIBC_2.7.
9114         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
9115         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
9116         (tests): Add scanf14.
9117         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
9118         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
9119         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
9120         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
9121         CFLAGS-isoc99_scanf.c): Add $(exceptions).
9122         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
9123         from using internal headers.
9124         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
9125         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
9126         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
9127         and __isoc99_vswscanf@@GLIBC_2.7.
9128         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
9129         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
9130         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
9131         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
9132         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
9133         * stdio-common/isoc99_scanf.c: New file.
9134         * stdio-common/isoc99_vsscanf.c: New file.
9135         * stdio-common/isoc99_vscanf.c: New file.
9136         * stdio-common/isoc99_vfscanf.c: New file.
9137         * stdio-common/isoc99_fscanf.c: New file.
9138         * stdio-common/isoc99_sscanf.c: New file.
9139         * wcsmbs/isoc99_fwscanf.c: New file.
9140         * wcsmbs/isoc99_vswscanf.c: New file.
9141         * wcsmbs/isoc99_swscanf.c: New file.
9142         * wcsmbs/isoc99_wscanf.c: New file.
9143         * wcsmbs/isoc99_vwscanf.c: New file.
9144         * wcsmbs/isoc99_vfwscanf.c: New file.
9145         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
9146         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
9147         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
9148         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
9149         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
9150         * stdio-common/scanf14.c: New test.
9151         * stdio-common/scanf15.c: New test.
9152         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9153         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
9154         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
9155         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
9156         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
9157         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
9158         __nldbl___isoc99_scanf@@GLIBC_2.7,
9159         __nldbl___isoc99_fscanf@@GLIBC_2.7,
9160         __nldbl___isoc99_sscanf@@GLIBC_2.7,
9161         __nldbl___isoc99_vscanf@@GLIBC_2.7,
9162         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
9163         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
9164         __nldbl___isoc99_wscanf@@GLIBC_2.7,
9165         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
9166         __nldbl___isoc99_swscanf@@GLIBC_2.7,
9167         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
9168         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
9169         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
9170         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
9171         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
9172         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
9173         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
9174         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
9175         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
9176         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
9177         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
9178         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
9179         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
9180         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
9181         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
9182         functions.
9183         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
9184         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
9185         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
9186         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
9187         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
9188         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
9189         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
9190         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
9191         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
9192         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
9193         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
9194         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
9196         * stdio-common/Makefile (tests): Add scanf13.
9197         (scanf13-ENV): New.
9198         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
9199         m modifier followed by l.
9200         (STRING_ARG): Add width argument.
9201         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
9202         <case L_('C')>: Handle %mlc and %mC.
9203         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
9204         arguments.
9205         * stdio-common/scanf13.c: New test.
9207         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
9208         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
9210 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
9212         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
9213         type and __THROW marker of splice, vmsplice, and tee.
9214         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9215         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9216         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9217         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9218         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9219         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9220         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9221         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
9222         as cancellation points.
9224 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
9226         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
9227         parse more than three parts of the version number.
9229 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
9231         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
9232         modifier.  Patch by Jakub Jelinek.
9234 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
9236         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
9237         call_fallocate in misc subdir.
9238         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
9239         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
9240         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
9241         instead of __fallocate64.
9242         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
9244 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
9246         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
9247         * rt/Makefile (headers): Add bits/mqueue2.h.
9248         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
9249         optimizing with GCC and __va_arg_pack_len is defined.
9250         * rt/bits/mqueue2.h: New file.
9251         * rt/mq_open.c (__mq_open): Renamed from mq_open.
9252         (mq_open): New strong_alias.
9253         (__mq_open_2): New function.
9254         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
9255         (mq_open): New strong_alias.
9256         (__mq_open_2): New function.
9257         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
9258         * Versions.def (librt): Add GLIBC_2.7 version.
9259         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
9260         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
9262         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
9263         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
9264         is defined rather than when not C++.
9265         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
9266         __openat64_alias): New redirects.
9267         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
9268         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
9269         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
9270         (open, open64, openat, openat64): Rewrite as __extern_always_inline
9271         functions instead of function-like macros.
9273 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9275         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
9276         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
9277         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
9279 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
9281         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
9282         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
9284 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
9286         * inet/tst-network.c: Increment ERRORS for failing tests.
9288 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
9290         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
9291         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
9292         implement as __extern_always_inline function.
9293         (vsyslog): Define as __extern_always_inline function unconditionally.
9294         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
9295         When __va_arg_pack is defined, implement as __extern_always_inline
9296         functions.
9297         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9298         __extern_always_inline functions unconditionally.
9299         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
9300         bits/stdio2.h will be included.
9301         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
9302         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
9303         implement as __extern_always_inline functions.
9304         (vswprintf, vwprintf, vfwprintf): Define as
9305         __extern_always_inline functions unconditionally.
9306         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
9308 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
9310         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
9311         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
9312         attribute.
9313         * include/features.h (__USE_EXTERN_INLINES): Define only when
9314         __extern_inline is defined.
9315         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
9316         is defined instead of when not __cplusplus.
9317         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
9318         is defined instead of when not __cplusplus.
9319         * socket/sys/socket.h: Include bits/socket2.h when
9320         __extern_always_inline is defined instead of when not __cplusplus.
9321         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
9322         is defined instead of when not __cplusplus.
9323         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
9324         is defined instead of when not __cplusplus.
9325         * string/string.h: Include bits/string3.h when __extern_always_inline
9326         is defined instead of when not __cplusplus.
9327         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
9328         is defined instead of when not __cplusplus.
9329         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
9330         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
9331         is not defined.
9332         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
9333         defined __extern_always_inline instead of !defined __cplusplus.
9334         * libio/bits/stdio-ldbl.h: Likewise.
9335         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9336         * misc/bits/syslog.h (syslog): Don't define for C++.
9337         (vsyslog): Use __extern_always_inline function for C++ instead of
9338         a macro.
9339         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
9340         whenever that macro is defined.
9341         (vprintf): Don't provide the inline for C++.
9342         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
9343         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
9344         define the macros for C++.
9345         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9346         __extern_always_inline functions for C++.
9347         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
9348         stat64, lstat64, fstat64, fstatat64): Don't define if not
9349         __USE_EXTERN_INLINES.
9350         * wcsmbs/bits/wchar2.h: Fix #error message.
9351         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
9352         (vswprintf, vwprintf, vfwprintf): Define using
9353         __extern_always_inline functions for C++.
9354         * string/bits/string3.h: Don't #undef macros if __cplusplus.
9355         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
9356         strncpy, strcat, strncat): Define as __extern_always_inline
9357         functions instead of macros for C++.
9358         * math/bits/cmathcalls.h: Guard __extern_inline routines with
9359         defined __extern_inline.
9360         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
9361         to __extern_inline whenever that macro is defined.
9362         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9363         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9364         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
9365         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
9366         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9367         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9368         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9369         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9370         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
9371         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
9372         prototypes.  Only provide __extern_inline routines if
9373         __USE_EXTERN_INLINES.
9374         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
9375         tests.
9376         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
9377         For now avoid some *printf tests in C++.  Skip all testing
9378         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
9379         is not.
9380         * debug/tst-chk4.cc: New file.
9381         * debug/tst-chk5.cc: New file.
9382         * debug/tst-chk6.cc: New file.
9383         * debug/tst-lfschk4.cc: New file.
9384         * debug/tst-lfschk5.cc: New file.
9385         * debug/tst-lfschk6.cc: New file.
9386         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
9387         prototypes in C++.
9388         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
9389         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
9390         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
9392 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
9394         * po/cs.po: Update from translation team.
9396 2007-09-11  Roland McGrath  <roland@redhat.com>
9398         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
9399         compiling.
9401 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9403         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
9405 2007-09-05  Roland McGrath  <roland@redhat.com>
9407         * manual/signal.texi (Signaling Another Process): Typo fix.
9408         From Karl Berry <karl@freefriends.org>.
9410 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
9412         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
9413         zero if not defined.
9414         (make_request): Recognize optimistic addresses and treat them like
9415         deprecated addresses.
9416         Reported by Neil Horman <nhorman@redhat.com>.
9418 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
9420         * nscd/connections.c (send_ro_fd): Also transfer file size.
9421         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
9422         file size don't call fstat.
9424         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
9425         ahead and map the file.  This should always be correct and we can
9426         catch problems later.
9428 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
9430         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
9431         prototypes.
9432         (__fread_alias, __fread_unlocked_alias): New aliases.
9433         (fread): New extern inline.
9434         (fread_unlocked): Likewise.  Undef macro before definition of
9435         the inline function.
9436         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
9437         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
9438         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
9439         and __fread_unlocked_chk@@GLIBC_2.7.
9440         * debug/fread_chk.c: New file.
9441         * debug/fread_u_chk.c: New file.
9442         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
9444 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
9446         * sysdeps/unix/sysv/linux/syscalls.list
9447         (personality): Change caller to EXTRA.
9449 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
9451         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
9452         to keep gcc quiet.
9453         * iconvdata/iso-2022-cn.c (BODY): Likewise.
9455         * locale/programs/ld-collate.c (collate_output): Avoid warning if
9456         NDEBUG is defined.
9458         * Makerules: Use -p option with mkdir.
9460         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
9461         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
9462         (_xdr_directory_obj): Likewise.
9463         (xdr_entry_obj): Likewise.
9464         (xdr_group_obj): Likewise.
9465         (xdr_link_obj): Likewise.
9466         (xdr_table_obj): Likewise.
9467         (_xdr_nis_result): Likewise.
9468         (_xdr_ns_request): Likewise.
9469         (_xdr_ib_request): Likewise.
9470         (_xdr_nis_taglist): Likewise.
9471         (xdr_cback_data): Likewise.
9472         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
9473         (xdr_ypresp_maplist): Likewise.
9475         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
9477         * posix/regex_internal.h: Prevent some declarations and definitions
9478         to be seen when used in tests.
9480         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
9481         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
9483         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
9485         * config.make.in (datarootdir): Add to shut up configure.
9487         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
9488         associativity for fully-associative caches.
9490         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
9491         requests.  Fill on more associativity values for L2.
9492         Patch mostly by Evandro Menezes.
9494 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
9496         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9497         (_libc_vdso_platform_setup): Avoid using exported variable by using
9498         alias.
9500         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
9502         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
9503         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
9504         defined.
9506 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
9508         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
9509         align stack for call if pltexit is to be used.
9511         [BZ #3924]
9512         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
9513         align for function call in case pltexit has to be called later.
9515         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
9516         implicit atomic operation when storing function pointer.
9517         (_dl_runtime_profile): Likewise.
9519 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9521         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
9522         NIS_NOTFOUND.
9524 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9526         [BZ #4566]
9527         * string/strtok.c: Fix typo in comment.
9529         [BZ #4582]
9530         * debug/segfault.c: Fix typos in comments.
9532         [BZ #4588]
9533         * stdio-common/tempnam.c: Fix comment, it is not checked that
9534         TMPDIR points to a writable directory.
9536         [BZ #4726]
9537         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
9538         memory allocated for the name server address.
9540         [BZ #4946]
9541         * nscd/connections.c (handle_request): Using sendfile always
9542         requires that mmap is used for the database.
9543         Patch by Petr Baudis <pasky@suse.cz>.
9545         [BZ #4905]
9546         * nscd/hstcache.c (cache_addhst): When reloading an entry which
9547         suddenly has two or more addresses, ignore it and remove the old
9548         entry.
9550         [BZ #4814]
9551         * resolv/res_hconf.c: Prepare for compiling outside libc.
9552         * nscd/res_hconf.c: New file.
9553         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
9554         the new file.
9555         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
9556         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
9558         * nscd/hstcache.c (cache_addhst): Minimal optimization.
9560         [BZ #4925]
9561         * debug/pcprofiledump.c: Turn on internationalization by calling
9562         setlocale.  Patch mostly by Benno Schulenberg.
9564         [BZ #4936]
9565         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
9566         the state.
9567         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
9568         * iconvdata/bug-iconv5.c: New file.
9570 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
9572         [BZ #4896]
9573         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
9574         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
9575         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
9576         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
9577         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
9578         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
9579         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
9580         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
9582 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9584         [BZ #4937]
9585         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
9586         lookup loop.  Suggested by John Reiser.
9588 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
9590         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
9592 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
9594         * csu/libc-start.c: Don't handle VDSO_SETUP here.
9595         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
9596         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
9597         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
9598         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
9599         to...
9600         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
9602 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
9604         * po/nl.po: Update from translation team.
9606 2007-08-16  Andreas Jaeger  <aj@suse.de>
9608         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
9609         Reported by Peter Festner <peter.festner@ewetel.net>.
9611 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9613         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
9615 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
9617         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
9618         to check for undefined symbols.
9620         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
9621         If the syscall fails, set errno to the actual returned error number
9622         rather than EINVAL.
9623         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
9624         arguments are incorrect, set errno to EINVAL, if the syscall
9625         fails, set errno to the actual returned error number.
9627         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
9628         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
9630         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
9631         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
9632         file.
9633         (ASI_PNF, ASI_BLK_P): Don't define.
9634         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
9635         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
9636         file.
9637         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
9638         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
9639         file.
9641 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
9643         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
9644         FE_UNDERFLOW on Niagara CPUs.
9646         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
9647         exceptions.
9649 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
9651         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
9652         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
9653         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
9654         flush should be used or not inside of the function.
9655         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
9657         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
9658         __thread_start): Use HIDDEN_JUMPTARGET.
9659         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
9660         __thread_start): Likewise.
9661         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
9663         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
9664         Add libc_hidden_proto.
9665         (STRTOF): Add libc_hidden_proto.
9666         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
9667         (strtold_l, wcstold_l): Use them as second argument for
9668         long_double_symbol.
9670 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9672         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
9674 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9676         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
9678 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9680         * po/bg.po: New file.  From the translation team.
9682 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9684         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
9685         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
9686         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
9687         when each feature was introduced.
9689         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
9690         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
9691         (CHECK_HASH): New macro.
9692         (PREPARE_VERSION): Use it.
9694         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
9695         prototype if not __ASSUME_PSELECT.
9696         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
9697         prototype if not __ASSUME_PPOLL.
9699         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
9701         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
9702         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
9703         is defined.
9705 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
9707         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9708         (_libc_vdso_platform_setup): If vDSO is not available point
9709         __vdso_gettimeofday to the vsyscall.
9710         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
9711         __vdso_gettimeofday instead of vsyscall.
9713 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9715         * nscd/servicescache.c: Include kernel-features.h.
9716         * nscd/gai.c: Likewise.
9717         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9718         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9719         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
9720         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
9721         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
9722         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9723         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
9724         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
9725         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
9727 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9729         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
9730         and _dl_get_origin defines anymore.
9732         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
9733         Build fix for systems which might lack POSIX timer support.
9735         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9736         (_libc_vdso_platform_setup): Mangle function pointers before storing
9737         them.
9738         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
9739         Demangle vdso pointer before use.
9740         (INTERNAL_VSYSCALL): Likewise.
9742         * elf/cache.c (primes): Mark as const.
9743         Noted by Roland McGrath.
9745 2007-08-01  Andreas Jaeger  <aj@suse.de>
9746             Jakub Jelinek  <jakub@redhat.com>
9748         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
9749         (options): Add option.
9750         (parse_opt): Handle option.
9751         (manual_link): Adjust process_file caller.  Call implicit_soname.
9752         (search_dir): Formatting.  Use and populate auxiliary cache.
9753         (main): Load and save auxiliary cache.
9754         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
9755         stat64 from fstat64 to caller.
9756         (implicit_soname): New function.
9757         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
9758         leave *soname as NULL.
9759         * elf/cache.c: Include libgen.h.
9760         (print_entry, print_cache, compare, save_cache, add_to_cache):
9761         Formatting and cleanups.
9762         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
9763         aux_cache_file): New structures.
9764         (AUX_CACHEMAGIC): Define.
9765         (primes): New array.
9766         (aux_hash_size, aux_hash): New variables.
9767         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
9768         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
9769         load_aux_cache, save_aux_cache): New functions.
9770         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9771         (init_aux_cache, search_aux_cache, add_to_aux_cache,
9772         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9773         (process_file): Adjust prototype.
9775 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
9777         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9778         with __need_size_t.
9780 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9782         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9783         r_found_version structure as second parameter.
9784         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9785         (_dl_vdso_vsym): Change type of second parameter accordingly.
9786         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9787         (_libc_vdso_platform_setup): Adjust.
9788         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9789         (_libc_vdso_platform_setup): Likewise.
9791         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9792         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9793         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9794         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9795         * csu/libc-start.c: Pretty printing.
9796         Use VDSO_SETUP if defined.
9797         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9798         and let generic code call into _libc_vdso_platform_setup.
9799         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9800         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9801         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9802         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9803         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9804         for GLIBC_PRIVATE.
9805         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9806         (sysdep_rountines): Add dl-vdso.
9808         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9809         of routines.
9811         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9812         attribute_hidden to __vdso_gettimeofday prototype.
9814 2007-08-12  Roland McGrath  <roland@redhat.com>
9816         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9817         From: Karl Berry <karl@freefriends.org>.
9819 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
9821         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9822         an atime update for the files we read.
9824 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9826         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9828         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
9829         instead of mkstemp.
9831         * misc/Makefile (routines): Add mkostemp and mkostemp64.
9832         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9833         * misc/mkostemp.c: New file.
9834         * misc/mkostemp64.c: New file.
9835         * stdlib/stdlib.h: Declare the new functions.
9836         * sysdeps/posix/tempname.c: Add new parameter which is added to
9837         the flags for open.  Remove __GT_BIGFILE handling.
9838         * stdio-common/tempname.c: Likewise.
9839         * include/stdio.h: Adjust __gen_tempname prototype.
9840         Renumber __GT_* constants.
9841         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9842         * misc/mkdtemp.c: Likewise.
9843         * misc/mkstemp.c: Likewise.
9844         * misc/mkstemp64.c: Likewise.
9845         * misc/mktemp.c: Likewise.
9846         * stdio-common/tempnam.c: Likewise.
9847         * stdio-common/tmpfile.c: Likewise.
9848         * stdio-common/tmpfile64.c: Likewise.
9849         * stdio-common/tmpnam.c: Likewise.
9850         * stdio-common/tmpnam_r.c: Likewise.
9852 2007-08-10  Roland McGrath  <roland@frob.com>
9854         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
9855         New macros.
9856         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
9857         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9859 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9861         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
9862         possible.
9863         * nss/nss_files/files-alias.c (internal_setent): Likewise.
9864         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
9865         * nss/nss_files/files-have_o_cloexec.c: New file.
9867         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
9868         available.
9870 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
9872         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
9873         ___new_wcstold_l): New weak aliases.
9874         (strtold_l, wcstold_l): Use them as second argument for
9875         long_double_symbol.
9877 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
9879         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
9880         register in test for error.
9882         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
9883         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
9885         * po/sv.po: Update from translation team.
9887 2007-08-06  Roland McGrath  <roland@redhat.com>
9889         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9890         Remove __strto*_l inlines.
9891         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9892         * stdlib/strtod.c: Add libc_hidden_def.
9893         * stdlib/strtod_l.c: Likewise.
9894         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9895         for __new_strtold and __new_wcstold.
9896         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9897         __STRTOF, STRTOF.
9898         * stdlib/strtol.c: Add libc_hidden_def.
9899         * stdlib/strtol_l.c: Likewise.
9900         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9901         strtoq.
9903         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9905         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9906         * scripts/data/localplt-generic.data: ... here.
9907         * elf/Makefile (check-data): Get generic file if no other.
9908         ($(objpfx)check-localplt.out): Make target unconditional.
9910         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9911         Use ElfW(Nhdr).
9913 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
9915         * po/zh_CN.po: Updated translation from translation team.
9917 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
9919         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
9920         Don't use CGOTSETUP and CGOTRESTORE macros.
9922 2007-08-04  Roland McGrath  <roland@redhat.com>
9924         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9926 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
9928         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9929         __extension__ around the whole statement expression.
9931 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
9933         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9934         elements during initialization.
9936         * po/pl.po: Updated translation from translation team.
9937         * po/tr.po: Likewise.
9938         * po/nl.po: Likewise.
9940 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
9942         * rt/aio.h: Add __nonnull attributes.
9944 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9946         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9947         * stdlib/Makefile (tests): Add tst-strtod5.
9948         (tst-strtod5-ENV): New.
9949         * stdlib/tst-strtod5.c: New file.
9951         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9952         failed.
9953         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9954         on failure.
9956         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9957         allocated.
9959 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9961         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9962         numbers.
9964 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
9966         * io/Makefile (aux): Add have_o_cloexec.
9967         * include/fcntl.h: Declare __have_o_cloexec.
9968         * io/have_o_cloexec.c: New file.
9969         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
9970         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
9971         fcntl call if not necessary.
9972         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
9973         of local variable.
9975         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
9976         Avoid memset, add explicit initialization.
9977         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
9978         to the end and change into zero-sized array.
9979         Move lock member to fill a hole on 64-bit platforms.
9981         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
9982         inline functions.
9983         * include/stdlib.h: Add __strto*_internal prototypes here.
9984         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
9985         inline functions.
9986         * include/wchar.h: Add __wcsto*_internal prototypes.
9987         * sysdeps/generic/inttypes.h: No need to protect the declaration
9988         of the __strto*_internal and __wcsto*_internal members here.
9990         * rt/mqueue.h: Change const to __const and add nonnull attributes.
9992 2007-08-02  Roland McGrath  <roland@redhat.com>
9994         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
9995         $(inst_bindir)/getconf if possible.
9997         * posix/Makefile ($(objpfx)getconf.speclist): New target.
9998         (generated): Add it.
9999         ($(inst_libexecdir)/getconf): Use it.
10001 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
10003         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
10004         /proc is faster and sufficient.  /sys is still needed for
10005         __get_nprocs_conf.
10007 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
10009         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
10010         syscall as __fallocate64.
10011         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
10012         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
10014 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
10016         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
10017         value.
10019         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
10020         if off_t is different rank from size_t.
10022         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
10023         uw_frame_state_for): Avoid type punning warnings.
10024         * sysdeps/generic/unwind-dw2-fde-glibc.c
10025         (_Unwind_IteratePhdrCallback): Likewise.
10026         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
10027         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
10028         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
10029         pointers.
10031 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
10033         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
10034         total processors using sysfs.
10035         (__get_nprocs): Use sysfs to determine which processors are online.
10037 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
10039         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
10040         syscall arguments count.
10042         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
10044 2007-07-30  Roland McGrath  <roland@redhat.com>
10046         * manual/libc.texinfo: Update copyrights, formatting magic, and
10047         @dircategory.  From Karl Berry <karl@freefriends.org>.
10049 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
10051         [BZ #4860]
10052         * io/Makefile (headers): Add bits/fcntl2.h.
10054         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
10055         using gcc builtin.
10056         (__CPU_EQUAL_S): Likewise.
10058         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
10059         (tests): Add tst-cpuset.
10060         * posix/sched_cpualloc.c: New file.
10061         * posix/sched_cpufree.c: New file.
10062         * posix/tst-cpuset.c: New file.
10063         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
10064         GLIBC_2.7.
10065         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
10066         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
10067         macros.  Define CPU_*_S macros.
10069 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
10071         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
10072         entry.
10074         [BZ #4858]
10075         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
10076         #.0g and value rounded to 1.0.
10077         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
10079 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
10081         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
10082         for int_frac_digits and frac_digits.
10084         * login/logout.c (logout): Avoid aliasing violation.
10085         * login/logwtmp.c (logwtmp): Likewise.
10087         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
10089         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
10090         to avoid warning.
10091         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
10092         warning.
10093         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
10094         warning.
10095         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
10096         to avoid warnings.
10098         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
10099         void **.
10100         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
10102         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
10103         char * to avoid warning.
10104         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
10106         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
10108         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
10109         allocate_arrays): Cast second argument to charmap_find_symbol
10110         to char * to avoid warnings.
10112         * locale/programs/repertoire.c (repertoire_new_char): Change
10113         from_nr, to_nr and cnt to unsigned long, adjust printf format
10114         string.
10116         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
10117         Cast second argument to new_element to char * to avoid warnings.
10119         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
10121         * intl/gettextP.h (struct loaded_domain): Change plural to const
10122         struct expression *.
10123         * intl/plural-eval.c (plural_eval): Change first argument to
10124         const struct expression *.
10125         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
10126         argument to const struct expression **.
10127         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
10128         prototypes.
10129         * intl/loadmsgcat (_nl_unload_domain): Cast away const
10130         in call to __gettext_free_exp.
10132         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
10133         unitialized wstring/wpattern var warnings.
10135         * posix/runtests.c (struct a_test): Make data field const char *.
10137         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
10138         vars if not LDBL_MANT_DIG >= 106.
10140         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
10142         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
10143         __find_specmb to avoid warning.
10145         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
10147         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
10148         to avoid warnings.
10150         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
10151         initializer.
10153         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
10154         tv var when it will be actually used.
10156         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
10157         to avoid warnings.
10159         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
10160         char array resp. pointer.
10161         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
10162         char array.
10163         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
10164         to const unsigned char **.
10165         (ucs4_to_cns11643): Change second argument to unsigned char *.
10166         * iconvdata/euc-tw.c (BODY): Change endp type to
10167         const unsigned char *.
10168         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
10169         to unsigned char *.
10170         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
10171         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
10172         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
10173         types to unsigned char pointers/arrays instead of char.
10174         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
10175         to unsigned char *.
10176         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
10177         * iconvdata/jis0212.h: Include assert.h.
10178         (ucs4_to_jisx0212): Change second argument to unsigned char *.
10179         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
10180         of trying to handle that.
10181         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
10182         shut up a warning.
10183         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
10184         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
10185         two dimensional const unsigned char arrays.
10186         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
10187         Initialize endp to inptr to shut up a warning.
10189 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
10191         [BZ #4772]
10192         * time/strptime_l.c (__strptime_internal): Silently ignore
10193         strftime modifiers and field width in recursive calls.
10195         * include/time.h (enum ptime_locale_status): Remove.
10196         (__strptime_internal): Remove decided and era_cnt arguments,
10197         add statep argument.
10198         * time/strptime_l.c (__strptime_internal): Remove decided
10199         and era_cnt arguments, add statep argument.  Don't recompute
10200         any fields in recursive calls, only update caller's tm
10201         and state, if recursive call fails, don't change tm nor
10202         any state.
10203         (get_alt_number): Adjust.
10204         (recursive): Adjust caller.
10205         (strptime): Likewise.
10206         * time/strptime.c (strptime): Likewise.
10208 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
10210         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
10211         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
10212         if from and to charsets are the same.
10213         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
10214         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
10215         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
10217 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
10219         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
10220         Don't define wint_t when __need_mbstate_t unless it
10221         is necessary.
10222         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
10223         in the typedef if possible.
10224         * wctype/wctype.h (wint_t): Define by including
10225         wchar.h with __need_wint_t instead of including stddef.h
10226         with __need_wint_t and as fallback definining it ourselves.
10227         * iconv/gconv.h (__need_wint_t): Define before including
10228         wchar.h.
10229         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
10230         or _GLIBCPP_USE_WCHAR_T.
10231         (__need_wchar_t): Don't define
10232         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
10233         (__need_wint_t): Don't define before including stddef.h,
10234         define before including wchar.h only if _LIBC or
10235         _GLIBCPP_USE_WCHAR_T.
10236         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
10237         * sysdeps/mach/hurd/_G_config.h: Likewise.
10238         * sysdeps/generic/_G_config.h: Likewise.
10239         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
10240         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
10241         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
10242         if _LIBC or _GLIBCPP_USE_WCHAR_T.
10244 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
10246         * sysdeps/posix/posix_fallocate64.c: Undefine
10247         __posix_fallocate64_l64 before alias handling.
10248         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
10249         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
10250         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
10251         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
10253         * io/tst-posix_fallocate.c: Include <fcntl.h>.
10255 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
10257         * locale/programs/ld-collate.c (atwc): New variable.
10258         (add_to_tablewc): New toplevel function, moved from collate_output.
10259         (collate_output): Remove add_to_tablewc nested function.
10261         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
10262         (name_insert): New function.
10263         (write_output): Remove hash_table and hash_size vars and name_insert
10264         nested function.
10266 2007-07-24  Roland McGrath  <roland@redhat.com>
10268         * Makerules (install-others-programs-nosubdir): New target.
10269         (install-no-libc.a-nosubdir): Depend on it.
10271         * iconv/Makefile (install-others-programs): Set this instead of
10272         install-others.
10273         * login/Makefile (install-others-programs): Likewise.
10274         * posix/Makefile (install-others-programs): Likewise.
10276         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
10277         dependencies.
10279 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
10281         * io/Makefile (tests): Add tst-posix_fallocate.
10282         * io/tst-posix_fallocate.c: New file.
10284         * sysdeps/unix/sysv/linux/kernel-features.h: Define
10285         __ASSUME_FALLOCATE.
10287 2007-07-22  Roland McGrath  <roland@frob.com>
10289         * hurd/getdport.c: Add missing copyright year update.
10291         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
10292         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
10294 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
10296         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
10298         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
10299         O_CLOEXEC is needed.
10300         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
10301         Avoid additional fcntl to set O_CLOEXEC if not needed.
10302         * nis/nss_compat/compat-initgroups.c: Likewise.
10303         * nis/nss_compat/compat-pwd.c: Likewise.
10304         * nis/nss_compat/compat-spwd.c: Likewise.
10306 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10308         [BZ #3665]
10309         * manual/errno.texi: Change ECANCELED value to 119.
10311         [BZ #4610]
10312         * mach/lock-intern.h: Include <sys/cdefs.h>.
10314         [BZ #4178]
10315         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
10316         reading A.
10318         [BZ #4126]
10319         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
10320         to __sigsuspend.
10322         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
10324 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
10326         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
10327         `__ASSEMBLER__'.
10328         * sysdeps/mach/hurd/i386/tls.h: Likewise.
10330 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
10332         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
10333         descriptor received from nscd.
10335         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
10337         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
10338         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10339         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10340         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10341         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10342         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10344 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
10346         [BZ #4816]
10347         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
10349         [BZ #4813]
10350         * login/forkpty.c (forkpty): Close master and slave fds on
10351         fork failure.  Patch by
10352         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
10354 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
10356         * include/features.h (__USE_ISOC95): New define.
10357         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
10358         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
10359         for -std=iso9899:199409.
10360         * CONFORMANCE: Remove comments about unsupported AMD1.
10362 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
10364         * sysdeps/ia64/sched_cpucount.c: New file.
10365         * sysdeps/powerpc/sched_cpucount.c: New file.
10367         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
10368         __BEGIN_DECLS/__END_DECLS around the prototype.
10369         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
10370         pointer to const cpu_set_t.
10372         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
10373         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
10374         __need_size_t and include stddef.h.
10375         * sysvipc/sys/msg.h: Likewise.
10376         * posix/sched.h: Likewise.
10377         * hurd/hurd/signal.h (__need_size_t): Define.
10379         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
10380         neither does signal.h in pedantic ISO C namespaces.  stdio.h
10381         no longer defines wint_t or wchar_t.
10383         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
10384         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
10385         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
10386         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
10387         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
10388         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
10389         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
10390         * debug/printf_chk.c (__printf_chk): Likewise.
10391         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
10392         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
10394         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
10395         Define.
10397         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
10398         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
10400 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
10402         [BZ #4792]
10403         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
10404         * malloc/malloc.h (realloc): Likewise.
10406         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
10407         if one of proc_file_chain streams has that fileno.
10408         * stdio-common/Makefile (tests): Add tst-popen2.
10409         * stdio-common/tst-popen2.c: New test.
10411 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
10413         * elf/ldconfig.c: Allow GPLv2 or any later version.
10414         * elf/readlib.c: Likewise.
10415         * elf/chroot_canon.c: Likewise.
10416         * elf/cache.c: Likewise.
10417         * nscd/mem.c: Likewise.
10418         * nscd/getpwuid_r.c: Likewise.
10419         * nscd/grpcache.c: Likewise.
10420         * nscd/aicache.c: Likewise.
10421         * nscd/getsrvbynm_r.c: Likewise.
10422         * nscd/nscd.c: Likewise.
10423         * nscd/servicescache.c: Likewise.
10424         * nscd/getsrvbypt_r.c: Likewise.
10425         * nscd/initgrcache.c: Likewise.
10426         * nscd/gethstbyad_r.c: Likewise.
10427         * nscd/gethstbynm2_r.c: Likewise.
10428         * nscd/getgrnam_r.c: Likewise.
10429         * nscd/nscd_setup_thread.c: Likewise.
10430         * nscd/getpwnam_r.c: Likewise.
10431         * nscd/gai.c: Likewise.
10432         * nscd/connections.c: Likewise.
10433         * nscd/dbg_log.c: Likewise.
10434         * nscd/cache.c: Likewise.
10435         * nscd/hstcache.c: Likewise.
10436         * nscd/nscd_conf.c: Likewise.
10437         * nscd/getgrgid_r.c: Likewise.
10438         * nscd/pwdcache.c: Likewise.
10439         * catgets/gencat.c: Likewise.
10440         * locale/programs/linereader.h: Likewise.
10441         * locale/programs/locarchive.c: Likewise.
10442         * locale/programs/ld-paper.c: Likewise.
10443         * locale/programs/locfile-kw.h: Likewise.
10444         * locale/programs/ld-address.c: Likewise.
10445         * locale/programs/xmalloc.c: Likewise.
10446         * locale/programs/ld-time.c: Likewise.
10447         * locale/programs/localedef.c: Likewise.
10448         * locale/programs/simple-hash.c: Likewise.
10449         * locale/programs/xstrdup.c: Likewise.
10450         * locale/programs/ld-numeric.c: Likewise.
10451         * locale/programs/locfile-kw.gperf: Likewise.
10452         * locale/programs/ld-collate.c: Likewise.
10453         * locale/programs/charmap-kw.gperf: Likewise.
10454         * locale/programs/charmap.h: Likewise.
10455         * locale/programs/charmap-kw.h: Likewise.
10456         * locale/programs/config.h: Likewise.
10457         * locale/programs/locfile.c: Likewise.
10458         * locale/programs/ld-ctype.c: Likewise.
10459         * locale/programs/charmap.c: Likewise.
10460         * locale/programs/ld-messages.c: Likewise.
10461         * locale/programs/repertoire.h: Likewise.
10462         * locale/programs/locale.c: Likewise.
10463         * locale/programs/ld-name.c: Likewise.
10464         * locale/programs/linereader.c: Likewise.
10465         * locale/programs/locfile.h: Likewise.
10466         * locale/programs/3level.h: Likewise.
10467         * locale/programs/ld-monetary.c: Likewise.
10468         * locale/programs/ld-measurement.c: Likewise.
10469         * locale/programs/charmap-dir.c: Likewise.
10470         * locale/programs/ld-identification.c: Likewise.
10471         * locale/programs/localedef.h: Likewise.
10472         * locale/programs/charmap-dir.h: Likewise.
10473         * locale/programs/repertoire.c: Likewise.
10474         * locale/programs/simple-hash.h: Likewise.
10475         * locale/programs/ld-telephone.c: Likewise.
10476         * locale/programs/locale-spec.c: Likewise.
10477         * locale/programs/locfile-token.h: Likewise.
10478         * posix/getconf.c: Likewise.
10479         * iconv/dummy-repertoire.c: Likewise.
10480         * iconv/iconv_charmap.c: Likewise.
10481         * iconv/iconvconfig.c: Likewise.
10482         * iconv/iconv_prog.c: Likewise.
10483         * malloc/memusagestat.c: Likewise.
10484         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
10486 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10488         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
10489         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
10490         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
10491         check for the first argument.
10493 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
10495         [BZ #4775]
10496         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
10497         (__tgmath_real_type): Fix if expr is const int or other const
10498         qualified integral type.
10499         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
10500         expressions and handle const qualified arguments.
10501         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
10502         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10503         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
10504         statement expressions.
10505         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
10506         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
10507         (__TGMATH_UNARY_IMAG): Define.
10508         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
10509         * math/Makefile (tests): Add test-tgmath2.
10510         (CFLAGS-test-tgmath2.c): Add.
10511         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
10512         count_cfloat, count_cldouble): New variables.
10513         (NCCALLS): Define.
10514         (main): Check number of complex calls as well.
10515         (F(compile_test)): Add complex tests and tests with const qualified
10516         arguments.
10517         (y, z, ccount): Define.
10518         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
10519         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
10520         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
10521         F(cproj)): New functions.
10522         * math/test-tgmath2.c: New test.
10524 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
10526         [BZ #4776]
10527         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
10528         RPATH etc. as "/" rather than "", don't segfault on empty paths,
10529         instead output ".".
10530         * dlfcn/Makefile (distribute): Add glreflib3.c.
10531         (module-names): Add glreflib3.
10532         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
10533         glreflib1.so.
10534         (LDFLAGS_glreflib3.so): New.
10535         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
10536         glreflib1.so.
10537         * dlfcn/glreflib3.c: New file.
10539         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
10540         returned -1, return NULL.
10541         * intl/explodename.c (_nl_explode_name): Return -1 if
10542         _nl_normalize_codeset failed.
10544 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
10546         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
10547         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
10548         and avoid branch misspredicts for > 31 bytes memset case.
10549         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
10550         Remove toc ref to __cache_line_size.
10552         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
10553         to get ISA-V2.0 branch hints.
10554         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
10555         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
10556         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10557         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10558         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10559         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
10560         Remove toc ref to __cache_line_size.
10562         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
10563         Include math_ldbl_opt.h.
10565 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
10567         [BZ #4773]
10568         * time/strptime_l.c (__strptime_internal): Implement greedy
10569         matching of weekday and month names.
10571 2007-07-09  Roland McGrath  <roland@redhat.com>
10573         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
10574         (ELF_NOTE_ABI): Use it.
10575         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
10577 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
10579         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
10580         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10582 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
10584         [BZ #4745]
10585         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
10586         in loop to look for conversion specifier to avoid testing of
10587         wrong errno value.
10588         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
10589         * stdio-common/bug18.c: New file.
10590         * stdio-common/bug18a.c: New file.
10591         * stdio-common/bug19.c: New file.
10592         * stdio-common/bug19a.c: New file.
10594 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
10596         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
10597         running awk script.
10599 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
10601         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
10602         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
10603         Return NULL if mmap failed instead of asserting it does not.
10604         (calloc): Check for integer overflow.
10606         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
10607         than LONG_MAX / 10.
10609 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
10611         [BZ #4702]
10612         * nis/nss-default.c: Include errno.h.
10613         (init): Preserve errno.
10615 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
10617         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
10619 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
10621         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
10623 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10625         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
10627 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10629         * sysdeps/s390/dl-procinfo.c: New file.
10630         * sysdeps/s390/dl-procinfo.h: New file.
10631         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
10633 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
10635         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
10636         in PT_NOTE segments with multiple notes.
10637         * elf/readelflib.c (process_elf_file): Likewise.
10639 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
10641         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
10642         ISO C compliant.
10644 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10646         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
10648 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
10650         * include/link.h: Don't include rtld-lowlevel.h.
10651         (struct link_map): Remove l_scope_lock.
10652         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
10653         (_dl_scope_free_list): New field (variable) in _rtld_global.
10654         (DL_LOOKUP_SCOPE_LOCK): Remove.
10655         (_dl_scope_free): New prototype.
10656         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
10657         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
10658         (_dl_profile_fixup): Likewise.
10659         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
10660         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
10661         THREAD_GSCOPE_RESET_FLAG around it.
10662         * elf/dl-close.c (_dl_close_worker): Don't use
10663         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
10664         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
10665         scopes were queued or if l_scope_mem has been abandoned.
10666         * elf/dl-open.c (_dl_scope_free): New function.
10667         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
10668         * elf/dl-support.c (_dl_scope_free_list): New variable.
10669         * elf/dl-lookup.c (add_dependency): Remove flags argument.
10670         Remove DL_LOOKUP_SCOPE_LOCK handling.
10671         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
10672         handling.
10673         * elf/dl-object.c (_dl_new_object): Don't use
10674         __rtld_mrlock_initialize.
10676 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10678         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
10679         to fill in holes
10680         (rtld_global_ro): Likewise.
10682 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10684         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
10685         Move PT_LOAD checking to...
10686         (_dl_addr_inside_object): ... here, new function.
10687         * elf/dl-sym.c (do_sym): If not l_contiguous,
10688         call _dl_addr_inside_object.
10689         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
10690         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
10691         * elf/dl-open.c (dl_open_worker): Likewise.
10692         (_dl_addr_inside_object): New function if IS_IN_rtld.
10693         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
10694         holes are present or are PROT_NONE protected.
10695         * include/link.h (struct link_map): Add l_contiguous field.
10696         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
10698 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10699             Tomas Janousek  <tjanouse@redhat.com>
10700             Ulrich Drepper  <drepper@redhat.com>
10702         [BZ #4647]
10703         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
10704         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
10705         socket.
10706         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
10707         unused member a bitmap.
10708         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
10709         servers are configured.
10711 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10713         * elf/rtld.c (dl_main): Don't call init_tls more than once.
10715 2007-06-17  Andreas Schwab  <schwab@suse.de>
10717         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
10719 2007-06-16  Andreas Jaeger  <aj@suse.de>
10721         [BZ #4125]
10722         * sysdeps/unix/sysv/linux/sys/ptrace.h
10723         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
10724         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
10725         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
10726         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
10727         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
10728         Define.
10729         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10730         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10731         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10732         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10734 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
10736         [BZ #4599]
10737         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
10738         determining whether there are IPv4/IPv6 addresses, ignore loopback
10739         addresses.
10741 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10743         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
10744         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
10745         as the return type.  Change type of "r" variable to CMPtype.
10746         * soft-fp/eqsf2.c (__eqsf2): Likewise.
10747         * soft-fp/eqtf2.c (__eqtf2): Likewise.
10748         * soft-fp/gedf2.c (__gedf2): Likewise.
10749         * soft-fp/gesf2.c (__gesf2): Likewise.
10750         * soft-fp/getf2.c (__getf2): Likewise.
10751         * soft-fp/ledf2.c (__ledf2): Likewise.
10752         * soft-fp/lesf2.c (__lesf2): Likewise.
10753         * soft-fp/letf2.c (__letf2): Likewise.
10754         * soft-fp/unorddf2 (__unorddf2): Likewise.
10755         * soft-fp/unordsf2 (__unordsf2): Likewise.
10756         * soft-fp/unordtf2 (__unordtf2): Likewise.
10758 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
10760         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
10761         make sure gcc doesn't mess around with this.
10763 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10765         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
10767 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
10769         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
10770         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10771         at most once per _dl_close_worker.
10773 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10775         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10776         __sched_cpucount as const.
10777         * posix/sched_cpucount.c: Adjust.
10779         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10780         instruction for counting bits.
10781         * sysdeps/x86_64/sched_cpucount.c: New file.
10783 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
10785         * configure.in: Avoid variable named BASH.
10786         * config.make.in: Likewise.
10787         Patch in part by Mike Frysinger.
10789 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
10791         [BZ #4586]
10792         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10793         pseudo-zeros as zero.
10794         * sysdeps/x86_64/ldbl2mpn.c: New file.
10795         * sysdeps/ia64/ldbl2mpn.c: New file.
10797 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10799         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10800         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10801         Remove unreachable code at the end.
10803 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10805         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10806         ldbl-128ibm in comment.
10807         (fpclassifyl): Correct classification of denormals.
10808         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10809         return value for MIN denormal. Rewrite using long double math too
10810         correctly handle denormals and canonicalize the results.
10812 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
10814         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10815         (__mpn_construct_long_double): Fix conversion where result ought
10816         to be smaller than __LDBL_MIN__, or the low double should be
10817         denormal.  Fix decision where to negate low double - honor round
10818         to even rules.
10819         * stdio-common/tst-sprintf2.c: Include string.h.
10820         (COMPARE_LDBL): Define.
10821         (TEST): Also test whether a string hexadecimal float representation
10822         can be parsed back to the number.
10823         (main): Add a couple of further tests.
10825 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10827         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10828         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10829         is non-zero, but smaller than 2 * __DBL_MIN__.
10830         * stdio-common/tst-sprintf2.c: New test.
10831         * stdio-common/Makefile (tests): Add tst-sprintf2.
10833         * math/test-misc.c (main): Don't run last batch of tests with
10834         IBM long double format.
10836 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10838         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10839         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10840         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10841         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10842         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10843         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10844         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10845         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10846         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10847         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10848         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10850         New file.
10851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10852         New file.
10853         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
10854         New file.
10855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
10856         New file.
10857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
10858         New file.
10859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
10860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
10861         New file.
10862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
10863         New file.
10864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
10865         New file.
10866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
10867         New file.
10868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
10869         New file.
10871 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10873         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
10874         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
10875         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
10876         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
10877         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
10878         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
10879         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
10880         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
10882 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
10884         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
10885         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10886         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10887         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10888         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10889         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10890         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10891         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10893 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10895         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10896         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10897         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10898         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10900 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
10902         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10903         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10905 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
10907         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10908         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10909         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10910         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10912 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
10914         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
10915         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
10917 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10919         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
10920         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10922         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10923         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10924         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10925         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10927 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
10929         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10930         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10931         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10932         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10934 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
10936         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10937         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10938         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10939         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10940         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10941         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10943 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10945         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10946         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10947         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10948         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10950 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
10952         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10953         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10954         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10955         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10956         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10957         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10958         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10959         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10960         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10961         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10962         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10963         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10964         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
10965         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
10966         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
10967         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
10969 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10971         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
10972         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
10974 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10976         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
10977         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
10979 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10981         * sysdeps/powerpc/powerpc32/970/Implies: New file.
10982         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
10983         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
10984         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
10985         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
10986         * sysdeps/powerpc/powerpc64/970/Implies: New file.
10987         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
10988         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
10989         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
10990         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
10992 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10994         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
10996 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
10998         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
10999         branch miss-predicts. Ensure that cache line crossing does not impact
11000         dispatch grouping.
11002 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
11004         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
11005         "../../powerpc32/power4/memcopy.h".
11006         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
11007         "../../powerpc32/power4/wordcopy.c".
11009 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
11011         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
11012         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
11013         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
11014         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
11015         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
11016         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
11018 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
11020         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
11022 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
11024         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
11025         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
11026         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
11027         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
11028         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
11029         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
11030         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
11031         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
11033 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
11035         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
11037 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
11039         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
11040         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
11041         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
11042         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
11043         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
11044         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
11045         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
11047 2007-05-29  Roland McGrath  <roland@redhat.com>
11049         * po/Makefile (po-sed-cmd): New variable.
11050         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
11052 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
11054         * crypt/md5-crypt.c: Fix comment.
11056         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
11057         of crashing.  When this is the case or if the reply is malformed,
11058         don't try to close the new file descriptor since it does not
11059         exist.
11060         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
11062 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
11064         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
11065         if __NR_utimensat is not defined.
11067 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
11069         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
11071 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
11073         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
11074         (open): Fix comment typos.  Don't call __open_2 if flags
11075         is a compile time constant without O_CREAT.
11076         (__open64_2): Add nonnull attribute.
11077         (open64): Fix comment typos.  Don't call __open64_2 if flags
11078         is a compile time constant without O_CREAT.
11079         (__openat_2): Add nonnull attribute, fix nonnull attribute
11080         on redirect.
11081         (openat): Fix comment typos.  Don't call __openat_2 if flags
11082         is a compile time constant without O_CREAT.
11083         (__openat64_2): Add nonnull attribute, fix nonnull attribute
11084         on redirect.
11085         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
11086         is a compile time constant without O_CREAT.
11088 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
11090         * Makerules (sysd-rules): Define PTW for ptw-* files.
11091         * Versions: Define GLIBC_2.7 for libc.
11092         * include/stdio.h: Declare __fortify_fail.
11093         * debug/fortify_fail.c: New file.
11094         * debug/Makefile (routines): Add fortify_fail.
11095         * debug/chk_fail.c: Use __fortify_fail.
11096         * debug/stack_chk_fail.c: Likewise.
11097         * io/Versions: Export __open_2, __open64_2, __openat_2, and
11098         __openat64_2 for GLIBC_2.7.
11099         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
11100         * io/open.c: Define *_2 variant of function which checks for O_CREAT
11101         and fails if necessary.
11102         * io/open64.c: Likewise.
11103         * io/openat.c: Likewise.
11104         * io/openat64.c: Likewise.
11105         * sysdeps/unix/sysv/linux/open64.c: Likewise.
11106         * sysdeps/unix/sysv/linux/openat.c: Likewise.
11107         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
11108         * io/bits/fcntl2.h: New file.
11109         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
11110         __openat64_2.
11111         * include/bits/fcntl2.h: New file.
11112         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11113         Add open_2.
11114         * sysdeps/unix/sysv/linux/open_2.c: New file.
11116 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
11118         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
11119         as second parameter to handle_intel.
11121         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
11122         the entry.
11124         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
11125         handling to ...
11126         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
11127         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11128         cacheinfo.
11129         * sysdeps/x86_64/memcpy.S: Complete rewrite.
11130         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
11131         Patch by Evandro Menezes <evandro.menezes@amd.com>.
11133         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
11135 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
11137         [BZ #4525]
11138         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
11139         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
11140         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
11142         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
11144         [BZ #4514]
11145         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
11146         reinitialize workend at the start of each do_positional format spec
11147         loop, free workstart before do_positional loops.
11148         (printf_unknown): Fix size of work_buffer.
11149         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
11151         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
11152         (public_sET_STATe): If ms->version < 3, put all chunks into
11153         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
11154         chunks.
11156         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
11157         * malloc/hooks.c: Likewise.
11158         * malloc/arena.c: Likewise.
11159         * malloc/malloc.c (do_check_malloc_state): Don't assert
11160         n_mmaps is not greater than n_mmaps_max.  This removes the need
11161         for the previous change.
11163         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
11164         2007-05-07 commit.
11166 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
11168         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
11169         Define for kernel >= 2.6.22.
11171 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
11173         * elf/dl-close.c (_dl_close_worker): When removing object from
11174         global scope, wait for all lookups to finish afterwards.
11175         * elf/dl-open.c (add_to_global): When global scope array must
11176         grow, allocate a new one and free old array only after all
11177         lookups finish.
11178         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
11179         (_dl_lookup_symbol_x): Likewise.
11180         * elf/dl-support.c: Define _dl_wait_lookup_done.
11181         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
11182         _dl_wait_lookup_done.
11184         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
11185         not overlapping with arena.
11187         * malloc/mcheck.c (reallochook): If size==0, free the block.
11189         * rt/tst-shm.c: Use fstat64 instead of fstat.
11191         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
11192         __NR_sync_file_range is not defined.
11194 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
11196         Dummy files to prevent stub versions from being used.
11197         * sysdeps/x86_64/fpu/k_cosl.c: New file.
11198         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
11199         * sysdeps/x86_64/fpu/k_sinl.c: New file.
11200         * sysdeps/x86_64/fpu/k_tanl.c: New file.
11202         * version.h (VERSION): Set to 2.6.90.
11204 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
11206         * version.h (VERSION): Define to 2.6.
11207         * include/features.h (__GLIBC_MINOR__): Define to 6.
11209         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
11211         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
11212         sizes.
11214 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
11216         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
11217         number of mmaps.  n_mmaps_max is the target.
11218         * malloc/hooks.c: Likewise.
11219         * malloc/arena.c: Likewise.
11221 2007-05-12  Andreas Jaeger  <aj@suse.de>
11223         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
11224         getpid.
11226 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
11228         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
11229         adding new variables.
11231         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
11232         optimize.  Completely extend global scope array before making the
11233         new entries visible.
11235 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
11237         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
11238         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
11239         tst-getcpu.
11241         * include/link.h: Move l_version and l_nversion members around to
11242         fill gaps.
11244         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
11246         * sysdeps/unix/sysv/linux/sched_setaffinity.c
11247         (__sched_setaffinity_new): If syscall was successful and
11248         RESET_VGETCPU_CACHE is defined, use it before returning.
11249         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
11251         * io/sys/stat.h: Make sure struct timespec is defined for
11252         __USE_ATFILE.
11254         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
11255         UTIME_OMIT.
11256         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
11257         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
11258         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
11259         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
11260         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
11261         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
11262         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
11263         * io/sys/stat.h: Declare utimensat, futimens.
11264         * io/utimensat.c: New file.
11265         * io/futimens.c: New file.
11266         * sysdeps/unix/sysv/linux/utimensat.c: New file.
11267         * sysdeps/unix/sysv/linux/futimens.c: New file.
11268         * io/Makefile (routines): Add utimensat, futimens.
11269         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
11270         * sysdeps/unix/sysv/linux/lutimes.c: New file.
11271         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
11272         available.
11274         * include/sys/cdefs.h: Redefine __nonnull so that test for
11275         incorrect parameters in the libc code itself are not omitted.
11277 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
11279         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
11280         exception in addition to inexact when asked to raise only FE_INEXACT.
11282         [BZ #3427]
11283         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
11284         in *envp.
11286 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
11288         [BZ #4403]
11289         * string/strfry.c (strfry): Make result more random.
11291 2007-05-07  Richard Henderson  <rth@redhat.com>
11293         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
11294         if __NO_LONG_DOUBLE_MATH.
11295         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
11296         available in the compiler, add .arch directive to the assembly.
11298 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
11300         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
11301         compat_symbol to GLIBC_2_1.
11302         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
11303         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
11304         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
11305         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
11306         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
11307         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
11308         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
11309         libc, not libm.
11310         (__isnanl): New compat_symbol.
11312 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
11313             Jakub Jelinek  <jakub@redhat.com>
11315         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
11316         (new_heap): Initialize mprotect_size.
11317         (grow_heap): When growing, only mprotect from mprotect_size till
11318         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
11319         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
11321 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
11322             Peter Bergner  <bergner@us.ibm.com>
11324         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
11325         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
11326         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
11327         * sysdeps/powerpc/fpu/fe_mask.c: New file.
11328         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
11329         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
11330         Call __fe_mask_env() if all FP exceptions disabled.
11331         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
11332         from old FPSCR to new fenv to propagate DFP rounding modes.
11333         Call __fe_mask_env() if FP exceptions previously enabled.
11334         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
11335         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
11336         transitioning from all exceptions disabled to any exception enabled
11337         or visa versa.
11338         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
11339         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
11340         when transitioning from all exceptions disabled to any exception
11341         enabled or visa versa.
11342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
11343         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
11344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
11345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
11346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
11347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
11349 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
11351         [BZ #4465]
11352         * posix/unistd.h: Remove __THROW from fdatasync.
11354 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
11356         [BZ #4465]
11357         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
11359 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
11361         * stdio-common/vfprintf.c (process_string_arg): Optimize
11362         ridiculous precision in wide char code printing multi-byte string.
11363         Reported by Jim Meyering <jim@meyering.net>.
11365         [BZ #4131]
11366         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
11367         boundaries to work around systems with overlapping binary loading.
11368         Based on a patch by Suzuki <suzuki@in.ibm.com>.
11370 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
11372         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
11373         __mbsnrtowcs after last change.
11375         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
11376         (get_ident): Likewise.
11378 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
11380         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
11381         with setting the sticky bit.
11382         * math/test-misc.c (main): Add more truncation tests.
11384 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
11386         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
11387         double in the function declaration.
11388         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
11389         double in the function declaration.
11390         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11391         float in the function declaration.
11392         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11393         float in the function declaration.
11395         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
11396         denormal operands.  Do not generate FP_EX_DENORM exception.
11397         (FP_UNPACK_RAW_EP): Ditto.
11398         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
11399         undefined _FP_UNPACK_RAW_E.
11400         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
11401         undefined _FP_UNPACK_RAW_EP.
11402         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
11403         undefined _FP_PACK_RAW_E.
11404         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
11405         undefined _FP_PACK_RAW_EP.
11407         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
11408         _FP_FRAC_COPY_2.
11409         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
11410         _FP_FRAC_COPY_4.
11412 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
11413             Jakub Jelinek  <jakub@redhat.com>
11415         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
11416         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
11417         this case.
11418         * soft-fp/op-common.h (FP_TRUNC): Ditto.
11420 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
11422         * math/test-misc.c (main): Add tests for rounding long double
11423         values close to smallest double denormalized value to double.
11425 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
11427         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
11428         condition for truncating to 0.  Set sticky bit for such
11429         truncation.
11431 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
11433         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
11434         fixed length array for ignore.
11436 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
11438         [BZ #4438]
11439         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
11440         stack for large precisions.
11441         * stdio-common/test-vfprintf.c (main): Add test for large
11442         precision.
11444 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
11446         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
11447         for exponent 0.
11448         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
11450         [BZ #4439]
11451         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
11452         account in the size check.
11453         * resolv/tst-inet_ntop.c: New test.
11454         * resolv/Makefile (tests): Add tst-inet_ntop.
11456 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
11457             Jakub Jelinek  <jakub@redhat.com>
11459         [BZ #4349]
11460         * malloc/malloc.c: Keep separate list for first blocks on the bin
11461         lists with a given size.  This helps skipping over list elements
11462         we know won't fit in two places.
11463         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
11465 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
11467         [BZ #4102]
11468         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
11469         label to Teredo tunnel addresses 2001://32.
11471 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
11473         * locale/programs/ld-collate.c (collate_read): Allow order_start
11474         after copy.
11476         * locale/programs/ld-collate.c (collate_read): Fix printing of
11477         error message.
11479         [BZ #3213]
11480         * locale/C-translit.h.in: Add entry for U2044.
11482         [BZ #4342]
11483         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
11484         hexa-decimal floats without exponent.
11485         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
11487 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11489         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
11490         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
11491         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
11492         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
11493         GLIBC_2.6.
11494         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
11495         Add sched_getcpu.
11497 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11499         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
11500         of 0 after the out_fail label.
11502 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11504         [BZ #4406]
11505         * iconv/gconv_charset.h (strip): Allow ':'.
11506         * iconv/iconv_open.c (iconv_open): Adjust comment.
11508 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11510         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
11511         version.
11513 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11515         [BZ #4381]
11516         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
11517         alignment of buffer and tmp_buffer.
11518         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
11519         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
11520         alignment of buffer.
11521         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
11522         bigger than INT_MAX.
11523         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
11524         h_errnop arguments.  Fail if buflen is too small.
11525         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
11527 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11529         [BZ #4405]
11530         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
11531         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
11533 2007-04-22  Roland McGrath  <roland@redhat.com>
11535         * elf/elf.h (NT_PRXFPREG): New macro.
11537 2007-04-19  Andreas Jaeger  <aj@suse.de>
11539         [BZ #3905]
11540         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
11541         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
11542         Added.
11544 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
11546         * include/sys/mman.h: Mark madvise hidden.
11547         * misc/madvise.c: Add libc_hidden_def.
11549 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
11551         * nis/nis_domain_of.c (__nis_domain_of): New function.
11552         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
11553         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
11554         * nis/nis_call.c (rec_dirsearch): Likewise.
11555         (first_shoot): Likewise.  Remove search_parent_first argument.
11556         (struct nis_server_cache): Rename search_parent_first field
11557         to search_parent.
11558         (nis_server_cache_search, nis_server_cache_add): Rename
11559         search_parent_first argument to search_parent.
11560         (__nisfind_server): Likewise.  If search_parent, call
11561         __nis_domain_of.
11563 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
11565         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
11567 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
11569         [BZ #4368]
11570         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
11572 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
11574         [BZ #4364]
11575         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
11577 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
11579         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
11580         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
11581         current number of locales in SUPPORTED.
11582         (create_archive): Initialize serial.
11583         (enlarge_archive): Preserve aliases rather than duplicating
11584         their locrecs.
11586 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11588         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
11589         after _IO_un_link, not before it.
11591         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
11592         special case handling when wcp == wstartp + 1.  Fix a comment typo.
11593         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
11595 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
11597         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
11598         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
11599         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
11600         Remove __THROW.
11601         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
11602         _IO_file_xsgetn_maybe_mmap): Likewise.
11603         * libio/oldfileops.c (old_do_write): Likewise.
11604         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
11605         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
11606         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
11607         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
11608         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
11609         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
11610         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
11611         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
11612         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
11613         _IO_file_underflow, _IO_file_underflow_mmap,
11614         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
11615         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
11616         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
11617         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
11618         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
11619         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
11620         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
11621         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
11622         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
11623         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
11624         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
11625         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
11626         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
11627         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
11628         _IO_adjust_column_internal, _IO_default_uflow_internal,
11629         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
11630         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
11631         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
11632         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
11633         _IO_file_close_it_internal, _IO_file_underflow_internal,
11634         _IO_file_overflow_internal, _IO_file_attach_internal,
11635         _IO_file_fopen_internal, _IO_file_sync_internal,
11636         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
11637         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
11638         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
11639         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
11640         _IO_seekpos_unlocked): Likewise.
11641         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
11642         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
11644 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
11646         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
11647         argument in xmalloc size computation.
11649 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11651         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
11652         math_opt_barrier and math_force_eval macros.
11654 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11656         [BZ #3306]
11657         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
11658         * sysdeps/i386/fpu/math_private.h: New file.
11659         * sysdeps/x86_64/fpu/math_private.h: New file.
11660         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
11661         math_force_eval macros.  Use "+m" constraint on asm rather than
11662         "=m" and "m".
11663         * math/s_nextafter.c (__nextafter): Likewise.
11664         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11665         Likewise.
11666         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
11667         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
11668         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11669         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
11670         math_opt_barrier and math_force_eval macros.
11671         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
11672         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
11673         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
11674         (__nexttoward): Use math_opt_barrier and
11675         math_force_eval macros.  Use "+m" constraint on asm rather than
11676         "=m" and "m".  Only use asm to force double result if
11677         FLT_EVAL_METHOD is 2.
11678         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
11679         (__nexttowardf): Use math_opt_barrier and
11680         math_force_eval macros.  Use "+m" constraint on asm rather than
11681         "=m" and "m".  Only use asm to force double result if
11682         FLT_EVAL_METHOD is not 0.
11683         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
11684         (__nexttowardf): Use math_opt_barrier and
11685         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11686         x to float using asm.
11687         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
11688         (__nldbl_nexttowardf): Use math_opt_barrier and
11689         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11690         x to float using asm.
11691         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
11692         (__nexttowardf): Use math_opt_barrier and math_force_eval
11693         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
11694         * math/bug-nextafter.c (zero, inf): New variables.
11695         (main): Add new tests.
11696         * math/bug-nexttoward.c (zero, inf): New variables.
11697         (main): Add new tests.
11699 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11701         [BZ #3427]
11702         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
11703         exceptions both in SW and MXCSR.
11704         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
11705         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
11706         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
11707         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11708         in MXCSR if SSE is available.
11709         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
11710         and ldsodefs.h.
11711         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
11712         Fix comment typo.
11713         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
11714         Return 0 rather than 1.
11715         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
11716         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
11717         * math/test-fenv.c (feholdexcept_tests): New function.
11718         (main): Call it.
11720 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
11722         [BZ #3427]
11723         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11724         in SW.
11726 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11728         [BZ #4344]
11729         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
11730         Reported by David Anderson <davea42@earthlink.net>.
11732 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
11734         * posix/sys/wait.h: Remove unnecessary forward declaration.
11736 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
11738         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
11739         with obj->do_servers after first_shoot.
11741 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
11743         * posix/Makefile (routines): Add sched_cpucount.
11744         (tests): Add tst-cpucount.
11745         * posix/sched_cpucount.c: New file.
11746         * posix/tst-cpucount.c: New file.
11747         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
11748         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
11749         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11750         * posix/sched.h: Define CPU_COUNT.
11752 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11754         * posix/fnmatch.c (STRUCT): Define.
11755         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
11756         * posix/fnmatch_loop.c (struct STRUCT): New type.
11757         (FCT): Add ends argument.  If ends != NULL and normal * is
11758         seen in the pattern, store current pattern and string pointers
11759         and return.  Adjust recursive calls.
11760         (EXT): Adjust FCT callers.
11761         (STRUCT): Undef at the end of the file.
11762         * posix/Makefile (tests): Add tst-fnmatch2.
11763         * posix/tst-fnmatch2.c: New test.
11765 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11767         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
11768         and 1 on failure.
11770         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11771         Change last argument to unsigned int.
11773 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
11775         * scripts/check-local-headers.sh: Filter out sys/capability.h.
11777 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11779         * config.h.in (HAVE_LIBCAP): Add.
11780         * nscd/selinux.h: Include sys/capability.h rather than non-existent
11781         sys/capabilities.h.
11782         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11783         free_caps.  Cast away const from 4th cap_set_flag argument.
11785 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
11787         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11788         GLIBC_2.6.
11789         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11790         Add sync_file_range.
11791         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11793 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
11795         * sysdeps/powerpc/bits/atomic.h
11796         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11797         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11798         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11799         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11800         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11801         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11802         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11803         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11804         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11805         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11806         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11807         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11808         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11809         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11810         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11811         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11812         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11813         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11814         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11815         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11817 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11819         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11820         (__cache_line_size): Define the variable here.  Add
11821         attribute_hidden, remove weak_extern.
11822         (__libc_start_main): Set __cache_line_size
11823         unconditionally.
11824         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11825         (__cache_line_size): Define the variable here.  Add
11826         attribute_hidden, remove weak_extern.
11827         (DL_PLATFORM_AUXV): Set __cache_line_size
11828         unconditionally.
11829         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11830         weak_extern, add attribute_hidden.
11831         (__elf_machine_runtime_setup): Assume __cache_line_size is always
11832         defined in ld.so.
11833         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11834         definition.
11835         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11837 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
11839         [BZ #4276]
11840         * timezone/africa: Update from tzdata2007d.
11841         * timezone/asia: Likewise.
11842         * timezone/australasia: Likewise.
11843         * timezone/backward: Likewise.
11844         * timezone/europe: Likewise.
11845         * timezone/iso3166.tab: Likewise.
11846         * timezone/leapseconds: Likewise.
11847         * timezone/northamerica: Likewise.
11848         * timezone/southamerica: Likewise.
11849         * timezone/zone.tab: Likewise.
11851         * timezone/private.h: Update from tzcode2007d.
11852         * timezone/zdump.c: Likewise.
11853         * timezone/zic.c: Likewise.
11855 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
11857         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
11858         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
11859         variables.
11860         (nis_server_cache_search, nis_server_cache_add): New functions.
11861         (__nisfind_server): Use them.  Add dbp and flags argument, if
11862         call __nisbind_create.
11863         (__nisbind_create): Add server_used and current_ep arguments,
11864         only call __nis_findfastest if server_used is ~0.
11865         (__do_niscall2, __prepare_niscall): Adjust callers.
11866         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
11867         ckey_cache_euid, ckey_cache_lock): New variables.
11868         (get_ckey): New function.
11869         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
11870         __pmap_getnisport.  Save __pmap_getnisport result in
11871         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
11872         key.
11873         * nis/nis_lookup.c (nis_lookup): Likewise.
11874         * nis/nis_table.c (nis_list): Likewise.
11875         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
11876         prototypes.
11878         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
11879         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
11880         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
11881         _nss_nisplus_getservbyport_r): Likewise.
11882         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
11883         _nss_nisplus_getnetbyaddr_r): Likewise.
11884         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
11885         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11886         _nss_nisplus_getntohost_r): Likewise.
11887         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11888         _nss_nisplus_getrpcbynumber_r): Likewise.
11890 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11892         * configure.in (libc_cv_gnu89_inline): Only do compile test.
11893         * configure: Rebuilt.
11895         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11896         bit-fields.
11897         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11899 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
11901         [BZ #2831]
11902         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11903         bit-fields.
11905 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
11907         * nscd/gai.c: Include alloca.h.
11908         (__libc_use_alloca): Define.
11910 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
11912         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11913         smaller scopes.
11914         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
11915         (DL_DST_REQUIRED): Adjust user.
11917         * include/dlfcn.h (struct link_map): New forward decl.
11919         * inet/getnameinfo.c: Include stddef.h.
11920         (getnameinfo): Use offsetof.
11922         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11924         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11926         * string/strerror_l.c: Include stdlib.h.
11928         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11929         * config.make.in (gnu89-inline-CFLAGS): New variable.
11930         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11931         -std=gnu99.
11932         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11933         * argp/argp.h: Use it.
11934         * bits/mathinline.h: Likewise.
11935         * bits/sigset.h: Likewise.
11936         * bits/string.h: Likewise.
11937         * ctype/ctype.h: Likewise.
11938         * hurd/hurd.h: Likewise.
11939         * hurd/hurd/fd.h: Likewise.
11940         * hurd/hurd/port.h: Likewise.
11941         * hurd/hurd/signal.h: Likewise.
11942         * hurd/hurd/threadvar.h: Likewise.
11943         * hurd/hurd/userlink.h: Likewise.
11944         * io/sys/stat.h: Likewise.
11945         * libio/bits/stdio.h: Likewise.
11946         * libio/bits/stdio2.h: Likewise.
11947         * mach/lock-intern.h: Likewise.
11948         * mach/mach/mig_support.h: Likewise.
11949         * math/bits/cmathcalls.h: Likewise.
11950         * posix/bits/unistd.h: Likewise.
11951         * socket/bits/socket2.h: Likewise.
11952         * stdlib/bits/stdlib.h: Likewise.
11953         * stdlib/stdlib.h: Likewise.
11954         * string/argz.h: Likewise.
11955         * string/bits/string2.h: Likewise.
11956         * string/bits/string3.h: Likewise.
11957         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11958         * sysdeps/generic/inttypes.h: Likewise.
11959         * sysdeps/generic/machine-lock.h: Likewise.
11960         * sysdeps/generic/machine-sp.h: Likewise.
11961         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11962         * sysdeps/i386/i486/bits/string.h: Likewise.
11963         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11964         * sysdeps/mach/alpha/machine-lock.h: Likewise.
11965         * sysdeps/mach/alpha/machine-sp.h: Likewise.
11966         * sysdeps/mach/i386/machine-lock.h: Likewise.
11967         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11968         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
11969         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
11970         * sysdeps/s390/bits/string.h: Likewise.
11971         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
11972         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11973         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
11974         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11975         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11976         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
11977         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11978         * wcsmbs/bits/wchar2.h: Likewise.
11979         * wcsmbs/wchar.h: Likewise.
11980         * stdlib/gmp.h: Likewise.  Include <features.h> to get
11981         __extern_inline definition.
11983 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
11985         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
11986         NULL.
11988         [BZ #3919]
11989         * math/libm-test.inc (log_test): Test -Inf and NaN.
11990         (log10_test, log1p_test, log2_test): Test -Inf.
11991         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
11992         FE_INVALID when argument is qNaN.
11993         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
11994         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
11995         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
11996         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
11997         andb $1, %ah with testb $1, %ah, don't test for parity, instead
11998         testb $4, %ah and jump if non-zero.
11999         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
12000         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
12002         [BZ #4101]
12003         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
12004         ancestors with the same depths.
12005         Patch by Niels Moeller <nisse@lysator.liu.se>.
12006         (filter_doc): Don't crash if argp is NULL.
12007         * argp/Makefile (tests): Add tst-argp2.
12008         * argp/tst-argp2.c: New test.
12010         [BZ #4130]
12011         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
12012         open_not_cancel_2.
12013         (updwtmp_file): Likewise.
12015         [BZ #4181]
12016         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
12017         (inet6_opt_append): Don't check extlen is big enough if extbuf
12018         is NULL.
12019         (inet6_opt_finish): Likewise.
12020         * inet/Makefile (tests): Add test-inet6_opt.
12021         * inet/test-inet6_opt.c: New test.
12023         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
12024         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
12025         NLMSG_ERR.  Instead use a page sized buffer.
12026         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
12027         buffer.
12029 2007-03-14  Richard Henderson  <rth@redhat.com>
12031         * sysdeps/alpha/fpu/s_llround.c: New file.
12032         * sysdeps/alpha/fpu/s_llroundf.c: New file.
12033         * sysdeps/alpha/fpu/s_lround.c: New file.
12034         * sysdeps/alpha/fpu/s_lroundf.c: New file.
12035         * sysdeps/alpha/fpu/s_round.c: New file.
12036         * sysdeps/alpha/fpu/s_roundf.c: New file.
12037         * sysdeps/alpha/fpu/s_trunc.c: New file.
12038         * sysdeps/alpha/fpu/s_truncf.c: New file.
12040         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
12041         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
12042         * sysdeps/alpha/fpu/s_floor.c: Likewise.
12043         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
12044         * sysdeps/alpha/fpu/s_rint.c: Likewise.
12045         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
12047         * sysdeps/alpha/fpu/s_fmax.S: New file.
12048         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
12049         * sysdeps/alpha/fpu/s_fmin.S: New file.
12050         * sysdeps/alpha/fpu/s_fminf.S: New file.
12051         * sysdeps/alpha/fpu/s_isnan.c: New file.
12052         * sysdeps/alpha/fpu/s_isnanf.c: New file.
12053         * sysdeps/alpha/fpu/s_llrint.c: New file.
12054         * sysdeps/alpha/fpu/s_llrintf.c: New file.
12055         * sysdeps/alpha/fpu/s_lrint.c: New file.
12056         * sysdeps/alpha/fpu/s_lrintf.c: New file.
12057         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
12058         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
12060         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
12061         (__fdimf, fdimf, __fdim, fdim): Remove.
12062         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
12063         (__isnanf, __isnan, __isnanl): New.
12065 2007-03-13  Richard Henderson  <rth@redhat.com>
12067         * sysdeps/ieee754/ldbl-128/Makefile: New file.
12069 2007-03-13  Richard Henderson  <rth@redhat.com>
12071         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
12072         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
12073         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
12074         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
12075         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
12076         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
12078 2007-03-13  Richard Henderson  <rth@redhat.com>
12080         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
12081         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
12082         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
12083         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
12084         Move to dl-auxv.h; initialize instead of extern weak.
12085         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
12086         weak symbol.
12087         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
12088         Extern instead of initialized.
12090 2007-03-13  Richard Henderson  <rth@redhat.com>
12092         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
12093         __sigsuspend_nocancel.
12095 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
12097         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
12098         172.16/12 address range.
12100 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
12102         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
12103         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
12104         message.
12106 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
12108         [BZ #4069]
12109         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
12110         earlier.
12111         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
12113         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
12114         for x qNaN and y either +-inf or non-integer value.
12115         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
12116         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
12117         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
12119 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
12121         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
12122         from sysdep_headers.
12124 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
12126         * time/tzfile.c (find_transition): Instead of a linear search try to
12127         guess the transition index, use a linear search if the result is at
12128         most 10 transitions away from the guess or binary search otherwise.
12130 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
12132         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
12133         memory reallocation.
12135 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
12137         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
12138         and fix some typos.
12139         Optimize use of TOLOWER.
12141         [BZ #3325]
12142         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
12143         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
12144         * sysdeps/i386/fpu/e_fmod.S: Likewise.
12146         [BZ #3458]
12147         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
12148         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
12150         [BZ #4076]
12151         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
12152         (open_dir_stream): Likewise.
12153         * io/Makefile (tests): Add bug-ftw5.
12154         * io/bug-ftw5.c: New file.
12156         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
12157         * nscd/servicescache.c (cache_addserv): Likewise.
12159         * nscd/grpcache.c (cache_addgr): In case a record changed on
12160         refresh, adjust key_copy.
12162         [BZ #4074]
12163         * nscd/pwdcache.c (cache_addpw): In case a record changed on
12164         refresh, adjust key_copy.
12166         [BZ #4070]
12167         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
12168         special cases.
12169         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
12171 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
12173         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
12174         optimization.
12176         * stdio-common/vfscanf.c: Small cleanups throughout.
12178 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
12180         [BZ #3325]
12181         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
12182         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
12183         * sysdeps/i386/fpu/e_fmod.S: Likewise.
12184         Patch by Jared Casper <jaredcasper@gmail.com>.
12186         * sysdeps/unix/closedir.c: Outside libc don't use locking.
12187         * sysdeps/unix/opendir.c: Likewise.
12188         * sysdeps/unix/readdir.c: Likewise.
12190         [BZ #2211]
12191         * stdio-common/vfscanf.c: Handle localized digits etc for floating
12192         point numbers.
12193         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
12195         * stdio-common/vfscanf.c: Fix problems in width accounting.
12196         * stdio-common/tst-sscanf.c (double_tests): New tests.
12197         (main): Hook them up.
12199         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
12200         More simplifications of floating-point reader.
12202         * stdio-common/Makefile (tests): Add tst-swscanf.
12203         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
12204         testing.
12205         * stdio-common/tst-swscanf.c: New file.
12207 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
12209         [BZ #2633]
12210         * libio/stdio.h: Define struct _IO_FILE in global namespace.
12211         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
12212         Remove using for __jmp_buf_tag.
12213         * locale/locale.h (struct lconv): Also define in std namespace.
12214         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
12216         [BZ #3842]
12217         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
12218         using __libc_enable_secure.
12220         [BZ #3818]
12221         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
12223         [BZ #3745]
12224         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
12225         of names for ellipsises.
12227         [BZ #3348]
12228         * malloc/memusage.sh: Cleanups.
12229         * debug/xtrace.sh: Quoting and trap changes.
12231 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
12233         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
12235         * locale/iso-3166.def: Update entry for Serbia.
12236         * locale/iso-4217.def: Define RSD, remove CSD.
12238         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
12239         and 64-bit operations.
12241         [BZ #4040]
12242         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
12243         16-bit operations.
12245         * nscd/nscd.c (parse_opt): One more conversion to use send instead
12246         of writev.
12248 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
12250         [BZ #3991]
12251         * assert/assert.h (assert): Simplify.
12252         (assert_perror): Likewise.
12253         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
12255         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
12256         reqdata.
12258         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
12259         change: don't pass NULL in place of an integer.
12261 2007-02-02  Bruno Haible  <bruno@clisp.org>
12263         [BZ #3954]
12264         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
12265         Add mapping for U+327E.
12266         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
12267         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12268         mapping of 0xD9 0xE8.
12269         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
12270         mapping of U+327E.
12271         Reported by Jungshik Shin <jungshik@google.com>.
12273         [BZ #3955]
12274         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12275         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
12276         Reported by Jungshik Shin <jungshik@google.com>.
12278 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
12280         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
12281         byte variants.
12283         [BZ #4040]
12284         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
12285         byte variants.  Patch mostly be tom@tommay.net.
12287 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
12289         [BZ #3996]
12290         * posix/glob.c (attribute_hidden): Define if not defined.
12291         (glob): Unescape dirname, filename or username when needed and not
12292         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
12293         is NULL.  Handle unescaped [ in pattern without closing ].
12294         Don't pass GLOB_CHECK down to recursive glob for directories.
12295         (__glob_pattern_type): New function.
12296         (__glob_pattern_p): Implement using __glob_pattern_type.
12297         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
12298         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
12299         Remove unreachable code.
12300         * posix/globtest.sh: Add a couple of new tests.
12302 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
12304         * po/ru.po: Update from translation team.
12306 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
12308         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
12309         to the list of i486+ CPUs.
12310         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12312 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
12314         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
12315         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
12316         references.
12318 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
12320         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
12322         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
12323         * resolv/res_mkquery.c: Define __res_nopt.
12324         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
12325         try adding EDNS0 record.
12326         * resolv/res_send.c (send_dg): If request failed with FORMERR and
12327         EDNS0 record was send make sure we don't try it again.
12328         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
12329         * include/resolv.h: Declare __res_nopt.
12331 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
12333         [BZ #3944]
12334         * time/strptime_l.c (__strptime_internal): Set have_mon for
12335         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
12336         have been computed from tm_yday and tm_year.  Don't crash
12337         in day_of_the_week or day_of_the_year if not have_mon
12338         and tm_mon contains bogus value.
12339         * time/Makefile (tests): Add tst-strptime3.
12340         * time/tst-strptime3.c: New test.
12342 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
12344         [BZ #3957]
12345         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
12346         bit for RE_HAT_LISTS_NOT_NEWLINE.
12347         (build_charclass_op): Remove bogus comment.
12348         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
12349         * posix/bug-regex27.c: New test.
12350         * posix/bug-regex28.c: New test.
12352 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
12354         * po/sv.po: Update from translation team.
12356 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
12358         * nscd/nscd_helper.c (open_socket): Minor size optimization.
12360 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
12362         * include/locale.h (__uselocale): Add libc_hidden_proto.
12363         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
12365         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
12366         gettimeofday.
12368 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
12370         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
12371         returning.
12372         (PTR_DEMANGLE): Real definition now that it's not the same as
12373         PRT_MANGLE anymore.
12374         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
12376         * string/strerror_l.c: New file.
12377         * string/Makefile (routines): Add strerror_l.
12378         * string/string.h: Declare strerror_l.
12379         * string/Versions: Export strerror_l for GLIBC_2.6.
12381 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
12383         * nscd/nscd_helper.c (open_socket): Now takes request type and key
12384         as parameter.  Construct request record.  Try sending request
12385         before the first poll use, it usually succeeds.  Adjust all
12386         callers.
12387         * nscd/nscd-client.h: Define MAXKEYLEN.
12388         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
12390 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
12392         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
12393         from return value.
12394         * nscd/nscd_helper.c: Include string.h.
12395         (__nscd_cache_search): Remove const qualifier from return value.
12396         On strict alignment architectures check hash entry and data head
12397         alignment.
12398         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
12399         mmapped data during GC cycle contains garbage.  If
12400         __nscd_drop_map_ref fails, decrement mapped->counter when returning
12401         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
12402         dropped to 0.
12403         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
12404         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
12405         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
12406         * nscd/nscd_getai.c (__nscd_getai): Likewise.
12407         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12409 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
12411         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
12413 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
12415         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
12416         names not numbers in cfi_*.
12418 2007-01-26  Andreas Jaeger  <aj@suse.de>
12420         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
12421         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
12422         Correct values of PER_HPUX and PER_OSF4.
12424 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
12426         * elf/dl-minimal.c: Undefine _itoa first.
12427         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
12428         * malloc/mtrace.c: Revert last change.
12429         * posix/wordexp.c: Likewise.
12431 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
12433         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
12434         and __geode__ to the list of i486+ CPUs.
12435         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12437 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
12439         * stdio-common/_itoa.c: Include <limits.h>.
12440         * stdio-common/_itowa.c: Likewise.
12442 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
12444         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
12445         platforms.
12446         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
12447         64-bit platforms.
12448         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
12449         possible.
12450         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
12451         if possible.
12453         [BZ #3902]
12454         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
12455         * stdio-common/Makefile (tests): Add bug17.
12456         * stdio-common/bug17.c: New file.
12458 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
12460         * iconvdata/brf.c: New file.
12461         * iconvdata/testdata/BRF: New file.
12462         * iconvdata/testdata/BRF..UTF8: New file.
12463         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
12464         * iconvdata/Makefile: Add rules to build BRF.
12465         * iconvdata/TESTS: Add BRF entry.
12466         * iconvdata/gconv-modules: Likewise.
12467         * iconvdata/tst-tables.sh: Likewise.
12469 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
12471         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
12472         type `long long int', not `long int'.
12473         (wcstoq): Likewise.
12475 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
12477         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
12478         of values on 64-bit platforms which are too large.
12480 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
12481             Joe Kerian  <jkerian@us.us.ibm.com>
12483         [BZ #2749]
12484         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
12485         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
12486         (__copysignl): Use signbit() for comparison.
12487         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
12488         SET_LDOUBLE_WORDS64.
12490         [BZ #2423, #2749]
12491         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
12492         (__ceill): Remove calls to fegetround(), fesetround().
12493         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12494         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12495         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12497 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
12499         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
12501         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
12503 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
12505         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
12506         demangle pointer.
12507         * csu/libc-start.c: Likewise.
12509 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
12511         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
12512         really work anyway.
12514 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12516         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
12517         users.
12518         (handle_request): Remove unnecessary tests.
12520         * nscd/cache.c (cache_add): Record the failure to add to the cache.
12522 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
12524         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
12525         workbits in semi-raw fraction.
12527         * math/test-misc.c: Add new tests.
12529 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
12531         * math/basic-test.c: Include test-skeleton.c.
12532         (TEST_TRUNC): Define.
12533         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
12534         (main): Rename to ...
12535         (do_test): ...this.  Run new tests.
12536         (TEST_FUNCTION): Define.
12538 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
12539             Joe Kerian  <jkerian@us.us.ibm.com>
12541         [BZ #2749]
12542         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
12543         handling for high words.
12544         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
12545         and overflow for infinity.
12547 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12549         * nscd/connections.c (handle_request): Add a __builtin_expect.
12551         * nscd/connections.c (serv2db): Change type into structure which
12552         also says whether this is a request for data.  Renamed to
12553         servinfo.  All users changed.
12554         (handle_request): Much simpler test whether we should search the cache.
12556         * nscd/connections.c (handle_request): Fix thinko in selinux test
12557         invocation.
12559         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
12560         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
12561         it before getting dl_load_lock and then relock.
12562         (_dl_lookup_symbol_x): Pass flags to add_dependency.
12563         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
12564         case we unlocked the scope.
12565         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
12566         _dl_lookup_symbol_x in case we locked the scope.
12567         (_dl_profile_fixup): Likewise.
12568         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
12569         set DL_LOOKUP_SCOPE_LOCK.
12571 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
12573         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
12574         CFLAGS-getsrvbynpt_r.c.
12575         * nscd/getsrvbynm_r.c: New file.
12576         * nscd/getsrvbypt_r.c: New file.
12577         * nscd/nscd_getserv_r.c: New file.
12578         * nscd/servicescache.c: New file.
12579         * nscd/Makefile (routines): Add nscd_getserv_r.
12580         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
12581         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
12582         CFLAGS-getsrvbypt_r.c.
12583         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
12584         table.  Add entries for services database.
12585         * nscd/connections.c (serv2str): Mark as const.  Add entries for
12586         services database.
12587         (dbs): Add .reset_res and servdb initialization.
12588         (serv2db): Add entries for services database.
12589         (verify_persistent_db): Accept dbnr == servdb.
12590         (invalidate_cache): Rewrite database name recognition to use a table.
12591         Call res_init() if .reset_res is set for database.
12592         (handle_request): Add code to handle services database.
12593         * nscd/gai.c: Don't define __getservbyname_r.
12594         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
12595         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
12596         (serv_response_header): Define.
12597         (struct datahead): Add serv_response_header member.
12598         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
12599         using table.
12600         * nscd/nscd.conf: Add entries for services database.
12601         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
12602         Declare serv_iov_disabled.
12603         Declare addservbyname, readdservbyname, addservbyport, and
12604         readdservbyport.
12605         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
12606         (find_db): Fix error message.
12607         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
12608         __nscd_getservbyname_r, and __nscd_getservbyport_r.
12609         * nscd/selinux.c (perms): Add entries for services database.
12610         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
12611         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
12613         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
12614         * nscd/hstcache.c: Likewise.
12615         * nscd/pwdcache.c: Likewise.
12617         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
12618         computation of keylen.
12620         * include/string.h: Only redefine strndupa if this is really for
12621         libc code.
12623 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
12625         * nscd/nscd_gethst_r.c: Minor cleanups.
12627         * nscd/connections.c (handle_request): Check selinux permissions
12628         for all non-admin commands.
12630         * sysdeps/i386/i486/bits/atomic.h: Define
12631         atomic_compare_and_exchange_val_acq,
12632         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
12633         using __sync_* built-ins for gcc >= 4.1.
12634         * sysdeps/x86_64/bits/atomic.h: Likewise.
12636         [BZ #3840]
12637         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
12638         and .oS.d files.
12640 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
12642         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
12643         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
12644         (do_test): Check errno and exit(0) if ENOSYS.
12646 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12648         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
12649         thousands separators.
12650         * stdlib/Makefile: Add rules to build and run tst-strtod4.
12651         * stdlib/tst-strtod4.c: New test.
12653         [BZ #3855]
12654         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
12655         hexadecimal digit should accept just the initial 0.
12656         * stdlib/tst-strtod2.c (tests): New variable.
12657         (do_test): Run several tests rather than just one.
12659 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12661         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
12662         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12664 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
12666         * io/fts.c: Make sure fts_cur is always valid after return from
12667         fts_read.
12668         Patch by Miloslav Trmac <mitr@redhat.com>.
12670 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
12672         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
12673         (R_MIPS_NUM): Bump by 1.
12675 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
12677         * posix/execvp.c: Include alloca.h.
12678         (allocate_scripts_argv): Renamed to...
12679         (scripts_argv): ... this.  Don't allocate buffer here nor count
12680         arguments.
12681         (execvp): Use alloca if possible.
12682         * posix/Makefile: Add rules to build and run tst-vfork3 test.
12683         * posix/tst-vfork3.c: New test.
12685 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
12687         * string/Makefile (tst-strxfrm2-ENV): Define.
12688         * stdlib/Makefile (tst-strtod3-ENV): Define.
12690 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
12692         * posix/getconf.c: Update copyright year.
12693         * nss/getent.c: Likewise.
12694         * iconv/iconvconfig.c: Likewise.
12695         * iconv/iconv_prog.c: Likewise.
12696         * elf/ldconfig.c: Likewise.
12697         * catgets/gencat.c: Likewise.
12698         * csu/version.c: Likewise.
12699         * elf/ldd.bash.in: Likewise.
12700         * elf/sprof.c (print_version): Likewise.
12701         * locale/programs/locale.c: Likewise.
12702         * locale/programs/localedef.c: Likewise.
12703         * nscd/nscd.c (print_version): Likewise.
12704         * debug/xtrace.sh: Likewise.
12705         * malloc/memusage.sh: Likewise.
12706         * malloc/mtrace.pl: Likewise.
12707         * debug/catchsegv.sh: Likewise.
12709 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
12711         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
12712         attempts.
12714 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
12716         * posix/wordexp.c: Remove some unnecessary tests.
12718 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
12720         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
12721         blacklist the group till after we look it up.
12723 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
12725         * include/atomic.h (atomic_forced_read): New macro.
12727 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
12729         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
12731 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
12733         * nss/getXXbyYY_r.c: Include atomic.h.
12734         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
12735         add atomic_write_barrier () in between.
12737         * stdlib/Makefile (tests): Add tst-makecontext.
12738         * stdlib/tst-makecontext.c: New test.
12740         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12741         (__makecontext): Don't realign uc_mcontext.uc_regs.
12743 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
12745         * elf/dl-support.c: Include dl-procinfo.h.
12746         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
12747         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
12748         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
12749         Define.
12750         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
12751         hardcoded constants.
12752         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
12753         PPC_PLATFORM_* macros for array designators.
12755 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
12757         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
12758         names to the beginning.
12759         (_dl_powerpc_platforms): Add "power6x".
12760         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12761         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
12762         (_DL_PLATFORMS_COUNT): Increase.
12763         (_dl_string_platform): Handle power6x case.
12764         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
12765         PPC_FEATURE_POWER6_EXT): Define.
12766         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
12768 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
12770         [BZ #3747]
12771         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12772         [-2^31 .. 2^31) range.
12773         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12774         targets.
12775         * stdlib/tst-rand48-2.c: New test.
12776         * stdlib/Makefile (tests): Add tst-rand48-2.
12778 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
12780         * misc/tst-pselect.c (do_test): Fix sigblock argument.
12782 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
12784         * misc/tst-pselect.c (do_test): Make sure the helper process is
12785         terminating when the test is aborted.
12787 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
12789         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12790         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12791         Handle relatime mount option.
12793         [BZ #2337]
12794         * libio/Makefile (tests): Add tst-setvbuf1.
12795         * libio/tst-setvbuf1.c: New file.
12797 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
12799         [BZ #2337]
12800         * libio/genops.c (__uflow): Fix a typo.
12801         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12802         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
12803         the narrow buffer size.
12805 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
12807         [BZ #2337]
12808         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12809         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12810         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12811         in _flags.
12812         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12813         _IO_wstr_finish): Likewise.
12814         * libio/wmemstream.c (open_wmemstream): Likewise.
12815         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12816         even for wide streams.
12818 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
12820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12821         kernel-features.h.
12823 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
12825         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12826         separators also if no non-zero digits found.
12827         * stdlib/Makefile (tests): Add tst-strtod3.
12829 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
12831         [BZ #3632]
12832         * include/features.h: Fix comment about default value for
12833         _POSIX_C_SOURCE.
12835         [BZ #3664]
12836         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12837         empty parsed strings.
12838         * stdlib/Makefile (tests): Add tst-strtod2.
12839         * stdlib/tst-strtod2.c: New file.
12841         [BZ #3673]
12842         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12843         computation.
12844         * stdlib/Makefile (tests): Add tst-atof2.
12845         * stdlib/tst-atof2.c: New file.
12847         [BZ #3674]
12848         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12849         correctly if removing trailing zero of hex-float.
12850         * stdlib/Makefile (tests): Add tst-atof1.
12851         * stdlib/tst-atof1.c: New file.
12853 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
12855         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
12856         Start searching for next comma at p rather than rest.
12857         * misc/Makefile (tests): Add tst-mntent2.
12858         * misc/tst-mntent2.c: New test.
12860         * misc/getusershell.c (initshells): Check for integer overflows.
12861         Make strings buffer one bigger as fgets always succeeds when second
12862         argument is 1.  Don't use calloc for shells array.  Disallow
12863         / as shell.
12865 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
12867         * malloc/memusage.c: Handle realloc with new size of zero and
12868         non-NULL pointer correctly.
12869         (me): Really write first record twice.
12870         (struct entry): Make format bi-arch safe.
12871         (dest): Write out more realloc statistics.
12872         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
12874 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
12876         * nis/nis_subr.c (nis_getnames): Revert last change.
12878 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
12880         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
12881         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
12882         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
12883         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
12884         ENOTTY.
12885         * io/Makefile: Add rules to build and run tst-ttyname_r test.
12886         * io/tst-ttyname_r.c: New test.
12888 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12890         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12892 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
12894         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12895         jump table entries.
12897 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
12899         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12900         `clone' function to ensure proper unwinding stop of gdb.
12901         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12903 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
12905         * nscd/nscd.init: Remove obsolete and commented-out -S option
12906         handling.
12908 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
12910         [BZ #3514]
12911         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12913         [BZ #3515]
12914         * manual/string.texi (strtok): Remove duplicate paragraph.
12916 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
12918         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
12919         libgcc not supporting `rflags' unwinding (register # >= 17).
12921 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
12923         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12924         succeeded.
12926 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
12927             Jakub Jelinek  <jakub@redhat.com>
12928             Jan Kratochvil  <jan.kratochvil@redhat.com>
12930         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12931         unwind information.
12932         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12933         'restore_rt' even in the 'signal' directory.
12934         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12936 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
12938         [BZ #3559]
12939         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12940         malloc crashed.  Don't allocate memory unnecessarily in each
12941         loop.
12943 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
12945         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12947 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
12949         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12951 2006-11-18  Bruno Haible  <bruno@clisp.org>
12953         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12954         __sysconf only after having tried to call getgroups32.
12956 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
12958         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12959         addresses for IPv4 queries if they can be mapped.
12961 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
12963         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12964         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
12965         (signmask): Add .size directive.
12966         (othermask): Add .type directive.
12968 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
12970         * po/nl.po: Update from translation team.
12972         * timezone/zdump.c: Redo fix for BZ #3137.
12974 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
12976         * nss/nss_files/files-alias.c (get_next_alias): Set line back
12977         to first_unused after parsing :include: file.
12979 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12981         * timezone/africa: Update from tzdata2006o.
12982         * timezone/antarctica: Likewise.
12983         * timezone/asia: Likewise.
12984         * timezone/australasia: Likewise.
12985         * timezone/backward: Likewise.
12986         * timezone/europe: Likewise.
12987         * timezone/iso3166.tab: Likewise.
12988         * timezone/northamerica: Likewise.
12989         * timezone/southamerica: Likewise.
12990         * timezone/zone.tab: Likewise.
12992         * time/tzfile.c (__tzfile_read): Extend to handle new file format
12993         on machines with 64-bit time_t.
12995         * timezone/checktab.awk: Update from tzcode2006o.
12996         * timezone/ialloc.c: Likewise.
12997         * timezone/private.h: Likewise.
12998         * timezone/scheck.c: Likewise.
12999         * timezone/tzfile.h: Likewise.
13000         * timezone/tzselect.ksh: Likewise.
13001         * timezone/zdump.c: Likewise.
13002         * timezone/zic.c: Likewise.
13004         [BZ #3483]
13005         * elf/ldconfig.c (main): Call setlocale and textdomain.
13006         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
13008         [BZ #3480]
13009         * manual/argp.texi: Fix typos.
13010         * manual/charset.texi: Likewise.
13011         * manual/errno.texi: Likewise.
13012         * manual/filesys.texi: Likewise.
13013         * manual/lang.texi: Likewise.
13014         * manual/maint.texi: Likewise.
13015         * manual/memory.texi: Likewise.
13016         * manual/message.texi: Likewise.
13017         * manual/resource.texi: Likewise.
13018         * manual/search.texi: Likewise.
13019         * manual/signal.texi: Likewise.
13020         * manual/startup.texi: Likewise.
13021         * manual/stdio.texi: Likewise.
13022         * manual/sysinfo.texi: Likewise.
13023         * manual/syslog.texi: Likewise.
13024         * manual/time.texi: Likewise.
13025         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13027         [BZ #3465]
13028         * sunrpc/clnt_raw.c: Minimal message improvements.
13029         * sunrpc/pm_getmaps.c: Likewise.
13030         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
13031         * nis/nis_print_group_entry.c: Likewise.
13032         * locale/programs/repertoire.c: Likewise.
13033         * locale/programs/charmap.c: Likewise.
13034         * malloc/memusage.sh: Likewise.
13035         * elf/dl-deps.c: Likewise.
13036         * locale/programs/ld-collate.c: Likewise.
13037         * libio/vswprintf.c: Likewise.
13038         * malloc/memusagestat.c: Likewise.
13039         * sunrpc/auth_unix.c: Likewise.
13040         * sunrpc/rpc_main.c: Likewise.
13041         * nscd/cache.c: Likewise.
13042         * locale/programs/repertoire.c: Unify output messages.
13043         * locale/programs/charmap.c: Likewise.
13044         * locale/programs/ld-ctype.c: Likewise.
13045         * locale/programs/ld-monetary.c: Likewise.
13046         * locale/programs/ld-numeric.c: Likewise.
13047         * locale/programs/ld-time.c: Likewise.
13048         * elf/ldconfig.c: Likewise.
13049         * nscd/selinux.c: Likewise.
13050         * elf/cache.c: Likewise.
13051         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
13053         [BZ #3451]
13054         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
13055         change atomic.
13056         (ceil): Likewise.
13058 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
13060         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
13061         if N is one bigger than return value.
13062         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
13063         and l1 last arguments, if buf is defined, verify the return value
13064         equals to strlen (buf) and verify no byte beyond passed length
13065         is modified.
13067 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
13069         * po/sv.po: Update from translation team.
13071 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
13073         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
13074         noinline attribute.
13076 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
13078         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
13079         noinline attribute.
13081         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
13082         Use __new_sys_siglist instead of _sys_siglist_internal as
13083         second macro argument.
13084         (_old_sys_siglist): Use declare_symbol_alias macro instead of
13085         strong_alias.
13087 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
13089         [BZ #3493]
13090         * posix/unistd.h (sysconf): Remove const attribute.
13092         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
13093         temporary or deprecated addresses.
13094         Patch by Sridhar Samudrala <sri@us.ibm.com>.
13096         * string/Makefile (tests): Add tst-strxfrm2.
13097         * string/tst-strxfrm2.c: New file.
13099 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
13101         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
13102         rather than r->r_brk.
13104 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
13106         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
13107         optimization even if needed > n.
13109         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
13110         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
13111         return false, otherwise return true.
13112         (cache_rpath): Return decompose_rpath return value.
13114 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
13116         * include/libc-symbols.h (declare_symbol): Rename to...
13117         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
13118         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
13119         .size directive.
13120         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
13121         changes.
13122         * sysdeps/gnu/siglist.c: Likewise.
13124 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
13126         * sysdeps/powerpc/fpu/bits/mathinline.h
13127         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
13128         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
13130 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
13132         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
13133         Update handling of cache descriptor 0x49 for new models.
13134         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
13135         Likewise.
13137 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
13139         * malloc/memusage.c (dest): Reset not_me back to false after
13140         printing statistics.
13142 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
13144         * configure.in: Work around ld --help change and avoid -z relro
13145         test completely if the architecture doesn't care about security.
13147 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
13149         * po/sv.po: Update from translation team.
13151 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
13153         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
13154         generate compatibility version.
13156 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
13158         * configure.in: Relax -z relro requirement a bit.
13160         * po/sv.po: Update from translation team.
13162 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
13164         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
13165         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
13166         * elf/dl-close.c (_dl_close_worker): Likewise.
13167         * elf/dl-open.c (_dl_open_worker): Likewise.
13168         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
13170 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
13172         * configure.in: Require assembler support for visibility, compiler
13173         support for visibility and aliases, linker support for various -z
13174         options.
13175         * Makeconfig: Remove conditional code which now is unnecessary.
13176         * config.h.in: Likewise.
13177         * config.make.in: Likewise.
13178         * dlfcn/Makefile: Likewise.
13179         * elf/Makefile: Likewise.
13180         * elf/dl-load.c: Likewise.
13181         * elf/rtld.c: Likewise.
13182         * include/libc-symbols.h: Likewise.
13183         * include/stdio.h: Likewise.
13184         * io/Makefile: Likewise.
13185         * io/fstat.c: Likewise.
13186         * io/fstat64.c: Likewise.
13187         * io/fstatat.c: Likewise.
13188         * io/fstatat64.c: Likewise.
13189         * io/lstat.c: Likewise.
13190         * io/lstat64.c: Likewise.
13191         * io/mknod.c: Likewise.
13192         * io/mknodat.c: Likewise.
13193         * io/stat.c: Likewise.
13194         * io/stat64.c: Likewise.
13195         * libio/stdio.c: Likewise.
13196         * nscd/Makefile: Likewise.
13197         * stdlib/Makefile: Likewise.
13198         * stdlib/atexit.c: Likewise.
13199         * sysdeps/generic/ldsodefs.h: Likewise.
13200         * sysdeps/i386/dl-machine.h: Likewise.
13201         * sysdeps/i386/sysdep.h: Likewise.
13202         * sysdeps/i386/i686/memcmp.S: Likewise.
13203         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13204         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13205         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13207         * Makerules: USE_TLS support is now default.
13208         * tls.make.c: Likewise.
13209         * csu/Versions: Likewise.
13210         * csu/libc-start.c: Likewise.
13211         * csu/libc-tls.c: Likewise.
13212         * csu/version.c: Likewise.
13213         * dlfcn/dlinfo.c: Likewise.
13214         * elf/dl-addr.c: Likewise.
13215         * elf/dl-cache.c: Likewise.
13216         * elf/dl-close.c: Likewise.
13217         * elf/dl-iteratephdr.c: Likewise.
13218         * elf/dl-load.c: Likewise.
13219         * elf/dl-lookup.c: Likewise.
13220         * elf/dl-object.c: Likewise.
13221         * elf/dl-open.c: Likewise.
13222         * elf/dl-reloc.c: Likewise.
13223         * elf/dl-support.c: Likewise.
13224         * elf/dl-sym.c: Likewise.
13225         * elf/dl-sysdep.c: Likewise.
13226         * elf/dl-tls.c: Likewise.
13227         * elf/ldconfig.c: Likewise.
13228         * elf/rtld.c: Likewise.
13229         * elf/tst-tls-dlinfo.c: Likewise.
13230         * elf/tst-tls1.c: Likewise.
13231         * elf/tst-tls10.h: Likewise.
13232         * elf/tst-tls14.c: Likewise.
13233         * elf/tst-tls2.c: Likewise.
13234         * elf/tst-tls3.c: Likewise.
13235         * elf/tst-tls4.c: Likewise.
13236         * elf/tst-tls5.c: Likewise.
13237         * elf/tst-tls6.c: Likewise.
13238         * elf/tst-tls7.c: Likewise.
13239         * elf/tst-tls8.c: Likewise.
13240         * elf/tst-tls9.c: Likewise.
13241         * elf/tst-tlsmod1.c: Likewise.
13242         * elf/tst-tlsmod13.c: Likewise.
13243         * elf/tst-tlsmod13a.c: Likewise.
13244         * elf/tst-tlsmod14a.c: Likewise.
13245         * elf/tst-tlsmod2.c: Likewise.
13246         * elf/tst-tlsmod3.c: Likewise.
13247         * elf/tst-tlsmod4.c: Likewise.
13248         * elf/tst-tlsmod5.c: Likewise.
13249         * elf/tst-tlsmod6.c: Likewise.
13250         * include/errno.h: Likewise.
13251         * include/link.h: Likewise.
13252         * include/tls.h: Likewise.
13253         * locale/global-locale.c: Likewise.
13254         * locale/localeinfo.h: Likewise.
13255         * malloc/arena.c: Likewise.
13256         * malloc/hooks.c: Likewise.
13257         * malloc/malloc.c: Likewise.
13258         * resolv/Versions: Likewise.
13259         * sysdeps/alpha/dl-machine.h: Likewise.
13260         * sysdeps/alpha/libc-tls.c: Likewise.
13261         * sysdeps/generic/ldsodefs.h: Likewise.
13262         * sysdeps/generic/tls.h: Likewise.
13263         * sysdeps/i386/dl-machine.h: Likewise.
13264         * sysdeps/ia64/dl-machine.h: Likewise.
13265         * sysdeps/ia64/libc-tls.c: Likewise.
13266         * sysdeps/mach/hurd/fork.c: Likewise.
13267         * sysdeps/mach/hurd/i386/tls.h: Likewise.
13268         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
13269         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
13270         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
13271         * sysdeps/s390/libc-tls.c: Likewise.
13272         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13273         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13274         * sysdeps/sh/dl-machine.h: Likewise.
13275         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13276         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13277         * sysdeps/x86_64/dl-machine.h: Likewise.
13279         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
13280         split out locking and parameter checking.
13281         (_dl_close): Call _dl_close_worker after locking and checking.
13282         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
13283         _dl_close.
13284         * elf/Makefile: Add rules to build and run tst-thrlock.
13285         * elf/tst-thrlock.c:  New file.
13287         [BZ #3426]
13288         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
13289         reality.
13291         [BZ #3429]
13292         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
13293         we are sure we do not need it anymore for _dl_close.  Also move
13294         the asserts inside the lock region.
13295         Patch mostly by Suzuki <suzuki@in.ibm.com>.
13297 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
13299         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
13300         argument.
13301         (_dl_lookup_symbol_x): Adjust caller.
13303         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
13304         _ns_global_scope.
13305         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
13307         * elf/dl-libc.c: Revert l_scope name changes.
13308         * elf/dl-load.c: Likewise.
13309         * elf/dl-object.c: Likewise.
13310         * elf/rtld.c: Likewise.
13311         * elf/dl-close.c (_dl_close): Likewise.
13312         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
13313         always use __rtld_mrlock_{change,done}.  Always free old scope list
13314         here if not l_scope_mem.
13315         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
13316         change.  Never free scope list here.  Just __rtld_mrlock_lock before
13317         the lookup and __rtld_mrlock_unlock it after the lookup.
13318         * elf/dl-sym.c: Likewise.
13319         * include/link.h (struct r_scoperec): Remove.
13320         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
13321         with l_scope_mem and l_scoperec_lock with l_scope_lock.
13323 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
13325         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
13327 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13329         * configure.in: Disable building profile libraries by default.
13331 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13333         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
13334         as signed longs, check for x_base + pos overflow.
13335         * sunrpc/Makefile (tests): Add tst-xdrmem2.
13336         * sunrpc/tst-xdrmem2.c: New test.
13338 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13340         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
13341         _dl_lookup_symbol_x code.
13343 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13345         * elf/dl-runtime.c: Include sysdep-cancel.h.
13346         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
13347         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
13348         instead of catomic_* macros.
13349         * elf/dl-sym.c: Include sysdep-cancel.h.
13350         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
13351         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13352         * elf/dl-close.c: Include sysdep-cancel.h.
13353         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
13354         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13355         * elf/dl-open.c: Include sysdep-cancel.h.
13356         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
13357         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13359 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13361         [BZ #3313]
13362         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
13363         fastbin rather than end of fastbin array.
13365 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13367         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
13368         body macro.
13369         * sysdeps/x86_64/bits/atomic.h
13370         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
13371         (catomic_decrement): Use correct body macro.
13373 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13375         * include/atomic.h: Add a unique prefix to all local variables
13376         in macros.
13377         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
13379 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
13381         [BZ #3369]
13382         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
13383         and 7.
13385 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
13387         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
13389 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
13391         [BZ #3313]
13392         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
13393         determine highest fast bin to consolidate, always look into all of
13394         them.
13395         (do_check_malloc_state): Only require for empty bins for large
13396         sizes in main arena.
13398         * libio/stdio.h: Add more __wur attributes.
13400         * elf/dl-minimal.c (realloc): Optimize last patch.
13402 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
13404         [BZ #3352]
13405         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
13406         and use memcpy() if it does.
13408 2006-11-12  Andreas Jaeger  <aj@suse.de>
13410         [BZ #2510]
13411         * manual/search.texi (Hash Search Function): Clarify.
13412         (Array Search Function): Clarify.
13414 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
13416         [BZ #2830]
13417         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
13418         shifting.
13419         * math/atest-exp2.c (read_mpn_hex): Likewise.
13420         * math/atest-sincos.c (main): Likewise.
13422 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
13424         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
13425         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
13426         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
13427         version GLIBC_2.6.
13428         * Versions.def: Add GLIBC_2.6 for libc.
13430         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
13432         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
13434 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
13436         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
13438         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
13440         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
13441         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
13443 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
13445         * include/atomic.c: Define catomic_* operations.
13446         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
13447         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
13448         * malloc/memusage.c: Likewise.
13449         * gmon/mcount.c: Likewise.
13450         * elf/dl-close.c: Likewise.
13451         * elf/dl-open.c: Likewise.
13452         * elf/dl-profile.c: Likewise.
13453         * elf/dl-sym.c: Likewise.
13454         * elf/dl-runtime.c: Likewise.
13455         * elf/dl-fptr.c: Likewise.
13456         * resolv/res_libc.c: Likewise.
13458 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
13460         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
13461         components which lack them.
13463         * nis/nis_subr.c (nis_getnames): Make sure that we always return
13464         at least one entry consisting of the parameter concatenated with
13465         the domain.
13467 2006-10-10  Roland McGrath  <roland@frob.com>
13469         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
13470         * sysdeps/mach/hurd/futimes.c: Likewise.
13471         * sysdeps/mach/hurd/lutimes.c: Likewise.
13473 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
13474             Jakub Jelinek  <jakub@redhat.com>
13476         Implement reference counting of scope records.
13477         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
13478         from the list in objects which remain.  Always allocate new scope
13479         record.
13480         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
13481         don't resize, allocate a new one.
13482         * elf/dl-runtime.c: Update reference counters before using a scope
13483         array.
13484         * elf/dl-sym.c: Likewise.
13485         * elf/dl-libc.c: Adjust for l_scope name change.
13486         * elf/dl-load.c: Likewise.
13487         * elf/dl-object.c: Likewise.
13488         * elf/rtld.c: Likewise.
13489         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
13490         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
13491         Add l_scoperec_lock.
13492         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
13493         * sysdeps/generic/rtld-lowlevel.h: New file.
13495         * include/atomic.h: Rename atomic_and to atomic_and_val and
13496         atomic_or to atomic_or_val.  Define new macros atomic_and and
13497         atomic_or which do not return values.
13498         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
13499         Various cleanups.
13500         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13502         * po/sv.po: Update from translation team.
13504 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
13506         * Versions.def: Add GLIBC_2.6 to libpthread.
13508         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
13509         (versioned_symbol): Likewise.
13510         (compat_symbol): Likewise.
13512         * po/tr.po: Update from translation team.
13514 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13516         * nis/Banner: Removed.  It's been integral part forever and the
13517         author info is incomplete anyway.
13518         * libio/Banner: Likewise.
13520         * nis/nis_table.c (nis_list): If __follow_path fails in the new
13521         code, make sure the nis_freeresult call doesn't crash and that the
13522         result is reported correctly.
13524 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
13526         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
13527         when callback is NULL.
13529         * nis/Versions (libnss_nisplus): Add
13530         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
13531         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
13532         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
13533         _nss_create_tablename): Rename to...
13534         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
13535         ... these.  No longer static.
13536         (internal_setgrent): Adjust users.
13537         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
13538         Don't use locking around _nss_grp_create_tablename call.
13539         * nis/nss_nisplus/nisplus-initgroups.c: New file.
13541 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13543         * version.h (VERSION): Bump to 2.5.90 for new development tree.
13545 2006-10-06  Andreas Jaeger  <aj@suse.de>
13547         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
13549 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13551         * po/pl.po: Update from translation team.
13553         * nscd/nscd.c (main): Fix typo in message.
13554         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
13556 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13558         [BZ #3291]
13559         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
13560         errno.h, signal.h, unistd.h and sysdep-cancel.h.
13561         (__sigprocmask): Define.
13563 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
13565         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
13566         used.
13568 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13570         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
13571         in oldtotal and newtotal calculation.
13572         * nscd/nscd-client.h (struct mapped_database): Add datasize
13573         field.
13574         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
13575         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
13576         increased.
13577         (__nscd_cache_search): Add checks to make sure we never reference
13578         data beyond the current mapping.
13580 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
13582         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
13583         variables const to avoid compiler warnings.
13585         * io/fts.c (fts_close): Remove redundant checks.
13586         (fts_build): Likewise.
13587         (fts_palloc): Likewise.
13589         * manual/message.texi (Advanced gettext functions,
13590         Using gettextized software): Fix typos.
13592 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
13594         * posix/glob.c (glob_in_dir): Add some comments and asserts to
13595         explain why there are no leaks.
13597 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
13599         * libio/wmemstream.c: Include <wchar.h>.
13600         * libio/bug-wmemstream1.c: Likewise.
13601         * libio/tst-wmemstream1.c: Likewise.
13602         * libio/tst-wmemstream2.c: Likewise.
13604         * version.h (RELEASE): Bump to 2.5.
13605         * README: Regenerated.
13607         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
13609         [BZ #3273]
13610         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
13611         found no group members.
13612         Patch by Petr Baudis.
13614 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
13616         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
13617         assert bootstrap_map.l_tls_modid is zero.
13618         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
13619         if USE___THREAD.
13621 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
13623         * libio/stdio.h: Move open_wmemstream prototype to ...
13624         * wcsmbs/wchar.h: ... here.
13626 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
13628         [BZ #3252]
13629         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
13630         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
13631         __{,l}chown to handle the rest.
13632         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
13633         fchownat syscall and __ASSUME_32BITUIDS case inline, call
13634         __{,l}chown to handle the rest.
13635         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
13636         i386/fchownat.c.
13637         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
13638         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
13640         [BZ #3253]
13641         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
13642         time, rather allocate increasingly bigger arrays of pointers, if
13643         possible with alloca, if too large with malloc.
13645 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
13647         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
13649         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
13651 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
13653         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
13654         home addresses.
13655         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
13656         IFA_F_HOMEADDRESS flag for interfaces.
13657         * include/ifaddrs.h (struct in6addrinfo): Define
13658         in6ai_homeaddress.
13660 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
13662         [BZ #3225]
13663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
13664         PTR_DEMANGLE3): Define.
13665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
13666         PTR_DEMANGLE3): Likewise.
13667         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
13668         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
13669         Likewise.
13670         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
13672 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
13674         * po/libc.pot: Regenerated.
13675         * po/be.po: Updated.
13676         * po/ca.po: Likewise.
13677         * po/cs.po: Likewise.
13678         * po/da.po: Likewise.
13679         * po/de.po: Likewise.
13680         * po/el.po: Likewise.
13681         * po/en_GB.po: Likewise.
13682         * po/es.po: Likewise.
13683         * po/fi.po: Likewise.
13684         * po/fr.po: Likewise.
13685         * po/gl.po: Likewise.
13686         * po/hr.po: Likewise.
13687         * po/hu.po: Likewise.
13688         * po/ja.po: Likewise.
13689         * po/ko.po: Likewise.
13690         * po/nb.po: Likewise.
13691         * po/nl.po: Likewise.
13692         * po/pl.po: Likewise.
13693         * po/pt_BR.po: Likewise.
13694         * po/ru.po: Likewise.
13695         * po/rw.po: Likewise.
13696         * po/sk.po: Likewise.
13697         * po/sv.po: Likewise.
13698         * po/tr.po: Likewise.
13699         * po/zh_CN.po: Likewise.
13700         * po/zh_TW.po: Likewise.
13702         [BZ #3137]
13703         * iconv/iconv_prog.c (main): Fix spelling in error message.
13704         * iconv/iconvconfig.c (main): Likewise.
13705         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
13706         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
13707         * locale/programs/localedef.c (main): Likewise.
13708         * locale/programs/repertoire.c (repertoire_read): Likewise.
13709         * timezone/zdump.c (main): Likewise.
13710         * nscd/connections.c (handle_request): Fix spelling in log message.
13711         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
13713 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
13715         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
13716         interfaces.
13718 2006-09-20  Andreas Jaeger  <aj@suse.de>
13720         * math/libm-test.inc (lrint_test_upward): Fix typo.
13722 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
13724         [BZ #2592]
13725         * math/libm-test.inc (lrint_test_tonearest): New function.
13726         (lrint_test_towardzero): New function.
13727         (lrint_test_downward): New function.
13728         (lrint_test_upward): New function.
13729         (main): Run these new tests.
13730         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
13731         of values near to 0.
13732         (two52): Use double not long double.
13733         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
13734         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
13735         (two23): Use float not double.
13736         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
13737         (two23): Use float not double.
13738         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
13739         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
13740         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13741         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13743 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13745         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
13746         Cast sp to unsigned long to avoid compiler warning.
13747         Use __makecontext_ret function instead of a trampoline on the stack.
13748         (__makecontext_ret): New function.
13749         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
13751 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
13753         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
13754         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
13755         bits.
13757 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
13759         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
13760         sure no reference to the unloaded map's search list remains in the
13761         dependency's scope.
13763 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13765         * elf/Makefile: Add rules to build and run unload7 test.
13766         * elf/unload7.c: New test.
13767         * elf/unload7mod1.c: New file.
13768         * elf/unload7mod2.c: New file.
13770 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
13772         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13773         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13774         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13775         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13776         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13777         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13778         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13779         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13780         PTRACE_GETEVENTMSG): Likewise.
13781         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13782         values.
13784 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
13786         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13787         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13788         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13789         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13791 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13793         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13794         write '\0' to the fd.
13795         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13796         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13797         Change regs to unsigned long pointer from unsigned int, fix fscr
13798         offset.
13800 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13802         * io/Makefile (CFLAGS-fstatat.c): Set.
13803         (CFLAGS-fstatat64.c): Likewise.
13804         (CFLAGS-mknodat.c): Likewise.
13806         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13807         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13808         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13809         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13811 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13812             Steven Munroe  <sjmunroe@us.ibm.com>
13814         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13815         names to the beginning.  Rename "cell" to "cellbe".
13816         (_dl_powerpc_platforms): New.
13817         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13818         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13819         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13820         (_DL_HWCAP_PLATFORM): Define to new mask.
13821         (_dl_platform_string, _dl_string_platform): New functions.
13822         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13823         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13825 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
13827         [BZ #2526]
13828         * README.libm: Fix a thinko in sqrt algorithm description.
13830         [BZ #3143]
13831         * manual/string.texi (argz_delete): Fix prototype.
13832         Patch by <alpt@freaknet.org>.
13834 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
13836         [BZ #3138]
13837         * io/test-lfs.c (do_prepare): Give name_len type size_t.
13838         * io/tst-fcntl.c (do_prepare): Likewise.
13839         * posix/tst-exec.c (do_prepare): Likewise.
13840         * posix/tst-preadwrite.c (do_prepare): Likewise.
13841         * posix/tst-spawn.c (do_prepare): Likewise.
13842         * posix/tst-truncate.c (do_prepare): Likewise.
13843         * rt/tst-aio.c (do_prepare): Likewise.
13844         * rt/tst-aio64.c (do_prepare): Likewise.
13845         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13846         size_t.
13848 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
13850         [BZ #2821]
13851         * time/mktime.c (guess_time_tm): Fix overflow detection.
13852         * time/Makefile (tests): Add bug-mktime1.
13853         * time/bug-mktime1.c: New file.
13855         [BZ #3189, #3188]
13856         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
13857         (mremap): Likewise.
13859 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
13861         [BZ #1006]
13862         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13863         Ensure relocation doesn't clobber any bits outside of the
13864         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
13865         R_SPARC_HI22 and R_SPARC_H44.
13867         [BZ #2775]
13868         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
13869         (long) (MINSIZE + nb - old_size) is positive.
13871         * malloc/arena.c (grow_heap): When growing bail even if new_size
13872         is negative.
13874         [BZ #3155]
13875         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
13876         stack below r1.
13878 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
13880         * posix/regex_internal.c (re_string_reconstruct): Handle
13881         offset < pstr->valid_raw_len && pstr->offsets_needed case.
13882         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
13883         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13884         re_string_context_at.
13885         * posix/Makefile: Add rules to build and run bug-regex26 test.
13886         * posix/bug-regex26.c: New test.
13888         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13889         rather than col_sym_free.  Move seqp declaration earlier.
13891         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13893 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
13895         * nscd/initgrcache.c (addinitgroupsX): Move any_success
13896         decl before first goto out.
13898 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13900         * Makerules (shlib.lds): If have-hash-style, put .hash section
13901         at the end of the RO segment.
13903 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
13905         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13906         style hash table format is used.
13908 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13910         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13911         randomization rather than before.
13912         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
13914 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
13916         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
13918         * malloc/malloc.c (_int_malloc): Use full list insert and not
13919         shortcut which assumes the list is empty for large requests
13920         too.
13922         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13924 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
13926         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13927         and offout arguments to the prototype.
13928         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13929         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13930         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13931         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13932         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13933         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13934         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13935         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13937 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
13939         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13941         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13942         dlopen parameters.
13944 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
13946         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13947         only if herrno is NETDB_INTERNAL.  Handle errors other than
13948         ERANGE outside of the loops, handle TRY_AGAIN.
13950         * locale/programs/ld-ctype.c (translit_flatten): Issue error
13951         if other's ctype category was missing.
13952         * locale/programs/ld-collate.c (collate_read): Return if
13953         copy_locale's collate category is missing.
13955 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
13957         [BZ #2684]
13958         * malloc/malloc.c (public_rEALLOc): Try harder by using other
13959         arenas if allocation failed.
13960         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13962 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
13964         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
13965         waste bins[0..1].
13966         (malloc_state): Reduce bins size by 2.
13967         (_int_malloc): Fix test for large enough buffer for early termination.
13968         When no unsorted block matches perfectly and an exiting block has
13969         to be split, use full list insert and not shortcut which assumes
13970         the list is empty.
13972         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
13973         failure.
13975 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13977         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
13978         do anything.
13980         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
13981         symbol require exact match (these are PLTs).
13982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
13983         (_dl_ppc64_addr_sym_match): Likewise.
13985         [BZ #2683]
13986         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
13987         If symbol has a value use it.
13988         * elf/tst-dladdr1.c: New file.
13989         * elf/Makefile: Add rules to build and run tst-addr1.
13991 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
13993         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
13994         keeps failing and heap growth or new heap creation isn't
13995         successful either.
13996         * malloc/tst-malloc.c (main): Add new tests.
13998 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
14000         [BZ #2734]
14001         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
14002         as in the x86-64 code to use bswap.
14004 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
14006         [BZ #2680]
14007         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
14008         __USE_UNIX98.
14009         * posix/bits/unistd.h: Likewise.
14011 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
14013         [BZ #2751]
14014         * string/strchr.c: Add cast to avoid warning.
14016 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
14018         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
14019         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
14020         limit is needed to avoid the exploding of the address space
14021         requirement for secondary heaps.
14022         * malloc/arena.c (HEAP_MAX_SIZE): Define using
14023         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
14025 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
14027         [BZ #3018]
14028         * Makerules (depfiles): Handle extra-test-objs the same as
14029         extra-objs.
14030         (common-mostlyclean): Likewise.
14031         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
14032         instead.
14033         * elf/Makefile (extra-objs): Likewise.
14034         * stdlib/Makefile (extra-objs): Likewise.
14036 2006-08-14  Eric Blake  <ebb9@byu.net>
14038         [BZ #3044]
14039         * misc/error.h: Assume C89 or better.
14040         * misc/error.c: Likewise.
14042 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
14044         [BZ #3040]
14045         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
14046         __ASSUME_ATFCTS is defined.
14048 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
14050         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
14051         to sort in each call.
14053         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
14054         is empty simply return and use next service.
14055         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
14057         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
14058         tells us when not finding a charmap file is an error.
14059         * locale/programs/charmap.h: Adjust charmap_read prototype.
14060         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
14061         cannot find a charmap.
14062         * locale/programs/localedef.c (main): Adjust charmap_read call.
14064 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
14066         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
14067         sysdeps/posix/pause.c implementation instead.
14069 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
14071         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
14072         to EPERM.
14074 2006-08-13  Andreas Schwab  <schwab@suse.de>
14076         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
14077         Don't clobber caller's LRSAVE.
14078         (_dl_prof_resolve): Likewise.
14080 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
14082         [BZ #1996]
14083         * libio/memstream.c (open_memstream): Allocate initial buffer with
14084         calloc.
14085         * libio/wmemstream.c (open_wmemstream): Likewise.
14086         * libio/strops.c: Pretty printing.
14087         (_IO_str_overflow): Clear uninitialized part of the new buffer.
14088         (enlarge_userbuf): New function.
14089         (_IO_str_seekoff): Call it if seek position is larger than current
14090         buffer.
14091         * libio/wstrops.c: Likewise.
14092         * libio/vasprintf.c: Add comment as to why we do not have to use
14093         calloc instead of malloc to allocate initial buffer.
14094         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
14095         * libio/bug-memstream1.c: New file.
14096         * libio/bug-wmemstream1.c: New file.
14098 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
14100         * libio/wstrops.c: Remove dead macro definitions and comments.
14101         * libio/strops.c: Likewise.
14103         [BZ #2764]
14104         * login/utmpname.c (__utmpname): Remove unnecessary test.
14106 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
14108         [BZ #2832]
14109         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
14110         0s from integers.
14112 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
14114         [BZ #2987]
14115         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
14116         for CPU clocks.
14117         * sysdeps/unix/clock_settime.c: Add support for platform-specific
14118         setting of CPU clocks.
14120 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
14122         [BZ #2841]
14123         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
14124         since C99 requires the result to promote to 'int' when uint_least8_t
14125         and uint_least16_t promote to 'int'.
14127 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
14129         [BZ #3013]
14130         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
14131         lenght of one output field, correct bitmask creation.
14132         * locale/programs/ld-time.c: Add alignment.
14134         [BZ #2997]
14135         * misc/error.c: Add space between program name and message if file
14136         name is missing.
14138 2006-08-03  Eric Blake  <ebb9@byu.net>
14140         [BZ #2998]
14141         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
14143 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
14145         * malloc/memusagestat.c: Silence warnings.
14147         * malloc/malloc.c: Dynamically size mmap treshold if the program
14148         frees mmaped blocks.
14149         Patch by Valerie Henson and Arjan van de Ven.
14151 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
14153         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
14154         __USE_GNU.
14156         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
14157         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
14158         (DEF): Don't put the var into .gnu.linkonce.r.* section.
14159         Only provide var definitions in strtol_l (or for *ull*
14160         in strtoll_l).
14162         * stdio-common/bug16.c (tests): New array.
14163         (do_tests): Allow the first hexadecimal digit
14164         to be 1, 2, 4 or 8.  Do 3 additional tests.
14166         * sysdeps/s390/fpu/libm-test-ulps: Update.
14168         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
14169         fchownat syscall if available.
14170         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
14171         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
14172         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
14174 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
14176         * nis/nis_xdr.c: Avoid some function calls.
14178 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
14179             Ulrich Drepper  <drepper@redhat.com>
14181         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
14182         short cut if only one name component is stripped away.
14184 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
14186         * nis/nis_call.c: Minor cleanups throughout.
14187         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
14188         (first_shoot): Add search_parent_first parameter.  Only if it is set
14189         search parent server first.
14190         If directory for table found through cold start cache is not the same
14191         as referenced in the cache, don't use it.
14192         (__nisfind_server): Take additional parameter.  Pass it on to
14193         first_shoot.
14194         (__prepare_niscall): Adjust __nisfind_server call.
14195         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
14196         * nis/nis_table.c: Adjust __nisfind_server call.
14197         * nis/nis_lookup.c: Likewise.
14198         (nis_lookup): Don't loop endlessly if name is reduced to ".".
14200 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
14202         [BZ #2182]
14203         * math/s_cacosh.c: Return values from positive branch.
14204         * math/s_cacoshf.c: Likewise.
14205         * math/s_cacoshl.c: Likewise.
14207         [BZ #2883]
14208         * sysvipc/sys/msg.h: Change return value to ssize_t.
14209         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
14210         * sysvipc/msgrcv.c: Likewise.
14211         * include/sys/msg.h: Likewise.
14213         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
14214         test introduced in patch for bz #661.
14215         (getgrouplist): Simplify code a bit.  Don't allocate one additional
14216         element for NEWGROUPS.
14218         [BZ #2908]
14219         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
14220         'f', use '1' as leading digit not '\1'.
14221         * stdio-common/Makefile (tests): Add bug16.
14222         * stdio-common/bug16.c: New file.
14224         [BZ #2914]
14225         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
14226         and don't try to open it.  The patch introducing the macro
14227         contained a bug and used the same file name as the new file
14228         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
14229         this out completely.
14231         [BZ #2926]
14232         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
14233         Patch by Jerry James <Jerry.James@usu.edu>.
14235         * rt/Makefile (tests): Add tst-clock2.
14236         * rt/tst-clock2.c: New file.
14238         [BZ #2978]
14239         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
14240         function and its parameters and pass it to new thread.
14241         (__gai_notify): Add support for alternative waiting for completion.
14242         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
14243         waiting for completion.
14244         * resolv/getaddrinfo_a.c: Likewise.
14245         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
14246         waiting for completion is used.
14247         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
14248         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
14249         * resolv/gai_error.c: Likewise.
14250         * resolv/gai_sigqueue.c: Likewise.
14252 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
14254         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
14255         errno to EBADF and return MACH_PORT_NULL.
14257 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
14259         [BZ #2980]
14260         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
14262 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
14264         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
14265         walk them instead of the symbol table.
14267 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
14269         [BZ #2098]
14270         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
14271         status of NSS calls, not the number of returned entries.
14273         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
14274         request_key, keyctl.
14276 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14278         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
14280 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
14282         * elf/tst-auditmod1.c: Fix typo in #error.
14284 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14286         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
14288         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
14290 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
14292         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
14293         that the directory is empty even on non-POSIX filesystems.
14295 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14297         * elf/dl-open.c (dl_open_worker): Add branch prediction.
14299         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
14300         the backend NSS module.  If backend setgrent call failed, don't have
14301         internal_setgrent fail.  Just remember this until it is needed.
14302         * nis/nss_compat/compat-pwd.c: Likewise.
14303         * nis/nss_compat/compat-spwd.c: Likewise.
14305 2006-07-30  Roland McGrath  <roland@redhat.com>
14307         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
14308         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
14309         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
14310         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
14312         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
14313         (nanosleep_not_cancel): New macro.
14314         (sigsuspend_not_cancel): new macro.
14315         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
14316         (do_sigsuspend): Define as inline.
14317         (__sigsuspend): Always use do_sigsuspend.
14318         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
14319         * include/signal.h: Declare __sigsuspend_nocancel.
14320         * sysdeps/posix/pause.c
14321         [! NO_CANCELLATION] (__pause_nocancel): New function.
14323         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
14324         * include/time.h (__nanosleep_nocancel): Likewise.
14326 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
14328         * locale/programs/localedef.c (add_to_readlist): Rename local
14329         variables to avoid confusion.
14331         * locale/programs/charmap.c (charmap_read): Emit error message if
14332         charmap couldn't be found or read.
14334 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
14336         * sysdeps/unix/sysv/linux/kernel-features.h: Define
14337         __ASSUME_FUTEX_LOCK_PI.
14338         * include/time.h: Declare __nanosleep_nocancel.
14339         * include/unistd.h: Declare __pause_nocancel.
14341         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
14342         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
14343         get the __stack_chk_fail_local definition when it's needed.
14345 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
14347         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
14348         * dlfcn/bug-atexit3.c: New file.
14349         * dlfcn/bug-atexit3-lib.cc: New file.
14351         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
14352         used when the namespace is not the base namespace.
14354 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
14356         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
14357         (__new_exitfn): Bump it in every successful call.
14358         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
14359         more exit handlers, call them right away.
14360         * stdlib/exit.h: Declare __new_exitfn_called.
14362 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
14364         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
14365         calling registered handler.
14367         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
14368         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14369         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14370         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14371         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14372         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14373         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14374         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14376 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
14378         * elf/dl-lookup.c (dl_new_hash): New functions.
14379         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
14380         value here.  Compute new-style hash value.  Pass new hash value
14381         and reference to variable with the old value to do_lookup_x.
14382         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
14383         old-style hash table.
14384         (_dl_debug_bindings): Pass new hash value and reference to variable
14385         with the old value to do_lookup_x.
14386         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
14387         new-style hash value and change old-style hash value parameter to
14388         be a reference.  Reoganize functions to determine whether
14389         new-style hash table is available.  Only fall back on old-style
14390         table.  If old-style hash value is needed, compute it here.
14391         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
14392         entry.
14393         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
14394         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
14395         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
14396         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
14397         * Makeconfig: If linker supports --hash-style option add it to all
14398         linker command lines to build DSOs.
14399         * config.make.in: Define have-hash-style.
14400         * configure.in: Test whether linker supports --hash-style option.
14402         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
14403         * sysdeps/generic/ldsodefs.h: Adjust prototype.
14405 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
14407         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
14408         auditing.
14410         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
14411         RPATH of main map twice.
14413 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
14415         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
14416         look further, return original strings.
14417         (_nl_find_msg): Do not return found translation if the conversion
14418         failed.  Either signal the string is unusable or that something went
14419         wrong and the original should be used.
14421 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
14423         * string/_strerror.c (__strerror_r): Add __builtin_expect.
14425 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
14427         [BZ #2766]
14428         * misc/insremque.c (insque): Handle prev == NULL.
14429         * misc/Makefile (tests): Add tst-insremque.
14430         * misc/tst-insremque.c: New test.
14432 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
14434         [BZ #2792]
14435         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
14436         conflict with DL_DST_REQUIRED.
14438 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
14440         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
14441         match what Solaris does.
14443 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
14445         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
14446         local_setegid instead of seteuid and setegid.
14447         * sysdeps/generic/local-setxid.h: New file.
14448         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
14450         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
14452         * string/Makefile (tests): Add bug-envz1.
14453         * string/bug-envz1.c: New file.
14455 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
14457         * posix/regex_internal.c (re_string_skip_chars): If no character has
14458         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
14459         to the byte which couldn't be converted.
14460         (re_string_reconstruct): Don't clear valid_raw_len before calling
14461         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
14462         tip_context using re_string_context_at.
14463         * posix/Makefile: Add rules to build and run bug-regex25 test.
14464         * posix/bug-regex25.c: New test.
14466 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
14468         [BZ #2703]
14469         * string/envz.c (envz_strip): Correct erroneously reversed src
14470         and dest parameters to memmove() invocation.
14472 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
14474         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
14475         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
14476         to make sure the database has been already invalidated.
14477         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
14478         after the cache has been invalidated.  Use pthread_mutex_lock rather
14479         than pthread_mutex_trylock if fd != -1.
14480         * nscd/connections.c (invalidate_cache): Add fd argument, write
14481         response to fd if not calling prune_cache, pass fd to prune_cache.
14482         (handle_request): Adjust invalidate_cache caller.
14483         (nscd_run): Pass -1 as fd to prune_cache.
14485 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
14487         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
14488         the correct place.
14490 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
14492         * nscd/nscd.h (struct database_dyn): Add prunelock field.
14493         * nscd/cache.c (prune_cache): Take prunelock before starting the
14494         work.  Just return in case it is already taken.
14495         * nscd/connections.c (dbs): Initialize .prunelock.
14497 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
14499         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
14500         copying.  No need to allocate new array for group members.  Just
14501         move the pointers and update the size.
14503         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
14504         Avoid memory leak in case realloc fails.  Simplification for
14505         better code generation.
14507         Avoid deprecation warning because of libc_hidden_proto for
14508         inet6_option_alloc.
14509         * inet/inet6_option.c (option_alloc): Renamed from
14510         inet6_option_alloc.  Made static.
14511         (inet6_option_alloc): Now a simple wrapper around option_alloc.
14512         (inet6_option_append): Call option_alloc.
14513         * include/netinet/in.h: Remove libc_hidden_proto for
14514         inet6_option_alloc.
14516         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
14517         for cleanup when cb!=NULL [Coverity CID 233].
14519 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
14521         [BZ #2693]
14522         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
14523         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
14524         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
14525         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
14526         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
14527         and inet6_rth_getaddr.
14528         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
14529         array.
14530         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
14531         Mark inet6_option_* interfaces as deprecated.
14532         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
14533         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
14534         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
14535         inet6_rth_segments, and inet6_rth_getaddr.
14536         * inet/inet6_opt.c: New file.
14537         * inet/inet6_rth.c: New file.
14539         * inet/netinet/icmp6.h: Pretty printing.
14541         [BZ #2683]
14542         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
14544 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
14546         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
14547         doing it all here.  When server does not know the answer do not
14548         fail immediate, try parent first.
14550         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
14551         overflow test.
14553 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
14555         * nis/nis_call.c (__prepare_niscall): New function.  Split out
14556         from __do_niscall.
14557         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
14558         and exported.
14559         (__follow_path): New function.  Split out from nis_list.
14560         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
14561         _xdr_nis_result.
14562         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
14563         _xdr_nis_result.
14564         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
14565         and __follow_path.
14566         * nis/Versions: Export __prepare_niscall, __create_ib_request,
14567         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
14568         from libnsl for version GLIBC_PRIVATE.
14569         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
14570         Remove entry parameter from _nss_nisplus_parse_pwent and
14571         _nss_nisplus_parse_grent.
14572         * nis/nss_nisplus/nisplus-parser.c: Likewise.
14573         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
14574         again.  Rewrite getpwent handling to not use nis_first_entry and
14575         nis_next_entry.  Roll out own niscall handling.
14576         * nis/nss_nisplus/nisplus-grp.c: Likewise.
14578         * sunrpc/xdr_rec.c: Fix typo in comment.
14580 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
14582         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
14583         handling.
14585         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
14586         to allocate memory for my_pollfd.  Better initialization of
14587         cb_is_running.  Use TEMP_FAILURE_RETRY.
14589         * malloc/memusage.sh (memusageso): Add quotes.
14590         (memusagestat): Likewise.
14591         * debug/xtrace.sh (pcprofileso): Likewise.
14592         (pcprofiledump): Likewise.
14593         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
14594         replacement.
14595         * malloc/Makefile ($(objpfx)memusage): Likewise.
14597         * nis/nis_callback.c (__nis_create_callback): Calls to
14598         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
14599         asprintf call fails.
14601         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
14602         no uninitialized memory is passed to sendto.
14604 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14606         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
14607         of snprintf+strdup.  Handle OOM.
14608         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
14609         cb->serv together.  Remove now obsolete free calls.
14610         (__nis_destroy_callback): Remove now obsolete free call.
14612 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
14614         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
14615         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
14616         and ULA respectively). Set precedence for IPv4 address to 10 as
14617         defined in RFC3484 for preferring IPv6.
14618         * posix/gai.conf: Update to match the new default tables.
14620 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
14622         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
14623         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
14624         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
14625         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
14627         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
14628         Removed.
14629         (init_nss_interface): Remove initialization of these variables.
14631 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14633         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
14634         nis_free_directory forward to avoid duplication.
14636 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
14638         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
14639         rec_dirsearch returning NULL.
14640         (first_shoot): Handle __nis_finddirectory returning NULL.
14641         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
14643         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
14644         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
14646 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
14648         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
14649         pid changed.
14651 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
14653         * include/rpc/pmap_prot.h: Mark all functions as hidden.
14655         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
14656         * nscd/nscd_getgr_r.c: Likewise.
14658         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
14660         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
14661         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
14663         * stdlib/longlong.h (__clz_tab): Mark as hidden.
14665         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
14667         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
14669         * include/rpc/auth.h: Mark xdr_des_block_internal and
14670         xdr_opaque_auth_internal as hidden.
14672         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
14673         hidden.
14675         * include/rpc/xdr.h: Mark all _internal functions as hidden.
14677         * misc/getusershell.c (okshells): Don't use static initializers,
14678         do it dynamically.
14680         * stdlib/fmtmsg.c (keywords): Change type of len element to
14681         uint32_t to not waste space on 64bit machines.
14683         * locale/setlocale.c: Change _nl_category_names into a string.
14684         Add new _nl_category_name_idxs.  Change all users.
14685         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
14686         Declare _nl_category_name_idxs.
14687         * locale/findlocale.c: Adjust for _nl_category_names change.
14688         * locale/loadlocale.c: Likewise.
14689         * locale/newlocale.c: Likewise.
14690         * intl/dcigettext.c: Likewise.
14692         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
14693         (add_alias2): ...here.  New function.
14694         (__gconv_read_conf): Simplify builtin alias handling.
14695         (builtin_aliases): Convert to string to avoid relocations.
14696         * iconv/gconv_builtin.h: Add comment about correct formatting.
14698 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
14700         * resolv/res_debug.c (loc_ntoa): Make error const.
14702 2006-05-14  Andreas Schwab  <schwab@suse.de>
14704         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
14706 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
14708         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
14709         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
14710         sizeof (cpu_set_t).
14712 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
14714         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
14716         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
14718         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
14719         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
14721         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
14722         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
14724         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
14725         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
14726         xdr_cback_data.
14728         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
14729         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14730         xdr_ypupdate_args.
14732         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
14733         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
14735         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
14736         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
14738         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
14739         * include/rpcsvc/nis_callback.h: New file.
14741         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
14742         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
14744         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14745         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14747         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
14748         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
14750         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14751         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14753         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
14754         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14755         xdr_ypdelete_args.
14757         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
14758         __BEGIN_DECLS and __END_DECLS, the header is not installed.
14760         * nis/nis_error.c: Remove table of strings.  Use position
14761         independent mechanism.
14762         * nis/nis_error.h: New file.
14764 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
14766         * locale/programs/ld-time.c (time_finish): If wide era name or
14767         format aren't provided, set both wname and wformat to L"".
14769 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14771         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14772         results if the call was succesful.
14774         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14776         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14777         as hidden.
14779 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
14781         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14783 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14785         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14786         caller makes sure this is not the case.
14787         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
14789 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
14791         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14792         calls.
14794         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14795         [Coverity CID 229, 230]
14797         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14798         DGETTEXT calls.
14799         (hol_help): Likewise.  [Coverity CID 226, 227]
14801         * string/argz-replace.c (__argz_replace): Unconditionally call
14802         free on SRC.  [Coverity CID 225]
14804         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14805         the return value of __nis_default_owner and __nis_default_group,
14806         it has been especially allocated.  [Coverity CID 224]
14808         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
14809         searchgroup and searchowner.  Significantly simplified.
14810         (__nis_default_owner): Remove duplication.  Do not locally copy the
14811         string before duplicating it.
14812         (__nis_default_group): Likewise.
14814         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14815         we must clear the variable before calling __nisfind_server.
14817         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14818         nis_getnames.  [Coverity CID 223]
14820         * locale/programs/locfile.c (locfile_read): Use alloca instead of
14821         xmalloc to allocate local repertoire name.  [Coverity CID 222]
14823         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14824         allocate memory for the input to add_bytes.  [Coverity CID 221]
14826         * posix/wordexp.c (w_addword): Free word if realloc fails and it
14827         was allocated here.  [Coverity CID 219, 220]
14829         * posix/getconf.c (print_all): Free confstr data after printing.
14830         [Coverity CID 218]
14832         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14833         list allocation fails.  [Coverity CID 215]
14835         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14836         [Coverity CID 213]
14838         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14839         string is NULL.  [Coverity CID 212]
14840         * argp/Makefile: Add rules to build and run bug-argp1.
14841         * argp/bug-argp1.c: New file.
14843         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14844         end of string.
14845         * stdlib/canonicalize.c (__realpath): Likewise.
14847         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14848         pointer.  [Coverity CID 206]
14850         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14851         in statically linked code.
14852         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
14853         statically built code, be prepared to have no link map.
14854         [Coverity CID 205]
14856         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
14857         dgettext calls. [Coverity CID 204]
14859         * argp/argp-help.c (struct uparams): Remove valid member.  Change
14860         the one user.
14861         (uparam_names): Reduce size.  Avoid relative relocations.
14862         Moved to read-only segment.
14863         (fill_in_uparams): Update for new layout.
14865         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
14866         assumed to always be != NULL. [Coverity CID 202]
14868         * argp/argp-help.c (hol_entry_help): Remove some dead code
14869         [Coverity CID 200].
14871         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
14872         away a few more unconditional yperr2nss calls.
14873         (_nss_nis_getservbyname_r): Likewise.
14875 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
14877         * sysdeps/generic/ldsodefs.h: Remove support for non-core
14878         architectures.
14880         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
14881         that unused memory passed to sendto is nevertheless initialized.
14883         [BZ #2499]
14884         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
14885         possibly unaligned memory accesses.
14887         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14888         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14889         and __putlong respectively.  Correct buffer overflow check for
14890         NS_NOTIFY_OP.
14892         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14894         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14895         (send_dg): Rewrite error handling to be more compact and avoid
14896         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
14898         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14900         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14901         instead of ns_get16.
14902         (res_queriesmatch): Likewise.  Minor optimization.
14904         [BZ #2499]
14905         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14906         __libc_res_nsend might reallocate the buffer for the answer.  In
14907         this case we have to reload the HP pointer.
14909 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14911         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
14912         some branch prediction hints.
14914         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
14915         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14916         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14917         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14918         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14919         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14920         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14921         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14923 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
14925         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14926         by a GOT relocation to make Scrt1.o position independent.
14927         * sysdeps/s390/s390-64/elf/start.S: Likewise.
14929         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14930         six system call parameters.
14931         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14933 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14935         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14936         malloc&bzero.
14938         * sunrpc/svc_udp.c (BZERO): Remove definition.
14939         (CALLOC): Define.
14940         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14942         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
14943         (des_SPtrans): Use uint32_t type.
14944         (des_skb): Likewise.
14946         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14948 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
14950         [BZ #2509]
14951         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14952         on 32-bit arches.
14954 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14956         * locale/programs/ld-address.c (address_finish): Fix one more
14957         place where the iso639 array might be accessed beyond the limits.
14959 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
14961         * nis/nis_table.c (nis_list): Avoid clearing res twice before
14962         filling it for the first time.
14964         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
14965         Adjust all callers.
14966         Free res object content before returning.
14968         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
14970         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
14971         client->cl_auth.
14973         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
14974         cleanup for initial thread, just the free call on TVP.
14976         * nscd/gai.c (__getline): Define.
14979 See ChangeLog.16 for earlier changes.