Fix fallocate error return on i386.
[glibc.git] / ChangeLog
blob03ba71f859cfd751eebacd82dbd44383ba90ec91
1 2010-04-07  Andreas Schwab  <schwab@redhat.com>
3         * sysdeps/unix/sysv/linux/i386/fallocate.c: Set errno on error.
4         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
6 2010-04-08  Andreas Jaeger  <aj@suse.de>
8         [BZ #10401]
9         * math/s_cprojl.c (__cprojl): Fix implementation to follow C99
10         standard.
11         * math/s_cprojf.c (__cprojf): Likewise.
12         * math/s_cproj.c (__cproj): Likewise.
13         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
14         * math/libm-test.inc (cproj_test): Fix test.
16 2010-04-07  Ulrich Drepper  <drepper@redhat.com>
18         * posix/bug-getopt1.c: New file.
19         * posix/bug-getopt2.c: New file.
20         * posix/bug-getopt3.c: New file.
21         * posix/bug-getopt4.c: New file.
22         * posix/bug-getopt5.c: New file.
24 2009-12-01  Eric Blake  <ebb9@byu.net>
26         [BZ #11039]
27         * posix/getopt.c (_getopt_internal_r): Skip optional - or + before
28         checking lead byte of optstring for :.
30         [BZ #11040]
31         * posix/getopt.c (_getopt_internal_r): Reject '-;' as short
32         option, since it conflicts with "W;" optstring extension.
34 2009-12-02  Eric Blake  <ebb9@byu.net>
36         [BZ #11041]
37         * posix/getopt.c (_getopt_internal_r): Handle '-Wfoo' identically
38         to '--foo', with optional argument or non-ambiguous prefix.
40 2010-04-07  Ulrich Drepper  <drepper@redhat.com>
42         [BZ #11134]
43         * nis/libnsl.h (NSS_FLAG_ADJUNCT_AS_SHADOW): Define.
44         * nis/nss: Document new ADJUNCT_AS_SHADOW variable.
45         * nis/nss-default.c: Handle ADJUNCT_AS_SHADOW variable.
46         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Minor cleanups.
47         (internal_nis_getpwent_r): Don't fill in password from adjunct table
48         if NSS_FLAG_ADJUNCT_AS_SHADOW is set.
49         (_nss_nis_getpwnam_r): Likewise.
50         (_nss_nis_getpwuid_r): Likewise.
51         * nis/nss_nis/nis-spwd.c (ent_adjunct_used): New global variable.
52         (_nss_nis_setspent): Also reset ent_adjunct_used.
53         (internal_nis_getspent_r): If new_start is set and shadow.byname table
54         does not exist and NSS_FLAG_ADJUNCT_AS_SHADOW is set, try to get
55         passwd.adjunct.byname table.  If new_start is not set get next entry
56         from the initially used table.  Synthesize shadow.byname table if
57         necessary by adding two empty fields.
58         (_nss_nis_getspnam_r): If shadow.byname table does not exist and
59         NSS_FLAG_ADJUNCT_AS_SHADOW is set, try to get passwd.adjunct.byname
60         table and synthesize shadow.byname table.
62 2010-04-06  H.J. Lu  <hongjiu.lu@intel.com>
64         * Makerules (libc-abis): Add $(..) to libc-abis.
66 2010-04-06  Joseph Myers  <joseph@codesourcery.com>
68         * Makerules (libc-abis): Fix search for libc-abis in add-ons.
70 2010-04-05  Thomas Schwinge  <thomas@schwinge.name>
72         * sysdeps/gnu/unwind-resume.c: New, moved from nptl/sysdeps/pthread/.
73         * sysdeps/gnu/rt-unwind-resume.c: Likewise.
74         * sysdeps/gnu/Makefile: Add sections for csu and rt subdirs to
75         build unwind-resume code, previously in nptl/sysdeps/pthread/Makefile.
77 2010-04-05  Roland McGrath  <roland@redhat.com>
79         * elf/rtld.c (dl_main) [HAVE_AUX_VECTOR]: Add a cast.
81 2010-03-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
83         * Makeconfig: Propagate -fdebug-prefix-map from CFLAGS to ASFLAGS.
85 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
87         * elf/elf.h (ELFOSABI_ARM_AEABI): Define.
89 2010-04-05  Ulrich Drepper  <drepper@redhat.com>
91         * po/nl.po: Update from translation team.
93         [BZ #11010]
94         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Handle
95         timeouts from servers.
97         [BZ #11149]
98         * elf/ldconfig.c (main): Respect chroot setting when looking for
99         the aux cache.
101 2010-04-04  Ulrich Drepper  <drepper@redhat.com>
103         [BZ #11043]
104         * posix/getopt.c (_getopt_internal_r): Fix arguments printed in error
105         messages.
107         [BZ #11070]
108         * resolv/netdb.h: Declare iruserok and iruserok_af.
110         * argp/Makefile: Add rules to build and run bug-argp2.
111         * argp/bug-argp2.c: New file.
113 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
115         [BZ #11254]
116         * argp/argp-parse.c (convert_options): Fix improper use of `|'
117         between character values.
119 2010-04-04  Ulrich Drepper  <drepper@redhat.com>
121         [BZ #11276]
122         * sysdeps/posix/remove.c (IS_NO_DIRECTORY_ERROR): Define.
123         (remove): Use IS_NO_DIRECTORY_ERROR to check for file being no
124         directory.
125         * sysdeps/unix/sysv/linux/remove.c: New file.
127         * conform/data/sys/stat.h-data: Fix testing of S_IS* macros.
129         [BZ #11279]
130         * io/sys/stat.h: Always define S_ISSOCK for XPG6 and up.
132         [BZ #11287]
133         * csu/Makefile ($(objpfx)version-info.h): Handle newer kernel headers
134         which don't define UTS_RELEASE.
136 2010-04-04  H.J. Lu  <hongjiu.lu@intel.com>
137             Ulrich Drepper  <drepper@redhat.com>
139         [BZ #11292]
140         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Allow
141         concurrent initialization and use of __cpu_features.
143 2010-04-04  Ulrich Drepper  <drepper@redhat.com>
145         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add tag to
146         the enum.
148 2010-04-03  Ulrich Drepper  <drepper@redhat.com>
150         [BZ #11333]
151         * sysdeps/unix/readdir_r.c (__READDIR_R): Add support for platforms
152         which include unnecessary padding in d_reclen.
153         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Select work-around for
154         unnecessary padding.
156         [BZ #11387]
157         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlin): Don't abort on
158         unknown interface, return -1.
159         (getifaddrs_internal): Rename from getifaddrs.  Handle errors in
160         map_newlink be returning -EAGAIN.
161         (getifaddrs): If -EAGAIN is returned from getifaddrs_internal try
162         again.
164 2010-03-25  Ryan S. Arnold  <rsa@us.ibm.com>
166         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Remove
167         redundant and incorrect else block which overwrites current line
168         with the partial next line.
170 2010-04-03  Ulrich Drepper  <drepper@redhat.com>
172         [BZ #11438]
173         * posix/gai.conf: Document problems with IPv4 site-local addresses and
174         NATs.
176         [BZ #11449]
177         * crypt/crypt_util.c (__init_des_r): Add memory barrier before setting
178         small_tables_initialized.
180         * malloc/malloc.c (_int_free): Add one more sanity check for fastbins.
182         * malloc/malloc.c (set_max_fast): Fix computation of the value.
184 2010-03-30  David S. Miller  <davem@davemloft.net>
186         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Fix
187         MMAP2_PAGE_SHIFT test.
189 2010-03-29  Ulrich Drepper  <drepper@redhat.com>
191         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_WAITFORONE.
193 2010-03-28  Thomas Schwinge  <thomas@schwinge.name>
195         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Adapt to auxv
196         changes in the generic code.
197         * elf/rtld.c (dl_main): Conditionalize the code that dereferences auxv
198         to [HAVE_AUX_VECTOR].
200 2010-03-27  Ulrich Drepper  <drepper@redhat.com>
202         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): If
203         __ASSUME_AT_PAGESIZE we can rely on the value being set.
205         * include/wchar.h: Undefine __need_mbstate_t and __need_wint_t
206         unconditionally in the end.
208         * posix/glob.c (glob): Initialize oldcount early, too.
210 2010-03-26  Ulrich Drepper  <drepper@redhat.com>
212         * sysdeps/unix/sysv/linux/i386/fcntl.c: Define miss_F_GETOWN_EX
213         only if needed.
214         Patch mostly by Paul Pluzhnikov <ppluzhnikov@google.com>.
216 2010-03-26  Richard Henderson  <rth@redhat.com>
218         * sysdeps/generic/ldsodefs.h (_dl_random): Mark attribute_relro;
220         * stdio-common/psiginfo.c (psiginfo): Fix printf format
221         warning for si_band.
223         * locale/setlocale.c (free_category): Finish renaming
224         struct locale_data to __locale_data.
226         * csu/gmon-start.c (ENTRY_POINT, etext): Declare as char[], not void.
227         * elf/dl-sysdep.c (_end): Likewise.
228         * sysdeps/unix/sysv/dl-sysdep.c (frob_brk): Likewise with locally
229         declared _end, and associated variables.
231 2010-03-26  Ulrich Drepper  <drepper@redhat.com>
233         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't assume success always
234         means aborting the loop over the NSS methods.
236 2010-03-25  Andreas Schwab  <schwab@redhat.com>
238         * sysdeps/posix/getaddrinfo.c (gaih_inet): Reset no_data before
239         each action.
241 2010-03-26  Ulrich Drepper  <drepper@redhat.com>
243         * malloc/malloc.c: Remove stale reference to website.
245 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
247         [BZ #11389]
248         * bits/time.h: Define CLOCK_MONOTONIC_RAW, CLOCK_REALTIME_COARSE, and
249         CLOCK_MONOTONIC_COARSE.
250         * sysdeps/unix/sysv/linux/clock_getres.c: Handle CLOCK_MONOTONIC_RAW,
251         CLOCK_REALTIME_COARSE, and CLOCK_MONOTONIC_COARSE.
252         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
253         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
255 2010-03-25  Andreas Schwab  <schwab@redhat.com>
257         * sysdeps/posix/cuserid.c: Fix typo.
259 2010-03-16  Chris Demetriou  <cgd@google.com>
261         [BZ #11394]
262         * locale/programs/simple-hash.c: Include inttypes.h.
263         (hashval_t): Defined to be uint32_t.
264         * locale/programs/simple_hash.h: Include inttypes.h.
265         (compute_hashval): Change return type to uint32_t.
267 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
269         * sysdeps/unix/sysv/linux/getlogin_r.c: New file.
270         * sysdeps/unix/sysv/linux/getlogin.c: New file.
271         * sysdeps/unix/getlogin_r.c: Allow compiling getlogin as static
272         function.
273         * sysdeps/unix/getlogin.c: Likewise.  Move name variable to toplevel.
274         * include/unistd.h: Declare __getlogin_r_loginuid.
276         [BZ #11397]
277         * sysdeps/posix/cuserid.c (cuserid): Make sure the returned string
278         is NUL terminated.
279         Patch by Jonathan Geisler <jgeisler@cse.taylor.edu>.
281         * sysdeps/unix/sysv/linux/mmap64.c: Allow variable shift values.
283 2010-03-24  H.J. Lu  <hongjiu.lu@intel.com>
285         * sysdeps/x86_64/multiarch/strpbrk-c.c: Define only if SHARED
286         is defined.
288 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
290         * string/test-memcmp.c (check_result): New function.
291         (do_one_test): Use it.
292         (check1): New function.
293         (test_main): Use it.
295 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
297         * posix/tst-gnuglob.c: Add tests with empty patterns.  For this
298         rewrite the tests to add support for failing glob calls.
299         Some other minor cleanups.
300         * posix/bug-glob3.c: New file.
301         * posix/Makefile (tests): Add bug-glob3.
303 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
304             Andreas Schwab  <andreas@redhat.com>
306         * posix/glob.c (glob): Clean up gl_pathc and gl_pathv earlier.
307         If pattern is "" bail out early
309 2010-03-23  Jakub Jelinek  <jakub@redhat.com>
311         * elf/dl-lookup.c (do_lookup_x): If tab->entries is NULL,
312         but tab->size != 0, just unlock and goto success, without
313         allocating anything or entering anything into the hash table.
314         (_dl_debug_bindings): Temporarily set tab->entries to NULL
315         around do_lookup_x in undef_map->l_local_scope[0].  If
316         undef_map->l_symbolic_in_local_scope, lookup also in
317         symbolic_searchlist of following libraries in l_local_scope
318         that have DT_SYMBOLIC set.
319         * elf/dl-deps.c (_dl_map_object_deps): Compute
320         l_symbolic_in_local_scope.
321         * include/link.h (struct link_map): Add l_symbolic_in_local_scope
322         bitfield.
324 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
326         [BZ #11410]
327         * wctype/wctype.h: Use <wchar.h> to get the wint_t definition.
329         * wcsmbs/wchar.h: Correct preprocessor directive indentation.  Move
330         C++ prototype handling to a better place.
332 2010-03-18  Ulrich Drepper  <drepper@redhat.com>
334         * elf/dl-load.c (open_verify): Extend expected to the full size of the
335         e_ident array.  When loading, check that the fields in e_ident we don't
336         know are zero to allow future extensions.
338 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
340         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Update %xmm3
341         when exit from loop.
343 2010-03-16  Andreas Schwab  <schwab@redhat.com>
345         * resolv/res_send.c (__libc_res_nsend): Fix printing of server
346         address in debug statement.
347         (send_dg): Pass correct buffer pointer to DprintQ.
349 2010-03-17  Ulrich Drepper  <drepper@redhat.com>
351         * libc-abis: Add a few more entries.
353 2010-03-16  Ulrich Drepper  <drepper@redhat.com>
355         * elf/dl-load.c (VALID_ELF_ABIVERSION): Add additional osabi parameter.
356         Not used here.
357         (open_verify): Modify for extended VALID_ELF_ABIVERSION macro
358         interface.
359         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_ABIVERSION): Add
360         additional osabi parameter.  Only acceept nonzero ABI versions if osabi
361         is Linux.
362         Fix includes.
363         (expected2): Don't explicitly initialize EI_ABIVERSION byte.
365         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_ABIVERSION): Update
366         definition to follow generic code.
368 2010-03-15  Ulrich Drepper  <drepper@redhat.com>
370         * posix/getconf.c: Update copyright year.
371         * nss/getent.c: Likewise.
372         * iconv/iconvconfig.c: Likewise.
373         * iconv/iconv_prog.c: Likewise.
374         * elf/ldconfig.c: Likewise.
375         * catgets/gencat.c: Likewise.
376         * csu/version.c: Likewise.
377         * elf/ldd.bash.in: Likewise.
378         * elf/sprof.c (print_version): Likewise.
379         * locale/programs/locale.c: Likewise.
380         * locale/programs/localedef.c: Likewise.
381         * nscd/nscd.c (print_version): Likewise.
382         * debug/xtrace.sh: Likewise.
383         * malloc/memusage.sh: Likewise.
384         * malloc/mtrace.pl: Likewise.
385         * debug/catchsegv.sh: Likewise.
387         * Makerules: Add rule for libc-abis.h.
388         * csu/version.c: Use LIBC_ABIS_STRING string if available.
389         * elf/dl-load.c (VALID_ELF_ABIVERSION): Check using LIBC_ABI_MAX.
390         (open_verify): Only check EI_ABIVERSION bytes using VALID_ELF_HEADER.
391         Add extra call to VALID_ELF_ABIVERSION.
393 2010-03-12  Ulrich Drepper  <drepper@redhat.com>
395         * sysdeps/unix/sysv/linux/sys/mount.h (UMOUNT_NOFOLLOW): Define.
397 2010-03-12  Andreas Schwab  <schwab@redhat.com>
399         * elf/dl-dst.h: Include "trusted-dirs.h".
400         (DL_DST_REQUIRED): Take $LIB into account.
402 2010-03-11  Roland McGrath  <roland@redhat.com>
404         * elf/elf.h (R_X86_64_GOT64, R_X86_64_GOTPCREL64): New macros.
405         (R_X86_64_GOTPC64, R_X86_64_GOTPLT64, R_X86_64_PLTOFF64): New macros.
407 2010-03-10  Luis Machado  <luisgpm@br.ibm.com>
409         * sysdeps/powerpc/powerpc64/power7/memcpy.S: New file.
410         * sysdeps/powerpc/powerpc32/power7/memcpy.S: New file.
412 2010-03-09  David S. Miller  <davem@davemloft.net>
414         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handling
415         of R_SPARC_TLS_LE_* needs to use 32-bit loads and stores, not
416         64-bit ones.
418         * sysdeps/sparc/sparc32/memcpy.S: Fix build.
420         * sysdeps/sparc/sparc32/strlen.S: Optimize.
421         * sysdeps/sparc/sparc64/strlen.S: Likewise.
422         * sysdeps/sparc/sparc32/sparcv9/strlen.S (ASI_PNF, ASI_BLK_P,
423         XCC): Delete definitions, not needed.
425 2010-03-07  Ulrich Drepper  <drepper@redhat.com>
427         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
428         Little follow-up patch from last change.
430 2010-03-06  Ulrich Drepper  <drepper@redhat.com>
432         * sysdeps/unix/sysv/linux/internal_statvfs.c: Handle ext4 and logfs.
433         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add entry for logfs.
435 2010-02-18  Yann Droneaud  <yann@droneaud.fr>
437         * resolv/res_send.c: Fixed DEBUG statements.
438         Moved tmpbuf declaration to block beginning and
439         updated pointer names used in multiple DprintQ() calls
441 2010-02-18  H.J. Lu  <hongjiu.lu@intel.com>
443         * config.make.in (config-asflags-i686): Define.
444         * configure.in: Substitute libc_cv_as_i686.
445         * sysdeps/i386/configure.in: Check if assembler supports -mtune=i686.
446         * sysdeps/i386/i686/Makefile (CFLAGS-.oX): Add -Wa,-mtune=i686
447         if assembler supports -mtune=i686.
448         (ASFLAGS-.oX): Likewise.
450 2010-03-04  Ulrich Drepper  <drepper@redhat.com>
452         * elf/elf.h (R_X86_64_SIZE32): Define.
453         (R_X86_64_SIZE64): Define.
455 2010-03-02  Richard Guenther  <rguenther@suse.de>
457         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): R_X86_64_PC32
458         is sign-extending.
460 2010-03-03  Ulrich Drepper  <drepper@redhat.com>
462         * sysdeps/unix/sysv/linux/bits/in.h: Add a few more definitions from
463         the kernel headers.
465 2010-03-04  David S. Miller  <davem@davemloft.net>
467         * sysdeps/sparc/sparc64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
469         * sysdeps/sparc/sparc32/sparcv8/udiv_qrnnd.S: Delete.
470         * sysdeps/sparc/sparc32/udiv_qrnnd.S: Delete.
472 2010-03-03  David S. Miller  <davem@davemloft.net>
474         * math/math_private.h (INSERT_WORDS64): Fix argument order.
476 2010-03-03  Aurelien Jarno  <aurelien@aurel32.net>
478         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: New file.
480 2010-03-03  David S. Miller  <davem@davemloft.net>
482         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_lazy_rel): Must
483         pass '1' for 't' argument to sparc_fixup_plt.
484         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_lazy_rel):
485         Likewise.
486         * sysdeps/sparc/sparc32/dl-plt.h (OPCODE_BA_PT): Define.
487         (sparc_fixup_plt): Document 't' argument.  Enable branch
488         optimization and use v9 branches when possible.  Explain why we
489         cannot unconditionally patch the branch into the first PLT
490         instruction.
491         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Document 't'
492         argument.  Use v9 branches when possible.  Explain why we can in
493         fact unconditionally use a branch in the first PLT instruction
494         here.
496 2010-02-28  Roland McGrath  <roland@redhat.com>
498         * elf/elf.h (NT_X86_XSTATE): New macro.
500 2010-02-25  David S. Miller  <davem@davemloft.net>
502         * sysdeps/sparc/sparc64/Makefile: Add align-cpy rule.
503         * sysdeps/sparc/sparc64/align-cpy.S: New.
504         * sysdeps/sparc/sparc64/memcpy.S (__align_cpy_1, __align_cpy_2,
505         __align_cpy_4, __align_cpy_8, __align_cpy_16): Remove.
506         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (__align_cpy_1,
507         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
508         Remove.
509         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (__align_cpy_1,
510         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
511         Remove.
512         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (__align_cpy_1,
513         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
514         Remove.
516         * sysdeps/sparc/sparc32/bcopy.c: Delete.
517         * sysdeps/sparc/sparc32/memmove.c: Delete.
518         * sysdeps/sparc/sparc32/sparcv9/bcopy.c: Delete.
519         * sysdeps/sparc/sparc32/sparcv9/memmove.c: Delete.
520         * sysdeps/sparc/sparc64/bcopy.c: Delete.
521         * sysdeps/sparc/sparc64/memmove.c: Delete.
522         * sysdeps/sparc/sparc64/memcopy.h: New.
523         * sysdeps/sparc/sparc32/memcpy.S (bcopy, memmove): Remove.
524         * sysdeps/sparc/sparc64/memcpy.S (bcopy, memmove): Likewise.
525         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (bcopy, memmove): Likewise.
526         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (bcopy, memmove): Likewise.
527         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (bcopy, memmove): Likewise.
529         * sysdeps/sparc/elf/rtld-global-offsets.sym: New file.
530         * sysdeps/sparc/Makefile (csu): Add rtld-global-offsets.sym to
531         gen-as-const-headers.
532         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: New file.
533         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: New file.
534         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: New file.
535         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: Move to...
536         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra3.S: ...here.
537         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: Move to...
538         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara1.S: ...here.
539         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: Move to...
540         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara1.S: ...here.
541         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: Move to...
542         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara2.S: ...here.
543         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: Removed.
544         * sysdeps/sparc/sparc64/multiarch/Makefile: New file.
545         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: Move to...
546         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: ...here.
547         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Move to...
548         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: ...here.
549         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Move to...
550         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: ...here.
551         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Move to...
552         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: ...here.
553         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: Removed.
554         * sysdeps/sparc/sparc64/multiarch/memcpy.S: New file.
555         * sysdeps/sparc/sparc64/multiarch/memset.S: New file.
557 2010-02-20  H.J. Lu  <hongjiu.lu@intel.com>
559         [BZ #11332]
560         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Use cfi_remember_state
561         and cfi_restore_state only if USE_AS_STRNCMP is defined.
563 2010-02-24  Ulrich Drepper  <drepper@redhat.com>
565         * sysdeps/x86_64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
567 2010-02-24  H.J. Lu  <hongjiu.lu@intel.com>
569         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
570         (bk_write_less32bytes_2): Renamed to ...
571         (bk_write_less48bytes): This.
572         Use unsigned conditional jumps.
573         Correct unwind info.
574         Use add/sub instead of lea if possible.
575         (shl_0_gobble_cache_loop_tail): Removed.
576         (large_page): Properly adjust ECX.
578         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Use unsigned
579         conditional jumps.
580         Correct unwind info.
582         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Remove redundant
583         punpcklbw.
584         Use unsigned conditional jumps.
585         (128bytesormore_nt): Renamed to ...
586         (128bytesormore_endof_L1): This.
587         Use add instead of lea if possible.
588         Correct unwind info.
589         * sysdeps/i386/i686/multiarch/memset-sse2.S: Remove redundant
590         punpcklbw.
591         Use unsigned conditional jumps.
592         Use add instead of lea if possible.
593         Correct unwind info.
595 2010-02-24  Ulrich Drepper  <drepper@redhat.com>
597         [BZ #11319]
598         * libio/iovdprintf.c (_IO_vdprintf): Explicitly flush stream before
599         undoing the stream because _IO_FINISH doesn't report failures.
601         [BZ #5553]
602         * malloc/malloc.c (public_vALLOc): Set ar_ptr when trying main_arena.
603         (public_pVALLOc): Likewise.
604         Patch by Petr Baudis.
606 2010-02-22  Jim Meyering  <meyering@redhat.com>
608         * manual/math.texi (BSD Random): Fix a typo: s/are/is/
610         * manual/charset.texi: Adjust grammar.
612         * manual/errno.texi (Error Messages): Fix doubled-words and typos.
613         * manual/charset.texi (Selecting the Conversion): Likewise.
614         * manual/getopt.texi (Getopt Long Options): Likewise.
615         * manual/memory.texi (Resizing the Data Segment): Likewise.
616         * manual/message.texi (GUI program problems): Likewise.
617         * manual/resource.texi (CPU Affinity): Likewise.
618         * manual/stdio.texi (Streams and Threads): Likewise.
619         * manual/time.texi (High Accuracy Clock): Likewise.
621 2009-02-20  David S. Miller  <davem@davemloft.net>
623         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
624         Adjust rela->r_offset by l->l_addr when rewriting PLT.
626         * sysdeps/sparc/sparc64/memchr.S: Use unsigned branch on greater to
627         test end of buffer.
629         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c
630         (__makecontext): Adjust arg counter properly when copying arg
631         stack slots.
633 2009-02-20  Joseph Myers  <joseph@codesourcery.com>
635         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
636         Adjust rela->r_offset by l->l_addr when rewriting PLT.
638 2010-02-19  Carl Fredrik Hammar  <hammy.lite@gmail.com>
640         * hurd/hurdioctl.c (tiocsctty): Call `do_tiocsctty' instead of
641         non-existent `tiocsctty_port'.
643 2010-02-16  H.J. Lu  <hongjiu.lu@intel.com>
645         * sysdeps/i386/i686/multiarch/memcmp.S (memcmp): Use CPUID_OFFSET
646         instead of FEATURE_OFFSET.
647         * sysdeps/i386/i686/multiarch/strcmp.S (strcmp): Likewise.
649         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Add alignnments.
650         Fix one unwind info problem.
652         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S (less1bytes): Add CFI_POP.
654         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Simplify unwind info.
656 2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>
657             Ulrich Drepper  <drepper@redhat.com>
659         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Fix typo in unwind info.
660         Clean up a bit.
662 2010-02-17  Carl Fredrik Hammar  <hammy.lite@gmail.com>
664         * hurd/hurdioctl.c (tiocsctty): Only get FD ports, do work in...
665         (tiocsctty_port): ...this new function.
667         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): Cast to
668         `ioctl_handler_t'.
670 2010-02-15  Ulrich Drepper  <drepper@redhat.com>
672         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Fix unwind info.
673         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
674         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
675         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
677         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Don't fall through to
678         undefined code.
680 2010-02-12  H.J. Lu  <hongjiu.lu@intel.com>
682         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
683         strcmp-ssse3, strcmp-sse4, strncmp-c, strncmp-ssse3, strncmp-sse4,
684         memcmp-c, memcmp-ssse3, and memcmp-sse4.
685         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: New file.
686         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: New file.
687         * sysdeps/i386/i686/multiarch/memcmp.S: New file.
688         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: New file.
689         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: New file.
690         * sysdeps/i386/i686/multiarch/strcmp.S: New file.
691         * sysdeps/i386/i686/multiarch/strncmp-c.c: New file.
692         * sysdeps/i386/i686/multiarch/strncmp-sse4.S: New file.
693         * sysdeps/i386/i686/multiarch/strncmp-ssse3.S: New file.
694         * sysdeps/i386/i686/multiarch/strncmp.S: New file.
696 2010-02-12  Luis Machado  <luisgpm@br.ibm.com>
698         * sysdeps/powerpc/powerpc32/dl-machine.h: Removed old PPC_REL16 check.
699         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
700         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
701         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
702         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
703         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
704         * sysdeps/powerpc/powerpc32/configure.in: Fail if R_PPC_REL16
705         is not supported.
706         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
707         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
708         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
709         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
710         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
711         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Likewise.
712         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
713         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
714         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
715         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
716         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
717         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
718         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
719         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
720         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
721         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
722         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
723         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S:
724         Likewise.
725         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
726         Likewise.
727         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
728         Likewise.
729         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
730         Likewise.
731         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
733 2010-02-12  Alan Modra  <amodra@gmail.com>
735         * elf/tls-macros.h [__powerpc__] (__TLS_CALL_CLOBBERS): Remove r3.
736         Define and use for __powerpc64__ too.
737         [__powerpc__] (TLS_LD): Add r3 to clobbers.
738         [__powerpc__] (TLS_GD): Set asm output.  Make __result r3 reg.
739         [__powerpc64__] (TLS_GD): Make __result r3 reg.
740         [__powerpc64__] (TLS_IE): Relax output constraint.
742 2010-02-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
744         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Disable hardware
745         instructions cu21 and cu24.  Add well-formedness checking
746         parameter and adjust the software implementation.
747         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
749 2010-02-10  Ulrich Drepper  <drepper@redhat.com>
751         [BZ #11271]
752         * io/ftw.c (ftw_startup): Close descriptor for initial directory
753         after changing back to it.
755 2010-02-05  David S. Miller  <davem@davemloft.net>
757         * elf/elf.h (R_SPARC_JMP_IREL, R_SPARC_IRELATIVE): Define.
758         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle new
759         ifunc relocs.
760         (elf_machine_lazy_rel): Likewise.
761         (sparc_fixup_plt): Pull out to...
762         * sysdeps/sparc/sparc32/dl-plt.h: ...here.
763         * sysdeps/sparc/sparc32/dl-irel.h: New file.
764         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle new
765         ifunc relocs.
766         (elf_machine_lazy_rel): Likewise.
767         (sparc64_fixup_plt): Pull out to...
768         * sysdeps/sparc/sparc64/dl-plt.h: ...here.
769         * sysdeps/sparc/sparc64/dl-irel.h: New file.
771 2010-02-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
773         * elf/elf.h: Define m68k TLS relocations.
775 2010-02-10  Luis Machado  <luisgpm@br.ibm.com>
777         * sysdeps/powerpc/powerpc64/power7/Implies: Removed.
778         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Removed.
779         * sysdeps/powerpc/powerpc32/power7/Implies: Removed.
780         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: Removed.
781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Add
782         64-bit power7 fpu path.
783         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Add
784         32-bit power7 fpu math.
786 2010-02-09  Ulrich Drepper  <drepper@redhat.com>
788         * sysdeps/i386/rshift.S: More compact unwind information.
790         * sysdeps/i386/lshift.S: Fix unwind information.
792 2010-02-08  Luis Machado  <luisgpm@br.ibm.com>
794         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: New file.
795         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: New file.
796         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: New file.
797         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: New file.
798         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: New file.
799         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: New file.
800         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: New file.
801         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: New file.
802         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: New file.
803         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: New file.
804         * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: New file.
805         * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: New file.
807 2010-02-08  Andreas Schwab  <schwab@redhat.com>
809         * include/fenv.h: Add hidden proto for fegetenv.
810         * math/fegetenv.c: Add hidden alias.
811         * sysdeps/i386/fpu/fegetenv.c: Likewise.
812         * sysdeps/ia64/fpu/fegetenv.c: Likewise.
813         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
814         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
815         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
816         * sysdeps/x86_64/fpu/fegetenv.c: Likewise
817         * sysdeps/s390/fpu/fegetenv.c: Likewise.  Remove unused headers.
819 2010-02-05  H.J. Lu  <hongjiu.lu@intel.com>
821         [BZ #11230]
822         * sysdeps/ia64/memchr.S: Don't read beyond the last byte
823         during recovery.
825 2010-01-26  Andreas Schwab  <schwab@redhat.com>
827         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: Use internal
828         interface.
829         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: Likewise.
830         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Declare internal
831         utmpx interface.
833         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
834         entry for 2.12.
836 2010-02-03  Ulrich Drepper  <drepper@redhat.com>
838         [BZ #11235]
839         * sysdeps/unix/sysv/linux/sys/mount.h: Remove S_WRITE, S_APPEND,
840         S_IMMUTABLE.  Add MS_DIRSYNC, MS_MOVE, MS_SILENT, MS_REC,
841         MS_POSIXACL, MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED,
842         MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME,
843         MS_ACTIVE, and MS_NOUSER.
844         (MS_RMT_MASK): Update according to current kernels.
846         [BZ #11242]
847         * misc/getusershell.c (initshells): Allocate one more byte in input
848         buffer so that fgets doesn't loop undefinitely.
850 2010-02-02  Ulrich Drepper  <drepper@redhat.com>
852         * stdlib/setenv.c (__add_to_environ): Don't use alloca if
853         __libc_use_alloca tells us not to.  Fix memory leak in an error
854         situation.  Based partially on patch by Jim Meyering.
856 2010-01-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
858         * sysdeps/mach/getsysstats.c (get_nprocs_conf, get_nprocs,
859         get_phys_pages, get_avphys_pages): Add weak aliases.
861 2010-01-25  Andreas Schwab  <schwab@redhat.com>
863         * iconv/iconv_prog.c (write_output): Fix check for open failure.
865 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
867         [BZ #11200]
868         * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
869         mmap resource problem.  Patch by Joe Landers <jlanders@vmware.com>.
871 2010-01-22  Jim Meyering  <jim@meyering.net>
873         [BZ #11193]
874         * posix/regexec.c (extend_buffers): Avoid overflow in realloc
875         buffer length computation.
877         [BZ #11192]
878         * posix/regexec.c (re_copy_regs): Don't leak when allocation
879         of the start buffer succeeds but allocation of the "end" one fails.
881         [BZ #11191]
882         * posix/regexec.c (re_search_2_stub): Check for overflow
883         when adding the sizes of the two strings.
885         [BZ #11190]
886         * posix/regexec.c (re_search_internal): Avoid overflow
887         in computing re_malloc buffer size.
889         [BZ #11189]
890         * posix/regexec.c (prune_impossible_nodes): Avoid overflow
891         in computing re_malloc buffer size.
893         [BZ #11188]
894         * posix/regexec.c (build_trtable): Avoid arithmetic overflow
895         in size calculation.
897         [BZ #11187]
898         * posix/regexec.c (re_search_2_stub): Use simpler method than
899         boolean for freeing internal storage.
901 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
903         * posix/regex_internal.c (re_string_skip_chars): Simplify test for
904         failed mbrtowc call.
906 2010-01-22  Jim Meyering  <jim@meyering.net>
908         [BZ #11186]
909         * posix/regex_internal.c (re_string_skip_chars): Don't assume WEOF
910         fits in wchar_t.  Problem reported by Eric Blake.
912         [BZ #11185]
913         * posix/regex_internal.c (re_string_reconstruct): Remove declaration
914         and stores into set-but-not-used local, "q".
916         [BZ #11184]
917         * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
918         detection test.  Patch by Paul Eggert.
920         [BZ #11183]
921         * posix/regex_internal.c (re_string_realloc_buffers):
922         Detect and handle internal overflow.  Patch by Paul Eggert
924 2010-01-20  Andreas Schwab  <schwab@redhat.com>
926         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
927         (CHECK_SP): Fix check for alternate stack.
928         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
929         (CHECK_SP): Likewise.
931 2010-01-19  H.J. Lu  <hongjiu.lu@intel.com>
933         * sysdeps/i386/i686/multiarch/memmove.S: Also check
934         bit_Fast_Rep_String when SHARED isn't defined.
936 2010-01-19  Ulrich Drepper  <drepper@redhat.com>
938         [BZ #11194]
939         * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
941 2010-01-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
943         * sysdeps/mach/hurd/bits/libc-lock.h
944         (__rtld_lock_recursive_t): New type.
945         (__rtld_lock_initialize): New macro.
947 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
949         * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
950         * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
951         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
954 2010-01-18  Andreas Schwab  <schwab@redhat.com>
956         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
957         definitions of O_DSYNC and O_RSYNC.
959         * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
960         casting d_tag.
962         * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
963         dynamic entry types.
965 2010-01-16  Jakub Jelinek  <jakub@redhat.com>
967         * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
968         constant.
969         * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
970         * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
971         overflow.
972         * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
974         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
975         math_opt_barrier and math_force_eval macros.
977 2010-01-15  Ulrich Drepper  <drepper@redhat.com>
979         * posix/regcomp.c: Fix a few more cases of ignored return values.
980         * posix/regex_internal.c: Likewise.
981         * posix/regexec.c: Likewise.
983         * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
984         used without _XOPEN_SOURCE.  Don't base any decisions on this macro
985         if _XOPEN_SOURCE is not defined as well.
987 2010-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
989         * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
990         high gprs kernel facility.
991         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
992         Added high gprs check for DSOs.
993         * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
994         new elf header flag.
996 2010-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
998         * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
999         dl_main.
1000         * elf/dl-open.c (_dl_sysdep_start): Likewise..
1001         * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
1002         * elf/rtld.c (dl_main): Added new parameter auxv.  Adjust the
1003         AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
1004         started.
1006 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
1008         [BZ #11027]
1009         * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
1010         to RFC 2474.
1011         Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1013         [BZ #11141]
1014         * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
1015         addresses.
1017         [BZ #11127]
1018         * posix/regcomp.c (alc_eclosure_iter): Do not ignore
1019         re_node_set_insert failure; return REG_ESPACE.
1020         Patch by Paul Eggert.
1022         * bits/confname.h: Make pre-C99-safe.
1024 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
1026         * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
1027         $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
1028         files are found by GCC.
1030 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
1032         * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
1033         brk, and sbrk.
1035         * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
1036         index, and rindex.
1038         * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
1040         * Versions.def: Add GLIBC_2.12 for libpthread.
1042         [BZ #11126]
1043         * malloc/malloc.c (malloc_info): Initialize malloc if not already
1044         done.  Handle empty bin lists.
1046         * posix/unistd.h: Change getpagesize and getdtablesize declaration
1047         visibility some more.
1049         * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
1051         * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
1053         [BZ #11120]
1054         * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
1055         needed outside libc.
1057 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
1059         * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
1061 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
1063         * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
1065 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
1067         * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
1069 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
1071         * conform/data/complex.h-data: Test for POSIX2008.
1073         * conform/data/ctype.h-data: Fix POSIX testing.
1075         * conform/data/dirent.h-data: ino_t only needed for XSI.
1077         * grp/grp.h: Declare getgrent and endgrent for XPG7.
1079         * conform/data/inttypes.h-data: Use same types as the headers.
1081         * resolv/netdb.h: Don't define old resolver macros for XPG7.
1083         * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
1085         * conform/conformtest.pl: Implement tag for allow-header.
1086         Fix newline handling in allow-header implementation.
1088         * conform/data/time.h-data: Use allow-header instead of duplicating
1089         information.
1091         * conform/data/time.h-data: Allow sigevent tag.
1093         * posix/sched.h: Define time_t and pid_t for XPG7.
1095 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
1097         * sysdeps/i386/i686/bcopy.S: New file.
1099         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
1101         * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
1102         and END_CHK.
1103         * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
1104         * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
1105         * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
1107         * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
1109         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
1110         bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
1111         memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
1112         bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
1113         * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
1114         * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
1115         * sysdeps/i386/i686/multiarch/bcopy.S: New file.
1116         * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
1117         * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
1118         * sysdeps/i386/i686/multiarch/bzero.S: New file.
1119         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
1120         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
1121         * sysdeps/i386/i686/multiarch/memcpy.S: New file.
1122         * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
1123         * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
1124         * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
1125         * sysdeps/i386/i686/multiarch/memmove.S: New file.
1126         * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
1127         * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
1128         * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
1129         * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
1130         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
1131         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
1132         * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
1133         * sysdeps/i386/i686/multiarch/memset.S: New file.
1134         * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
1136         * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
1137         (END_CHK): Likewise.
1139         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
1140         FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
1141         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
1143         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
1144         for 0x0e and 0x80.
1145         (__x86_64_data_cache_size): New.
1146         (init_cacheinfo): Set __x86_64_data_cache_size.
1148         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
1149         on bit_Fast_Rep_String for Intel Core i7.
1151         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
1152         (index_Fast_Rep_String): Likewise.
1153         (FEATURE_INDEX_1): Likewise.
1154         (FEATURE_INDEX_MAX): Likewise.
1155         (cpu_features): Add feature.
1157 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
1159         * conform/data/sys/select.h-data: Fix up for XPG7.
1161 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
1163         * posix/sys/wait.h: Don't define W* macros etc. if
1164         stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
1166 2010-01-11  Ulrich Drepper  <drepper@redhat.com>
1168         * io/sys/stat.h: Declare fchmod for XPG7.
1169         * conform/data/sys/stat.h-data: Fix up for XPG7.
1171         * termios/termios.h: Define pid_t for XPG7.
1173         * conform/data/math.h-data: Fix up for XPG6 and XPG7.
1174         * conform/data/tgmath.h-data: Likewise.
1176         * conform/data/time.h-data: Fix POSIX tests.
1178         * conform/data/wchar.h-data: Fix up XPG7 tests.
1180         * include/features.h: Fix __USE_ISOC95 handling.
1182         * conform/data/wordexp.h-data: Fix typo in last change.
1184         * conform/data/unistd.h-data: Fix up older POSIX tests.
1186         * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
1187         * posix/unistd.h: Likewise.
1189         * posix/unistd.h: Include environments.h also for XPG6 and up.
1190         Define intptr_t for XPG6 and up.
1191         Fix up for XPG7.
1192         * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
1194         * conform/data/sys/types.h-data: Fix up for XPG7.
1196         * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
1197         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1198         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1199         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1200         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1201         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1202         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1203         * sysdeps/unix/sysv/bits/stat.h: Likewise.
1204         * sysdeps/mach/hurd/bits/stat.h: Likewise.
1206         * bits/confname.h: Fix typo in last change.
1208         * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
1210 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
1212         * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
1213         and SA_RESETHAND now available in Base.
1214         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
1215         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
1216         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
1217         * conform/data/signal.h-data: Update for XPG7.
1219         * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
1221         * string/strings.h: Don't declare obsolete functions for XPG7.
1222         Declare ffs only for XSI.
1223         * conform/data/strings.h-data: Update for XPG7.
1225 2010-01-10  Jakub Jelinek  <jakub@redhat.com>
1227         [BZ #11125]
1228         * libio/stdio.h: Define va_list, off_t, and ssize_t.
1230         * posix/glob.h: Define size_t.
1232         * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
1234         * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
1236 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
1238         * conform/conformtest.pl: For XPG7 testing the headers are supposed to
1239         be self-contained.
1241         * conform/data/stdio.h-data: Expect off_t and ssize_t.
1243 2010-01-09  Ulrich Drepper  <drepper@redhat.com>
1245         * libio/stdio.h: Define va_list also for XPG7.
1247         * conform/conformtest.pl: Update for XPG7 and some bug fixes.
1248         * conform/data/ctype.h-data: Likewise.
1249         * conform/data/dirent.h-data: Likewise.
1250         * conform/data/errno.h-data: Likewise.
1251         * conform/data/fcntl.h-data: Likewise.
1252         * conform/data/fmtmsg.h-data: Likewise.
1253         * conform/data/fnmatch.h-data: Likewise.
1254         * conform/data/ftw.h-data: Likewise.
1255         * conform/data/glob.h-data: Likewise.
1256         * conform/data/grp.h-data: Likewise.
1257         * conform/data/iconv.h-data: Likewise.
1258         * conform/data/langinfo.h-data: Likewise.
1259         * conform/data/libgen.h-data: Likewise.
1260         * conform/data/limits.h-data: Likewise.
1261         * conform/data/locale.h-data: Likewise.
1262         * conform/data/math.h-data: Likewise.
1263         * conform/data/monetary.h-data: Likewise.
1264         * conform/data/mqueue.h-data: Likewise.
1265         * conform/data/ndbm.h-data: Likewise.
1266         * conform/data/netdb.h-data: Likewise.
1267         * conform/data/pthread.h-data: Likewise.
1268         * conform/data/pwd.h-data: Likewise.
1269         * conform/data/regex.h-data: Likewise.
1270         * conform/data/sched.h-data: Likewise.
1271         * conform/data/search.h-data: Likewise.
1272         * conform/data/semaphore.h-data: Likewise.
1273         * conform/data/setjmp.h-data: Likewise.
1274         * conform/data/signal.h-data: Likewise.
1275         * conform/data/spawn.h-data: Likewise.
1276         * conform/data/stdio.h-data: Likewise.
1277         * conform/data/stdlib.h-data: Likewise.
1278         * conform/data/string.h-data: Likewise.
1279         * conform/data/strings.h-data: Likewise.
1280         * conform/data/sys/ipc.h-data: Likewise.
1281         * conform/data/sys/msg.h-data: Likewise.
1282         * conform/data/sys/resource.h-data: Likewise.
1283         * conform/data/sys/sem.h-data: Likewise.
1284         * conform/data/sys/shm.h-data: Likewise.
1285         * conform/data/sys/socket.h-data: Likewise.
1286         * conform/data/sys/stat.h-data: Likewise.
1287         * conform/data/sys/time.h-data: Likewise.
1288         * conform/data/sys/types.h-data: Likewise.
1289         * conform/data/sys/uio.h-data: Likewise.
1290         * conform/data/sys/wait.h-data: Likewise.
1291         * conform/data/syslog.h-data: Likewise.
1292         * conform/data/tar.h-data: Likewise.
1293         * conform/data/termios.h-data: Likewise.
1294         * conform/data/time.h-data: Likewise.
1295         * conform/data/ulimit.h-data: Likewise.
1296         * conform/data/unistd.h-data: Likewise.
1297         * conform/data/utmpx.h-data: Likewise.
1298         * conform/data/wchar.h-data: Likewise.
1299         * conform/data/wctype.h-data: Likewise.
1300         * conform/data/wordexp.h-data: Likewise.
1302         * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
1303         * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
1304         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1305         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1306         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1307         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1308         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1309         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1310         * sysdeps/unix/sysv/bits/stat.h: Likewise.
1311         * sysdeps/mach/hurd/bits/stat.h: Likewise.
1313         * stdlib/stdlib.h: Define wait-related bits for XPG7.
1314         Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and  up.
1315         Declare mkstemp and getsubopt for XPG7.
1316         Declare posix_openpt for XPG6 XSI.
1318         * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
1319         and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
1321         * string/string.h: Declare strdup for XPG7.
1323 2010-01-08  Ulrich Drepper  <drepper@redhat.com>
1325         * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
1326         * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
1328         * dirent/dirent.h: Really fix feature selection.
1330         * locale/localeinfo.h: Rename struct locale_data to __locale_data.
1331         Fix all users.
1332         * locale/C-address.c: Fix all users.
1333         * locale/C-collate.c: Likewise.
1334         * locale/C-ctype.c: Likewise.
1335         * locale/C-identification.c: Likewise.
1336         * locale/C-measurement.c: Likewise.
1337         * locale/C-messages.c: Likewise.
1338         * locale/C-monetary.c: Likewise.
1339         * locale/C-name.c: Likewise.
1340         * locale/C-numeric.c: Likewise.
1341         * locale/C-paper.c: Likewise.
1342         * locale/C-telephone.c: Likewise.
1343         * locale/C-time.c: Likewise.
1344         * locale/findlocale.c: Likewise.
1345         * locale/global-locale.c: Likewise.
1346         * locale/loadarchive.c: Likewise.
1347         * locale/loadlocale.c: Likewise.
1348         * locale/nl_langinfo_l.c: Likewise.
1349         * locale/setlocale.c: Likewise.
1350         * locale/xlocale.c: Likewise.
1351         * locale/xlocale.h: Likewise.
1352         * stdio-common/vfscanf.c: Likewise.
1353         * stdlib/strfmon_l.c: Likewise.
1354         * stdlib/strtod_l.c: Likewise.
1355         * stdlib/strtol_l.c: Likewise.
1356         * string/strcoll_l.c: Likewise.
1357         * string/strxfrm_l.c: Likewise.
1358         * time/alt_digit.c: Likewise.
1359         * time/asctime.c: Likewise.
1360         * time/era.c: Likewise.
1361         * time/lc-time-cleanup.c: Likewise.
1362         * time/strftime_l.c: Likewise.
1363         * time/strptime_l.c: Likewise.
1364         * wcsmbs/wcsmbsload.c: Likewise.
1365         * wcsmbs/wcsmbsload.h: Likewise.
1367         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
1368         O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
1369         for XPG7.
1370         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1371         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1372         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1373         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1374         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1375         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1377 2010-01-07  Roland McGrath  <roland@redhat.com>
1379         * elf/elf.h (PN_XNUM): New macro.
1381         * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
1382         literal 2.
1384 2010-01-06  Ulrich Drepper  <drepper@redhat.com>
1386         * dirent/dirent.h: Fix typo in feature selection macro use.
1388 2009-12-15  Maciej W. Rozycki  <macro@codesourcery.com>
1390         [BZ #11115]
1391         * stdlib/tst-makecontext3.c: New file.
1392         * stdlib/Makefile (tests): Add new test.
1394         * stdlib/tst-setcontext.c (check_called): Fix a typo.
1396 2009-12-17  H.J. Lu  <hongjiu.lu@intel.com>
1398         * configure.in: Enable multi-arch by default if the assembler
1399         supports gnu_indirect_function symbol type and the architecture
1400         supports it.
1402 2009-12-23  Ulrich Drepper  <drepper@redhat.com>
1404         * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
1405         is defined.
1407 2009-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1409         * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
1410         MACH_PORT_NULL when id != cttyid.
1412 2009-12-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1414         * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
1415         __mach_port_deallocate on rootdevid.
1417 2009-12-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1419         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
1420         R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
1421         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
1422         unneeded R_390_PLT16DBL and R_390_PLT32DBL.
1424 2009-12-21  Ulrich Drepper  <drepper@redhat.com>
1426         [BZ #10992]
1427         * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
1428         Patch by Eric Blake <ebb9@byu.net>.
1430 2009-12-15  Ulrich Drepper  <drepper@redhat.com>
1432         [BZ #11093]
1433         * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
1434         POLLWRBAND also for POSIX 2008.
1435         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
1436         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
1438         * include/link.h (struct link_map): Move l_used into its own word.
1439         * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
1440         still zero.
1441         * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
1442         never really used.
1444 2009-12-13  H.J. Lu  <hongjiu.lu@intel.com>
1446         * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
1447         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
1448         check processor feature.
1449         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1450         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1451         * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
1452         (index_SSE2): Likewise.
1454 2009-12-09  H.J. Lu  <hongjiu.lu@intel.com>
1456         * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
1457         if __ASSEMBLER__ is defined.
1458         (bit_SSSE3): New.  Defined for __ASSEMBLER__.
1459         (bit_SSE4_2): Likewise.
1460         (index_SSSE3): Likewise.
1461         (index_SSE4_2): Likewise.
1462         * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
1463         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
1464         check processor feature.
1465         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1466         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1467         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1468         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1469         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1470         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1471         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1473 2009-12-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1475         * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
1477 2009-12-01  Mike Frysinger  <vapier@gentoo.org>
1479         * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
1481 2009-12-11  Ulrich Drepper  <drepper@redhat.com>
1483         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
1484         O_DSYNC to match 2.6.33+ kernels.
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-12-10  Ulrich Drepper  <drepper@redhat.com>
1494         [BZ #11000]
1495         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
1496         *herrnop before returning.
1497         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
1498         Likewise.
1499         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
1500         TRYAGAIN errors separately.
1501         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
1502         *name4_r after functions.
1504 2009-12-09  Ulrich Drepper  <drepper@redhat.com>
1506         [BZ #11046]
1507         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
1508         version check.
1510 2009-11-05  Bruno Haible  <bruno@clisp.org>
1512         [BZ #11056]
1513         * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
1514         argv argument as non-NULL.
1515         (execle, execl, execlp): Mark the first ARG argument as non-NULL.
1517 -2009-12-08  Ulrich Drepper  <drepper@redhat.com>
1519         * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
1520         recvmmsg.
1521         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
1522         * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
1524 2009-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1526         * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
1527         registers.
1528         * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
1529         * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
1530         * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
1532 2009-11-30  Ulrich Drepper  <drepper@redhat.com>
1534         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
1535         SCHED_RESET_ON_FORK.
1537 2009-11-26  Ulrich Drepper  <drepper@redhat.com>
1539         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
1540         only used on truly ancient kernel if configuration requires a more
1541         recent kernel.
1543 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
1545         [BZ #3662]
1546         * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
1547         Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
1549         * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
1550         pass it on to __ptsname_internal.
1551         (grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
1552         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
1553         All the code from __ptsname_r but take additional parameter.  Use that
1554         instead of pointer to local stat64 variable.
1555         (__ptsname_r): Call __ptsname_internal with pointer to local stat64
1556         variable.
1557         * include/stdlib.h: Declare __ptsname_internal.
1559         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
1560         before the exec.
1561         * sysdeps/unix/sysv/linux/grantpt.c: New file.
1562         * login/programs/pt_chown.c (main): Don't print message on errors
1563         when doing real work.
1565         * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
1566         once.
1568         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
1569         irel relocations split out from...
1570         (__libc_csu_init): ...here.
1571         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
1573 2009-11-23  Andreas Schwab  <schwab@redhat.com>
1575         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
1576         for timestamps also if __USE_XOPEN2K8.
1577         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1578         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1579         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1580         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1582 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
1584         * nscd/connections.c (restart): Try harder to re-exec.
1586         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
1588         * sysdeps/unix/sysv/linux/ntp_gettimex.c:  New file.
1589         * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
1590         * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
1591         * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
1592         some placeholders.  Redirect ntp_gettime to ntp_gettimex.
1593         * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
1595         * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
1596         Define.
1597         (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
1599 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
1601         [BZ #10162]
1602         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
1603         than software pipeline.  Properly recover from shorter read.
1605 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
1607         [BZ #10958]
1608         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
1609         initialized before using it.
1610         (_IO_putwc_unlocked): Likewise.
1612         [BZ #10918]
1613         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
1614         in cast to not throw away const-ness of parameters.
1615         (__CPU_EQUAL_S): Likewise.
1616         (__CPU_OP_S): Likewise.
1618         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
1619         F_OWNER_PGRP and mark F_OWNER_GID obsolete.  The kernel people made
1620         this gratuitous change and we have to keep compatibility.
1621         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1622         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1623         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1624         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1625         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1626         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1628 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1630         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
1631         of parameters of sync_file_range.
1632         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1633         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1634         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1635         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1636         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1637         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1639 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
1641         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
1642         Implement using sync_file_range2 syscall if __NR_sync_file_range2
1643         is defined.
1644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
1645         file.
1647 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
1649         * posix/bug-regex30.c: New file.
1650         * posix/Makefile: Add rules to build and run bug-regex30.
1651         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
1652         character lead bytes when there is a range in a COMPLEX_BRACKET.
1653         Reported by Oleg Bylatov.
1655 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1657         [BZ #10969]
1658         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
1659         * locale/tst-duplocale.c: New file.
1660         * locale/Makefile (tests): Add tst-duplocale.
1662         [BZ #10968]
1663         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
1664         Patch by Bruno Haible <bruno@clisp.org>.
1665         * locale/tst-locname.c: New file.
1666         * locale/Makefile (tests): Add tst-locname.
1668         [BZ #10972]
1669         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
1670         constants from recent kernels.
1671         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1672         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
1673         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1674         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1675         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1676         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1678 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
1680         [BZ #10162]
1681         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
1682         software pipeline.
1684 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
1686         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
1687         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
1688         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
1690 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
1692         * posix/bug-regex29.c: Include stdio.h.
1694 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
1696         [BZ #10939]
1697         * Versions.def: Define GLIBC_2.12 for libc.
1698         * manual/errno.texi: Add ERFKILL entry.
1699         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
1700         for 2.12.
1701         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
1702         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
1704         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
1705         F_GETOWN_EX definitions according to corrected kernel definitions.
1706         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1707         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1708         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1709         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1710         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1711         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1713 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
1715         * version.h: Bump for 2.12 development.
1717 2009-11-10  Andreas Schwab  <schwab@redhat.com>
1719         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
1720         out of buffer space.
1721         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
1722         map_v4v6_hostent running out of space.
1724 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
1726         * string/bits/string3.h (memset): If the second parameter is constant
1727         and zero there is likely no transposition.
1728         Patch by Caolan McNamara <caolanm@redhat.com.
1730 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
1732         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
1733         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1735 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
1737         * malloc/memusagestat.c (main): Fix spelling in an error message.
1739 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1741         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
1742         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
1744 2009-11-03  Andreas Schwab  <schwab@redhat.com>
1746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
1747         readahead.
1749 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
1751         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
1752         relocate opd entry when resolving prelink conflicts.
1754 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
1756         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
1757         when -D_FILE_OFFSET_BITS=64.
1759         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
1760         of last two arguments when -D_FILE_OFFSET_BITS=64.
1761         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
1762         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
1763         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
1764         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
1765         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
1766         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
1768 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1770         [BZ #4457]
1771         * sysdeps/generic/libgcc_s.h: New file.
1772         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
1774 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
1776         * malloc/hooks.c (free_check): Restore locking and call _int_free
1777         appropriately.
1779 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1781         * version.h (VERSION): Bump for 2.11 release.
1782         * include/features.h (__GLIBC_MINOR__): Bump to 11.
1784         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
1786         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
1788         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
1789         to avoid warning.
1790         * stdlib/tst-strtoll.c (tests): Likewise.
1792         [BZ #9986]
1793         * time/strftime_l.c (__strftime_internal): Allow %OC.
1795         * misc/mkostemps.c: New file.
1796         * misc/mkostemps64.c: New file.
1798 2009-10-30  Andreas Schwab  <schwab@redhat.com>
1800         * locale/programs/locale-spec.c: Include <error.h> and
1801         <libintl.h>.
1803         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
1805 2009-10-28  Roland McGrath  <roland@redhat.com>
1807         * Makefile (dist-prepare): New target.
1808         (tag-for-dist): Target removed.
1809         (glibc-%.tar): Pattern rule removed.
1810         (%.tar): New pattern rule, does simple use of git archive.
1811         (dist-version): Remove variable definition.
1812         (dist): Just depend on that.  Add .tar.xz dependency.
1813         If dist-version variable not set on command line, depend on
1814         dist-prepare, re-invoke with dist-version set via git describe.
1816         * Makerules (%.xz): New pattern rule.
1818 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
1820         * elf/ifuncdep2.c: Include ifunc-sel.h.
1821         (global): Delete.
1822         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
1823         * elf/ifuncmain1.c (global): Delete.
1824         * elf/ifuncmain1vis.c: Likewise.
1825         * elf/ifuncmain2.c: Likewise.
1826         * elf/ifuncmain5.c: Likewise.
1827         * elf/ifuncmod3.c: Likewise.
1828         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
1829         (foo_ifunc): Use ifunc_one.
1830         * elf/ifuncmain7.c: Likewise.
1831         * elf/ifuncmod1.c: Include ifunc-sel.h.
1832         (global): Define protected var.
1833         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
1834         * elf/ifuncmod5.c: Likewise.
1835         * sysdeps/generic/elf/ifunc-sel.h: New file.
1836         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
1838 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
1840         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
1841         (R_PPC_REL16*): Correct comments.
1842         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
1843         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
1844          R_PPC64_REL16_HA): Define.
1845         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
1846         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
1847         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
1848         Delete unused "reloc" param.
1849         (__process_machine_rela): Handle R_PPC_IRELATIVE.
1850         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
1851         Delete "reloc" param.
1852         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
1853         R_PPC_IRELATIVE.
1854         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
1855         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
1856         relocations.
1858 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1860         [BZ #10315]
1861         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
1862         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
1863         UDP_ENCAP_L2TPINUDP.
1865         [BZ #10349]
1866         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
1867         parameter, specifying length of prefix.
1868         * stdio-common/tempname.c: Likewise.
1869         * include/stdio.h: Adjust prototypes.
1870         * libio/oldtmpfile.c: Adjust caller.
1871         * misc/mkdtemp.c: Likewise.
1872         * misc/mkostemp.c: Likewise.
1873         * misc/mkostemp64.c: Likewise.
1874         * misc/mkstemp.c:  Likewise.
1875         * misc/mkstemp64.c: Likewise.
1876         * misc/mktemp.c: Likewise.
1877         * stdio-common/tempnam.c: Likewise.
1878         * stdio-common/tmpfile.c: Likewise.
1879         * stdio-common/tmpnam.c: Likewise.
1880         * stdio-common/tmpnam_r.c: Likewise.
1881         * misc/mkstemps.c: New file.
1882         * misc/mkstemps64.c: New file.
1883         * stdlib/stdlib.h: Add prototypes.
1884         * misc/Makefile (routines): Add mkstemps and mkstemps64.
1885         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
1887 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1889         * locale/iso-639.def: Add sml entry.
1891         [BZ #10391]
1892         * resolv/res_send.c (send_dg): Initialize resplen.
1894         [BZ #10446]
1895         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
1896         definition to the kernel's.
1897         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1899 2009-08-18  Anders Johansson  <ajohansson@novell.com>
1901         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
1902         offsets and record sizes in assert()s and response sending.
1903         * nscd/grpcache.c: Likewise.
1904         * nscd/hstcache.c: Likewise.
1905         * nscd/initgrcache.c: Likewise.
1906         * nscd/pwdcache.c: Likewise.
1908 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1910         [BZ #10540]
1911         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
1912         /etc/hosts does not exist set errnop and herrnop appropriately.
1913         Patch by Steve Langasek <vorlon@debian.org>.
1915         [BZ #10553]
1916         * malloc/malloc.c (malloc_info): Fix typos in format strings.
1917         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1919         [BZ #10564]
1920         * login/utmp_file.c (TIMEOUT): Increase to 10.
1922         [BZ #10609]
1923         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1924         for file names in case the syscall is not available.
1925         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1926         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1927         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1928         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1929         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1930         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1931         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1932         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1933         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1934         * sysdeps/unix/sysv/linux/openat.c: Likewise.
1935         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1936         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1937         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1938         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1939         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1940         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1941         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1943         [BZ #10643]
1944         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1945         creation filed, remove the request from the 'requests' list and signal
1946         the caller that the request is finished.
1948         [BZ #10692]
1949         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1950         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
1952         [BZ #10713]
1953         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1954         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
1956         [BZ #10780]
1957         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1958         overflows the int return type.
1960         [BZ #10717]
1961         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
1962         have to compute maxsize_total, we have to update the variables, and
1963         the also_total handling must happen after the repair.
1965         [BZ #10742]
1966         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1967         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1969 2009-10-27  Andreas Schwab  <schwab@redhat.com>
1971         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1972         errno is always set when returning unsuccessfully.
1974 2009-10-29  Andreas Schwab  <schwab@redhat.com>
1976         * malloc/memusage.c (update_data): Fix index wraparound handling
1977         so that buffer_cnt is actually reset.
1979 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1981         [BZ #10784]
1982         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1983         of the directory we look at into the static buffer if there is one
1984         at the start of the loop.
1986         [BZ #10789]
1987         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1988         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1990         [BZ #10840]
1991         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1992         __ASSUME_F_GETOWN_EX.
1993         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1994         if possible.
1995         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1997         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1998         and f_owner_ex.
1999         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2000         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2001         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2002         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2003         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2004         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2006         [BZ #10847]
2007         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
2008         getutmpx symbol.
2010         [BZ #10823]
2011         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
2012         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
2014 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
2016         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
2018 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
2020         [BZ #10817]
2021         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
2022         Reported by Ray Chason.
2024 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
2026         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2027         strend-sse4.
2028         * sysdeps/x86_64/multiarch/strchr.S: New file.
2029         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
2030         * sysdeps/x86_64/multiarch/strrchr.S: New file.
2032 2009-10-21  Andreas Schwab  <schwab@redhat.com>
2034         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
2036 2009-10-19  Andreas Schwab  <schwab@redhat.com>
2038         * include/math.h: Add hidden protos for __exp/__expf/__expl.
2039         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
2040         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
2041         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
2042         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
2043         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
2044         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
2045         __ieee751_expl to handle overflow.
2047 2009-10-14  David S. Miller  <davem@davemloft.net>
2049         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
2050         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
2052 2009-10-13  Andreas Schwab  <schwab@redhat.com>
2054         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
2055         !USE_MULTIARCH.
2057 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
2059         [BZ #10730]
2060         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
2061         Patch in part by Steve Ward <planet36@gmail.com>.
2063         [BZ #10731]
2064         * stdlib/rand_r.c: Fix typo.
2066         * po/cs.po: Update from translation team.
2068 2009-10-06  Andreas Schwab  <schwab@redhat.com>
2070         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
2071         returning if RTLD_NOLOAD.
2073 2009-10-06  Roland McGrath  <roland@redhat.com>
2075         * sysdeps/x86_64/multiarch/strstr-c.c
2076         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
2078         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
2079         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
2081         * sysdeps/x86_64/multiarch/init-arch.h
2082         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
2083         (HAS_CPU_FEATURE): New macro.
2084         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
2085         * sysdeps/x86_64/multiarch/init-arch.c
2086         (__get_cpu_features): #undef it before definition.
2088 2009-10-05  Andreas Schwab  <schwab@redhat.com>
2090         * locale/C-time.c: Revert week-1stday back to 19971130 and set
2091         first_weekday to 1 and first_workday to 2.
2093 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
2095         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
2096         F_GETOWN_EX.
2097         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2098         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2099         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2100         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2101         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2102         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2104 2009-09-28  Andreas Schwab  <schwab@redhat.com>
2106         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
2107         * stdio-common/vfprintf.c: Likewise.
2109 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2111         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
2112         (mkdirat): Call __directory_name_split_at instead of
2113         __directory_name_split.
2115 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
2117         * locale/programs/locale-spec.c (locale_special): If nothing matches
2118         fail with an appropriate message.
2120 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
2122         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
2123         and XX.
2125 2009-09-25  Andreas Schwab  <schwab@redhat.com>
2127         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
2128         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
2130 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2132         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
2134 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
2136         * iconvdata/iso646.c (gconv_init): Correctly initialize the
2137         character size elements in step data.
2139 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
2141         * po/hu.po: Update from translation team.
2142         * po/vi.po: Likewise.
2144 2009-09-19  Roland McGrath  <roland@redhat.com>
2146         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
2148 2009-09-15  Roland McGrath  <roland@redhat.com>
2150         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
2151         * nptl/sysdeps/pthread/configure: Regenerated.
2152         * nptl/sysdeps/x86_64/configure: Regenerated.
2153         * sysdeps/unix/sysv/linux/configure: Regenerated.
2154         * sysdeps/x86_64/elf/configure: Regenerated.
2156         * Makefile (autoconf-it): Set execute bit only on top-level configure.
2158         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
2159         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
2160         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
2161         * configure: Regenerated.
2163 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
2165         * posix/getconf.c (main): Handle -- on command line.
2167 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
2169         * configure.in: Support binutils 2.100 and 3.0.
2171 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
2173         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
2174         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
2175         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
2176         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
2178 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
2180         * locale/programs/ld-collate.c (struct locale_collate_t): Add
2181         unnamed_section_defined field.
2182         (collate_read): Test and set unnamed_section_defined.
2184         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
2185         _POSIX2_LINE_MAX.
2187 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
2189         * configure.in: Support binutils 2.20.
2191 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
2193         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
2194         __strstr_ia32): Add attribute_hidden.
2196 2009-09-01  Andreas Schwab  <schwab@redhat.com>
2198         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
2199         parsing of group entry.
2201 2009-09-02  Andreas Schwab  <schwab@redhat.com>
2203         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
2204         external buffer.  Always discard readahead in internal buffer.
2205         * libio/Makefile (tests): Add bug-wsetpos.
2206         * libio/bug-wsetpos.c: New file.
2208 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
2210         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
2211         Add attribute_hidden.
2212         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
2213         __strcasestr_sse2): Likewise.
2214         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
2215         (__fma_fma): Make static.
2216         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
2217         (__fmaf_fma): Make static.
2219 2009-08-31  Andreas Schwab  <schwab@redhat.com>
2221         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
2222         reformulate in-buffer optimisation check to match code in
2223         _IO_new_file_seekoff.
2225 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
2227         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
2228         to srwi in 32-bit memcpy for power6.
2230 2009-09-01  Andreas Schwab  <schwab@redhat.com>
2232         * include/stdio.h: Declare hidden proto for fflush.
2233         * libio/iofflush.c: Add hidden weak alias for fflush.
2235 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
2237         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
2238         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
2240 2009-08-31  Andreas Schwab  <schwab@redhat.com>
2242         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
2244 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
2246         [BZ #10560]
2247         * malloc/malloc.c: Add local assert definition to avoid problems with
2248         memory allocation in the real one.
2250 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
2252         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
2253         Removed.
2254         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
2255         turn off SSSE3 on Atom.
2257 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
2259         * stdlib/tst-strtol.c (tests): More tests.
2260         * stdlib/tst-strtoll.c (tests): Likewise.
2262 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
2264         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
2266         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
2268 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
2270         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
2271         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
2273         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
2275         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
2277         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
2279 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
2281         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
2283 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
2285         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
2286         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
2288         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
2290         * sysdeps/x86_64/fpu/s_signbit.S: New file.
2291         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
2293         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
2294         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
2296         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
2297         leftover YMM_SIZE definition.
2299 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
2301         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
2302         union.
2303         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
2304         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
2305         Redefine.
2306         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
2308         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
2309         and SET_FLOAT_WORD definitions.
2311 2009-08-24  Roland McGrath  <roland@redhat.com>
2313         * sysdeps/unix/syscall-template.S: New file.
2314         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
2315         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
2316         (compile-syscall): Pass mkdep and -g options as normal.
2317         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
2318         (common-generated): Don't add them here.
2320 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
2322         * math/s_fdim.c: In case of overflows set errno.
2323         * math/s_fdimf.c: Likewise.
2324         * math/s_fdiml.c: Likewise.
2326         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
2327         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
2328         are using the inline optimizations.
2330         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
2331         (__signbitf): Likewise.
2333 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
2335         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
2336         terminated.
2337         * posix/Makefile (tests): Add bug-regex29.
2338         * posix/bug-regex29.c: New file.
2340         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
2341         older POSIX versions are selected.
2343         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
2344         as well.
2345         * stdio-common/printf_fphex.c: Likewise.
2346         * stdio-common/tstdiomisc.c: Add more tests.
2348         * locale/locale.h: Include xlocale.h and the thread-local locale
2349         declarations for XPG7, not XPG6.
2351 2009-08-21  Andreas Schwab  <schwab@redhat.com>
2353         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
2354         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
2355         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
2356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
2357         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
2358         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2360 2009-08-20  Roland McGrath  <roland@redhat.com>
2362         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
2363         Use l_addr instead of l_map_start (dli_fbase).
2364         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
2365         address when there is no proximate symbol.
2366         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
2367         Likewise.
2369 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
2371         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
2373 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
2375         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
2376         Also handle SIGINT.  In that case only do the cleanup and then
2377         re-raise the signal.
2378         (main): Install handler for SIGINT.
2380 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
2382         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
2383         clobber list.
2385 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
2387         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
2388         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
2389         tst-auditmod7b.c.
2390         (tests): Add tst-audit6 tst-audit7.
2391         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
2392         tst-auditmod7a tst-auditmod7b.
2393         ($(objpfx)tst-audit6): New.
2394         ($(objpfx)tst-audit6.out): Likewise.
2395         ($(objpfx)tst-audit7): Likewise.
2396         ($(objpfx)tst-audit7.out): Likewise.
2397         (tst-audit6-ENV): Likewise.
2398         (tst-audit7-ENV): Likewise.
2399         (CFLAGS-tst-auditmod6b.c): Likewise.
2400         (CFLAGS-tst-auditmod6c.c): Likewise.
2401         (CFLAGS-tst-auditmod7b.c): Likewise.
2402         * elf/tst-audit6.c: New file.
2403         * elf/tst-audit7.c: New file.
2404         * elf/tst-auditmod6a.c: New file.
2405         * elf/tst-auditmod6b.c: New file.
2406         * elf/tst-auditmod6c.c: New file.
2407         * elf/tst-auditmod7a.c: New file.
2408         * elf/tst-auditmod7b.c: New file.
2409         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2410         saving and restoring SSE/AVX registers to ...
2411         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2413 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2415         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
2416         only if SHARED is defined.
2417         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
2419 2009-08-03  Jim Meyering  <meyering@redhat.com>
2421         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
2423 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
2425         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
2426         section as the other functions for this architecture.
2427         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2429 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
2431         * sysdeps/x86_64/strcmp.S: Add support to compile with
2432         USE_SSSE3.  In this case palignr is used.
2433         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
2434         available but SSSE3 is, pick __str{,n}cmp_ssse3.
2435         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
2436         Add strcmp-ssse3 and strncmp-ssse3.
2437         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
2438         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
2440         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
2441         warning through fake initialization.
2443 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2445         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
2447 2009-08-07  Andreas Schwab  <schwab@redhat.com>
2449         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
2450         unique symbols.
2452 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
2454         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
2455         EBX from EAX = 1.  Handle EAX = 11.
2457 2009-08-07  Andreas Schwab  <schwab@redhat.com>
2459         * Makefile (TAGS): Use separate sed -e expressions to avoid \
2460         inside ''.
2462 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
2464         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
2465         hidden IFUNC functions.
2466         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2468         * sysdeps/i386/i686/multiarch/strlen.S: New file.
2470         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
2471         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
2472         strcasestr-c.
2473         (CFLAGS-strcspn-c.c): Define.
2474         (CFLAGS-strpbrk-c.c): Define.
2475         (CFLAGS-strspn-c.c): Define.
2476         (CFLAGS-strstr.c): Define.
2477         (CFLAGS-strcasestr.c): Define.
2478         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
2479         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
2480         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
2481         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
2482         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
2483         * sysdeps/i386/i686/multiarch/strspn.S: New file.
2484         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
2485         * sysdeps/i386/i686/multiarch/strstr.c: New file.
2486         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
2487         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
2488         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
2489         -16L instead of 0xfffffffffffffff0L.
2490         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
2492 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
2494         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
2496 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
2498         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
2499         another rewrite.  Much smaller and faster.
2500         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
2502         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
2503         ss_flags from the correct location.
2505 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2507         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
2508         * sysdeps/i386/i686/cacheinfo.c: New file.
2509         * sysdeps/i386/i686/multiarch/Makefile: New file.
2510         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
2511         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
2512         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
2513         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
2514         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
2515         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
2516         (__cpuid_count): New. Provide the default.
2517         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
2518         (__x86_64_preferred_memory_instruction): Define only if
2519         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
2520         (intel_check_word): Use __cpuid.
2521         (handle_intel): Likewise.
2522         (handle_amd): Likewise.
2523         (__cache_sysconf): Likewise.
2524         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
2525         (__cache_sysconf): Likewise.
2526         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
2527         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
2528         (get_common_indeces): Use __cpuid.
2529         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
2530         if ENABLE_SSSE3_ON_ATOM is not defined.
2531         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
2532         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
2533         popcnt instead of popcntq.
2535 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
2537         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
2539 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
2541         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
2542         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
2543         which always causes a compile error.
2545         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
2547         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
2548         comes from...
2549         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
2550         which always causes a compile error.
2552         * debug/Makefile (tests): Add tst-longjmp_chk2.
2553         * debug/tst-longjmp_chk2.c: New file.
2555         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
2556         Remove incorrect use of BP_SYM.
2557         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
2558         here now since it is more complex than just a simple check.
2560         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
2561         we make no more progress.
2563 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
2565         * math/s_fma.c: Don't define alias if __fma is a macro.
2566         * math/s_fmaf.c: Likewise.
2567         * sysdeps/x86_64/multiarch/s_fma.c: New file.
2568         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
2569         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
2571         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
2572         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
2573         New macro HAS_FMA.
2574         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
2575         function.
2576         * include/libc-symbols.h (libm_ifunc): Define.
2577         * sysdeps/x86_64/multiarch/Versions: New file.
2579         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
2581 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
2583         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
2585 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
2587         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
2588         call that registers used in calling conventions need to be preserved.
2589         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
2590         to preserve register content if necessary.
2591         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
2592         (_dl_x86_64_restore_sse): New function.
2593         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
2594         is allowed to modify xmm/ymm registers.
2596         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
2597         application's perspective.
2598         * stdio-common/scanf17.c: Likewise.
2600 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
2602         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
2603         size to memsz.
2604         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
2605         here.
2606         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
2607         two steps to catch bugs.
2609 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
2611         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
2612         determines which files are used in runtime lookups and only checks
2613         those for SSE use.
2614         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
2615         testing.
2616         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
2617         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
2618         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
2619         take a while.
2621         * elf/dl-open.c: Move _dl_scope_free to...
2622         * elf/dl-scope.c: ...here.  New file.
2623         * elf/Makefile (dl-routines): Add scope.
2625         * resolv/resolv.h (RES_USE_DNSSEC): Define.
2626         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
2627         RES_USE_DNSSEC.
2628         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
2629         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
2630         all the places we handled RES_USE_EDNS0 only before.
2631         Patch by Adam Tkac <atkac@redhat.com>.
2633 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
2635         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
2636         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
2637         Update size when reallocating.
2639 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2641         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
2642         functions used in ld.so modify xmm/ymm registers.
2643         * sysdeps/x86_64/Makefile:  Hook new test up.
2644         * sysdeps/x86_64/rtld-memchr.c: New file.
2645         * sysdeps/x86_64/rtld-memcmp.c: New file.
2646         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
2647         * sysdeps/x86_64/rtld-strchr.S: New file.
2648         * sysdeps/x86_64/rtld-strlen.S: New file.
2649         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
2650         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
2652 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
2654         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
2655         strncmp-c.
2656         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
2657         (exit): Likewise.
2658         (Byte1): Likewise.
2659         (Byte2): Likewise.
2660         (Byte3): Likewise.
2661         (Byte4): Likewise.
2662         (Byte5): Likewise.
2663         (Byte6): Likewise.
2664         (next_8_bytes): Likewise.
2665         (Byte0): Remove commented out codes.
2666         (unaligned_table): Align jump table at 8 bytes.
2667         Add _sse4_2 to all labels.  Always include "../strcmp.S".
2668         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
2669         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
2670         * sysdeps/x86_64/strncmp.S: New file.
2672 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2674         [BZ #10422]
2675         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
2676         kernels, dropped when eventfd2 support was added.
2677         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
2678         kernels, dropped when signalfd4 support was added.
2679         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
2680         added, name them.
2682         [BZ #10452]
2683         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
2684         replies up.
2686         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
2688 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
2690         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
2691         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
2693         [BZ #10448]
2694         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
2695         callback we must touch the status to avoid using stale value.
2697         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
2698         compiled in.
2700 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
2702         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
2703         /lib/modules/* headers anymore.  We have sane headers in the standard
2704         place now.
2706 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2708         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
2709         "etf3enh" and "highgprs" added.
2710         (_dl_s390_platforms): "z10" added.
2711         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
2712         Increased for the new entries.
2713         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
2714         HWCAP_S390_HIGH_GPRS added.
2716         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
2717         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
2718         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
2719         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
2720         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
2722 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
2724         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
2725         avoid additional cpuid instructions.  Most of the information is
2726         stored somewhere.
2728         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
2729         cache descriptors.
2730         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
2732         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
2733         SSSE3 bit for Atoms.
2734         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
2735         here anymore.
2737         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
2738         structure before copying it to avoid warning.
2739         * posix/tst-rfc3484-2.c (do_test): Likewise.
2740         * posix/tst-rfc3484-3.c (do_test): Likewise.
2742         [BZ #10416]
2743         * include/unistd.h: Make header file suitable for C++ test cases.
2744         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
2746         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
2747         stack alignment in the exit code.
2749         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
2750         potentially be zero.
2752         * elf/tst-unique1.c: Extend test to check for unloading DSO with
2753         unique symbol definition.
2754         Patch by Jakub Jelinek.
2755         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
2756         make sure the object with the definition cannot be unloaded.  Adjust
2757         a few types.
2758         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
2759         the unique symbol hash table should not be const.
2761 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
2763         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
2764         unnecesary variables.  Comment fixes.
2766 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2768         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
2769         Use NONASCII_CASE information provided by the locale to determine
2770         whether optimized string load function can be used.  Minor cleanups.
2772 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
2774         * string/strcasestr.c (STRCASESTR): New macro.
2775         (__strcasestr): Renamed to ..
2776         (STRCASESTR): ...this.
2777         * string/strstr.c (STRSTR): New macro.
2778         (strstr): Renamed to ..
2779         (STRSTR): ...this.
2780         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2781         strstr-c strcasestr-c
2782         (CFLAGS-strstr.c): New.
2783         (CFLAGS-strcasestr.c): Likewise.
2784         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
2785         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
2786         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
2787         * sysdeps/x86_64/multiarch/strstr.c: New file.
2789 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2791         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
2792         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
2793         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
2794         _NL_CTYPE_NONASCII_CASE.
2795         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
2796         field.
2797         (ctype_finish): Check whether there are any 8-bit characters outside
2798         the range ASCII has or whether the mapping isn't the same as for
2799         ASCII (±0x20).  Set nonascii_case appropriately.
2800         (ctype_output): Add output handler for nonascii_case.
2802 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
2804         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
2805         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
2807 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2809         [BZ #10360]
2810         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
2811         0xffff in the EDNS0 record.
2813 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2815         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
2816         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
2817         is written before the list head update.
2818         Patch by Andreas Schwab <aschwab@redhat.com>.
2820 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2821             Jakub Jelinek  <jakub@redhat.com>
2823         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
2824         corruption thread-safe.
2826 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
2828         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
2829         overrides atomic_compare_and_exchange_val_rel, define to
2830         atomic_compare_and_exchange_val_rel by default, otherwise default
2831         to catomic_compare_and_exchange_val_acq.
2832         (catomic_compare_and_exchange_bool_rel): If arch overrides
2833         atomic_compare_and_exchange_bool_rel, define to
2834         atomic_compare_and_exchange_bool_rel by default.
2835         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
2836         Use catomic_compare_and_exchange_val_rel instead of
2837         catomic_compare_and_exchange_val_acq.
2839 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2841         * sysdeps/generic/ldsodefs.h: Add prototype for
2842         _dl_higher_prime_number.
2843         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
2845         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
2846         restoring of ymm registers a bit.
2848 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
2850         * sysdeps/x86_64/memcmp.S: New file.
2852 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
2854         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
2855         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
2856         pointers in writable memory.
2858 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
2860         * config.h.in: Add HAVE_AVX_SUPPORT entry.
2861         * config.make.in: Add config-cflags-avx entry.
2862         * configure.in: Substitute libc_cv_cc_avx.
2863         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
2864         * elf/tst-audit4.c: New file.
2865         * elf/tst-audit5.c: New file.
2866         * elf/tst-auditmod4a.c: New file.
2867         * elf/tst-auditmod4b.c: New file.
2868         * elf/tst-auditmod5a.c: New file.
2869         * elf/tst-auditmod5b.c: New file.
2870         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
2871         link-defines.sym.
2872         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
2873         (La_x86_64_vector): Likewise.
2874         (La_x86_64_regs): Append lr_vector.
2875         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
2876         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2877         saving and restoring SSE registers to ...
2878         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2879         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
2880         <link-defines.h>.
2881         (_dl_runtime_profile): Use LR_SIZE to allocate space for
2882         La_x86_64_regs.  Allocate extra space and jump to memory at
2883         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
2884         (save_and_restore_vector_sse): New.
2885         (save_and_restore_vector_avx): Likewise.
2886         (check_avx): Likewise.
2887         (save_and_restore_vector): Likewise.
2888         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
2889         HAVE_AVX_SUPPORT.
2890         * sysdeps/x86_64/link-defines.sym: New file.
2892 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
2894         * elf/do-lookup.h: Removed after folding content into...
2895         * elf/dl-lookup.c: ...here.
2897         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
2899 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
2901         * configure.in: Check for gnu_unique_symbol symbol type.
2902         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
2903         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
2904         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
2905         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
2906         change.
2907         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
2908         unique symbol table.
2909         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
2910         for first namespace.
2911         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
2912         unique symbol hash table.
2913         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
2914         * elf/tst-unique1.c: New file.
2915         * elf/tst-unique1mod1.c: New file.
2916         * elf/tst-unique1mod2.c: New file.
2917         * elf/tst-unique2.c: New file.
2918         * elf/tst-unique2mod1.c: New file.
2919         * elf/tst-unique2mod2.c: New file.
2921 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
2923         * elf/elf.h (STB_GNU_UNIQUE): Define.
2925         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
2926         from...
2927         * include/inline-hashtab.h: ...here.
2928         (htab_expand): Adjust for renamed function.  Correct memory handling.
2930 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
2932         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2934 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
2936         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2937         (PPC_FEATURE_HAS_VSX): Likewise.
2939 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
2941         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2942         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2944         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2945         aligned to 16 byte boundaries.
2946         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2947         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2948         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2950 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2952         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2953         * config.make.in (config-cflags-sse4): New variable.
2954         * configure.in: Substitute libc_cv_cc_sse4.
2955         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2956         HAVE_SSE4_SUPPORT.
2957         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2958         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2959         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2960         * sysdeps/x86_64/multiarch/strcspn.S: New file.
2961         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2962         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2963         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2964         * sysdeps/x86_64/multiarch/strspn.S: New file.
2966 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2968         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
2969         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2970         (tests): Add tst-audit3 for x86_64.
2971         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2972         ($(objpfx)tst-audit3): Define.
2973         ($(objpfx)tst-audit3.out): Define.
2974         (tst-audit3-ENV): Define.
2975         * elf/tst-audit3.c: New file.
2976         * elf/tst-auditmod3a.c: New file.
2977         * elf/tst-auditmod3b.c: New file.
2978         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2979         and restore xmm6.
2981         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
2982         (__stpncpy): Renamed to ...
2983         (STPNCPY): This.
2984         (stpncpy): Create alias only if STPNCPY is not defined.
2985         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
2986         defined.
2987         (strncpy): Renamed to ...
2988         (STRNCPY): This.
2989         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2990          stpncpy-c strncpy-c for string.
2991         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2992         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2993         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2994         * sysdeps/x86_64/multiarch/strcpy.S: New file.
2995         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2996         * sysdeps/x86_64/multiarch/strncpy.S: New file.
2998 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
3000         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
3001         adding to fast bin list.
3003 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
3005         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
3006         inet_makeaddr.  This worked only with class-based networks.
3007         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
3008         Likewise.
3010         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
3011         recognize all types.
3012         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
3013         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
3014         be in host byte order.
3016 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
3018         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
3019         (MODEL_OFFSET): Define.
3020         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
3021         family and model.
3022         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
3023         out common code into new function get_common_indeces. Determine
3024         extended family and model for Intel processors.
3026 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
3028         * resolv/resolv.h: Define RES_SNGLKUPREOP.
3029         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
3030         option.
3031         * resolv/res_send.c (reopen): New function.  Broken out of...
3032         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
3033         fallback mechanism.  If single-request fails switch to
3034         single-request-reopen mode which opens a new socket for the second
3035         request.
3037 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
3039         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
3040         (CHECK_SP): Use it.
3042 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
3044         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
3045         for saved registers.
3046         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
3047         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
3048         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
3050 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
3052         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
3054 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
3056         * po/id.po: Update from translation team.
3058         * po/bg.po: Update from translation team.
3060 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
3062         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
3063         defined.
3064         (strncmp): Renamed to STRNCMP.
3065         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3066         strncmp-c for string.
3067         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
3068         * sysdeps/x86_64/multiarch/strcmp.S: New file.
3069         * sysdeps/x86_64/multiarch/strncmp.S: New file.
3070         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
3072 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
3074         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
3075         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
3076         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
3077         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
3078         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
3079         ifuncmain7static.c.
3080         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
3081         ifuncmain7static, and ifuncmain7picstatic.
3082         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
3083         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
3084         $(objpfx)ifuncmain7pie.out.
3085         (modules-names): Add ifuncmod5 ifuncmod6
3086         (ifuncmod5.so-no-z-defs): Define.
3087         (ifuncmod6.so-no-z-defs): Define.
3088         (CFLAGS-ifuncmain5pic.c): Define.
3089         (CFLAGS-ifuncmain5picstatic.c): Define.
3090         (CFLAGS-ifuncmain5staticpic.c): Define.
3091         (CFLAGS-ifuncdep5pic.c): Define.
3092         (CFLAGS-ifuncmain7pic.c): Define.
3093         (CFLAGS-ifuncmain7picstatic.c): Define.
3094         (CFLAGS-ifuncmain1staticpie.c): Define.
3095         (CFLAGS-ifuncmain5pie.c): Define.
3096         (CFLAGS-ifuncmain6pie.c): Define.
3097         (CFLAGS-ifuncmain7pie.c): Define.
3098         ($(objpfx)ifuncmain1staticpie.out): Define.
3099         ($(objpfx)ifuncmain1staticpie): Define.
3100         ($(objpfx)ifuncmain5pie.out): Define.
3101         ($(objpfx)ifuncmain5pie): Define.
3102         ($(objpfx)ifuncmain6pie.out): Define.
3103         ($(objpfx)ifuncmain6pie): Define.
3104         ($(objpfx)ifuncmain5): Define.
3105         ($(objpfx)ifuncmain5pic): Define.
3106         ($(objpfx)ifuncmain5static): Define.
3107         ($(objpfx)ifuncmain5staticpic): Define.
3108         ($(objpfx)ifuncmain5picstatic): Define.
3109         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
3110         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
3111         ifuncmain6pie.out.
3112         * elf/b/elf/ifuncmain1staticpie.c: New file.
3113         * elf/ifuncdep5.c: New file.
3114         * elf/ifuncdep5pic.c: New file.
3115         * elf/ifuncmain5.c: New file.
3116         * elf/ifuncmain5pic.c: New file.
3117         * elf/ifuncmain5picstatic.c: New file.
3118         * elf/ifuncmain5pie.c: New file.
3119         * elf/ifuncmain5static.c: New file.
3120         * elf/ifuncmain5staticpic.c: New file.
3121         * elf/ifuncmain6pie.c: New file.
3122         * elf/ifuncmain7.c: New file.
3123         * elf/ifuncmain7pic.c: New file.
3124         * elf/ifuncmain7picstatic.c: New file.
3125         * elf/ifuncmain7pie.c: New file.
3126         * elf/ifuncmain7static.c: New file.
3127         * elf/ifuncmod5.c: New file.
3128         * elf/ifuncmod6.c: New file.
3130 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
3132         [BZ #10085]
3133         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
3134         (nss_endgrent): New variable.
3135         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
3136         fields. Change type of files to bool and adjust all users.
3137         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
3138         (internal_endgrent): Call nss_endgrent if necessary.
3139         (add_group): New function.  Broken out of...
3140         (check_and_add_group): ...here.
3141         (getgrent_next_nss): Remove test that any callback is available.
3142         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
3143         callback.  If there is no blacklist we can trust the results returned
3144         by the initgroups_dyn callback.  In case there is a callback and we
3145         find a group entry for the group ID but it doesn't contain the
3146         correct member, switch to the slow mode and use getgrent_r.
3147         (internal_getgrent_r): When we see a +: entry, determine whether
3148         there is any callback and which we can use the initgroups_dyn
3149         callback.
3151 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
3153         * malloc/malloc.c (_int_malloc): Add some consistency checks.
3154         (_int_free): Likewise.
3156         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
3157         AF_IEEE802154.
3158         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3159         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
3160         and ARPHRD_IEEE802154_PHY.
3162         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
3163         relative to generic Linux version.
3165 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
3167         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
3168         ($(objpfx)ifuncmain1vispie): Likewise.
3170 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
3172         * login/Makefile: Build pt_chown as PIE.
3174 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
3176         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
3177         a format string.
3178         * elf/sln.c (usage): Likewise.
3179         * malloc/memusage.sh (do_help): Likewise.
3180         * nss/getent.c (more_help): Likewise.
3181         * posix/getconf.c (main): Likewise.
3182         * sunrpc/rpcinfo.c (usage): Likewise.
3183         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
3185 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
3187         * login/programs/pt_chown.c: Use libcap to drop privileges other than
3188         those needed.
3189         * login/Makefile: If necessary link pt_chown with -lcap.
3190         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
3191         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
3193 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
3195         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
3196         comparisons.
3197         * string/test-memchr.c (do_random_tests): Test very large lengths
3198         as well.
3200 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
3202         * Makeconfig (+link-pie): Define.
3203         (+prectorS): Define.
3204         (+postctorS): Define.
3205         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
3206         * nscd/Makefile ($(objpfx)nscd): Likewise.
3208 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
3210         [BZ #10107]
3211         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
3212         with cmplwi.
3213         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
3215 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
3217         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
3218         into ...
3219         * sysdeps/unix/grantpt.c: ...here.
3221 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
3223         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
3224         chmod if it is necessary.
3226         [BZ #10166]
3227         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
3228         when the slave device is in devpts or devfs.
3230         [BZ #10183]
3231         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
3233         [BZ #10195]
3234         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
3235         of nd_opt_home_agent_info_preference to uint16_t.
3236         Patch by Arnaud Ebalard <arno@natisbad.org>.
3238         [BZ #10207]
3239         * nss/getent.c: Add support for printing gshadow data.
3241         [BZ #10203]
3242         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
3243         not just the currently used one and those which follow.
3244         Patch by Joe Landers <jlanders@vmware.com>.
3246         [BZ #10196]
3247         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
3248         * libio/Makefile: Run tst-fgetwc with necessary envvar.
3249         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
3251         [BZ #10217]
3252         * stdlib/abort.c: Define variable __abort_msg.
3253         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
3254         * include/stdlib.h: Declare __abort_msg.
3255         * assert/assert-perr.c: Don't free buffer for message immediately.
3256         Store atomically in __abort_msg and free old buffer if necessary.
3257         * assert/assert.c: Likewise.
3258         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
3259         store pointer in __abort_msg, and possibly free old string.
3260         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
3262         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
3264         [BZ #10211]
3265         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
3266         handle leap seconds if they are available.
3267         Patch by Akinori Hattori <hattya@gentoo.org>.
3269         * timezone/tzselect.ksh: Update from tzcode2009i.
3270         * timezone/zdump.c: Likewise.
3271         * timezone/zic.c: Likewise.
3273         * timezone/africa: Update from tzdata2009i.
3274         * timezone/antarctica: Likewise.
3275         * timezone/asia: Likewise.
3276         * timezone/australasia: Likewise.
3277         * timezone/backward: Likewise.
3278         * timezone/etcetera: Likewise.
3279         * timezone/europe: Likewise.
3280         * timezone/factory: Likewise.
3281         * timezone/iso3166.tab: Likewise.
3282         * timezone/leapseconds: Likewise.
3283         * timezone/northamerica: Likewise.
3284         * timezone/pacificnew: Likewise.
3285         * timezone/solar87: Likewise.
3286         * timezone/solar88: Likewise.
3287         * timezone/solar89: Likewise.
3288         * timezone/southamerica: Likewise.
3289         * timezone/systemv: Likewise.
3290         * timezone/yearistype: Likewise.
3291         * timezone/zone.tab: Likewise.
3293 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
3295         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
3296         STT_GNU_IFUNC symbol or in 8 into type_class.
3298         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
3299         instead of Elf64_Addr.
3301 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
3303         * po/sv.po: Update from translation team.
3305         [BZ #10229]
3306         * misc/sys/select.h (__NFDBITS): Expression should have type int.
3307         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
3308         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
3309         the C version.
3311 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
3313         * Versions.def: Add GLIBC_2.11 for libpthread.
3315 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
3317         * resolv/res_send.c (send_dg): Remember we switched to
3318         single-request mode.
3320 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
3322         * dlfcn/dlfcn.h: Remove comma at end of enum.
3323         Patch by J.H.M. Dassen <rdassen@redhat.com>.
3325         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
3326         parsing mode string.
3328 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
3330         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
3332         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
3334         * sysdeps/x86_64/multiarch/strlen.S: New file.
3335         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
3336         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
3337         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
3338         content.
3340         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
3341         is defined.
3343 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
3345         * sysdeps/x86_64/strlen.S: Minor optimizations.
3347 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
3349         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
3350         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
3351         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
3352         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
3353         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
3354         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
3355         ifuncmain3.c, ifuncmod3.c,.
3356         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
3357         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
3358         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
3359         ifuncmain4picstatic.
3360         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
3361         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
3362         ifuncmain3, ifuncmain4.
3363         (tests): Depend on $(objpfx)ifuncmain1pie.out and
3364         $(objpfx)ifuncmain1vispie.out.
3365         (modules-names): Add ifuncmod1 ifuncmod3.
3366         (generated): Add ifuncmain1pie ifuncmain1pie.out
3367         ifuncmain1vispie ifuncmain1vispie.out.
3368         Define rules to build and run the tests.
3369         * elf/ifuncdep1.c: New file.
3370         * elf/ifuncdep1pic.c: New file.
3371         * elf/ifuncdep2.c: New file.
3372         * elf/ifuncdep2pic.c: New file.
3373         * elf/ifuncmain1.c: New file.
3374         * elf/ifuncmain1pic.c: New file.
3375         * elf/ifuncmain1picstatic.c: New file.
3376         * elf/ifuncmain1pie.c: New file.
3377         * elf/ifuncmain1static.c: New file.
3378         * elf/ifuncmain1staticpic.c: New file.
3379         * elf/ifuncmain1vis.c: New file..
3380         * elf/ifuncmain1vispic.c: New file..
3381         * elf/ifuncmain1vispie.c: New file.
3382         * elf/ifuncmain2.c: New file.
3383         * elf/ifuncmain2pic.c: New file.
3384         * elf/ifuncmain2picstatic.c: New file.
3385         * elf/ifuncmain2static.c: New file.
3386         * elf/ifuncmain3.c: New file.
3387         * elf/ifuncmain4.c: New file.
3388         * elf/ifuncmain4picstatic.c: New file.
3389         * elf/ifuncmain4static.c: New file.
3390         * elf/ifuncmod1.c: New file.
3391         * elf/ifuncmod3.c: New file.
3393 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
3395         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
3397 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
3399         [BZ #10221]
3400         * posix/Makefile (routines): Add execvpe.
3401         * posix/Versions: Export execvpe for GLIBC_2.11.
3402         * posix/execvp.c: Now only a wrapper.  Move code to...
3403         * posix/execvpe.c: ...here.  New file.
3404         * posix/unistd.h: Declare execvpe.
3406 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
3408         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
3409         for STT_GNU_IFUNC handling for efficiency.
3410         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3412         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
3413         _exit.
3414         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
3416 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
3418         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
3419         for !SHARED.
3421 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
3423         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
3424         is not defined.
3425         (__rela_iplt_start): New declaration.
3426         (__rela_iplt_end): Likewise.
3427         (__rel_iplt_start): Likewise.
3428         (__rel_iplt_end): Likewise.
3429         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
3430         * elf/elf.h (R_386_IRELATIVE): New macro.
3431         (R_X86_64_IRELATIVE): New macro.
3432         (R_386_NUM): Updated.
3433         (R_X86_64_NUM): Likewise.
3434         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
3435         (libc_ifunc_hidden_def): New macro.
3436         * sysdeps/generic/dl-irel.h: New file.
3437         * sysdeps/i386/dl-irel.h: New file.
3438         * sysdeps/x86_64/dl-irel.h: New file.
3439         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
3440         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
3441         Handle R_386_IRELATIVE.
3442         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
3443         (elf_machine_lazy_rela): Likewise.
3444         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
3445         R_X86_64_IRELATIVE.
3446         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
3448 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
3450         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
3451         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
3452         are no differences.  If an architecture has bits in CPUID index 1
3453         meaning different things the values for the COMMON_CPUID_INDEX_1
3454         index must not be set.
3455         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
3456         (HAS_POPCOUNT): ...this.  New macro.
3457         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
3458         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
3459         to set the value for Intel and AMD architectures.
3460         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
3461         INTEL_CPUID_INDEX_1.
3462         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
3463         change.
3465 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3467         * configure.in: Move AC_CANONICAL_HOST before first use of $host
3468         and $build.
3470 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
3472         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
3473         (__expm1l): Set errno to ERANGE on overflow.
3474         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
3475         (__tanl): Set errno to EDOM for Â±Inf.
3476         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
3477         (__cosl): Set errno to EDOM for Â±Inf.
3478         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
3479         (__sinl): Set errno to EDOM for Â±Inf.
3481         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
3482         defined, use it.
3483         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
3484         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
3485         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
3487 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
3489         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
3490         code accessing it.
3491         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
3493 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
3495         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
3496         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
3497         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
3498         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
3500         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
3501         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
3502         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
3503         defined.
3504         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
3505         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
3507 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
3509         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
3510         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
3511         is, either do nothing at all if __ASSUME_ACCEPT4, or
3512         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
3513         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
3514         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
3515         define.
3516         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
3517         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
3518         internal_accept4 in socket directory.
3520 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
3522         * sysdeps/ia64/configure.in: New file.
3524 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3526         [BZ #10162]
3527         * sysdeps/ia64/memchr.S: Use speculative load.
3529         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
3530         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
3531         use it.
3533         * sysdeps/i386/__longjmp.S: Add .text.
3534         * sysdeps/x86_64/__longjmp.S: Likewise.
3536 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
3538         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
3539         __ASSUME_ACCEPT4 for IA-64.
3541 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
3543         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
3545         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
3546         (SOCKOP_accept4): Define.
3548 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
3550         Sun approved the change of the license.
3551         * sunrpc/auth_des.c: Replace license text.
3552         * sunrpc/auth_none.c: Likewise.
3553         * sunrpc/auth_unix.c: Likewise.
3554         * sunrpc/authdes_prot.c: Likewise.
3555         * sunrpc/authuxprot.c: Likewise.
3556         * sunrpc/bindrsvprt.c: Likewise.
3557         * sunrpc/clnt_gen.c: Likewise.
3558         * sunrpc/clnt_perr.c: Likewise.
3559         * sunrpc/clnt_raw.c: Likewise.
3560         * sunrpc/clnt_simp.c: Likewise.
3561         * sunrpc/clnt_tcp.c: Likewise.
3562         * sunrpc/clnt_udp.c: Likewise.
3563         * sunrpc/clnt_unix.c: Likewise.
3564         * sunrpc/des_crypt.c: Likewise.
3565         * sunrpc/des_soft.c: Likewise.
3566         * sunrpc/get_myaddr.c: Likewise.
3567         * sunrpc/getrpcport.c: Likewise.
3568         * sunrpc/key_call.c: Likewise.
3569         * sunrpc/key_prot.c: Likewise.
3570         * sunrpc/openchild.c: Likewise.
3571         * sunrpc/pm_getmaps.c: Likewise.
3572         * sunrpc/pm_getport.c: Likewise.
3573         * sunrpc/pmap_clnt.c: Likewise.
3574         * sunrpc/pmap_prot.c: Likewise.
3575         * sunrpc/pmap_prot2.c: Likewise.
3576         * sunrpc/pmap_rmt.c: Likewise.
3577         * sunrpc/rpc/auth.h: Likewise.
3578         * sunrpc/rpc/auth_unix.h: Likewise.
3579         * sunrpc/rpc/clnt.h: Likewise.
3580         * sunrpc/rpc/des_crypt.h: Likewise.
3581         * sunrpc/rpc/key_prot.h: Likewise.
3582         * sunrpc/rpc/netdb.h: Likewise.
3583         * sunrpc/rpc/pmap_clnt.h: Likewise.
3584         * sunrpc/rpc/pmap_prot.h: Likewise.
3585         * sunrpc/rpc/pmap_rmt.h: Likewise.
3586         * sunrpc/rpc/rpc.h: Likewise.
3587         * sunrpc/rpc/rpc_des.h: Likewise.
3588         * sunrpc/rpc/rpc_msg.h: Likewise.
3589         * sunrpc/rpc/svc.h: Likewise.
3590         * sunrpc/rpc/svc_auth.h: Likewise.
3591         * sunrpc/rpc/types.h: Likewise.
3592         * sunrpc/rpc/xdr.h: Likewise.
3593         * sunrpc/rpc_clntout.c: Likewise.
3594         * sunrpc/rpc_cmsg.c: Likewise.
3595         * sunrpc/rpc_common.c: Likewise.
3596         * sunrpc/rpc_cout.c: Likewise.
3597         * sunrpc/rpc_dtable.c: Likewise.
3598         * sunrpc/rpc_hout.c: Likewise.
3599         * sunrpc/rpc_main.c: Likewise.
3600         * sunrpc/rpc_parse.c: Likewise.
3601         * sunrpc/rpc_parse.h: Likewise.
3602         * sunrpc/rpc_prot.c: Likewise.
3603         * sunrpc/rpc_sample.c: Likewise.
3604         * sunrpc/rpc_scan.c: Likewise.
3605         * sunrpc/rpc_scan.h: Likewise.
3606         * sunrpc/rpc_svcout.c: Likewise.
3607         * sunrpc/rpc_tblout.c: Likewise.
3608         * sunrpc/rpc_util.c: Likewise.
3609         * sunrpc/rpc_util.h: Likewise.
3610         * sunrpc/rpcinfo.c: Likewise.
3611         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
3612         * sunrpc/rpcsvc/key_prot.x: Likewise.
3613         * sunrpc/rpcsvc/klm_prot.x: Likewise.
3614         * sunrpc/rpcsvc/mount.x: Likewise.
3615         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
3616         * sunrpc/rpcsvc/rex.x: Likewise.
3617         * sunrpc/rpcsvc/rstat.x: Likewise.
3618         * sunrpc/rpcsvc/rusers.x: Likewise.
3619         * sunrpc/rpcsvc/sm_inter.x: Likewise.
3620         * sunrpc/rpcsvc/spray.x: Likewise.
3621         * sunrpc/rpcsvc/yppasswd.x: Likewise.
3622         * sunrpc/rtime.c: Likewise.
3623         * sunrpc/svc.c: Likewise.
3624         * sunrpc/svc_auth.c: Likewise.
3625         * sunrpc/svc_authux.c: Likewise.
3626         * sunrpc/svc_raw.c: Likewise.
3627         * sunrpc/svc_run.c: Likewise.
3628         * sunrpc/svc_simple.c: Likewise.
3629         * sunrpc/svc_tcp.c: Likewise.
3630         * sunrpc/svc_udp.c: Likewise.
3631         * sunrpc/svc_unix.c: Likewise.
3632         * sunrpc/svcauth_des.c: Likewise.
3633         * sunrpc/xcrypt.c: Likewise.
3634         * sunrpc/xdr.c: Likewise.
3635         * sunrpc/xdr_array.c: Likewise.
3636         * sunrpc/xdr_float.c: Likewise.
3637         * sunrpc/xdr_mem.c: Likewise.
3638         * sunrpc/xdr_rec.c: Likewise.
3639         * sunrpc/xdr_ref.c: Likewise.
3640         * sunrpc/xdr_sizeof.c: Likewise.
3641         * sunrpc/xdr_stdio.c: Likewise.
3643         * po/da.po: Update from translation team.
3645 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3647         * sysdeps/sh/____longjmp_chk.S: New file.
3648         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
3649         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3651 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
3652             Ulrich Drepper  <drepper@redhat.com>
3654         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
3655         (__nscd_cache_search): Assume each entry in the
3656         hash chain needs one hashentry and half of datahead.  Use
3657         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
3659 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
3661         * posix/sys/wait.h: Fix typos.  Pretty printing.
3662         * stdlib/stdlib.h: Likewise.  Correct comments.
3664         [BZ #10159]
3665         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
3667         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
3668         patch.
3670 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3672         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
3673         Use it if we absolutely cannot reach any more correct list elements
3674         because that many do not fit into the currently mapped database.
3676 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
3678         * nscd/nscd_helper.c: Include stddef.h.
3679         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
3680         in a couple of places.  Return NULL if trail is not less than
3681         datasize, don't consider dataheads with length smaller than
3682         offsetof (struct datahead, data) + datalen.
3683         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
3684         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
3685         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3686         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3687         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3688         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
3689         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3691         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
3692         Rename ...
3693         (fallocate64): ... to this.
3694         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
3695         Rename ...
3696         (fallocate64): ... to this.
3697         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
3698         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
3699         fallocate64@@GLIBC_2.10.
3700         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
3701         fallocate64@@GLIBC_2.11.
3702         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
3703         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
3704         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
3705         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
3707         * nscd/selinux.c (nscd_avc_destroy): Removed.
3708         * nscd/selinux.h (nscd_avc_destroy): Likewise.
3709         * nscd/nscd.c (termination_handler): Don't call
3710         nscd_avc_destroy.
3712 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
3714         * include/atomic.h: Formatting.
3715         (catomic_compare_and_exchange_val_acq): Don't define if already
3716         defined by bits/atomic.h.
3718 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3720         * math/libm-test.inc (expm1_test): Add test for range error.
3722         * Versions.def: Add GLIBC_2.11 for libc.
3723         * debug/Makefile (routines): Add longjmp_chk.
3724         Add rules to build and run tst-longjmp_chk.
3725         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
3726         * debug/longjmp_chk.c: New file.
3727         * debug/tst-longjmp_chk.c: New file.
3728         * include/bits/setjmp2.: New file.
3729         * include/stdio.h: Mark __fortify_fail as internal_function.
3730         * setjmp/Makefile (headers): Add bits/setjmp2.h.
3731         * setjmp/bits/setjmp2.h: New file.
3732         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
3733         of the aliases.
3734         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
3735         defined.
3736         * sysdeps/i386/____longjmp_chk.S: New file.
3737         * sysdeps/x86_64/____longjmp_chk.S: New file.
3738         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
3739         * sysdeps/x86_64/__longjmp.S: Likewise.
3741         * version.h: Bump for 2.11 development.
3743         * elf/check-execstack.c: New file.
3744         * elf/Makefile: Add rules to build and run check-execstack.
3746 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
3748         * version.h (VERSION): Bump to 2.10.1.
3750         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
3751         compatibility functions.
3752         * nss/getXXent_r.c: Likewise.
3753         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
3754         * gshadow/getsgnam_r.c: Likewise.
3755         * gshadow/Version: Remove duplicate entries.
3757         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
3758         for recent processor.
3759         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
3760         Likewise.
3762 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
3764         * version.h (VERSION): Bump for 2.10 release.
3765         * include/features.h (__GLIBC_MINOR__): Bump to 10.
3767         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
3768         same place we add ASFLAGS-config.
3770 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
3772         [BZ #10128]
3773         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
3774         or FORMERR and the other NOERROR, don't raise an error.
3776 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
3778         [BZ #10118]
3779         * Makeconfig (+asflags): New variable based upon ASFLAG or
3780         asflags-cpu.
3781         (ASFLAGS): Add override to set ASFLAGS to +asflags.
3782         * config.make.in (asflags-cpu): Add variable based upon
3783         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
3784         the assembler.
3785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3786         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
3787         recognizes power6 instruction set due to passing -mcpu=power6 from
3788         --with-cpu=power6 when compiling .S files.
3789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3790         Likewise.
3791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3792         Likewise.
3793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3794         Likewise.
3796 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
3798         * string/stratcliff.c (do_test): Test for zero length
3799         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
3800         at the end of the page.
3802 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
3804         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
3806         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
3807         count is zero.
3809         * po/da.po: Update from translation team.
3811 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
3813         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
3814         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
3816 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
3818         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
3819         and READ_IMPLIES_EXEC.
3821 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
3823         * po/da.po: Update from translation team.
3825 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
3827         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
3828         comment change.
3830 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
3832         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
3833         to MAP_ANON in PROT_NONE mmap64 call.
3834         (open_archive): Likewise.
3835         (file_data_available_p): Use mmap64 instead of mremap.
3836         (enlarge_archive): Likewise.  Update head if ah->addr changed.
3837         Attempt to reserve address space after mmap64 region.
3839 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
3841         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
3842         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3843         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3845         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
3846         atanh should set ERANGE.
3848         [BZ #10087]
3849         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
3850         result of lookup to make call to implement STT_GNU_IFUNC.
3851         (_dl_profile_fixup): Likewise.
3852         Patch by H.J. Lu <hjl.tools@gmail.com>.
3854         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
3855         warning.
3857         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
3858         from definition.
3860         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
3861         label if it is not used.
3863         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
3864         of gmon_hist_hdr and gmon_hdr structures and use them.
3865         * elf/sprof.c: Likewise.
3867         * elf/dl-load.c (open_verify): Add temporary variable to avoid
3868         warning.
3870         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
3872         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
3873         to avoid cast.
3875         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
3876         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
3877         to avoid warnings.
3878         (iruserok_af): Use ss_family instead of casts.
3880         * gmon/gmon.c (write_hist): Define real-type variant of
3881         gmon_hist_hdr structure and use it.
3882         (write_gmon): Likewise for gmon_hdr.
3884         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
3885         function if we are not going to define it.
3886         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3888         * inet/inet6_option.c (option_alloc): Add temporary variable to
3889         avoid warning.
3891         * libio/strfile.h (struct _IO_streambuf): Use correct type and
3892         name of VTable element.
3893         * libio/iovsprintf.c: Avoid casts to avoid warnings.
3894         * libio/iovsscanf.c: Likewise.
3895         * libio/vasprintf.c: Likewise.
3896         * libio/vsnprintf.c: Likewise.
3897         * stdio-common/isoc99_vsscanf.c: Likewise.
3898         * stdlib/strfmon_l.c: Likewise.
3899         * debug/vasprintf_chk.c: Likewise.
3900         * debug/vsnprintf_chk.c: Likewise.
3901         * debug/vsprintf_chk.c: Likewise.
3903         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
3904         function pointers.
3906 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
3908         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
3910 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
3912         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
3914         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
3915         * sysdeps/i386/fpu/s_tanf.S: Likewise.
3916         * sysdeps/i386/fpu/s_tanl.S: Likewise.
3917         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3918         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3919         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3920         * math/libm-test.inc: Add tests for errno after tan calls with
3921         Â±Inf.
3923         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3924         errno value vor pow(+-0,neg).
3925         * math/libm-test.inc (pow_test): Add tests for errno value for
3926         pole errors.
3928         * math/w_fmod.c: Also handle x=±Inf as error.
3929         * math/w_fmodf.c: Likewise.
3930         * math/w_fmodl.c: Likewise.
3931         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3932         x=±Inf or y=0.
3934         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
3935         * sysdeps/i386/fpu/s_cosf.S: Likewise.
3936         * sysdeps/i386/fpu/s_cosl.S: Likewise.
3937         * sysdeps/i386/fpu/s_sin.S: Likewise.
3938         * sysdeps/i386/fpu/s_sinf.S: Likewise.
3939         * sysdeps/i386/fpu/s_sinl.S: Likewise.
3940         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3941         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3942         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3943         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3944         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3945         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3946         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3947         * math/libm-test.inc: Add tests for errno after sin/cos calls with
3948         Â±Inf.
3950         * stdlib/strtod_l.c (round_and_return): We have to set errno to
3951         ERANGE for underflows.
3952         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3954         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3955         the 2001 revision.
3957         * libio/tst-widetext.input: Remove surrogates.
3959         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3961         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3962         for lgamma should set errno to ERANGE, not EDOM.
3963         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3965 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3967         [BZ #10093]
3968         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3969         UTF-16 surrogates.
3971         * locale/programs/locarchive.c (enlarge_archive): Conserve address
3972         space when temporarily mapping the whole content of the old file.
3974         [BZ #10100]
3975         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3976         not zero.
3978 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
3980         * iconvdata/sjis.c (BODY): Don't advance inptr before
3981         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3982         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3983         two byte chars.
3985 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3987         * locale/locarchive.h (struct locarhandle): Rename len field to
3988         mmaped and add new reserved field.
3989         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3990         (create_archive): Reserve address space and then map file into it.
3991         (open_archive): Likewise.
3992         (file_data_available_p): New function.
3993         (compare_from_file): New function.
3994         (close_archive): Adjust to member name changes.
3995         (add_locale): Before comparing locale data, check it is mapped.
3996         Otherwise fall back to reading from the file.
3998 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
4000         * stdio-common/psiginfo.c: Include <errno.h>.
4002 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
4004         [BZ #9920]
4005         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
4006         to get consistency between 32 and 64 bit architectures.
4008         [BZ #10052]
4009         * sysdeps/unix/make-syscalls.sh: Add rule to create target
4010         directory for dummy syscall rules.
4011         Patch by Chris Steinbroner <hesh@pobox.com>.
4013 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
4015         [BZ #10092]
4016         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
4017         MNT_EXPIRE.
4019 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
4021         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
4022         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
4024 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
4026         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
4027         data from vector to temporary buffer and call PWRITEV after it
4028         instead of vice versa.
4029         * sysdeps/posix/preadv.c: Fix up comment.
4030         * misc/preadv.c: Likewise.
4031         * misc/preadv64.c: Likewise.
4032         * misc/pwritev.c: Likewise.
4033         * misc/pwritev64.c: Likewise.
4034         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
4036 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
4038         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
4040         * shadow/Makefile (tests): Add tst-shadow.
4041         * shadow/tst-shadow.c: New file.
4043         [BZ #9955]
4044         * gshadow/Makefile: New file.
4045         * gshadow/Versions: New file.
4046         * gshadow/fgetsgent.c: New file.
4047         * gshadow/fgetsgent_r.c: New file.
4048         * gshadow/getsgent.c: New file.
4049         * gshadow/getsgent_r.c: New file.
4050         * gshadow/getsgnam.c: New file.
4051         * gshadow/getsgnam_r.c: New file.
4052         * gshadow/gshadow.h: New file.
4053         * gshadow/putsgent.c: New file.
4054         * gshadow/sgetsgent.c: New file.
4055         * gshadow/sgetsgent_r.c: New file.
4056         * gshadow/tst-gshadow.c: New file.
4057         * include/gshadow.h: New file.
4058         * Makeconfig (all-subdirs): Add gshadow.
4059         * Makefile (installed-headers): Add gshadow/gshadow.h.
4060         * nss/Makefile (databases): Add sgrp.
4061         * nss/Versions: Add gshadow functions as private exports.
4062         * nss/nsswitch.conf: Add gshadow entry.
4063         * nss/sgrp-lookup.c: New file.
4064         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
4065         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
4066         * nss/nss_files/files-sgrp.c: New file.
4067         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
4068         * sysdeps/unix/sysv/linux/paths.h: Likewise.
4070 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
4072         * stdio-common/printf.h: Add missing const to register_printf_modifier.
4073         * stdio-common/reg-modifier.c: Likewise.
4075 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
4077         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
4078         is no FPU.
4080 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
4082         [BZ #10086]
4083         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
4084         headers up to 2.6.30.
4086         * po/ca.po: Update from translation team.
4088 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
4090         [BZ #10069]
4091         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
4092         an object that uses static TLS if the TLS modid is higher than the
4093         reserve we always allocate.  At least for multi-threaded code.
4095 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
4097         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
4098         Numerically stable check for valid width.
4100         * locale/programs/locarchive.c (open_archive): Map the entire file
4101         and not just the administrative data.
4102         (add_locale): When we find a hash sum match compare the content
4103         to be sure.
4105         * malloc/malloc.c (malloc_info): Output address space information.
4107 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
4109         * malloc/malloc.c (malloc_info): Also output system memory information.
4111         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
4112         architectures have preadv/pwritev in 2.6.30.
4114         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
4115         * sysdeps/posix/readv.c: Likewise.
4116         Reported by Markus Armbruster <armbru@redhat.com>.
4118         * malloc/hooks.c (top_check): Force hook value into register.
4120 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4122         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
4123         calls to _dl_relocate_object.
4125 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
4127         [BZ #9957]
4128         * malloc/malloc.c (force_reg): Define.
4129         (sYSMALLOc): Load hook variable into variable
4130         before test and force into register.
4131         (sYSTRIm): Likewise.
4132         (public_mALLOc): Force hook value into register.
4133         (public_fREe): Likewise.
4134         (public_rEALLOc): Likewise.
4135         (public_mEMALIGn): Likewise.
4136         (public_vALLOc): Likewise.
4137         (public_pVALLOc): Likewise.
4138         (public_cALLOc): Likewise.
4139         (__posix_memalign): Likewise.
4140         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
4141         before test and force into register.
4142         * malloc/hooks.c (top_check): Likewise.
4143         (public_sET_STATe): Pretty printing.
4145         * resolv/res_send.c (send_dg): Don't just ignore the result we got
4146         in case we only receive one reply in single-request mode.
4148 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
4150         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
4151         are dlopened in statically linked program even for __LM_ID_CALLER.
4153 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
4155         * resolv/res_send.c (send_dg): Don't switch into single-request
4156         mode if we already are in it.
4158 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
4160         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
4161         are always at least 4 bytes in the returned line.
4163 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
4165         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
4166         __libc_use_alloca (8192), if the stack is too small use 512 bytes
4167         instead of 8K.  Stop searching in /proc/stat after hitting first
4168         line not starting with cpu.
4169         (next_line): Truncate too long
4170         lines at buffer size * 3/4 instead of pretending there were line
4171         breaks inside of large lines.
4173 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
4175         * sysdeps/x86_64/mp_clz_tab.c: New file.
4177 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
4178             Ulrich Drepper  <drepper@redhat.com>
4180         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
4181         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
4182         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
4184 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
4186         * sysdeps/sh/libc-tls.c: New file.
4188         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
4190 2009-04-14  Roland McGrath  <roland@redhat.com>
4192         * elf/elf.h: Add various missing ARM constants, to match binutils.
4194 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
4196         Optimizations from GMP.
4197         * sysdeps/x86_64/add_n.S: New file.
4198         * sysdeps/x86_64/addmul_1.S: New file.
4199         * sysdeps/x86_64/lshift.S: New file.
4200         * sysdeps/x86_64/mul_1.S: New file.
4201         * sysdeps/x86_64/rshift.S: New file.
4202         * sysdeps/x86_64/sub_n.S: New file.
4203         * sysdeps/x86_64/submul_1.S: New file.
4205 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
4207         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
4208         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
4209         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
4210         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4212 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
4214         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
4215         preadv/pwritev.
4217 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
4219         * sysdeps/x86-64/strrchr.S: New file.
4221 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
4223         * stdio-common/printf.h (struct printf_info): Add user element.
4224         New types printf_arginfo_size_function, printf_va_arg_function.
4225         Declare register_printf_specifier, register_printf_modifier,
4226         register_printf_type.
4227         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
4228         (union printf_arg): Add pa_user element.
4229         Adjust __printf_arginfo_table type.
4230         Add __printf_va_arg_table, __printf_modifier_table,
4231         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
4232         declarations.
4233         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
4234         If registered arginfo call failed try normal specifier.
4235         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
4236         function.
4237         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
4238         * stdio-common/Versions: Export register_printf_modifier,
4239         register_printf_type, and register_printf_specifier for GLIBC_2.10.
4240         * stdio-common/reg-modifier.c: New file.
4241         * stdio-common/reg-type.c: New file.
4242         * stdio-common/reg-printf.c (__register_printf_specifier): New
4243         function.  Mostly the old __register_printf_function function but
4244         uses locking and type of third parameter changed.
4245         (__register_printf_function): Implement using
4246         __register_printf_specifier.
4247         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
4248         calls to arginfo functions.  Allocate enough memory for user-defined
4249         types.  Call new va_arg functions to get user-defined types.
4250         Try installed handlers even for existing format specifiers first.
4252 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
4254         * sysdeps/x86_64/rawmemchr.S: New file.
4256         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
4257         Simplified code and possible copy problem fixed.
4259         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
4260         function if it is not defined.  Add some necessary casts.
4261         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
4263         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
4264         have preadv/pwritev in 2.6.30.
4266 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
4268         * malloc/malloc.c (malloc_info): New function.
4269         * malloc/malloc.h: Declare it.
4270         * malloc/Versions: Export malloc_info for GLIBC_2.10.
4272         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
4273         to avoid PLT slot.
4275         * malloc/malloc.c (_int_realloc): Add parameter with old block
4276         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
4277         Adjust all callers.
4278         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
4280 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
4282         * sysdeps/x86_64/strchrnul.S: New file.
4284         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
4285         depending libcrypt on -lfreebl3.
4287         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
4288         preadv/pwritev in 2.6.30.
4290         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
4291         instead of __strcasecmp.
4293         * string/stratcliff.c (do_test): Add memchr tests..
4294         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
4295         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
4296         first read quad word.
4298 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
4300         * string/strverscmp.c (__strverscmp): Fix last cleanups.
4301         * string/tst-svc.input: Add new test case.
4302         * string/tst-svc.expect: Adjust.
4303         * string/Makefile: Don't ignore tst-svc error.
4305         * sysdeps/x86_64/memchr.S: New file.
4307         * resolv/resolv.h (RES_SNGLKUP): Define.
4308         * resolv/res_init.c (res_setoptions): Recognize single-request option.
4309         * resolv/res_send.c (send_dg): If we sent two requests at once and
4310         only get one reply before timeout switch to mode where we send the
4311         second request only after the first answer has been received.
4313 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
4315         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
4316         * sysdeps/x86_64/strchr.S: Likewise.
4318 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
4320         * configure.in: We need to test for the compiler earlier.
4322         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
4323         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
4324         GLIBC_2.10.
4325         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
4326         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
4327         and pwritev.
4328         * misc/preadv.c: New file.
4329         * misc/preadv64.c: New file.
4330         * misc/pwritev.c: New file.
4331         * misc/pwritev64.c: New file.
4332         * sysdeps/posx/preadv.c: New file.
4333         * sysdeps/posx/preadv64.c: New file.
4334         * sysdeps/posx/pwritev.c: New file.
4335         * sysdeps/posx/pwritev64.c: New file.
4336         * sysdeps/unix/sysv/linux/preadv.c: New file.
4337         * sysdeps/unix/sysv/linux/preadv64.c: New file.
4338         * sysdeps/unix/sysv/linux/pwritev.c: New file.
4339         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
4340         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
4341         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
4343         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
4344         compatibility code.
4345         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
4347         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4348         __ASSUME_COMPLETE_READV_WRITEV.
4349         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
4350         with modern kernels.
4351         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4353         * sysdeps/posix/readv.c: Since read is a cancellation point we have
4354         to free a possible malloced buffer in case of cancellation.
4355         * sysdeps/posix/writev.c: Likewise for write.
4357 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
4359         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
4361         * configure.in: Recognize --enable-nss-crypt.
4362         * config.make.in: Add nss-crypt entry.
4363         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
4364         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
4365         and include path for NSS directory to compiler for md5-crypt,
4366         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
4367         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
4368         function implementation, use NSS.  Introduce wrappers around the
4369         hash function calls.  Little code size optimization.
4370         * crypt/sha256-crypt.c: Likewise.
4371         * crypt/sha512-crypt.c: Likewise.
4372         * scripts/check-local-headers.sh: Ignore nss3 directory.
4374         * configure.in: Rename pic_default to libc_cv_pic_default.
4375         * config.make.in: Likewise.
4377 2009-04-01  Roland McGrath  <roland@redhat.com>
4379         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
4380         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
4381         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
4382         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
4383         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
4384         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
4385         (R_SPARC_NUM): Update.
4386         From Dave Miller <davem@davemloft.net>.
4388 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
4390         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
4392 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
4394         * elf/dl-open.c: Keep track of used name spaces and only iterate over
4395         those which are used.
4396         * elf/dl-addr.c: Likewise.
4397         * elf/dl-caller.c: Likewise.
4398         * elf/dl-fini.c: Likewise.
4399         * elf/dl-iteratephdr.c: Likewise.
4400         * elf/dl-libc.c: Likewise.
4401         * elf/dl-load.c: Likewise.
4402         * elf/dl-support.c: Likewise.
4403         * elf/dl-sym.c: Likewise.
4404         * elf/rtld.c: Likewise.
4405         * sysdeps/generic/ldsodefs.h: Likewise.
4407         * elf/dl-load.c: Remove support for systems without MAP_ANON.
4408         * elf/dl-minimal.c: Likewise.
4409         * elf/dl-misc.c: Likewise.
4410         * elf/rtld.c: Likewise.
4411         * sysdeps/generic/ldsodefs.h: Likewise.
4413 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
4415         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
4416         Avoid reuse of complex expression.
4418         * po/fr.po: Update from translation team.
4420 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
4422         * include/dirent.h: Yet more changes to match sort function type
4423         change.
4424         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
4425         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
4426         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
4428 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
4430         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
4432 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
4434         * nscd/connections.c (restart): Try to preserve the process name
4435         by reading the /proc/self/exe symlink and using the return name.
4436         Patch by Jeff Bastian <jbastian@redhat.com>.
4438 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
4440         [BZ #9733]
4441         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
4442         if we are not loading a new audit library.
4443         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
4444         Only use profiling trampoline for auditing if we are not relocating
4445         an audit library.
4446         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
4447         * elf/rtld.c: Likewise.
4448         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
4450         * elf/rtld.c (dl_main): Extend help message for --audit option.
4452         [BZ #9759]
4453         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
4454         alphasort64, versionsort, and versionsort64 to POSIX 2008.
4455         * dirent/alphasort.c: Adjust implementation to type change.
4456         * dirent/alphasort64.c: Likewise.
4457         * dirent/scandir.c: Likewise.
4458         * dirent/versionsort.c: Likewise.
4459         * dirent/versionsort64.c: Likewise.
4460         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
4461         declaration.
4462         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
4463         declaration.
4465         [BZ #9880]
4466         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
4467         correctly.  Set segleft member in output as required.
4468         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4469         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
4471         [BZ #9881]
4472         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
4473         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4474         * inet/Makefile (tests): Add tst-inet6_rth.
4475         * inet/tst-inet6_rth.c: New file.
4477         [BZ #5807]
4478         * string/strlen.c (strlen): Fix omission in the expression to test
4479         for NUL bytes.
4481 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
4483         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
4485         * elf/dl-runtime.c (reloc_offset): Define.
4486         (reloc_index): Define.
4487         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
4488         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
4489         computing index from reloc_offset.
4490         (_dl_call_pltexit): Likewise.
4491         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
4492         the relocation index to _dl_fixup.
4493         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
4494         _dl_call_pltexit.
4495         * sysdeps/x86_64/dl-runtime.c: New file.
4497         [BZ #9893]
4498         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
4499         alignment of La_x86_64_regs.  Store xmm parameters.
4500         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
4502         [BZ #9913]
4503         * string/strverscmp.c (__strverscmp): Fix case of different digits
4504         in fractional part of string.
4505         Patch by Jingyu Liu <jyliu@fortinet.com>.
4506         * string/Makefile (tests): Add tst-svc2.
4507         * string/tst-svc2.c: New file.
4509         * string/strverscmp.c (__strverscmp): Optimize size of tables.
4511         * locale/iso-639.def: Add Min Nan.
4513 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4515         [BZ #9948]
4516         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
4518 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
4520         * elf/dl-sysdep.c (auxvars): Compress data structure.
4522         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
4523         STT_GNU_IFUNC handling.
4524         (elf_machine_rela): Likewise.
4526 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
4528         * config.h.in (USE_MULTIARCH): Define.
4529         * configure.in: Handle --enable-multi-arch.
4530         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
4531         (_dl_fixup_profile): Likewise.
4532         * elf/do-lookup.c (dl_lookup_x): Likewise.
4533         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
4534         * elf/elf.h (STT_GNU_IFUNC): Define.
4535         * include/libc-symbols.h (libc_ifunc): Define.
4536         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
4537         framework in init-arch.h to get CPUID values.
4538         * sysdeps/x86_64/multiarch/Makefile: New file.
4539         * sysdeps/x86_64/multiarch/init-arch.c: New file.
4540         * sysdeps/x86_64/multiarch/init-arch.h: New file.
4541         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
4543         * config.make.in (experimental-malloc): Define.
4544         * configure.in: Handle --enable-experimental-malloc.
4545         * malloc/Makefile: Handle experimental-malloc flag.
4546         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
4547         * malloc/arena.c: Likewise.
4548         * malloc/hooks.c: Likewise.
4549         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
4551 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
4553         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
4554         prediction.  A few size optimizations.
4556 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4558         * time/tzset.c: Optimize a bit for size.
4560 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
4562         * include/stdio.h (fmemopen): Add libc_hidden_proto.
4563         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
4565         * elf/sprof.c: Avoid warning about multi-line comment.
4567 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4569         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
4570         DST name.
4571         * time/tst-posixtz.c: Add tests for quoted timezone names.
4573 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
4575         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
4576         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
4577         200809L instead of 200112L.
4578         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
4579         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
4581         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
4582         instead of __quick_exit_funcs to __run_exit_handlers.
4583         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
4584         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
4585         (__cxa_at_quick_exit): Remove attribute_hidden.
4586         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
4587         to __run_exit_handlers.
4588         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
4589         attribute_hidden.
4591 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4593         * po/id.po: Update from translation team.
4595 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
4597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
4598         .machine push; .machine "power6" and .machine pop around mtfsf
4599         insns outside of _ARCH_PWR6 define.
4600         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4602         Likewise.
4603         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4604         Likewise.
4605         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
4606         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
4607         relax_fenv_state): Likewise.
4609 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
4611         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
4612         cxa_at_quick_exit.
4613         (static-only-routines): Add at_quick_exit.
4614         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
4615         GLIBC_2.10.
4616         * stdlib/quick_exit.c: New file.
4617         * stdlib/at_quick_exit.c: New file.
4618         * stdlib/cxa_at_quick_exit.c: New file.
4619         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
4620         it appropriately.
4621         (__internal_atexit): New function.
4622         (__new_exitfn): Now takes parameter to point to the list to use.
4623         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
4624         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
4625         (exit): ...here.  Just call __run_exit_handlers appropriately.
4626         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
4627         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
4628         * stdlib/on_exit.c: Adjust call to __new_exitfn.
4629         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
4631         * po/id.po: Update from translation team.
4633 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
4635         * po/ru.po: Update from translation team.
4637 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
4639         * po/nl.po: Update from translation team.
4641 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
4643         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
4644         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4645         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4646         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4647         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4648         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4649         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4651         * po/pl.po: Update from translation team.
4653 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4655         [BZ #7083]
4656         * sysdeps/unix/sysv/linux/fallocate.c: New file.
4657         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
4658         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
4659         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
4660         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
4661         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
4662         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
4663         for GLIBC_2.10.
4664         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4665         Add fallocate and fallocate64.
4667         * io/fcntl.h: Pretty printing.
4669 2009-03-02  Richard Guenther  <rguenther@suse.de>
4671         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
4672         attribute also for non-C99 inline semantics variant.
4674 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4676         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
4677         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
4678         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
4679         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
4680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
4681         Likewise.
4682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
4683         Likewise.
4685 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4687         * po/cs.po: Update from translation team.
4689 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
4691         * po/bg.po: Update from translation team.
4692         * po/sv.po: Likewise.
4693         * po/fi.po: Likewise.
4694         * po/vi.po: Likewise.
4696 2009-02-27  Roland McGrath  <roland@redhat.com>
4698         * Makeconfig (%.v.i): Depend on Makeconfig.
4699         Exclude % lines from initial #-comment removal.
4701 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
4703         * po/ko.po: Update from translation team.
4705 2009-02-26  Roland McGrath  <roland@redhat.com>
4707         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
4708         avoids unused warning.
4710 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
4711             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
4713         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
4714         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
4715         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
4716         and asm/user.h.  Include asm/ptrace.h.
4717         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
4718         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
4719         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
4720         Undefine.
4721         (start_thread): Don't undefine.
4722         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
4723         Define.
4725 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
4727         * wctype/wctype.h: The *_l functions are in POSIX 2008.
4728         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
4729         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
4730         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
4731         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
4732         200112L to 200809L.
4733         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
4734         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4735         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
4736         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4737         _SC_THREAD_ROBUST_PRIO_PROTECT.
4738         * posix/unistd.h: fexecve is in POSIX 2008.
4739         * time/time.h: strftime_l is in POSIX 2008.
4740         * io/sys/stat.h: futimens is in POSIX 2008.
4741         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
4742         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
4743         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
4744         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
4745         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
4746         open_memstream, and vdprintf are in POSIX 2008.
4748 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
4750         * include/features.h: Define macros for XPG7/POSIX 2008.
4751         * ctype/ctype.h: The *_l functions are in POSIX 2008.
4752         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
4753         POSIX 2008.
4754         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
4755         * locale/xlocale.h: Define locale_t type.
4756         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
4757         in POSIX 2008.  Don't define locale_t here.
4758         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
4759         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
4760         UTIME_OMIT only with __USE_ATFILE.
4761         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
4762         * stdio-common/psiginfo.c: New file.
4763         * stdio-common/psiginfo-data.h: New file.
4764         * stdio-common/psiginfo-define.h: New file.
4765         * stdio-common/Makefile (routines): Add psiginfo.
4766         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
4767         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4768         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4769         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4770         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4771         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4772         * io/sys/stat.h: Move mknodat definition into same conditional as
4773         mknod.
4774         * time/sys/time.h: futimesat is not among the functions accepted
4775         into the POSIX standard.
4777         * include/features.h: If no feature selection given and we select
4778         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
4779         * posix/Versions: Export __posix_getopt.
4780         * posix/getopt.c (_getopt_initialize): Take additional parameter.
4781         Use it to alternatively initialize __posixly_correct.
4782         (_getopt_internal_r): Take addition parameter.  Pass on to
4783         _getopt_initialize.
4784         (_getopt_internal): Take addition parameter.  Pass on to
4785         _getopt_internal_r.
4786         (getopt): Pass additional zero to _getopt_internal.
4787         (__posix_getopt): New function.
4788         * posix/getopt.h: Add redirection for getopt.
4789         * posix/getopt1.c (getopt_long): Pass additional zero to
4790         _getopt_internal.
4791         (getopt_long_only): Likewise.
4792         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
4793         (_getopt_long_only_r): Likewise.
4794         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
4795         _getopt_internal_r.
4797 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4799         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
4800         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4801         * sysdeps/posix/sysconf.c (__sysconf): Handle
4802         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
4803         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4805 2009-02-24  Roland McGrath  <roland@redhat.com>
4807         [BZ #9895]
4808         * README.template: Reworded not to use substituted version number.
4809         Renamed to ...
4810         * README: ... here (no longer generated).
4811         * Makefile (README): Target removed.
4813 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4815         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
4816         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
4817         instead.
4819         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
4821         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
4823 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
4825         * po/bg.po: Update from translation team.
4827 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
4829         * stdlib/monetary.h: Uglify function parameter names.
4830         * sunrpc/rpc/pmap_clnt.h: Likewise.
4831         * sunrpc/rpc/svc.h: Likewise.
4832         * sunrpc/rpc/xdr.h: Likewise.
4833         * sunrpc/rpc/clnt.h: Likewise.
4834         * resolv/netdb.h: Likewise.
4835         * resolv/arpa/nameser.h: Likewise.
4836         * resolv/resolv.h: Likewise.
4837         * argp/argp.h: Likewise.
4838         * locale/langinfo.h: Likewise.
4839         * io/sys/stat.h: Likewise.
4840         * posix/spawn.h: Likewise.
4841         * nis/rpcsvc/nislib.h: Likewise.
4842         * malloc/obstack.h: Likewise.
4843         * sysdeps/ia64/bits/link.h: Likewise.
4844         * sysdeps/i386/bits/link.h: Likewise.
4845         * sysdeps/s390/bits/link.h: Likewise.
4846         * sysdeps/powerpc/bits/link.h: Likewise.
4847         * sysdeps/x86_64/bits/link.h: Likewise.
4848         * sysdeps/sparc/bits/link.h: Likewise.
4849         * sysdeps/sh/bits/link.h: Likewise.
4850         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
4851         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
4852         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
4853         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
4855 2008-12-01  Fredrik Unger  <fred@tree.se>
4857         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
4858         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
4859         _FP_UNPACK_RAW_2, fix up first argument.
4861 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
4863         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
4864         (GET_NPROCS_PARSER): Change parameters and use next_line.
4865         (__get_nprocs): Rewrite to not use stdio routines.
4866         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
4867         Change parameters and use next_line.
4869 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
4871         [BZ #5381]
4872         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
4873         Change mempool_alloc prototype.
4874         * nscd/mem.c (gc): Don't handle mem_in_flight.
4875         (mempool_alloc): Third parameter now only indicates whether this is the
4876         first call (to allocate data) or not.  If it is, get db rdlock.
4877         Release it on error.  Don't handle mem_in_flight.
4878         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
4879         Adjust third parameter of mempool_alloc calls.
4880         Nothing to do here in case mempool_alloc fails.
4881         Avoid local variable shadowing parameter.  No need to get db rdlock
4882         before calling cache_add.
4883         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
4884         no mem_in_flight array anymore.
4885         * nscd/connections.c: Remove definition and handling of mem_in_flight.
4886         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
4887         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
4888         in case mempool_alloc fails. No need to get db rdlock before calling
4889         cache_add.
4890         * nscd/hstcache.c (cache_addhst): Likewise.
4891         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4892         * nscd/servicescache.c (cache_addserv): Likewise.
4893         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
4895 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
4897         * po/lt.po: Update from translation team.
4899 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
4901         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
4902         defined, allow additional data to be added using the optional
4903         MORE_ELF_HEADER_DATA macro.
4904         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
4905         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
4907 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
4909         * include/atomic.h: Define catomic_and if not already defined.
4910         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
4911         * sysdeps/i386/i486/bits/atomic.h: Likewise.
4913 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
4915         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
4916         Change all callers.
4917         (_int_realloc): Likewise.  Third argument is now padded size
4918         All _int_* functions are now static.
4920         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4921         * malloc/arena.c: Likewise.
4922         * include/malloc.h: Remove now unnecessary declarations of the _int_*
4923         functions.
4925         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4926         easily.
4928         * malloc/malloc.c: Add branch prediction for use of the hooks.
4930         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4932 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4934         [BZ #7095]
4935         * bits/confname.h: Add SUSv7 macros for getconf environments.
4936         * bits/environments.h: Likewise.
4937         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4938         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4939         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4940         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4941         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4942         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4943         * posix/getconf.c: Likewise.
4944         * posix/sysconf.c: Likewise.
4945         * sysdeps/posix/sysconf.c: Likewise.
4946         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4947         environments.
4949 2009-01-16  Petr Baudis  <pasky@suse.cz>
4951         [BZ #9753]
4952         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4953         even if we currently have zero nscount.
4955 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4957         [BZ #9781]
4958         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4959         the input line is too long.
4961         * po/Makefile (libc.pot): Add f_print as function taking c-format
4962         parameter.
4964         * debug/xtrace.sh: Unify translatable messages.
4965         * elf/ldd.bash.in: Likewise.
4966         * elf/sprof.c: Likewise.
4967         * locale/programs/locale.c: Likewise.
4968         * malloc/memusage.sh: Likewise.
4969         * nss/getent.c: Likewise.
4971 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
4973         * debug/pcprofiledump.c (print_version,
4974         argp_program_version_hook): New function.
4975         * elf/ldconfig.c (more_help): New function.
4976         (argp): Use it.
4977         * elf/sln.c (usage): New function.
4978         (main): Support --help and --version.
4979         * malloc/memusagestat.c (print_version): New function.
4980         (argp_program_version_hook): New variable.
4981         * nscd/nscd.c (more_help): New function.
4982         (argp): Use it.
4983         * posix/getconf.c (main): Send --version output to stdout.
4984         Support --help.
4985         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4986         arguments.  All callers changed.
4987         (print_version): New function.
4988         (parseargs): Support --help and --version.
4989         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
4990         changed.
4991         (print_version): New function.
4992         (main): Use getopt_long.  Support --help and --version.
4993         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4994         --version.
4996 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4998         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4999         (update_data): Fix handling of wrapping back
5000         to the beginning of the buffer.
5002         [BZ #9823]
5003         * stdio-common/psignal.c (psignal): Fix test for empty string.
5005 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
5007         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
5008         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
5009         move _null_auth to .rodata.
5011         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
5012         value of 24.
5014         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
5016         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
5017         today than when the original code was written.  Use larger
5018         buffers.  This also makes it unnecessary to have stat information,
5019         if this causes extra efforts.
5020         (__opendir): In case O_DIRECTORY works, don't call fstat just for
5021         __alloc_dir.
5023 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
5025         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
5026         is set.
5027         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
5028         * sysdeps/sh/sh4/__longjmp.S: Likewise.
5029         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
5030         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
5031         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
5032         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
5034 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
5036         * po/ru.po: Update from translation team.
5038 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
5040         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
5041         Add _tid slot to maintain consistency with kernel.
5043 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
5045         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
5046         incomplete characters at end of input buffer.
5047         * libio/Makefile (tests): Add tst-fgetwc.
5048         * libio/tst-fgetwc.c: New file.
5049         * libio/tst-fgetwc.input: New file.
5051 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
5053         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
5055 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
5057         [BZ #9793]
5058         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
5059         *OUTBUFSTART unless the whole output fit into the buffer.
5060         * iconv/Makefile (tests): Add tst-iconv4.
5061         * iconv/tst-iconv4.c: New file.
5063 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
5065         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
5066         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5068 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
5070         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
5071         newer linker scripts.
5073 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
5075         [BZ #7040]
5076         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
5077         inotify_rm_watch should have type int.
5079 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
5081         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
5082         Make aligned_restore_vmx a local symbol.
5083         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
5084         Likewise.
5086 2009-01-30  Andreas Jaeger  <aj@suse.de>
5088         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
5089         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
5090         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
5091         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
5092         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
5093         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
5094         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
5096 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
5098         [BZ #9726]
5099         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
5100         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
5102 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
5104         [BZ #9726]
5105         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
5106         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
5107         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
5108         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
5110 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
5112         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
5113         memcpy instead of memcmp.
5114         (_dl_setup_pointer_guard): Likewise.
5116 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
5118         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
5119         manipulated brk, use malloc_printerr.
5120         * misc/sbrk.c (__sbrk): Better error handling for nonsense
5121         requests.
5123 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
5125         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
5126         rindex): For C++ add inlines so that they can be recognized as
5127         builtins.
5128         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
5130 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
5131             Jakub Jelinek  <jakub@redhat.com>
5133         * string/string.h: Define correct C++ prototypes for gcc 4.4.
5134         * wcsmbs/wchar.h: Likewise.
5136 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
5138         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
5139         (stackinfo_sub_sp): Define.
5141 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
5143         [BZ #9750]
5144         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
5145         * include/alloca.h (alloca_account): Define.
5146         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
5147         (stackinfo_sub_sp): Define.
5149         * nscd/connections.c (nscd_init): If database file access fails
5150         check whether this is due to permission problems and bail in that
5151         case.
5153         [BZ #9741]
5154         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
5155         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
5157 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5159         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
5160         Add "t" to clobber list.
5161         (INTERNAL_SYSCALL_NCS): Likewise.
5163 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
5165         * nss/getent.c (print_networks): Don't print comma between aliases.
5167 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
5169         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
5171         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
5172         the hash table.
5173         * misc/Makefile (tests): Add bug-hsearch1.
5174         * misc/bug-hsearch1.c: New file.
5176 2009-01-22  Roland McGrath  <roland@redhat.com>
5178         * Makeconfig (%.v.i): Strip trailing # comments,
5179         not only whole-line comments.
5181 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
5183         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
5184         one parameter.  If non-NULL use it to initialize return value.
5185         (_dl_setup_pointer_guard): New function.
5186         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
5187         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
5188         * elf/rtld.c (security_init): Pass _dl_random to
5189         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
5190         pointer_chk_guard.
5191         * elf/dl-sysdep.c (_dl_random): New variable.
5192         (_dl_sysdep_start): Handle AT_RANDOM.
5193         (_dl_show_auxv): Likewise.
5194         * elf/dl-support.c (_dl_random): New variable.
5195         (_dl_aux_init): Handle AT_RANDOM.
5196         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
5197         to _dl_setup_stack_chk_guard.
5199         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
5201 2009-01-10  Roland McGrath  <roland@redhat.com>
5203         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
5205 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
5207         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
5209         [BZ #9706]
5210         * nss/nss_files/files-parse.c (strtou32): New function.
5211         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
5212         across 32-bit and 64-bit platforms.
5213         (INT_FIELD_MAYBE_NULL): Likewise.
5215 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
5217         [BZ #9720]
5218         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
5219         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
5220         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
5221         Likewise.
5223 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
5225         [BZ #697]
5226         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
5227         being NULL also if there are no backreferences.
5228         * posix/rxspencer/tests: Add testcases.
5230 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
5232         [BZ #9697]
5233         * posix/bug-regex17.c: Add testcases.
5234         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
5235         handling.
5237 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5239         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
5240         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
5241         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
5242         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
5243         for elf subdir.
5244         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
5245         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
5246         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
5247         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
5248         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
5249         * sysdeps/unix/sysv/linux/s390/Versions: New file.
5251 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
5253         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
5254         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
5255         re_string_skip_chars, re_string_reconstruct): Likewise.
5256         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
5258 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
5260         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
5261         adjust the buffer alignment.
5263 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5265         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
5266         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
5267         net/route.h.
5269         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
5270         flavor to description only when flavor is not NULL.
5272         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
5273         mutex after SIGIO/SIGURG lookup loop.
5275 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5277         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
5279 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
5281         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
5282         handling.
5284 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
5286         * sysdeps/unix/sysv/linux/kernel-features.h
5287         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
5289         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
5290         if no output is written.
5292         * version.h: Bump to 2.10 development.
5294         * posix/getconf.c: Update copyright year.
5295         * nss/getent.c: Likewise.
5296         * iconv/iconvconfig.c: Likewise.
5297         * iconv/iconv_prog.c: Likewise.
5298         * elf/ldconfig.c: Likewise.
5299         * catgets/gencat.c: Likewise.
5300         * csu/version.c: Likewise.
5301         * elf/ldd.bash.in: Likewise.
5302         * elf/sprof.c (print_version): Likewise.
5303         * locale/programs/locale.c: Likewise.
5304         * locale/programs/localedef.c: Likewise.
5305         * nscd/nscd.c (print_version): Likewise.
5306         * debug/xtrace.sh: Likewise.
5307         * malloc/memusage.sh: Likewise.
5308         * malloc/mtrace.pl: Likewise.
5309         * debug/catchsegv.sh: Likewise.
5311 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
5313         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
5314         script.
5316 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
5318         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
5319         gethostbyname4_r function call succeeded, just leave the loop.
5321         [BZ #9694]
5322         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
5323         very end.
5324         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
5325         * wctype/Makefile (tests): Add bug-wctypeh.
5326         * wctype/bug-wctypeh.c: New file.
5328         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
5329         LOCALDOMAIN is defined.
5330         * nscd/nscd_getai.c (__nscd_getai): Likewise.
5332         * sysdeps/x86_64/bits/select.h: New file.
5334         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
5336 2008-12-21  Bruno Haible  <bruno@clisp.org>
5338         [BZ #9677]
5339         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
5340         if no output is written.
5342 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
5344         * login/utmp_file.c (pututline_file): Replace call to dup2 with
5345         libc internal symbol __dup2 to avoid access through the PLT.
5347 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
5349         [BZ #6545]
5350         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
5351         available only for __USE_GNU.
5353         * inet/Makefile (tests): Add tst-getni2.
5354         * inet/tst-getni2.c: New file.
5356         [BZ #7080]
5357         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
5358         NULL when NI_NAMEREQD is set.
5359         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
5360         * inet/Makefile (tests): Add tst-getni1.
5361         * inet/tst-getni1.c: New file.
5363 2008-12-03  Petr Baudis  <pasky@suse.cz>
5365         [BZ #7067]
5366         * nscd/connections.c (invalidate_cache): Use prune_run_lock
5367         instead of prune_lock.
5368         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
5369         * nscd/nscd.h (database_dyn): Add prune_run_cache.
5371 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
5373         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
5374         use.
5376         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
5377         handling.
5379         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
5380         after reading name server list.
5382         [BZ #7058]
5383         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
5384         handling for host name aliases.
5386 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
5388         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
5389         instead of doing things manually.
5391 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
5393         * posix/regex_internal.h (build_wcs_upper_buffer):
5394         Return type is reg_error_t.
5396 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
5398         * posix/globtest.sh: Use mktemp to create temporary file and
5399         directory.
5401         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
5402         sets correctly.
5403         (__CPU_CLR_S): Likewise.
5404         (__CPU_ISSET_S): Likewise.
5406 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
5407             Ulrich Drepper  <drepper@redhat.com>
5409         * scripts/firstversion.awk: Use custom comparison function to compare
5410         version numbers.
5411         * scripts/versions.awk: Use sort invocation which can handle
5412         multi-digit sub-version numbers.
5414 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
5416         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
5417         * locale/iso-639.def: Add Chhattisgarhi entry.
5419 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
5421         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
5422         ESRCH return value.
5423         (_nss_dns_gethostbyname4_r): Likewise.
5424         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
5425         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
5426         gethostbyname4_r, we don't have a separate IPv6 status, so copy
5427         the no_data variable.
5429         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
5430         information at the correct index.
5432         * socket/sys/socket.h: Declare accept4.
5433         * socket/accept4.c: New file.
5434         * sysdeps/unix/sysv/linux/accept4.c: New file.
5435         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
5436         * socket/Makefile (routines): Add accept4.
5437         * socket/Versions: Export accept4 with version GLIBC_2.10.
5438         * socket/paccept.c: Removed.
5439         * sysdeps/unix/sysv/linux/paccept.c: Removed.
5440         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
5441         * Versions.def: Define GLIBC_2.10 for libc.
5442         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
5444         * nscd/connections.c: Use accept4.
5446         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
5448 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
5450         * resolv/res_send.c (send_dg): Create sockets with non-blocking
5451         flag already set.
5453         * stdlib/setenv.c (unsetenv): Don't search environment if it does
5454         not exist.
5455         * stdlib/Makefile (tests): Add tst-unsetenv1.
5456         * stdlib/tst-unsetenv1.c: New file.
5458 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
5460         * login/utmp_file.c (file_writable): New variable.
5461         (setutent_file): Don't try to open file for writing.
5462         (pututline_file): Before writing, make descriptor writable if
5463         necessary.
5465 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
5467         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
5468         to IPv4 or IPv6 if an interface has been found.
5470 2008-11-26  Roland McGrath  <roland@redhat.com>
5472         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
5473         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
5475         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
5476         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
5477         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
5479         * elf/elf.h (NT_386_IOPERM): New macro.
5480         (NT_PPC_VSX): New macro.
5482 2008-11-25  Roland McGrath  <roland@redhat.com>
5484         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
5485         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
5486         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
5487         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
5488         Subdirectories moved to ports repository.
5489         * configure.in (base_machine): Remove alpha case.
5491 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
5493         * sysdeps/mach/strerror_l.c: New file.
5495 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
5497         [BZ #6411]
5498         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
5499         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
5500         magic numbers.
5501         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
5502         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
5503         (relax_fenv_state): Same as above.
5504         (FPSCR_29): Reserve bit in ISA 2.05.
5505         (FPSCR_NI): Provide define for compat.
5506         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
5507         magic numbers.
5508         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
5509         magic numbers.
5510         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
5511         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
5512         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
5513         access to hwcap to account for hwcap size increase to uint64_t.
5514         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
5515         Likewise.
5516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
5517         (*setcontext): Likewise.
5518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
5519         New file.
5520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
5521         New file.
5522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
5523         (*setcontext): dynamically select mtfsf insn based on
5524         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
5525         increase to uint64_t.
5526         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
5527         (*swapcontext): dynamically select mtfsf insn based on
5528         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
5529         increase to uint64_t.
5530         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
5531         New file.
5532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
5533         New file.
5534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5535         (*setcontext): dynamically select mtfsf insn based on
5536         PPC_FEATURE_HAS_DFP.
5537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5538         (*swapcontext): dynamically select mtfsf insn based on
5539         PPC_FEATURE_HAS_DFP.
5541 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
5543         * version.h: Bump for 2.9 release.
5544         * include/features.h (__GLIBC_MINOR__): Bump to 9.
5546         [BZ #7029]
5547         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
5548         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
5549         all the rounding.
5551 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
5553         [BZ #7009]
5554         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
5555         unknown request types for now.
5557 2008-11-11  Roland McGrath  <roland@redhat.com>
5559         * sysdeps/x86_64/configure: New file.
5561         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
5562         * configure: Regenerated.
5564 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5566         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
5567         correct instruction to remove the stack frame.
5569 2008-11-03  Michael Matz  <matz@suse.de>
5571         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
5572         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
5574 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
5576         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
5577         Remove.
5579         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
5580         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
5581         of the thread variable instead of void *.
5582         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
5583         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
5584         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5585         __libc_tsd_define arguments.
5586         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
5587         __libc_tsd_address arguments.  Remove union hack.
5588         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
5589         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
5590         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
5591         Adjust __libc_tsd_{set,get} arguments.
5592         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5593         __libc_tsd_define arguments.
5594         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
5595         arguments.
5596         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
5597         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
5598         (LOCALE): Adjust __libc_tsd_define arguments.
5599         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
5600         arguments.
5601         (LOCALE): Adjust __libc_tsd_define arguments.
5602         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
5603         arguments.
5604         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
5605         arguments.
5607 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
5609         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
5610         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5612 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
5614         [BZ #6966]
5615         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
5617 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
5618             Ulrich Drepper  <drepper@redhat.com>
5620         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
5621         definition for GCC 3.1 and later.
5623 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
5625         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
5626         refetch dtv, as it might have changed.
5627         * elf/Makefile: Add rules to build and run tst-tls18.
5628         * elf/tst-tls18.c: New test.
5629         * elf/tst-tlsmod18a.c: New file.
5631 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
5633         [BZ #6875]
5634         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
5636 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5638         [BZ #6867]
5639         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
5641         [BZ #6919]
5642         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
5643         Fix length of copy operation.
5645 2008-10-02  Pierre Habouzit <madcoder@debian.org>
5647         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
5648         and fix its calling convention.
5650 2008-10-07  Andreas Schwab  <schwab@suse.de>
5652         [BZ #6942]
5653         * resolv/res_send.c (send_vc): Fix last change.
5654         (send_dg): Align here as well.
5656 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5658         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
5659         return value in case rlimit is RLIM_INFINITY.
5661         [BZ #6947]
5662         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
5663         for UL_SETFSIZE.
5664         * resource/Makefile (tests): Add bug-ulimit1.
5665         * resource/bug-ulimit1.c: New file.
5667         [BZ #6974]
5668         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
5669         without dot.  Properly terminate the string with a null byte.
5670         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
5672         [BZ #6980]
5673         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
5674         negative sizees.
5675         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
5676         negative __size.
5678         [BZ #6995]
5679         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
5681 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
5683         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
5684         abort if there is no initgroups_dyn function.
5686         * resolv/res_send.c (send_dg): On timeout, only return nonzero
5687         result if any of the queries really provided an answer.
5689 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
5691         * po/lt.po: Update from translation team.
5693 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
5695         * po/id.po: Update from translation team.
5697 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
5699         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
5700         Fix tests for existence of second reply.
5702 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
5704         * po/id.po: New file.
5705         Contributed by the Indonesian translation team.
5707 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
5709         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
5710         initialization.
5712 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
5714         * elf/Makefile: Add rules to build and run tst-tls17.
5715         * elf/tst-tls17.c: New test.
5716         * elf/tst-tlsmod17a.c: New file.
5717         * elf/tst-tlsmod17b.c: Likewise.
5719 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
5721         * stdlib/divmod_1.c: Use correct type for dummy variable.
5722         * stdlib/mod_1.c: Likewise.
5724 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
5726         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
5728 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
5730         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
5731         __nonnull order for C++.
5732         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
5733         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
5735 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
5737         * stdlib/longlong.h: Update from GCC.
5739 2008-10-09  Jakub Jelinek <jakub@redhat.com>
5740             David S. Miller  <davem@davemloft.net>
5742         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
5743         make sure any registers used with 64-bit 'branch-on-register'
5744         instructions have their top 32-bits clear.
5745         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
5746         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
5748 2008-09-18  Andreas Schwab  <schwab@suse.de>
5750         [BZ #6942]
5751         * resolv/res_send.c (send_vc): Fix use of unaligned address.
5752         Properly handle partial reads.
5754 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
5756         * elf/elf.h (STO_MIPS_PLT): New.
5757         (R_MIPS_COPY): New.
5758         (R_MIPS_JUMP_SLOT): New.
5759         (R_MIPS_NUM): Redefine to 128.
5760         (DT_MIPS_PLTGOT): New.
5761         (DT_MIPS_RWPLT): New.
5762         (DT_MIPS_NUM): Redefine to 0x35.
5764 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
5766         * timezone/africa: Update from tzdata2008f.
5767         * timezone/asia: Likewise.
5768         * timezone/australasia: Likewise.
5769         * timezone/europe: Likewise.
5770         * timezone/leapseconds: Likewise.
5771         * timezone/northamerica: Likewise.
5772         * timezone/southamerica: Likewise.
5773         * timezone/zone.tab: Likewise.
5775 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
5777         * nscd/connections.c: Disable use of paccept for now.
5779 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
5781         * socket/Versions: Remove paccept export for GLIBC_2.9.
5782         * socket/Makefile (routines): Remove paccept.
5783         * socket/sys/socket.h: Remove paccept declaration.
5785         * po/sv.po: Update from translation team.
5787 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
5789         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
5790         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5792 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
5794         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
5795         Patch by Olivier Fourdan <ofourdan@redhat.com>.
5797 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
5799         * sunrpc/rpc/svc.h: Declare svcfd_create.
5800         Patch by Michael Solberg <msolberg@redhat.com>.
5802 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
5803             Ulrich Drepper  <drepper@redhat.com>
5805         * malloc/malloc.c (public_vALLOc): Try other arenas in case
5806         _int_valloc fails.
5807         (public_pVALLOc): Likewise.
5809 2008-09-02  Andreas Jaeger  <aj@suse.de>
5811         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
5812         commit.
5814 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
5816         [BZ #6860]
5817         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
5819 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
5821         * Makefile (check-data): Check data directory in add-ons.
5822         * elf/Makefile (check-data): Likewise.
5824 2008-08-18  Roland McGrath  <roland@redhat.com>
5826         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
5827         * configure: Regenerated.
5828         * config.make.in (cflags-cpu): New substituted variable.
5829         (with-cpu): Variable removed.
5830         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
5832 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
5834         [BZ #6845]
5835         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
5836         __signbitl definition and __LONG_DOUBLE_128__ guard from:
5837         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
5838         redundant.  Functions which call floating point assembler operations
5839         should go into a sysdeps powerpc/fpu directory.
5841 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
5843         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
5844         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5846 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
5848         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
5850         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
5851         change related to AT_EXECFN.  We cannot use that string.
5852         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
5853         _dl_execfn member.
5854         * elf/dl-support.c: Remove _dl_execfn variable.
5855         (_dl_aux_init): Remove handling of AT_EXECFN.
5856         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
5857         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
5859 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
5861         [BZ #6544]
5862         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
5863         byte gets added to writes and seeks from the end use the length of
5864         the buffer and not the currently terminating NUL byte.
5866         [BZ #6634]
5867         * login/utmp_file.c (getutent_r_file): Take additional parameter.
5868         Set to true if locking failed.
5869         (getutid_r_file): Adjust caller.
5870         (pututline_file): Likewise.  Return NULL in this case.
5871         Patch mostly by halesh.s@gmail.com.
5873 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
5875         [BZ #6589]
5876         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
5877         Define.
5878         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
5880 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
5882         [BZ #6839]
5883         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
5884         macro since it is now available in elf/dynamic-link.h.
5886 2008-08-12  Roland McGrath  <roland@frob.com>
5888         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
5889         in case used outside of libc.
5890         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
5892 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
5894         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
5895         directly instead of going through dn_comp.
5897 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
5899         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5900         Fix asm constraints.
5902 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5904         [BZ #6790]
5905         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
5906         (IPV6_PMTUDISC_PROBE): Likewise.
5908 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
5910         [BZ #6791]
5911         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
5913 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
5914             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5916         [BZ #6817]
5917         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5918         Added the members 'vsx' and 'arch_2_06'.
5919         (_dl_powerpc_platforms): Add the member 'power7'.
5920         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5921         to reflect the changes required by VSX and ISA 2.06.
5922         Modify _DL_PLATFORMS_COUNT to reflect the addition of
5923         'power7'.
5924         Defined PPC_PLATFORM_POWER7.
5925         (_dl_string_platform): Add support for POWER7.
5926         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5927         capability and ISA 2.06.
5929 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5931         [BZ #6824]
5932         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5933         macro to detect use of 128 bit long double.
5934         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5936 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
5938         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5940         [BZ #5794]
5941         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5942         parameters.
5943         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5944         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5946 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
5948         * nscd/connections.c (main_loop_poll): Pass a buffer which is
5949         guaranteed to be large enough to read inotify event.  Ignore
5950         EAGAIN error.  Better error message.  Add branch predicition.
5951         (main_loop_epoll): Likewise.
5953 2008-08-02  Roland McGrath  <roland@frob.com>
5955         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5956         Add memory clobbers.
5958 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
5960         * manual/arith.texi: Avoid @strong{Note:}.
5961         * manual/creature.texi: Likewise.
5962         * manual/filesys.texi: Likewise.
5963         * manual/math.texi: Likewise.
5964         * manual/memory.texi: Likewise.
5965         * manual/resource.texi: Likewise.
5966         * manual/syslog.texi: Likewise.
5967         * manual/time.texi: Likewise.
5969         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5970         to prevent warning.
5972 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
5974         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5975         new epoll_create1 interface.
5976         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5977         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5978         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5980         * include/arpa/nameser.h (NS_GET16): Use const pointer.
5981         (NS_GET32): Likewise.
5983         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5984         syscalls, too.
5986         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5987         use the AT_EXECFN value if it is no absolute path.
5988         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5989         __ASSUME_AT_EXECFN.
5991         * Versions.def: Add GLIBC_2.9 to libresolv.
5992         * include/resolv.h: Remove hidden proto declarations for __ns_*
5993         functions.  Add them for __dn_count_labels and __p_secstodate.
5994         * include/arpa/nameser.h: Add a number of hidden proto declarations.
5995         Define ns_msg_getflags macro here.
5996         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5997         and __p_secstodate.
5998         * resolv/Versions: Export functions from <arpa/nameser.h> from
5999         libresolv in version GLIBC_2.9.
6000         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
6001         hidden definitions.
6002         * resolv/ns_netint.c: Likewise.
6003         * resolv/ns_parse.c: Likewise.
6004         * resolv/ns_print.c: Likewise.
6005         * resolv/ns_samedomain.c: Likewise.
6006         * resolv/ns_ttl.c: Likewise.
6007         * resolv/arpa/nameser_compat.h: Likewise.
6008         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
6009         function calls.
6010         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
6011         instead of ns_get16.
6012         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
6013         __ns_get32 instead of ns_get16 and ns_get32 respectively.
6014         (gaih_getanswer_slice): Likewise.
6015         * resolv/Makefile (libresolv-routines): Add ns_date.
6016         * resolv/ns_date.c: New file.
6018         * elf/Makefile (check-localplt.out): Also check libresolv and
6019         libcrypt.
6021 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
6023         * sysdeps/unix/sysv/linux/kernel-features.h: Define
6024         __ASSUME_O_CLOEXEC.
6026 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
6028         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
6029         buffer passed to NSS functions.
6031         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
6033         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
6034         Define.
6036         * misc/syslog.c (openlog_internal): Fix compile problem.
6038 2008-07-28  Roland McGrath  <roland@redhat.com>
6040         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
6042 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
6044         * io/ftw.c (add_object): Remove inline to avoid warning.
6046         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
6048         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
6049         Use it instead of locally defined resplen2 variable.
6050         (res_nsend): Adjust for __libc_res_nsend interface change.
6051         (send_vc): Initialize *resplen2 if necessary.  Read length of
6052         package into an appropriately aligned variable.  Store converted length
6053         in new variable and use it appropriately.
6054         Add branch prediction help.
6055         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
6056         and pass it on to __libc_res_nsend.  Adjust all callers.
6057         (__libc_res_nsearch): Likewise.
6058         (__libc_res_nqeurydomain): Likewise.
6059         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
6060         change.
6061         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
6062         Define resplen2 variable and pass it to __libc_res_nsearch and then
6063         to gaih_getanswer.
6064         (getanswer_r): In case of incorrect DNS data don't overread buffer.
6065         Add branch prediction.
6066         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
6067         (gaih_getanswer): Don't decode second slice if first one failed due
6068         to a too small buffer.  Don't let not found status of second
6069         decoder shadow results of the first.
6070         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
6071         and __libc_res_nquery interface changes
6072         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
6073         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
6074         __libc_res_nsearch, and __libc_res_nsend.
6075         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
6076         change.
6077         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
6078         __libc_res_nsearch interface changes.
6080 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
6082         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
6084         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
6085         file descriptors with close-on-exec set.
6086         (exec_comm_child): Fix the case where the write end of the pipe is
6087         STDOUT_FILENO already.  In case it is, clear close-on-exec.
6089         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
6090         * io/pipe2.c: Likewise.
6091         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
6092         instead of __ASSUME_PACCEPT.
6093         * include/unistd.h: Declare __have_pipe2.
6094         * libio/iopopen.c: Implement "e" flag.
6095         * libio/Makefile (tests): Add tst-popen1.
6096         * libio/tst-popen1.c: New file.
6098         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
6099         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6101 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
6103         [BZ #6771]
6104         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
6105         success call of _IO_SEEKOFF or calls which failed because the
6106         descriptor is for a pipe.
6108         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
6109         magic number.
6111         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
6113         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
6114         F_SETFD use if we know fopen set the flag.
6116         * login/utmp_file.c (setutent_file): Minor optimization in case
6117         O_CLOEXEC is available.
6119 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
6121         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
6122         * elf/Makefile: Use pie-ccflag variable.
6123         * nscd/Makefile: Likewise.
6124         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
6126 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
6128         [BZ #6724]
6129         * Versions.def: Add GLIBC_2.9 version tag for libutil.
6130         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
6131         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
6132         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
6133         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
6134         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
6135         utmp32, utmpx32 and login32.
6136         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
6137         versions of struct utmp functions to libc and libutil.
6138         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
6139         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
6140         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
6141         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
6142         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
6143         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
6144         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
6145         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
6146         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
6147         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
6148         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
6149         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
6150         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
6151         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
6152         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
6153         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
6154         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
6155         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
6156         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
6157         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
6158         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
6159         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
6161 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
6163         * scripts/gen-as-const.awk: Generate more widely usable code by
6164         using 64-bit arithmetic.
6166         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
6167         the same treatment as narrow output code in last patch.
6169         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
6171         [BZ #6763]
6172         * elf/dl-load.c (local_strdup): Remove inline.
6173         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
6174         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
6175         part of the object.
6177         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
6179 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
6181         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
6182         the new syscalls, too.
6184         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
6185         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
6187         [BZ #6698]
6188         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
6189         parameter for end of buffer.  If temporary copy is too large use
6190         malloc.
6191         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
6192         interface change.
6193         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
6194         string rewrite when allocating buffer.
6196         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
6197         syscalls, too.
6199         * nscd/connections.c (nscd_init): Clean up fcntl call.
6201         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
6202         SOCK_NONBLOCK if possible.
6204         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
6205         SOCK_CLOEXEC if available.
6207         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
6208         __libc_clntudp_bufcreate_internal.
6209         * include/sys/socket.h: Declare __have_sock_cloexec.
6210         * socket/Makefile (aux): Add have_sock_cloexec.
6211         * socket/have_sock_cloexec.c: New file.
6212         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
6213         __libc_clntudp_bufcreate.
6214         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
6215         which takes an additional parameter.  Create socket with non-blocking
6216         mode and close-on-exec flag set, if wanted.
6217         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
6218         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
6219         instead of clntudp_create.  The socket has already the close-on-exec
6220         flag set if SOCK_CLOEXEC is defined.
6222 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
6224         * sysdeps/unix/sysv/linux/kernel-features.h: Define
6225         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
6226         appropriate.
6227         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
6228         non-blocking mode by using socket, paccept, and inotify_init1.
6230         * Versions.def (glibc): Add GLIBC_2.9.
6231         * io/Makefile (routines): Add dup3 and pipe2.
6232         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
6233         * io/dup3.c: New file.
6234         * io/pipe2.c: New file.
6235         * posix/unistd.h: Declare dup3 and pipe2.
6236         * socket/Makefile (routines): Add paccept.
6237         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
6238         * socket/paccept.c: New file.
6239         * socket/sys/socket.h: Declare paccept.
6240         * sysdeps/unix/syscalls.list: Add entry for dup3.
6241         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
6242         epoll_create2 and inotify_init1.
6243         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
6244         * sysdeps/unix/sysv/linux/paccept.c: New file.
6245         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
6246         possible.
6247         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
6248         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
6249         inotify_init1, and pipe2 entries.
6250         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
6251         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
6252         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
6253         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
6254         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
6255         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
6256         SOCK_NONBLOCK.
6257         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
6258         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
6259         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
6260         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
6261         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
6262         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
6263         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
6264         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
6265         EPOLL_NONBLOCK.  Declare epoll_create2.
6266         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
6267         EFD_NONBLOCK.
6268         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
6269         IN_NONBLOCK.  Declare inotify_init1.
6270         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
6271         SFD_NONBLOCK.
6272         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
6273         TFD_NONBLOCK.
6275         * elf/elf.h: Define AT_EXECFN.
6276         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
6277         LD_ORIGIN_PATH.
6278         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
6279         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
6280         if __ASSUME_AT_EXECFN is defined.
6281         (_dl_aux_init): Handle AT_EXECFN.
6282         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
6283         for 2.6.27 and up.
6284         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
6285         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
6286         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
6287         _dl_execfn if available and avoid compatibility code if
6288         __ASSUME_AT_EXECFN is defined.
6290         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
6291         _dl_discover_osversion only for older kernels.
6293 2008-07-22  Roland McGrath  <roland@frob.com>
6295         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
6297 2008-07-21  Roland McGrath  <roland@frob.com>
6299         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
6300         returned too much data out of line.
6302 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
6304         * locale/setlocale.c (setname): Remove inline to avoid compiler
6305         warning.
6307         [BZ #6712]
6308         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
6310 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
6312         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
6313         doesn't manage to write anything, fail.
6315         * malloc/hooks.c (__malloc_check_init): Remove printf.
6317 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6319         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
6321 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
6323         * nscd/connections.c (main_loop_poll): Fix handling of read errors
6324         from inotify.
6325         (main_loop_epoll): Likewise.
6327 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
6329         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
6331         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
6332         if DEBUG is defined.
6334         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
6335         query.  Adjust buffer size computation for padding.
6337 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
6339         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
6340         * stdio-common/tst-setvbuf1.c: New file.
6341         * stdio-common/tst-setvbuf1.expect: New file.
6343         [BZ #6719]
6344         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
6345         when selecting fully-buffered stream.
6346         Patch by Wang Xin <wxinee@gmail.com>.
6348 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6350         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
6351         (__open_2): New function.
6352         (__open64_2): New alias to __open_2.
6353         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
6354         (__openat_2): New function.
6355         (__openat64_2): New alias to __openat_2.
6357 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
6359         [BZ #6723]
6360         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
6362 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6364         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
6365         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
6366         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
6367         __hurd_dfail.
6368         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
6369         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
6370         * sysdeps/mach/hurd/send.c (__send): Likewise.
6371         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
6372         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
6374 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6376         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
6377         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
6378         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
6379         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
6380         * hurd/get-host.c (_hurd_get_host_config): Likewise.
6381         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
6383 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
6385         [BZ #6657]
6386         * time/strptime_l.c: Don't clear s.era_cnt after successful match
6387         of %EY.
6388         Patch by Petr Baudis.
6390 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
6392         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
6393         Patch by Peter Jones <pjones@redhat.com>.
6395 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
6397         [BZ #6654]
6398         * stdlib/canonicalize.c (__realpath): readlink can write too much
6399         into the buffer on platforms without PATH_MAX.
6401 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
6403         [BZ #6653]
6404         * posix/tst-regex.c (main): Rename to...
6405         (do_test): ... this. Remove cmdline option processing.
6406         (TIMEOUT): Define.
6407         (TEST_FUNCTION): Define.
6408         (CMDLINE_OPTIONS): Define.
6410 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
6412         [BZ #5210]
6413         * configure.in: Add -Werror to -fstack-protector test to catch
6414         unsupported architectures.
6415         Patch by Gilles Esponasse <g.esp@free.fr>.
6417 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
6419         * stdlib/tst-setcontext.c: Set back_in_main before exit if
6420         getcontext returns ENOSYS.
6422 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
6424         * nscd/connections.c (main_loop_poll): Fix test for read error.
6425         (main_loop_epoll): Likewise.
6427 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
6429         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
6430         better place so it is not called when nscd is used.
6432         * nscd/connections.c: Also recognize and handle changes to the
6433         resolver configuration file.
6435 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
6437         * time/strftime.c: Pass reference to tzset_called around to handle
6438         recursive calls.
6440         [BZ #6612]
6441         * time/strftime.c (__strftime_internal): Call tzset() only
6442         when printing timezone-dependent values.
6443         Based on a patch by Petr Baudis <pasky@suse.cz>.
6445         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
6446         unconditionally use second gaih_getanswer_slice result.
6448         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
6449         (getaddrinfo): RES must always be non-NULL.
6451 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
6453         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
6454         cr[34] registers.
6455         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6456         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6457         Likewise.
6458         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
6459         register.
6461 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
6463         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
6464         fields.
6465         * nscd/connections.c (inotify_fd): New variable.
6466         (nscd_init): Try to open an inotify descriptor.
6467         If successful, watch files for databases using inotify instead of
6468         having prune threads stat the files.
6469         (nscd_run_prune): Recognize clear_cache flag being set and call
6470         prune_cache appropriately.
6471         (main_loop_poll): Add inotify descriptor to wait set and handle the
6472         reported changes.
6473         (main_loop_epoll): Likewise.
6474         * nscd/cache.c (prune_cache): Don't stat files for databases if
6475         inotify is used.
6476         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
6477         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
6479         * nscd/grpcache.c (cache_addgr): Correctly compute size of
6480         fixed-size portion of the record.
6481         * nscd/servicescache.c (cache_addserv): Likewise.
6482         * nscd/pwdcache.c (cache_addpw): Likewise.
6483         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6485 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
6487         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
6488         out we don't use uninitialized memory.
6490         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
6491         the client.
6493 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
6495         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
6496         ignore T_DNAME messages.
6497         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
6499 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
6501         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
6502         Avoid segfault if first GETC returns eof/'\0'/'\n'.
6504 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
6506         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
6507         instead of portstr to nscd_getserv_r.  Patch by
6508         Roman Kagan <rkagan@mail.ru>.
6510 2008-05-26  Jim Meyering  <meyering@redhat.com>
6512         Remove more useless "if" tests before "free".
6513         * include/inline-hashtab.h (htab_delete): Likewise.
6514         * libio/freopen.c (freopen): Likewise.
6515         * libio/freopen64.c (freopen64): Likewise.
6516         * locale/programs/ld-collate.c (collate_read): Likewise.
6517         * misc/fstab.c (libc_freeres_fn): Likewise.
6518         * posix/glob.c (globfree): Likewise.
6520 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
6522         * string/Makefile (strop-tests): Add memmem.
6523         * string/test-memmem.c: New file.
6524         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
6525         (test_init): Size buf1 according to BUF1PAGES.
6527 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
6529         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
6530         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
6531         (CFLAGS-scanf17.c): New.
6532         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
6533         * stdio-common/scanf15.c (main): Likewise.
6534         * stdio-common/scanf16.c: New file.
6535         * stdio-common/scanf17.c: New file.
6537 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
6539         * resolv/res_send.c (send_dg): If we already have one of two
6540         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
6541         use the one answer insted of failing.
6543 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
6545         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
6546         being executed on PowerPC as the expected result exceeds IBM
6547         long double 128 __LDBL_MAX__.
6549 2008-05-21  Roland McGrath  <roland@redhat.com>
6551         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
6553         * Makefile (check-data): Use $(abi-name) before other guesses.
6554         Look in $(add-ons) dirs before scripts/data/.
6555         * elf/Makefile (check-data): Likewise.
6557         * scripts/soversions.awk: Grok ABI line.
6558         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
6559         Emit definition for abi-name variable.
6561 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
6563         * string/endian.h: Define new fixed-size hto* and *toh macros only
6564         if [__USE_BSD].
6566         * iconvdata/Depend: Add localedata.
6568 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6570         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
6572 2008-05-08  David S. Miller  <davem@davemloft.net>
6574         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
6575         HIDDEN_JUMPTARGET.
6576         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6577         (__SYSCALL_CLOBBERS): Remove %g* registers.
6578         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6579         (__SYSCALL_CLOBBERS): Likewise.
6580         * scripts/data/localplt-sparc-linux-gnu.data: New file.
6581         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
6583 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
6585         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6586         (CALL_ERRNO_LOCATION): Define.
6587         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6588         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6589         (CALL_ERRNO_LOCATION): Define.
6590         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6591         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
6592         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
6594 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
6596         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
6597         variable.
6599 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
6601         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
6602         (FIRST_FRAME_POINTER): Define.
6604 2008-05-09  David S. Miller  <davem@davemloft.net>
6606         * sysdeps/sparc/sparc64/backtrace.c: New file.
6608 2008-05-14  David S. Miller  <davem@davemloft.net>
6610         * sysdeps/sparc/machine-gmon.h: New file.
6611         * sysdeps/sparc/sparc-mcount.S: Likewise.
6612         * sysdeps/sparc/Makefile: Add sparc-mcount target to
6613         sysdep_routines in gmon directory.
6615 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
6617         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
6619 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
6621         * resolv/res_query.c (__libc_res_nquery): In case one of two
6622         answer was too short don't try to read that answer's header.
6624         * resolv/res_send.c (send_dg): In case of timeout and there are
6625         two queries and one has been answered, return value indicating
6626         success.
6628 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
6630         * nscd/cache.c (cache_add): Take additional parameter specifying
6631         whether this is in response of a cache refill.  Check alignment
6632         of package data.  Revamp waking of pruning thread.
6633         (prune_cache): Small optimization.
6634         * nscd/nscd.h: Adjust cache_add prototypes.
6635         * nscd/aicache.c: Adjust cache_add calls.
6636         * nscd/grpcache.c: Likewise.
6637         * nscd/hstcache.c: Likewise.
6638         * nscd/initgrcache.c: Likewise.
6639         * nscd/pwdcache.c: Likewise.
6640         * nscd/servicescache.c: Likewise.
6641         * nscd/connections.c (restart): Really disable cache use before
6642         exec attempt.  If it fails, reenable cache.
6643         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
6644         time to max to be able to notice concurrent cache additions.  Unlock
6645         prune_lock while performing gc.  Afterwards compute wakeup time with
6646         current wakeup_time value in mind.
6648 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
6650         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
6652         * nscd/mem.c (gc): Correctly determine highest used array element
6653         in mark.
6655         * nscd/mem.c (markrange): Add assert to check entries are all
6656         aligned.  Small cleanup in bitmap use.
6658         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
6659         blockoff of type nscd_ssize_t.
6660         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
6661         (mempoll_alloc): Record block offset and not address.
6663         * nscd/mem.c (gc): Fix test for stack overuse.
6665         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
6666         more asserts.
6668         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
6669         entry is available, believe it.
6671         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
6672         no answers return NSS_STATUS_NOTFOUND.
6673         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
6674         buffer does not have any content.
6676 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
6678         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
6680         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
6681         lookup, don't assign canon unconditionally.
6683 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6685         * string/Makefile (distribute): Add str-two-way.h.
6687 2008-03-29  Eric Blake  <ebb9@byu.net>
6689         Rewrite string searches to O(n) rather than O(n^2).
6690         * string/str-two-way.h: New file.  For linear fixed-allocation
6691         string searching.
6692         * string/memmem.c: New implementation.
6693         * string/strstr.c: New implementation.
6694         * string/strcasestr.c: New implementation.
6696 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
6698         * posix/regcomp.c (optimize_utf8): Add a note on why we test
6699         opr.ctx_type.
6700         (calc_first): Initialize constraint field.
6701         (duplicate_node_closure): Use it instead of special casing ANCHORS.
6702         Use search_duplicated_node to avoid loops.  Fix grammar.
6703         (duplicate_node): Merge constraint field for all node types.
6704         (calc_eclosure_iter): Look at constraint field for all node types.
6705         * posix/regex_internal.c (create_cd_newstate): Don't look at
6706         create_cd_newstate.
6708 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6710         [BZ #6428]
6711         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
6713         [BZ #6442]
6714         * string/endian.h: Add macros for fixed-size endian conversion.
6715         * bits/byteswap.h: Allow inclusion from <endian.h>.
6716         * sysdeps/i386/bits/byteswap.h: Likewise.
6717         * sysdeps/ia64/bits/byteswap.h: Likewise.
6718         * sysdeps/s390/bits/byteswap.h: Likewise.
6719         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6720         * string/Makefile (tests): Add tst-endian.
6721         * string/tst-endian.c: New file.
6723         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
6724         Patch by Reuben Thomas.
6726 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
6728         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
6730 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6732         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
6734         [BZ #6461]
6735         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
6736         Add missing braces.
6737         (BODY for __gconv_transform_internal_ascii): Likewise.
6739         [BZ #6472]
6740         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
6741         to be treated like link-local addresses.
6742         (match_prefix): Don't treat IPv4 loopback address special when
6743         converting to v4 mapped addressed.
6745         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
6746         if necessary.
6747         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
6748         * posix/tst-rfc3484-2.c: Likewise.
6749         * posix/tst-rfc3484-3.c: Likewise.
6751         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
6752         and SCTP.
6754         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
6756         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
6758         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
6760 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
6762         * po/lt.po: New file.  From Lituanian translation team.
6764 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
6766         Introduce TLS descriptors for i386 and x86_64.
6767         * include/inline-hashtab.h: New file, copied from 2005's
6768         libiberty, with fix for memory leak imported afterwards by
6769         Glauber de Oliveira Costa.
6770         * elf/tlsdeschtab.h: New file.
6771         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
6772         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
6773         (CHECK_STATIC_TLS): Move to...
6774         * elf/dynamic-link.h: ... this file.
6775         (TRY_STATIC_TLS): New macro.
6776         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
6777         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
6778         R_386_TLS_DESC): Define.
6779         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
6780         binutils.
6781         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
6782         R_X86_64_TLSDESC): Define.
6783         (R_386_NUM, R_X86_64_NUM): Adjust.
6784         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
6785         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6786         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6787         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6788         release tlsdesc_table.
6789         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
6790         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
6791         (elf_machine_rel): Handle R_386_TLS_DESC.
6792         (elf_machine_rela): Likewise.
6793         (elf_machine_lazy_rel): Likewise.
6794         (elf_machine_lazy_rela): Likewise.
6795         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
6796         * sysdeps/i386/dl-tlsdesc.S: New file.
6797         * sysdeps/i386/dl-tlsdesc.h: New file.
6798         * sysdeps/i386/tlsdesc.c: New file.
6799         * sysdeps/i386/tlsdesc.sym: New file.
6800         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
6801         tlsdesc_table.
6802         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
6803         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6804         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6805         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6806         release tlsdesc_table.
6807         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
6808         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
6809         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
6810         (elf_machine_rel): Handle R_X86_64_TLSDESC.
6811         (elf_machine_rela): Likewise.
6812         (elf_machine_lazy_rel): Likewise.
6813         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
6814         (__tls_get_addr): Do not declare for non-shared compiles.
6815         * sysdeps/x86_64/dl-tlsdesc.S: New file.
6816         * sysdeps/x86_64/dl-tlsdesc.h: New file.
6817         * sysdeps/x86_64/tlsdesc.c: New file.
6818         * sysdeps/x86_64/tlsdesc.sym: New file.
6819         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
6820         tlsdesc_table for both 32- and 64-bit structs.
6822 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6824         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
6825         its own function.  This reduces the frame setup costs and more.
6827 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
6829         [BZ #3406]
6830         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
6831         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
6833 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6835         * io/openat.c (__openat_2): Also pass fd to __openat.
6836         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
6837         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
6839         * string/tester.c (test_memcmp): Add a few more tests.
6840         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
6842 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6844         * nscd/cache.c (cache_add): Before returning with failure and this
6845         is the first use of the record, mark it as unusable.
6846         * nscd/aicache.c: Don't touch the dataset after cache_add returns
6847         reporting a failure.
6848         * nscd/grpcache.c: Likewise
6849         * nscd/hstcache.c: Likewise.
6850         * nscd/initgrcache.c: Likewise.
6851         * nscd/pwdcache.c: Likewise.
6852         * nscd/servicescache.c: Likewise.
6854 2008-05-10  Roland McGrath  <roland@redhat.com>
6856         [BZ #6505]
6857         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
6859 2008-05-08  David S. Miller  <davem@davemloft.net>
6861         * misc/truncate64.c (truncate64): Use __truncate not truncate.
6863         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
6864         (__ieee754_y0l): Likewise.
6865         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
6866         (__ieee754_y1l): Likewise.
6867         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
6868         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
6869         frexpl and ldexpl.  math_private.h provides them and the latter
6870         is not even used.
6871         (__log1pl): Use __frexpl.
6873 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6875         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
6876         prototypes.
6877         * include/arpa/nameser_compat.h: Define T_UNSPEC.
6878         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
6879         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
6880         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
6881         af==AF_UNSPEC.
6882         (_nss_nis_gethostbyname4_r): New function.
6883         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
6884         Change to also handle af==AF_UNSPEC.
6885         (get_tablename): New function.  Use it to avoid duplication.
6886         (_nss_nisplus_gethostbyname4_r): New function.
6887         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
6888         available.
6889         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
6890         * nss/nss.h: Define struct gaih_addrtuple.
6891         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
6892         af==AF_UNSPEC.
6893         (_nss_files_gethostbyname4_r): New function.
6894         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
6895         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
6896         calls.
6897         * resolv/res_query.c (__libc_res_nquery): Take two additional
6898         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
6899         look up IPv4 and IPv6.
6900         Change all callers.
6901         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
6902         for an additional query and answer buffer.  Pass to send_vc and
6903         send_dg.
6904         (send_vc): Send possibly two requests and receive two answers.
6905         (send_dg): Likewise.
6906         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
6907         __libc_res_nquery.
6908         (_nss_dns_gethostbyname4_r): New function.
6909         (gaih_getanswer_slice): Likewise.
6910         (gaih_getanswer): Likewise.
6911         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
6912         __libc_res_nquery call.
6913         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6914         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
6915         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
6916         available.
6918 2008-05-05  David S. Miller  <davem@davemloft.net>
6920         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6921         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6923 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6925         Fix termios bit macros.
6926         Move *DLY definitions where they belong, in termios.h.
6927         Add *[0-3] definitions.
6928         Fixes confusion between VT and FF.
6929         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6930         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6931         are already defined to avoid collision with termios.h.
6932         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6933         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6934         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6935         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6936         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6937         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6938         VTDLY, VT0, VT1): New macros.
6939         [__USE_GNU] (OLCUC): Change value of macro.
6940         [__USE_XOPEN] (OFILL): New macro.
6941         [__USE_BSD] (CRTSCTS): Change value.
6942         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6943         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6944         (B7200, B14400, B28800, B76800): New macros.
6946 2008-05-01  David S. Miller  <davem@davemloft.net>
6948         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6949         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6950         (gen-as-const-headers): Add it.
6951         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6952         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6953         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6954         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6956         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6957         six system call parameters.
6958         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6960 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
6962         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6963         RUSAGE_LWP.
6964         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6965         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6967 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
6969         * stdlib/tst-setcontext.c: Include unistd.h.
6971 2008-04-25  David S. Miller  <davem@davemloft.net>
6973         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6974         Pass "union semun" properly in to sys_ipc, it must be passed
6975         by value, not by reference.
6977 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
6979         * nscd/Makefile (nscd-cflags): Set back to -fpie.
6980         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6981         * nscd/connections.c (mem_in_flight): Likewise.
6983         * nscd/nscd.h (dbs): Make hidden.
6985         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6986         Avoid returning -1, return 0 instead.
6988 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
6990         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6992 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
6994         [BZ #5209]
6995         * sysdeps/unix/sysv/linux/times.c: New file.
6997         [BZ #5381]
6998         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6999         mem_in_flight_list variables.  Add new parameter to mempool_alloc
7000         prototype.
7001         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
7002         appropriate mem_in_flight element.
7003         (gc): Take allocations which have not yet been committed to the
7004         database into account.
7005         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
7006         Reset mem_in_flight before returning.
7007         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
7008         cue it up in mem_in_flight_list.
7009         * nscd/aicache.c: Adjust mempool_alloc call.
7010         * nscd/grpcache.c: Likewise.
7011         * nscd/hstcache.c: Likewise.
7012         * nscd/initgrcache.c: Likewise.
7013         * nscd/pwdcache.c: Likewise.
7014         * nscd/servicescache.c: Likewise.
7015         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
7016         of -fpie.
7018         * nscd/connections.c (handle_request): Provide better error message
7019         in case SELinux forbids the service.
7021         * version.h (VERSION): Bump to 2.8.90.
7023 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
7025         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
7027 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
7029         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
7030         Also use for 32-bit.
7031         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
7032         __nextafter instead of nextafter to avoid local PLT.
7033         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
7034         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7036         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
7038         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
7039         __fe_nomask_env.
7040         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
7041         <fenv_libc.h> instead of <fenv.h>.
7042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
7043         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
7045         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
7047         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
7048         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
7049         function from fegetexcept and make old name weak alias.
7050         * include/fenv.h: Declare __fegetexcept.
7051         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
7052         fegetexcept.
7053         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
7054         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
7055         to fetestexcept.
7056         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
7057         instead of frexpl to avoid local PLT.
7058         * math/s_significandl.c (__significandl): Use __ilogbl instead of
7059         ilogbl to avoid local PLT.
7060         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
7061         instead of ldexpl to avoid local PLT.
7062         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
7063         __roundl not roundl to avoid local PLT.
7064         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
7065         local PLTs.  Use __sincosl instead of separate sinl and cosl
7066         calls.
7067         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7069         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
7070         version for ppc64 to 2.4.21 since without it makecontext will fail.
7072         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
7073         to the ABI in use.
7074         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
7075         .__tls_get_addr.
7076         [__powerpc64__] (TLS_GD): Likewise.
7078 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
7080         [BZ #4997]
7081         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
7082         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
7083         mantissa.
7084         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
7085         Likewise.  Also account for when x is an odd number between 2^52
7086         and 2^53-1.
7087         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
7088         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
7089         * math/libm-test.inc (lround_test, llround_test): Added test cases to
7090         detect aforementioned erroneous conditions.
7092 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
7094         * configure.in: Check for -fno-section-anchors in addition to
7095         -fno-toplevel-reorder.
7097 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
7099         * include/features.h (__GLIBC_MINOR__): Bump to 8.
7101         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
7102         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
7103         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
7104         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
7105         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
7106         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
7108 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
7110         [BZ #5443]
7111         * time/era.c: Transform __libc_setlocale_lock into rwlock.
7112         * time/alt_digit.c: Likewise.
7113         * wcsmbs/wcsmbsload.c: Likewise.
7115 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
7117         * version.h (VERSION): Bump to 2.8.
7119         * timzeone/asia: Update from tzdata2008b.
7120         * timezone/backward: Likewise.
7121         * timezone/europe: Likewise.
7122         * timezone/northamerica: Likewise.
7123         * timezone/southamerica: Likewise.
7124         * timezone/iso3166.tab: Likewise.
7125         * timezone/leapseconds: Likewise.
7126         * timezone/zone.tab: Likewise.
7127         * timezone/private.h: Update from tzcode2008a.
7128         * timezone/zdump.c: Likewise.
7129         * timezone/zic.c: Likewise.
7131 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
7133         [BZ #5741]
7134         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
7135         Define additonal Data Cache Block instruction macros.
7136         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
7137         Replace dcbst with dcbf and sync with sync/isync.
7139 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
7141         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
7142         Always set ELF_RTYPE_CLASS_PLT.
7143         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
7145 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
7147         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
7148         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
7149         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
7150         For ISA 2.01 and later replace mftb with mfspr 268.
7152 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
7154         [BZ #5768]
7155         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
7156         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
7158 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
7160         [BZ #5768]
7161         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
7162         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
7163         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
7164         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
7166 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
7168         * stdlib/tst-makecontext.c (othervar): New variable.
7169         (cf): Test sign extending the argument to long.
7171 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
7173         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
7174         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
7175         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
7176         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
7177         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
7178         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
7179         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
7181 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
7183         * elf/Makefile (tests): Substitute tests-vis-yes here.
7184         (tests-vis-yes): Delete.
7185         (modules-name, modules-vis-yes): Similarly.
7187 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
7189         [BZ #4407]
7190         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7191         Preserve sign in signgamp when x is zero.
7193 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
7195         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
7196         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
7197         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
7198         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
7199         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
7200         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
7202 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
7204         [BZ #4314]
7205         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
7206         buffers.
7208         [BZ #5209]
7209         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
7210         a reserved error value.
7212         * stdlib/tst-makecontext.c: Change parameter to cf to negative
7213         value to check for correct sign extension.
7215         [BZ #5436]
7216         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
7217         Copy 64-bit parameter values even though this is not required in
7218         the standard.
7220         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
7221         PC save.
7223 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
7225         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
7226         PC save.
7228 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
7230         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
7232 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
7234         [BZ #5998]
7235         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
7236         in line-buffered stream failed.
7237         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
7239 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
7241         [BZ #6024]
7242         * scripts/abi-versions.awk: If the version specified by
7243         --enable-oldest-abi is older than the first version for this
7244         architecture, use the default version.
7246         * locale/programs/ld-collate.c (collate_read): Ignore script lines
7247         as well when ignoring the whole category.
7249 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
7251         [BZ #6042]
7252         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
7253         ETHERTYPE_* definitions.
7254         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
7256 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
7258         * stdlib/mbtowc.c (__no_r_state): Remove.
7259         (mbtowc): New static state variable.  Use it instead of
7260         __no_r_state.
7261         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
7262         (__wctomb_state): New hidden variable.
7263         (wctomb): Use __wctomb_state instead of __no_r_state.
7264         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
7265         (__wctomb_state): New extern decl.
7266         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
7268 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
7270         [BZ #5475]
7271         * resolv/res_init.c: Handle scope IDs in resolv.conf.
7273 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
7275         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
7277 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
7279         * po/nl.po: Update from translation team.
7281 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
7283         [BZ #6007]
7284         * string/strfry.c: Handle empty strings again.
7286 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
7288         [BZ #5443]
7289         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
7290         before looking for translation.
7291         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
7292         * locale/freelocale.c: Likewise.
7293         * locale/newlocale.c: Likewise.
7294         * locale/setlocale.c: Likewise.
7295         Based partially on a patch by ryo@np.css.fujitsu.com.
7297 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
7299         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
7300         acquiring wrlock.  Do conv_tab allocation while holding lock.
7301         * intl/Makefile: Add rules to build and run tst-gettext6.
7302         * intl/tst-gettext6.c: New test.
7303         * intl/tst-gettext6.sh: New file.
7305 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
7307         * po/nl.po: Update from translation team.
7309         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
7310         provided through st_blksize, try the default size before giving up.
7312 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
7314         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
7316         [BZ #5939]
7317         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
7319         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
7320         error message.  POSIX today does not require the messages to be in
7321         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
7323         [BZ #5979]
7324         * sunrpc/auth_unix.c: Unify printed strings.
7325         * sunrpc/clnt_tcp.c: Likewise.
7326         * sunrpc/clnt_udp.c: Likewise.
7327         * sunrpc/clnt_unix.c: Likewise.
7328         * sunrpc/svc_tcp.c: Likewise.
7329         * sunrpc/svc_udp.c: Likewise.
7330         * sunrpc/svc_unix.c: Likewise.
7331         * sunrpc/xdr.c: Likewise.
7332         * sunrpc/xdr_array.c: Likewise.
7333         * sunrpc/xdr_rec.c: Likewise.
7334         * sunrpc/xdr_ref.c: Likewise.
7335         * locale/programs/ld-time.c (time_finish): Unify messages.
7336         * locale/programs/locfile.c (handle_copy): Fix typo.
7337         * nscd/nscd.c (options): Fix typo.
7339         [BZ #5995]
7340         * stdlib/strtod_l.c: Use correct sign for result in one more
7341         underflow case.
7342         Patch by Eric Blake <ebb9@byu.net>.
7344 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
7346         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
7347         and creat system calls.
7348         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
7349         call.
7350         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
7351         system calls.
7352         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
7353         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7354         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7356 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
7358         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
7359         <linux/limits.h> has defined it.
7360         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
7361         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
7362         headers.
7363         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
7364         it instead of ARG_MAX.
7366 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
7368         * posix/gai.conf: Fix comment for scope nullbits.
7369         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
7370         default to 128 bits for v4 mapped addresses.
7372 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7374         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
7375         ptrace call to get the ieee_instruction_pointer from the kernel.
7376         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
7377         ptrace call to set the ieee_instructtion_pointer.
7378         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
7379         Add comment that ieee_instruction_pointer is always 0.
7381 2008-03-09  Andreas Jaeger  <aj@suse.de>
7383         [BZ #5857]
7384         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
7385         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
7386         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
7388         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
7389         (rint_test): Likewise.
7391 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
7393         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
7394         call.
7395         (__nisfind_server): Similar for open readColdStartFile call.
7396         Patch partially by Jim Meyering.
7397         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
7398         around internal_setent call.
7400         * po/vi.po: New Vietnamese translation.
7402         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
7403         ADJ_OFFSET_SS_READ.
7405         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
7406         remove CLONE_STOPPED.
7408 2008-02-10  Jim Meyering  <meyering@redhat.com>
7410         Remove useless "if" before "free":
7411         * elf/ldconfig.c (parse_conf_include): Likewise.
7412         * gmon/gmon.c (weak_alias): Likewise.
7413         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
7414         * inet/rcmd.c (__validuser2_sa): Likewise.
7415         * intl/bindtextdom.c (set_binding_values): Likewise.
7416         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
7417         * libio/genops.c (save_for_backup): Likewise.
7418         * libio/wgenops.c (save_for_wbackup): Likewise.
7419         * locale/programs/ld-collate.c (collate_read): Likewise.
7420         * locale/programs/linereader.c (get_string): Likewise.
7421         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
7422         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
7423         * resolv/res_debug.c (do_section): Likewise.
7424         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
7425         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
7426         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
7427         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
7428         * time/tzset.c (tzset_internal): Likewise.
7430 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
7432         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
7433         of ASSEMBLER.
7435 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
7437         [BZ #5903]
7438         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
7439         not stream for output file.  Open output file here.
7440         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
7441         and output file name.
7442         (process_fd): Likewise.
7443         (process_file): Likewise.
7444         (main): Adjust callers of changed functions.
7445         * iconv/iconv_prog.h: Adjust prototype.
7447 2008-03-09  Andreas Jaeger  <aj@suse.de>
7449         [BZ #5753]
7450         * sysdeps/ia64/ieee754.h: Use protected namespace
7451         __BIG_ENDIAN/__LITTLE_ENDIAN.
7452         * sysdeps/ieee754/ieee754.h: Likewise.
7453         Patch by Aurelien Jarno <aurelien@aurel32.net>.
7455 2008-03-08  Roland McGrath  <roland@frob.com>
7457         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
7458         ignore a signal that came from a machine exception, treat it as a
7459         fatal core-dump signal instead.
7460         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7462         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
7463         Clear DF bit in thread state's eflags.
7464         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7466 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
7468         [BZ #5774]
7469         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
7470         of NAN(...) sequence.
7471         * stdlib/Makefile (tests): Add tst-strtod6.
7472         * stdlib/tst-strtod6.c: New file.
7474         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
7476         [BZ #5762]
7477         * posix/getopt.c (_getopt_internal_r): Clarify error message by
7478         putting offending option character in quotes.  Clean up error
7479         messages.
7480         * po/be.po: Adjust msgstr in translation file.
7481         * po/bg.po: Likewise.
7482         * po/ca.po: Likewise.
7483         * po/cs.po: Likewise.
7484         * po/da.po: Likewise.
7485         * po/de.po: Likewise.
7486         * po/es.po: Likewise.
7487         * po/fr.po: Likewise.
7488         * po/hr.po: Likewise.
7489         * po/ko.po: Likewise.
7490         * po/nl.po: Likewise.
7491         * po/rw.po: Likewise.
7492         * po/sk.po: Likewise.
7493         * po/sv.po: Likewise.
7494         * po/tr.po: Likewise.
7495         * po/zh_CN.po: Likewise.
7496         * po/zh_TW.po: Likewise.
7498         [BZ #5760]
7499         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
7500         Patch by Roland Bless <roland@bless.de>.
7502         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
7503         .o file.
7504         * elf/Makefile (routines): Add dl-sysdep.
7505         (elide-routines.os): Likewise.
7507 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
7509         [BZ #5786]
7510         * elf/dl-sysdep.c: Undefine ROUND after use.
7511         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
7512         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
7513         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
7514         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
7515         to ...
7516         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
7517         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
7518         if necessary.
7519         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
7521         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
7522         _dl_tls_get_addr_soft element.
7523         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
7524         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
7525         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
7526         GLRO.
7527         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7528         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
7529         of internal_function.
7531         * stdlib/Makefile (aux): Add tens_in_limb.
7532         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
7533         * stdlib/tens_in_limb.c: ...here.  New file.
7535         [BZ #5778]
7536         * sysdeps/unix/sysv/linux/pathconf.h: Declare
7537         __statfs_chown_restricted.
7538         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
7539         for _PC_CHOWN_RESTRICTED.
7540         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
7541         Implement __statfs_chown_restricted.
7542         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
7543         _POSIX_CHOWN_RESTRICTED value to zero.
7544         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
7545         defined to zero.
7547         * sysdeps/x86_64/rtld-memset.c: New file.
7549 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
7551         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
7553         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
7554         Barcelona machine.  Make default fall through branch of
7555         __x86_64_preferred_memory_instruction check as the integer code path.
7557 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7559         * sysdeps/x86_64/cacheinfo.c
7560         (__x86_64_preferred_memory_instruction): New variable.
7561         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7563         * sysdeps/x86_64/memset.S: Rewrite.
7565 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
7567         * include/stdio.h (__asprintf_chk, __dprintf_chk,
7568         __obstack_printf_chk): New prototypes.
7569         (__vasprintf_chk, __vdprintf_chk,
7570         __obstack_vprintf_chk): Likewise.
7571         Add libc_hidden_proto.
7572         * libio/obprintf.c
7573         (_IO_obstack_jumps): No longer static, add attribute_hidden.
7574         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
7575         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7576         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
7577         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
7578         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7579         __obstack_vprintf_chk): New prototypes.
7580         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
7581         obstack_vprintf): New inlines.
7582         * debug/dprintf_chk.c: New file.
7583         * debug/vdprintf_chk.c: New file.
7584         * debug/asprintf_chk.c: New file.
7585         * debug/vasprintf_chk.c: New file.
7586         * debug/obprintf_chk.c: New file.
7587         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
7588         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
7589         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
7590         @@GLIBC_2.8.
7591         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
7592         vdprintf_chk and obprintf_chk, set CFLAGS for them.
7593         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
7594         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
7595         libc_hidden_proto.
7596         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
7597         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
7598         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
7599         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
7600         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
7601         @@GLIBC_2.8.
7602         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
7603         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
7604         obstack_vprintf_chk.
7605         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
7606         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
7607         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
7608         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
7609         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
7610         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
7612 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
7614         [BZ #5779]
7615         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
7616         Patch by Roy Marples <roy@marples.name>.
7618         [BZ #5736]
7619         * malloc/malloc.c: Fix typo in comment.
7621         [BZ #5627]
7622         * locale/iso-639.def: Add Shuswap.
7624 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
7626         [BZ #5790]
7627         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
7628         overwrite *h_errnop/*errnop values from getanswer_r in case of
7629         failure.
7631 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
7633         [BZ #5818]
7634         * nscd/connections.c (dbs): Add initializers for .suggested_module.
7635         (verify_persistent_db): Remove one unnecessary test and add a new one
7636         for bad configuration.
7637         (nscd_init): Improve error reported when persistent database cannot
7638         be reused.
7639         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
7640         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
7641         .suggested_module and .max_db_size and case config file says the
7642         values are zero.
7643         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
7645         [BZ #5854]
7646         * nis/ypclnt.c (yp_order): Fix handling of return value of
7647         do_ypcall_tr call.
7648         Patch by Jeff Moyer <jmoyer@redhat.com>.
7650         * po/fr.po: Update from translation team.
7652 2008-02-22  Andreas Jaeger  <aj@suse.de>,
7653             Carlos O'Donell <carlos@systemhalted.org>
7655         [BZ #5012]
7656         * FAQ.in: Describe why glibc needs to be compiled with
7657         optimization.
7659 2008-02-19  Roland McGrath  <roland@redhat.com>
7661         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
7663 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
7665         [BZ #5737]
7666         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
7667         __USE_MISC is defined.
7669 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
7671         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
7672         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
7673         sys/timerfd.h.
7674         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
7675         timerfd_gettime, timerfd_settime.
7676         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
7677         timerfd_gettime, timerfd_settime for GLIBC_2.8.
7679 2008-02-08  Roland McGrath  <roland@redhat.com>
7681         * elf/elf.h (NT_PPC_SPE): New macro.
7683 2008-02-06  Roland McGrath  <roland@redhat.com>
7685         * Makerules ($(common-objpfx)sysd-rules):
7686         Depend on $(sysdep-makeconfigs).
7688 2008-01-31  Roland McGrath  <roland@redhat.com>
7690         [BZ #5442]
7691         * configure.in: Use -print-file-name if it yields a directory,
7692         for each of include and include-fixed.
7693         * configure: Regenerated.
7695         * Makeconfig (sysd-rules-targets): New variable.
7696         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
7697         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
7699 2008-01-30  Roland McGrath  <roland@redhat.com>
7701         * manual/libc.texinfo: Update back-cover text.
7703         * elf/elf.h (NT_386_TLS): New macro.
7705 2008-01-29  Roland McGrath  <roland@redhat.com>
7707         * Makeconfig (sysd-rules-patterns): New variable.
7708         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
7709         (check-inhibit-asm): New canned sequence, replaces ...
7710         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
7711         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
7712         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
7713         (CFLAGS-rtld): Variable removed.
7715 2008-01-24  Roland McGrath  <roland@redhat.com>
7717         * configure.in: Let configure fragments set base_os.
7718         * configure: Regenerated.
7720 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
7722         * po/ko.po: Update from translation team.
7724 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
7726         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
7728 2008-01-12  Andreas Jaeger  <aj@suse.de>
7730         [BZ #5040]
7731         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
7732         Add EPOLLRDHUP.
7734 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7736         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
7737         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
7738         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
7740 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
7742         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
7743         * elf/dl-close.c (_dl_close): Check for it.
7744         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
7745         (_dl_allocate_static_tls): Likewise.
7746         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
7747         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
7748         to it.
7749         * elf/tst-tls16.c: New file.
7750         * elf/tst-tlsmod16a.c: New file.
7751         * elf/tst-tlsmod16b.c: New file.
7752         * elf/Makefile: Add rules to build and run tst-tls16.
7754 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
7756         [BZ #5628]
7757         * bits/shm.h: Fix comment describing shmid_ds.
7758         * sysdeps/gnu/bits/shm.h: Likewise.
7759         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
7760         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7761         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7762         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7763         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7764         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7765         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7766         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7767         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
7769         [BZ #5607]
7770         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
7771         prototypes.
7772         * conform/data/limits.h-data: Adjust limits changed in v6 and add
7773         additional suffixes.
7774         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
7775         Add optional functions mq_timedreceive and mq_timedsend.
7776         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
7777         * conform/data/pthread.h-data: Fix prototype of
7778         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
7779         * conform/data/semaphore.h-data: Allow time.h definitions.
7780         * conform/data/signal.h-data: Likewise.
7781         * conform/data/stdio.h-data: getw and putw are not required in v6.
7782         * conform/data/stdlib.h-data: Change setstate prototype.
7783         * conform/data/string.h-data: Fix strerror_r prototype.
7784         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
7785         * conform/data/unistd.h-data: pthread_atfork not required in v6.
7786         Fix readlink prototype.
7787         * conform/data/netinet/in.h-data: Add const to in6addr_any and
7788         in6addr_loopback.
7789         * inet/netinet/in.h: Cleanup namespace.
7790         * posix/regex.h: Likewise.
7791         * resolv/netdb.h: Likewise.
7792         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
7793         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7794         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7795         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
7796         of names of in in6_addr.
7797         (default_precedence): Likewise.
7798         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
7799         NULL definition.
7801 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
7803         * conform/data/fmtmsg.h-data: Add missing allows.
7804         * conform/data/ftw.h-data: Likewise.
7805         * conform/data/inttypes.h-data: Likewise.
7806         * conform/data/math.h-data: Likewise.
7807         * conform/data/signal.h-data: Likewise.
7808         * conform/data/net/if.h-data: Likewise.
7809         * conform/data/netinet/in.h-data: Likewise.
7810         * conform/data/sys/socket.h-data: Likewise.
7812         [BZ #5614]
7813         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
7814         (__strtok_r): Simplify.
7815         * string/tester.c (test_strtok_r): Add test case for futile search
7816         with single-character seach string.
7818 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
7820         * po/ko.po: Update from translation team.
7822 2008-01-11  Andreas Jaeger  <aj@suse.de>
7824         [BZ #5600]
7825         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7826         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
7827         kernel header.
7829 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
7831         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
7832         native interface lookup in all the relevant places.
7834 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
7835             Ulrich Drepper  <drepper@redhat.com>
7837         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
7838         field.  Use sockaddr_in6 for source_addr.
7839         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
7840         (match_prefix): Likewise.
7841         (get_label): Likewise.
7842         (get_precedence): Likewise.
7843         (rfc3484_sort): Change to use indirect access to results array.
7844         Adjust to use of sockaddr_in6.  Replace service_order test with
7845         simple index comparison.
7846         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
7847         service_order field.  Adjust qsort_t calls.  Access sorted result
7848         array indirectly through order array.
7849         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
7850         * posix/tst-rfc3484-2.c: Likewise.
7851         * posix/tst-rfc3484-3.c: Likewise.
7853 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
7855         [BZ #5541]
7856         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
7857         pollfd structures.
7858         Patch by André Cruz.
7860         [BZ #5545]
7861         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
7862         (clnt_spcreateerror): Likewise.
7864         [BZ #5553]
7865         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
7866         (public_mEMALIGn): Likewise.
7867         Patch mostly by Daniel Jacobowitz.
7869 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
7871         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
7872         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
7873         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
7874         * stdlib/tst-makecontext2.c: New test.
7876 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
7878         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
7879         defined.
7880         (REINIT_PARAMS): Likewise.  Undefine before end of file.
7881         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
7882         transliteration hooks and REINIT_PARAMS afterwards.
7883         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
7884         status.
7885         (REINIT_PARAMS): Define.
7886         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
7887         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
7888         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
7889         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
7890         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
7891         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
7892         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
7893         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
7894         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
7895         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
7896         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
7897         * iconvdata/tst-iconv7.c: New test.
7899 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
7901         * libio/stdio.h (vscanf): Fix definition for loser compilers.
7903 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
7905         [BZ #5112]
7906         * nscd/connections.c (restart): Fix condition.
7908 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
7910         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
7911         __ctype_toupper_loc): Add __THROW.
7913 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
7915         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
7916         recognition of interface family.
7918         * posix/getconf.c: Update copyright year.
7919         * nss/getent.c: Likewise.
7920         * iconv/iconvconfig.c: Likewise.
7921         * iconv/iconv_prog.c: Likewise.
7922         * elf/ldconfig.c: Likewise.
7923         * catgets/gencat.c: Likewise.
7924         * csu/version.c: Likewise.
7925         * elf/ldd.bash.in: Likewise.
7926         * elf/sprof.c (print_version): Likewise.
7927         * locale/programs/locale.c: Likewise.
7928         * locale/programs/localedef.c: Likewise.
7929         * nscd/nscd.c (print_version): Likewise.
7930         * debug/xtrace.sh: Likewise.
7931         * malloc/memusage.sh: Likewise.
7932         * malloc/mtrace.pl: Likewise.
7933         * debug/catchsegv.sh: Likewise.
7935 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
7937         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7938         second lookup.
7940 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
7942         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7943         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7945 2007-12-17  Roland McGrath  <roland@redhat.com>
7947         * inet/ether_line.c (ether_line): Remove unused variable.
7949 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7951         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7952         and winp.
7953         * login/openpty.c (openpty): Likewise.
7954         * login/pty.h (openpty, forkpty): Likewise.
7955         * manual/terminal.texi (openpty, forkpty): Likewise.
7957 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
7959         * malloc/malloc.c (public_cALLOc): For arenas other than
7960         main_arena, count all bytes inside the mprotect_size range of the
7961         heap as uninitialized.
7963 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
7965         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7966         executable stacks.
7968         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7969         mTRIm for all of them.
7970         (mTRIm): Additionally iterate over all free blocks and use madvise
7971         to free memory for all those blocks which contain at least one
7972         memory page.
7973         * malloc/tst-trim1.c: New file.
7974         * malloc/Makefile (tests): Add tst-trim1.
7976         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7978 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
7980         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7981         First cast argument to long
7982         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7983         Return long.
7984         (__vdso_clock_gettime): Likewise.
7985         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7986         return long.
7988 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
7990         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7991         * locale/nl_langinfo_l.c: Real implementation, copied from
7992         nl_langinfo.c.
7993         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7995 2007-12-01  Jim Meyering  <meyering@redhat.com>
7997         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7998         that would inhibit utf8-optimization of a regexp containing line-
7999         or buffer-anchors, e.g., `^', `$'.
8001 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
8003         * time/bug-getdate1.c (do_test): Don't use century values which
8004         aren't valid on 32-bit systems.
8006 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
8008         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
8009         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
8010         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
8011         __strcat_g, __strncat_g): Add __asm__.
8013 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
8015         [BZ #5477]
8016         * io/fchmodat.c: Fix typo in stub_warning use.
8017         Patch by Petr Salinger.
8019 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
8021         * iconvdata/hp-thai8.c: New file.
8022         * iconvdata/Makefile: Add rules for hp-thai8.c.
8023         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
8024         * iconvdata/gconv-modules: Likewise.
8026         [BZ #5464]
8027         * iconvdata/hp-greek8.c: New file.
8028         * iconvdata/Makefile: Add rules for hp-greek8.c.
8029         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
8030         * iconvdata/gconv-modules: Likewise.
8032         [BZ #5463]
8033         * iconvdata/hp-turkish8.c: New file.
8034         * iconvdata/Makefile: Add rules for hp-turkish8.c.
8035         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
8036         * iconvdata/gconv-modules: Likewise.
8038         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
8039         (shrink_heap): ... this new function.
8040         (heap_trim): Call shrink_heap instead of grow_heap.
8042         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
8043         case don't call alloc_perturb.
8045 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
8047         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
8048         possible.
8049         * sysdeps/unix/sysv/linux/kernel-features.h
8050         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
8051         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
8053 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
8055         [BZ #5424]
8056         * stdio-common/vfprintf.c: Do not overflow when adding to done.
8057         * stdio-common/Makefile (tests): Add bug22.
8058         * stdio-common/bug22.c: New file.
8060         [BZ #5451]
8061         * time/getdate.c: Fix filling in default values.
8062         * time/bug-getdate1.c: New file.
8063         * time/Makefile: Add rules to build and run bug-getdate1.
8065         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
8066         * iconvdata/ebcdic-es.c: Likewise.
8067         * iconvdata/ebcdic-es-a.c: Likewise.
8068         * iconvdata/ebcdic-uk.c: Likewise.
8069         * iconvdata/iso8859-16.c: Likewise.
8070         * iconvdata/viscii.c: Likewise.
8071         * iconvdata/iso8859-9e.c: Likewise.
8072         * iconvdata/Makefile: Adjust appropriately.
8074         [BZ #5428]
8075         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
8076         __need_wint_t.
8078 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
8080         [BZ #5427]
8081         * iconvdata/hp-roman9.c: New file.
8082         * iconvdata/Makefile: Add rules for hp-roman9.c.
8083         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
8084         * iconvdata/gconv-modules: Likewise.
8086         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
8087         * iconvdata/Makefile: Adjust appropriately.
8089         [BZ #5441]
8090         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
8091         structure, it's allocated with alloca.
8092         * stdio-common/Makefile (tests): Add bug21.
8093         * stdio-common/bug21.c: New file.
8095 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
8097         [BZ #5452]
8098         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
8099         keyword for gcc's braced-groups.
8101 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
8103         [BZ #5454]
8104         * inet/ether_line.c: Strip hostname of whitespaces.
8105         * inet/Makefile (tests): Add tst-ether_line.
8106         * inet/tst-ether_line.c: New file.
8108 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
8110         [BZ #5439]
8111         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
8113         [BZ #5435]
8114         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
8116         * stdlib/tst-setcontext.c: Catch the case where the links gets
8117         messed up and we do not reach main again.
8119         * po/ca.po: Update from translation team.
8121 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
8123         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
8124         * posix/regex.h (REG_ENOSYS): Likewise.
8125         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
8127 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
8129         * nscd/nscd.h (MAX_STACK_USE): Define.
8130         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
8131         (gc): Initialize stack_used based on allocation in prune_cache.
8132         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
8133         Clear array before use.
8135         * nscd/aicache.c (addhstaiX): Update statistics counter in case
8136         memory allocation failed.
8137         * nscd/hstcache.c (cache_addhst): Likewise.
8138         * nscd/grpcache.c (cache_addgr): Likewise.
8139         * nscd/servicescache.c (cache_addserv): Likewise.
8140         * nscd/pwdcache.c (cache_addpw): Likewise.
8141         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8143 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
8145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
8146         and creat system calls.
8148         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
8150 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8152         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
8153         Add netiucv/iucv.h.
8154         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
8155         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
8156         protocol.
8157         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
8158         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
8159         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
8161 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8163         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
8164         strncat): Define as macros to avoid compile errors.
8166         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
8167         creat entries.
8169 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
8171         [BZ #5382]
8172         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
8173         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
8174         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
8175         overflow it.
8176         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
8178         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
8179         Return zero in case the thread library is not NPTL.
8181         [BZ #5375]
8182         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
8183         initializing interface list.
8185         [BZ #5378]
8186         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
8187         use result of nss_getgrgid_r if nothing was found.  For other
8188         error return with a failure.
8189         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
8191         * locale/programs/ld-collate.c (collate_read): Fix loop to match
8192         macro name.
8194 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
8196         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
8197         (get_scope): For IPv4 scope, use scopes table.
8198         (fini): Free scopes table if necessary.
8199         (free_scopelist): New function.
8200         (scopecmp): New function.
8201         (gaiconf_init): Also handle scopev4 entries.
8202         * posix/tst-rfc3484.c (do_test): Initialize scopes.
8203         * posix/tst-rfc3484-2.c (do_test): Likewise.
8204         * posix/gai.conf: Document scopev4 defaults.
8205         * posix/Makefile (tests): Add tst-rfc3484-3.
8206         * posix/tst-rfc3484-3.c: New file.
8208         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
8209         Teredo tunnels.
8210         * posix/gai.conf: Update for current default tables.
8212 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
8214         * po/tr.po: Update from translation team.
8216 2007-11-18  Roland McGrath  <roland@frob.com>
8218         * manual/arith.texi (Remainder Functions): Spelling fix.
8219         From Shaun Silk <genix@mysoul.com.au>.
8221         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
8223 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
8225         * po/zh_CN.po: Update from translation team.
8227         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
8228         Add sys/signalfd.h and sys/eventfd.h.
8230 2007-11-15  Bruno Haible  <bruno@clisp.org>
8232         [BZ #5346]
8233         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
8234         union.
8235         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
8236         (DCIGETTEXT): Change the allocation of the 'search' variable so that
8237         it needs only fixed stack space. Delay the initialization of
8238         msgid_len until it is needed.
8240 2007-11-15  Andreas Jaeger  <aj@suse.de>
8242         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
8243         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
8245 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
8247         * po/ko.po: Update from translation team.
8249 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
8251         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
8252         significantly.  The device type is also part of the ifinfomsg data.
8254         * po/sv.po: Update from translation team.
8255         * po/nl.po: Likewise.
8257         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
8258         to wake up in 24 hours.
8260         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
8262 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
8264         * po/cs.po: Update from translation team.
8265         * po/pl.po: Likewise.
8267         * include/ifaddrs.h: Remove in6ai_temporary.
8268         (struct in6addrinfo): Add index element.
8269         Declare __check_native.
8270         * inet/Makefile (aux): Add check_native.
8271         * sysdeps/unix/sysv/linux/check_native.c: New file.
8272         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
8273         IFA_F_TEMPORARY.  Pass back ifa_index.
8274         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
8275         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
8276         call __check_native if necessary.
8277         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
8278         to sort addresses.  Pass information about the results.
8279         * posix/tst-rfc3484.c: Adjust for addition of index field and change
8280         of rfc3484_sort interface.
8281         * posix/tst-rfc3484-2.c: Likewise.
8283         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
8284         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
8285         for _quicksort.
8286         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
8287         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
8288         on as third parameter to compare function and _quicksort.
8289         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
8290         to the compare function.
8291         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
8292         * Versions.def: Add GLIBC_2.8 for libc.
8294         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
8295         * posix/tst-rfc3484-2.c: Likewise.
8297         * include/kernel-features.h: Moved to...
8298         * sysdeps/mach/hurd/kernel-features.h: ...here.
8300 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
8302         * sysdeps/i386/i586/memcpy_chk.S: New file.
8303         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
8304         * sysdeps/i386/i586/memset_chk.S: Likewise.
8306 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
8308         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
8309         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
8310         list of interfaces.  Also store prefix length.
8311         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
8312         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
8313         prefix if source and destination address are in the same subnet.
8314         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
8315         Always look for matching record in in6ai list.
8316         Correct source_addr_len value for IPv6->IPv4 converted records.
8318 2007-11-11  Roland McGrath  <roland@frob.com>
8320         * include/kernel-features.h: New file.
8322 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
8324         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
8325         complications for 64-bit platforms.
8327         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
8328         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
8329         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
8330         open64_2.
8331         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
8332         entries.
8333         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8334         * sysdeps/wordsize-64/alphasort.c: New file.
8335         * sysdeps/wordsize-64/alphasort64.c: New file.
8336         * sysdeps/wordsize-64/fseeko.c: New file.
8337         * sysdeps/wordsize-64/fseeko64.c: New file.
8338         * sysdeps/wordsize-64/ftello.c: New file.
8339         * sysdeps/wordsize-64/ftello64.c: New file.
8340         * sysdeps/wordsize-64/ftw.c: New file.
8341         * sysdeps/wordsize-64/ftw64.c: New file.
8342         * sysdeps/wordsize-64/iofgetpos.c: New file.
8343         * sysdeps/wordsize-64/iofgetpos64.c: New file.
8344         * sysdeps/wordsize-64/iofopen.c: New file.
8345         * sysdeps/wordsize-64/iofopen64.c: New file.
8346         * sysdeps/wordsize-64/iofsetpos.c: New file.
8347         * sysdeps/wordsize-64/iofsetpos64.c: New file.
8348         * sysdeps/wordsize-64/lockf.c: New file.
8349         * sysdeps/wordsize-64/lockf64.c: New file.
8350         * sysdeps/wordsize-64/mkostemp.c: New file.
8351         * sysdeps/wordsize-64/mkostemp64.c: New file.
8352         * sysdeps/wordsize-64/mkstemp.c: New file.
8353         * sysdeps/wordsize-64/mkstemp64.c: New file.
8354         * sysdeps/wordsize-64/scandir.c: New file.
8355         * sysdeps/wordsize-64/scandir64.c: New file.
8356         * sysdeps/wordsize-64/tmpfile.c: New file.
8357         * sysdeps/wordsize-64/tmpfile64.c: New file.
8358         * sysdeps/wordsize-64/versionsort.c: New file.
8359         * sysdeps/wordsize-64/versionsort64.c: New file.
8360         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
8361         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
8362         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
8363         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
8364         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
8365         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
8366         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
8367         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
8368         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
8369         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
8370         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
8371         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
8373         * crypt/sha256-crypt.c: Fix a comment.
8374         * crypt/sha512-crypt.c: Likewise.
8376 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
8378         * sysdeps/x86_64/memset.S: Add sfence after movnti.
8380 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
8382         [BZ #5277]
8383         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
8384         because output buffer is too small break, don't loop.
8385         * iconvdata/Makefile (tests): Add bug-iconv6.
8386         * iconvdata/bug-iconv6.c: New file.
8388 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
8390         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
8391         with size_t type.
8392         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
8393         size_t.  Add casts where needed.
8395         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
8396         old headers, don't call avc_has_perm if we don't have the
8397         permission information.
8399 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
8401         * elf/rtld.c (dl_main): Use the page size to find the map start.
8403 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
8405         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
8406         Patch by Szymon Siwek <sls@poczta.wp.pl>.
8408         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
8409         when the lookup call failed.
8411         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
8412         Add prune_cond and wakeup_time.
8413         (CACHE_PRUNE_INTERNAL): Define.
8414         Update declarations of prune_cache and setup_thread.
8415         * nscd/connections.c (dbs): Update initializers.
8416         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
8417         (nscd_init): Default number of threads is now 4.
8418         (invalidate_cache): Take lock before calling prune_cache.
8419         (handle_request): If SELinux forbids the request, say so.
8420         (readylist_cond): Use static initializer.
8421         (nscd_run_prune): New function.  Used only by pruning threads.
8422         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
8423         here.
8424         (fd_ready): Update nscd_run reference.
8425         (start_threads): No need to initialize readylist_cond.
8426         Start pruning threads separately.
8427         * nscd/nscd_setup_thread.c: Change return value type to int and always
8428         return 0.
8429         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
8430         to int and return nonzero value if we can use the TID address hack.
8431         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
8432         the database is later than the new entry's timeout, update the
8433         wakeup time and wake the cleanup thread.
8434         (prune_cache): Return seconds the next entry in the database is still
8435         valid.  Remove locking for pruning here.
8436         * nscd/nscd.conf: Document default number of threads.
8438 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
8440         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
8441         stack is properly aligned for the target function.
8442         Correct unwind info.
8444         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
8445         when using auditing libraries.
8447 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
8449         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
8450         _nss_dns_getnetbyaddr2_r.
8451         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
8452         extra parameter to getanswer_r.
8453         (_nss_dns_getnetbyaddr_r): Now a wrapper around
8454         _nss_dns_getnetbyaddr2_r.
8456         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
8457         gethstbynm3_r.
8458         * nscd/gethstbynm2_r.c: Remove.
8459         * nscd/gethstbynm3_r.c: New file.
8460         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
8461         __gethostbyaddr_r.
8462         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
8463         __gethostbyaddr_r compatibility wrapper.
8464         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
8465         determining timeout of entry.
8466         (lookup): Take new parameter and pass it to __gethostbyname3_r and
8467         __gethostbyaddr2_r.
8468         (addhstbyX): Pass reference to variable for TTL to lookup and
8469         cache_addhst.
8470         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
8471         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
8472         and __nss_next2.  Remove __nss_services_lookup.
8473         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
8474         Add compat wrapper.
8475         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
8476         __nss_next2.
8477         * nss/getXXent_r.c: Likewise.
8478         * nss/getnssent_r.c: Likewise.
8479         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
8480         does not exist in module, try the optional second name.
8481         (__nss_next2): New function.
8482         (__nss_next): Now wrapper around __nss_next2.
8483         * nss/nsswitch.h: Adjust __nss_lookup prototype.
8484         Declare __nss_next2.
8485         Adjust definition of db_lookup_function type.
8486         * nss/service-lookup.c: Define NO_COMPAT.
8487         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
8488         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
8489         * inet/ether_ntoh.c: Likewise.
8490         * sunrpc/netname.c: Likewise.
8491         * sunrpc/publickey.c: Likewise.
8492         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
8493         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
8494         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
8495         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
8496         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
8498         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
8500         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
8502 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
8504         [BZ #5204]
8505         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
8506         * crypt/sha512c-test.c: Likewise.
8508         [BZ #5225]
8509         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
8510         to keep track of end of %[ format string element.
8511         * stdio-common/Makefile (tests): Add bug20.
8512         * stdio-common/bug20.c: New file.
8514         [BZ #5222]
8515         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
8516         path elements in counting mode.
8518 2007-10-27  Andreas Jaeger  <aj@suse.de>
8520         [BZ #5040]
8521         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
8523         [BZ #3112]
8524         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
8525         (__cleanup): Free shared library when exiting.
8526         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
8527         (__cleanup): Free shared library when exiting.
8529 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
8531         [BZ #2549]
8532         * math/libm-test.inc (check_float_internal): Support
8533         denormalized return.
8535 2007-10-23  Andreas Jaeger  <aj@suse.de>
8537         [BZ #5208]
8538         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
8539         __LONG_LONG_PAIR to handle little endian byte order.
8540         Suggested by abhishekrai@google.com
8542 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
8544         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
8546 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
8548         * nscd/cache.c (prune_cache): Move test for modified file outside
8549         of locking.
8551 2007-10-21  Andreas Jaeger  <aj@suse.de>
8553         * manual/texinfo.tex: Update to latest version.
8555         * manual/sysinfo.texi (System Parameters): Fix Formatting.
8557         * manual/arith.texi (Status bit operations): Fix formatting.
8559         * manual/errno.texi (Error Messages): Fix formatting.
8561         * manual/sysinfo.texi (System Parameters): Fix formatting.
8563         * manual/libc.texinfo: Update VERSION and UPDATED.
8565 2007-10-19  Roland McGrath  <roland@redhat.com>
8567         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
8569 2007-10-06  David S. Miller  <davem@davemloft.net>
8571         * configure.in: Add sparcv9v2 and sparc64v2.
8572         * scripts/config.sub: Likewise.
8573         * configure: Regenerate.
8574         * elf/elf.h (HWCAP_SPARC_N2): New.
8575         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
8576         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
8577         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
8578         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
8579         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
8580         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
8581         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
8583 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
8585         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
8586         even if the poll result indicates there is data to read.
8587         Patch by Jeff Moyer <jmoyer@redhat.com>.
8589 2007-10-18  Roland McGrath  <roland@redhat.com>
8591         * elf/elf.h (NT_PPC_VMX): New macro.
8593 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8595         * version.h (VERSION): Set to 2.7.90.
8597 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
8599         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
8600         weak_alias.
8602 2007-10-17  Roland McGrath  <roland@frob.com>
8604         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
8605         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
8607 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8609         * version.h (VERSION): Bump to 2.7.
8610         * include/features.h (__GLIBC_MINOR__): Bump to 7.
8612         [BZ #5186]
8613         * time/tzset.c (__tz_convert): Don't force testing for a change of
8614         TZ if not called from localtime.  But then also see whether the
8615         file changed, in case __use_tzfile is set.
8617         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
8618         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8619         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8620         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8621         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8622         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8623         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
8624         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8626 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
8628         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
8629         and admin selects to be able to replace the gai.conf file, lock
8630         data structures around the qsort call.
8632 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8634         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
8635         new memset.
8636         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
8637         too high for the improvements.  Implement bzero unconditionally for
8638         use in libc.
8640 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8641             Jakub Jelinek  <jakub@redhat.com>
8643         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
8644         even when time_t is 32-bit.
8645         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
8646         timezone data read by __tzfile_default.  Ensure __tzname[0] is
8647         always set after the search.
8649 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8651         * time/tzfile.c (__tzfile_read): Help the compiler recognize
8652         unreachable code on 32-bit machines.
8654 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8656         [BZ #5184]
8657         * time/strftime_l.c: Include stdbool.h.
8658         (my_strftime): New wrapper, old function renamed to...
8659         (__strftime_internal): ... new function.  Add tzset_called
8660         argument, pass it down to recursive calls, don't call tzset ()
8661         if already true, set to true after call to tzset ().
8663 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8665         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
8666         into account when copying TZ string.
8668 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8670         * time/tzfile.c (__tzfile_compute): For use_last case set i to
8671         num_transition rather than num_transitions - 1.
8673 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8675         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
8676         PIC indirect jump.
8678         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
8679         a local label rather than HIDDEN_JUMPTARGET.
8681 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8683         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
8684         (init_cacheinfo): Initialize it.
8685         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
8686         Always define bzero.
8687         Remove non-glibc code.
8688         * sysdeps/x86_64/bzero.S: Make an empty file.
8690 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
8692         * sysdeps/x86_64/cacheinfo.c
8693         (__x86_64_preferred_memory_instruction): New.
8694         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
8696         * sysdeps/x86_64/memset.S: Rewrite.
8698 2007-10-15  Roland McGrath  <roland@redhat.com>
8700         * po/libc.pot: Regenerated.
8702 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8704         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
8705         pointers.
8707         [BZ #3425]
8708         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
8709         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
8710         address record to T_A/T_AAAA requests.
8712 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
8714         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
8716         * posix/glob.c: Add some branch prediction throughout.
8718         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
8719         read from nscd.
8721         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
8722         service_order.
8723         (rfc3484_sort): Make sure that even if qsort doesn't support
8724         stable sorting out sorting here is stable by comparing service_order.
8725         (getaddrinfo): Initialize service_order.
8726         * posix/tst-rfc3484.c (do_test): Adjust for addition of
8727         service_order field to sorting structure.
8728         * posix/tst-rfc3484-2.c (do_test): Likewise.
8730         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
8731         * time/tzset.c (tzset_internal): Break TZ string parsing out into
8732         __tzset_parse_tz and updating of daylight, timezone, tzname into
8733         update_vars.
8734         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
8735         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
8736         happens in __tz_compute.
8737         * time/tzfile.c (__tzfile_read): Also read TZ string.
8738         (find_transition): Fold into __tzfile_compute.
8739         (__tzfile_compute): For times beyond the last transition try to
8740         use the TZ string.
8741         * timezone/tst-timezone.c: Information in daylight and tzname does
8742         change for Asia/Tokyo timezone with more concrete information.
8743         Remove the test.
8745         * include/stdio.h: Add libc_hidden_proto for ftello.
8746         * libio/ftello.c: Add libc_hidden_def.
8748         [BZ #1140]
8749         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
8750         on the specified time and not the last entries in the file.  Move
8751         code to determine tzname[] to...
8752         (find_transition): ...here.  Add ugly guess for times before the
8753         first transition.
8755 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8757         [BZ #3195]
8758         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
8759         no entry.
8760         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
8761         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8762         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8763         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8765         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
8766         read mechanism when there are no group members and avoid no-op
8767         read syscall in this case.
8769         [BZ #3242]
8770         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
8771         (__readall): If reading failed due to EAGAIN error wait a bit
8772         and possibly try again.
8773         (__readvall): Likewise.
8775 2007-10-13  Bruno Haible  <bruno@clisp.org>
8777         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
8778         when we cannot recode the message.
8780 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8782         [BZ #4359]
8783         * libio/__freading.c (__freading): Don't return true for
8784         write-only streams.  For read/write streams, check whether we
8785         performed a read operation already.
8786         * libio/Makefile (tests): Add tst-ext2.
8787         * libio/tst-ext2.c: New file.
8789 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8791         * locale/programs/repertoire.c (repertoire_read): Always free
8792         memory for repertoire file name [Coverity CID 270].
8794         * elf/cache.c (save_aux_cache): Free memory allocated for
8795         temporary file name [Coverity CID 267].
8797 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8799         * misc/Makefile (headers): Add bits/error.h.
8801 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8803         * posix/fnmatch_loop.c: Take rule index returned as part of
8804         findidx return value into account when accessing weights.
8805         * posix/regcomp.c: Likewise.
8806         * posix/regexec.c: Likewise.
8808         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
8809         (skip_to): Fix problems with parameter of elifdef/elifndef.
8811 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
8813         * iconv/gconv_simple.c: Add some branch prediction.
8815 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8817         * locale/programs/ld-collate.c (collate_read): If ignore_content
8818         and nowtok is tok_define, eat any tok_eol tokens.
8820 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
8822         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
8823         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
8825         * inet/netinet/in.h: Don't include bits/socket.h.
8826         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
8827         macro.
8828         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8830 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
8832         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
8833         and tok_elifndef.
8834         * locale/programs/locfile-kw.gperf: Likewise.
8835         * locale/programs/ld-collate.c: Implement primitive preprocessor.
8837 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
8839         * stdio-common/printf-parse.h: Include string.h and wchar.h.
8840         (__find_specwc): Change into __extern_always_inline function.
8841         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
8842         (__parse_one_specmb): Remove ps argument.
8843         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
8844         Adjust __find_specmb and __parse_one_specmb callers.
8845         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
8846         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
8847         Removed.
8848         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
8849         caller.
8851 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
8853         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
8854         with some Pentium Ds.
8856 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
8858         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
8859         __read not read.
8860         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
8861         __write not write.
8863 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
8865         [BZ #181]
8866         * locale/C-time.c: Set week_1stday data to 19971201.
8867         * locale/programs/ld-time.c (time_finish): Default for
8868         first_workday is Monday.
8870         [BZ #2633]
8871         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
8873         [BZ #5103]
8874         * posix/glob.c (glob): Recognize patterns starting \/.
8875         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
8876         (main): Add test for pattern starting \/.
8878         * misc/error.h: Use __const instead of const.
8879         * misc/bits/error.h: Likewise.
8881 2007-10-07  Andreas Jaeger  <aj@suse.de>
8883         * include/bits/error.h: New file.
8885         * misc/bits/error.h (error_at_line): Fix prototype.
8887 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
8889         [BZ #3924]
8890         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
8891         more little bugs in creating the stack frame when pltexit has to
8892         be called.
8894         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
8895         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8897         [BZ #4407]
8898         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
8899         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8900         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8901         * math/libm-test.inc: Add test for this case.
8903         [BZ #5010]
8904         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
8905         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
8906         map service succeeded.
8907         (svc_is_mapped): New function.
8908         (svc_unregister): Use it before trying to unmap service.
8910 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
8912         * timezone/zic.c: Update from tzcode2007h.
8914         [BZ #5063]
8915         * timezone/africa: Update from tzdata2007h.
8916         * timezone/antarctica: Likewise.
8917         * timezone/asia: Likewise.
8918         * timezone/australasia: Likewise.
8919         * timezone/europe: Likewise.
8920         * timezone/leapseconds: Likewise.
8921         * timezone/northamerica: Likewise.
8922         * timezone/southamerica: Likewise.
8923         * timzeone/zone.tab: Likewise.
8925         [BZ #5104]
8926         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8928         [BZ #5113]
8929         * string/bits/string2.h (__strdup): Cast parameters to calloc to
8930         avoid warning with -Wconversion.
8931         (__strndup): Likewise.
8932         Half the patch by Christian Iseli <christian.iseli@licr.org>.
8934         [BZ #5112]
8935         * nscd/connections.c (restart): Don't resync if database is
8936         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8938         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8939         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
8941         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8942         evetnfd_read, eventfd_write.
8943         * sysdeps/unix/sysv/linux/eventfd.c: New file.
8944         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8945         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8946         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8947         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8948         eventfd_write for GLIBC_2.7.
8950         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8951         * sysdeps/unix/sysv/linux/signalfd.c: New file.
8952         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8953         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8955 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
8957         * stdlib/msort.c: Include stdint.h.
8958         (struct msort_param): New type.
8959         (msort_with_tmp): Use struct msort_param pointer for unchanging
8960         parameters.  Add optimized handling for several common sizes
8961         and indirect sorting mode.
8962         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
8963         sorting.
8964         Suggested by Belazougui Djamel .
8966         * stdlib/Makefile (tests): Add tst-qsort2.
8967         * stdlib/tst-qsort2.c: New test.
8969 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
8971         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8972         for dup2 in case another thread races with the current one.  Retry
8973         in this case.
8975         * misc/error.h: Remove support for use outside of libc.  We have to
8976         include <features.h> now.  Include <bits/error.h> if possible.
8977         * misc/bits/error.h: New file.
8979 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
8981         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8982         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8983         __extern_always_inline functions unconditionally, drop macros.
8985         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8986         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8987         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8989         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8990         add __artificial__ attribute.
8992 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
8994         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8995         backward to forward direction.
8997         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8999         [BZ #645]
9000         * locale/programs/ld-collate.c (collate_finish): Compare against last
9001         used section which is known to have rules defined.
9002         (collate_read): After order_start, correctly record order of sections
9003         and queue sections up.
9005 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
9007         [BZ #5071]
9008         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
9009         the same number of pages.
9010         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
9012         * locale/programs/ld-collate.c (collate_read): After initial copy
9013         statement, continue in state 0.
9015         * include/stdio_ext.h (__fsetlocking): Define as macro.
9017 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
9019         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
9020         of section order.
9022         * po/pt_BR.po: Fix typo.
9024 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
9026         * iconvdata/Makefile (modules): Add ISO8859-9E.
9027         (distribute): Add iso8859-9e.c.
9028         (gen-8bit-gap-modules): Add iso8859-9e.
9029         * iconvdata/iso8859-9e.c: New file.
9030         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
9031         * iconvdata/TESTS: Likewise.
9032         * iconvdata/tst-tables.sh: Likewise.
9034         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
9036         * locale/iso-639.def: Add several new entries.
9038 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
9040         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
9041         void * pointers instead of struct link_map **.
9042         (_dl_scope_free): Change argument type to void *.
9043         * include/link.h (struct link_map): Change type of l_reldeps
9044         to struct link_map_reldeps, move l_reldepsact into that
9045         struct too.
9046         * elf/dl-deps.c: Include atomic.h.
9047         (_dl_map_object_deps): Only change l->l_initfini when it is
9048         fully populated, use _dl_scope_free for freeing it.  Optimize
9049         removal of libs from reldeps by using l_reserved flag, when
9050         some removal is needed, allocate a new list instead of
9051         reallocating and free the old with _dl_scope_free.  Adjust
9052         for l_reldeps and l_reldepsact changes.
9053         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
9054         searching in l_initfini and l_reldeps without holding dl_load_lock.
9055         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
9056         l_reldepsact changes.
9057         * elf/dl-close.c (_dl_close_worker): Likewise.
9058         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
9060 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
9062         * iconvdata/Makefile (modules): Add KOI8-RU.
9063         (distribute): Add koi8-ru.c.
9064         (gen-8bit-gap-modules): Add koi8-ru.
9065         * iconvdata/koi8-ru.c: New file.
9066         * iconvdata/gconv-modules: Add entries for KOI8-RU.
9067         * iconvdata/TESTS: Likewise.
9068         * iconvdata/tst-tables.sh: Likewise.
9070         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
9072 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
9074         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
9075         with __warning__/__error__ attributes.
9076         (__warnattr): Define.
9077         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
9078         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
9079         __warnattr.
9080         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
9081         of __*_chk if compile time detectable overflow is found.
9082         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
9083         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
9084         with __warnattr.
9085         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
9086         instead of __*_chk if compile time detectable overflow is found.
9087         (__gets_alias): Rename to...
9088         (__gets_warn): ... this.  Add __warnattr.
9089         (gets): Call __gets_warn instead of __gets_alias.
9090         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
9091         aliases with __warnattr.
9092         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
9093         time detectable overflow is found.
9094         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
9095         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
9096         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
9097         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
9098         __getdomainname_chk_warn): New aliases with __warnattr.
9099         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
9100         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
9101         __*_chk_warn instead of __*_chk if compile time detectable overflow
9102         is found.
9103         (__getgroups_chk): Rename argument to __listlen from listlen.
9104         (__getwd_alias): Rename to...
9105         (__getwd_warn): ... this.  Add __warnattr.
9106         (getwd): Call __getwd_warn instead of __getwd_alias.
9107         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
9108         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
9109         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
9110         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
9111         __wcsnrtombs_chk_warn): New aliases with __warnattr.
9112         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
9113         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
9114         compile time detectable overflow is found.
9115         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
9116         to use __*_chk or not.
9117         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
9118         in comparisons which function should be called and in __*_chk*
9119         arguments.  Call __*_chk_warn instead of __*_chk if compile time
9120         detectable overflow is found.
9121         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
9122         __*_chk argument.
9123         * debug/tst-chk1.c (do_test): Add a few more tests.
9125 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
9127         [BZ #5058]
9128         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
9129         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
9130         (_nl_unload_domain): Finalize conversions_lock.
9131         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
9132         handling table of known conversions.
9134 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
9136         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
9137         close_not_cancel_no_status instead of close.
9139 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
9141         [BZ #5028]
9142         * posix/regcomp.c (lookup_collation_sequence_value): Check that
9143         nrules != 0 for multibyte chars.
9145 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
9147         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
9148         Provide better error message in case the type is unknown.
9150         [BZ #4963]
9151         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
9152         * string/stratcliff.c: Make usable to test wide char functions.
9153         * wcsmbs/wcsatcliff.c: New file.
9154         * wcsmbs/Makefiel (tests): Add wcsatcliff.
9156         [BZ #4972]
9157         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
9158         (distribute): Add mac-centraleurope.c.
9159         (gen-8bit-gap-modules): Add mac-centraleurope.
9160         * iconvdata/mac-centraleurope.c: New file.
9161         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
9162         * iconvdata/TESTS: Likewise.
9163         * iconvdata/tst-tables.sh: Likewise.
9165         [BZ #5043]
9166         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
9168 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
9170         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
9171         from __x86_64_core_cache_size_half.
9172         (init_cacheinfo): Compute shared cache size for AMD processors with
9173         shared L3 correctly.
9174         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
9175         name change.
9176         Patch in large parts by Evandro Menezes.
9178 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
9180         * elf/dl-lookup.c (add_dependency): Handle failing memory
9181         allocation for dependency list.  Remove unnecessary check.
9183         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
9184         open/close when determining source addresses.
9186         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
9187         sha512-crypt, and sha512.
9188         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
9189         (distribute): Add sha256.h and sha512.h.
9190         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
9191         and call the appropriate code.
9192         * crypt/sha256-crypt.c: New file.
9193         * crypt/sha256.c: New file.
9194         * crypt/sha256.h: New file.
9195         * crypt/sha256c-test.c: New file.
9196         * crypt/sha256test.c: New file.
9197         * crypt/sha512-crypt.c: New file.
9198         * crypt/sha512.c: New file.
9199         * crypt/sha512.h: New file.
9200         * crypt/sha512c-test.c: New file.
9201         * crypt/sha512test.c: New file.
9203 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
9205         * misc/bits/syslog.h (syslog): Remove extraneous argument from
9206         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
9207         __syslog_chk.
9209 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
9211         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
9212         %as in fscanf format strings.
9214         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
9215         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
9216         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
9217         Likewise.
9218         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
9219         Likewise.
9221         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
9222         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
9223         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
9224         * elf/dl-sym.c (do_sym): Likewise.
9225         * include/link.h (struct link_map): Add l_serial field.
9226         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
9227         * elf/dl-lookup.c (add_dependency): Add flags argument.
9228         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
9229         flags, use THREAD_GSCOPE_RESET_FLAG before and
9230         THREAD_GSCOPE_SET_FLAG after
9231         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
9232         Don't dereference map until it has been found on some list.
9233         If map->l_serial changed, return -1.
9235 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
9237         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
9238         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
9239         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
9240         libc_hidden_proto.
9241         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
9242         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
9243         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
9244         add libc_hidden_proto.
9245         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
9246         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
9247         conformance requested.
9248         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
9249         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
9250         conformance requested.
9251         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
9252         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
9253         conformance requested.
9254         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
9255         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
9256         ISO C99 or POSIX conformance requested.
9257         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
9258         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
9259         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
9260         and __isoc99_vsscanf@@GLIBC_2.7.
9261         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
9262         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
9263         (tests): Add scanf14.
9264         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
9265         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
9266         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
9267         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
9268         CFLAGS-isoc99_scanf.c): Add $(exceptions).
9269         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
9270         from using internal headers.
9271         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
9272         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
9273         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
9274         and __isoc99_vswscanf@@GLIBC_2.7.
9275         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
9276         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
9277         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
9278         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
9279         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
9280         * stdio-common/isoc99_scanf.c: New file.
9281         * stdio-common/isoc99_vsscanf.c: New file.
9282         * stdio-common/isoc99_vscanf.c: New file.
9283         * stdio-common/isoc99_vfscanf.c: New file.
9284         * stdio-common/isoc99_fscanf.c: New file.
9285         * stdio-common/isoc99_sscanf.c: New file.
9286         * wcsmbs/isoc99_fwscanf.c: New file.
9287         * wcsmbs/isoc99_vswscanf.c: New file.
9288         * wcsmbs/isoc99_swscanf.c: New file.
9289         * wcsmbs/isoc99_wscanf.c: New file.
9290         * wcsmbs/isoc99_vwscanf.c: New file.
9291         * wcsmbs/isoc99_vfwscanf.c: New file.
9292         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
9293         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
9294         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
9295         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
9296         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
9297         * stdio-common/scanf14.c: New test.
9298         * stdio-common/scanf15.c: New test.
9299         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9300         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
9301         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
9302         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
9303         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
9304         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
9305         __nldbl___isoc99_scanf@@GLIBC_2.7,
9306         __nldbl___isoc99_fscanf@@GLIBC_2.7,
9307         __nldbl___isoc99_sscanf@@GLIBC_2.7,
9308         __nldbl___isoc99_vscanf@@GLIBC_2.7,
9309         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
9310         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
9311         __nldbl___isoc99_wscanf@@GLIBC_2.7,
9312         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
9313         __nldbl___isoc99_swscanf@@GLIBC_2.7,
9314         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
9315         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
9316         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
9317         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
9318         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
9319         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
9320         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
9321         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
9322         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
9323         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
9324         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
9325         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
9326         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
9327         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
9328         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
9329         functions.
9330         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
9331         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
9332         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
9333         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
9334         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
9335         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
9336         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
9337         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
9338         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
9339         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
9340         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
9341         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
9343         * stdio-common/Makefile (tests): Add scanf13.
9344         (scanf13-ENV): New.
9345         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
9346         m modifier followed by l.
9347         (STRING_ARG): Add width argument.
9348         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
9349         <case L_('C')>: Handle %mlc and %mC.
9350         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
9351         arguments.
9352         * stdio-common/scanf13.c: New test.
9354         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
9355         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
9357 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
9359         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
9360         type and __THROW marker of splice, vmsplice, and tee.
9361         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9362         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9363         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9364         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9365         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9366         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9367         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9368         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
9369         as cancellation points.
9371 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
9373         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
9374         parse more than three parts of the version number.
9376 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
9378         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
9379         modifier.  Patch by Jakub Jelinek.
9381 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
9383         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
9384         call_fallocate in misc subdir.
9385         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
9386         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
9387         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
9388         instead of __fallocate64.
9389         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
9391 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
9393         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
9394         * rt/Makefile (headers): Add bits/mqueue2.h.
9395         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
9396         optimizing with GCC and __va_arg_pack_len is defined.
9397         * rt/bits/mqueue2.h: New file.
9398         * rt/mq_open.c (__mq_open): Renamed from mq_open.
9399         (mq_open): New strong_alias.
9400         (__mq_open_2): New function.
9401         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
9402         (mq_open): New strong_alias.
9403         (__mq_open_2): New function.
9404         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
9405         * Versions.def (librt): Add GLIBC_2.7 version.
9406         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
9407         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
9409         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
9410         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
9411         is defined rather than when not C++.
9412         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
9413         __openat64_alias): New redirects.
9414         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
9415         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
9416         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
9417         (open, open64, openat, openat64): Rewrite as __extern_always_inline
9418         functions instead of function-like macros.
9420 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9422         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
9423         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
9424         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
9426 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
9428         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
9429         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
9431 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
9433         * inet/tst-network.c: Increment ERRORS for failing tests.
9435 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
9437         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
9438         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
9439         implement as __extern_always_inline function.
9440         (vsyslog): Define as __extern_always_inline function unconditionally.
9441         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
9442         When __va_arg_pack is defined, implement as __extern_always_inline
9443         functions.
9444         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9445         __extern_always_inline functions unconditionally.
9446         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
9447         bits/stdio2.h will be included.
9448         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
9449         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
9450         implement as __extern_always_inline functions.
9451         (vswprintf, vwprintf, vfwprintf): Define as
9452         __extern_always_inline functions unconditionally.
9453         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
9455 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
9457         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
9458         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
9459         attribute.
9460         * include/features.h (__USE_EXTERN_INLINES): Define only when
9461         __extern_inline is defined.
9462         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
9463         is defined instead of when not __cplusplus.
9464         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
9465         is defined instead of when not __cplusplus.
9466         * socket/sys/socket.h: Include bits/socket2.h when
9467         __extern_always_inline is defined instead of when not __cplusplus.
9468         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
9469         is defined instead of when not __cplusplus.
9470         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
9471         is defined instead of when not __cplusplus.
9472         * string/string.h: Include bits/string3.h when __extern_always_inline
9473         is defined instead of when not __cplusplus.
9474         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
9475         is defined instead of when not __cplusplus.
9476         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
9477         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
9478         is not defined.
9479         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
9480         defined __extern_always_inline instead of !defined __cplusplus.
9481         * libio/bits/stdio-ldbl.h: Likewise.
9482         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9483         * misc/bits/syslog.h (syslog): Don't define for C++.
9484         (vsyslog): Use __extern_always_inline function for C++ instead of
9485         a macro.
9486         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
9487         whenever that macro is defined.
9488         (vprintf): Don't provide the inline for C++.
9489         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
9490         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
9491         define the macros for C++.
9492         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9493         __extern_always_inline functions for C++.
9494         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
9495         stat64, lstat64, fstat64, fstatat64): Don't define if not
9496         __USE_EXTERN_INLINES.
9497         * wcsmbs/bits/wchar2.h: Fix #error message.
9498         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
9499         (vswprintf, vwprintf, vfwprintf): Define using
9500         __extern_always_inline functions for C++.
9501         * string/bits/string3.h: Don't #undef macros if __cplusplus.
9502         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
9503         strncpy, strcat, strncat): Define as __extern_always_inline
9504         functions instead of macros for C++.
9505         * math/bits/cmathcalls.h: Guard __extern_inline routines with
9506         defined __extern_inline.
9507         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
9508         to __extern_inline whenever that macro is defined.
9509         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9510         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9511         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
9512         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
9513         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9514         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9515         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9516         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9517         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
9518         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
9519         prototypes.  Only provide __extern_inline routines if
9520         __USE_EXTERN_INLINES.
9521         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
9522         tests.
9523         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
9524         For now avoid some *printf tests in C++.  Skip all testing
9525         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
9526         is not.
9527         * debug/tst-chk4.cc: New file.
9528         * debug/tst-chk5.cc: New file.
9529         * debug/tst-chk6.cc: New file.
9530         * debug/tst-lfschk4.cc: New file.
9531         * debug/tst-lfschk5.cc: New file.
9532         * debug/tst-lfschk6.cc: New file.
9533         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
9534         prototypes in C++.
9535         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
9536         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
9537         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
9539 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
9541         * po/cs.po: Update from translation team.
9543 2007-09-11  Roland McGrath  <roland@redhat.com>
9545         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
9546         compiling.
9548 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9550         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
9552 2007-09-05  Roland McGrath  <roland@redhat.com>
9554         * manual/signal.texi (Signaling Another Process): Typo fix.
9555         From Karl Berry <karl@freefriends.org>.
9557 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
9559         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
9560         zero if not defined.
9561         (make_request): Recognize optimistic addresses and treat them like
9562         deprecated addresses.
9563         Reported by Neil Horman <nhorman@redhat.com>.
9565 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
9567         * nscd/connections.c (send_ro_fd): Also transfer file size.
9568         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
9569         file size don't call fstat.
9571         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
9572         ahead and map the file.  This should always be correct and we can
9573         catch problems later.
9575 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
9577         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
9578         prototypes.
9579         (__fread_alias, __fread_unlocked_alias): New aliases.
9580         (fread): New extern inline.
9581         (fread_unlocked): Likewise.  Undef macro before definition of
9582         the inline function.
9583         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
9584         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
9585         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
9586         and __fread_unlocked_chk@@GLIBC_2.7.
9587         * debug/fread_chk.c: New file.
9588         * debug/fread_u_chk.c: New file.
9589         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
9591 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
9593         * sysdeps/unix/sysv/linux/syscalls.list
9594         (personality): Change caller to EXTRA.
9596 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
9598         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
9599         to keep gcc quiet.
9600         * iconvdata/iso-2022-cn.c (BODY): Likewise.
9602         * locale/programs/ld-collate.c (collate_output): Avoid warning if
9603         NDEBUG is defined.
9605         * Makerules: Use -p option with mkdir.
9607         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
9608         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
9609         (_xdr_directory_obj): Likewise.
9610         (xdr_entry_obj): Likewise.
9611         (xdr_group_obj): Likewise.
9612         (xdr_link_obj): Likewise.
9613         (xdr_table_obj): Likewise.
9614         (_xdr_nis_result): Likewise.
9615         (_xdr_ns_request): Likewise.
9616         (_xdr_ib_request): Likewise.
9617         (_xdr_nis_taglist): Likewise.
9618         (xdr_cback_data): Likewise.
9619         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
9620         (xdr_ypresp_maplist): Likewise.
9622         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
9624         * posix/regex_internal.h: Prevent some declarations and definitions
9625         to be seen when used in tests.
9627         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
9628         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
9630         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
9632         * config.make.in (datarootdir): Add to shut up configure.
9634         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
9635         associativity for fully-associative caches.
9637         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
9638         requests.  Fill on more associativity values for L2.
9639         Patch mostly by Evandro Menezes.
9641 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
9643         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9644         (_libc_vdso_platform_setup): Avoid using exported variable by using
9645         alias.
9647         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
9649         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
9650         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
9651         defined.
9653 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
9655         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
9656         align stack for call if pltexit is to be used.
9658         [BZ #3924]
9659         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
9660         align for function call in case pltexit has to be called later.
9662         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
9663         implicit atomic operation when storing function pointer.
9664         (_dl_runtime_profile): Likewise.
9666 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9668         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
9669         NIS_NOTFOUND.
9671 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9673         [BZ #4566]
9674         * string/strtok.c: Fix typo in comment.
9676         [BZ #4582]
9677         * debug/segfault.c: Fix typos in comments.
9679         [BZ #4588]
9680         * stdio-common/tempnam.c: Fix comment, it is not checked that
9681         TMPDIR points to a writable directory.
9683         [BZ #4726]
9684         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
9685         memory allocated for the name server address.
9687         [BZ #4946]
9688         * nscd/connections.c (handle_request): Using sendfile always
9689         requires that mmap is used for the database.
9690         Patch by Petr Baudis <pasky@suse.cz>.
9692         [BZ #4905]
9693         * nscd/hstcache.c (cache_addhst): When reloading an entry which
9694         suddenly has two or more addresses, ignore it and remove the old
9695         entry.
9697         [BZ #4814]
9698         * resolv/res_hconf.c: Prepare for compiling outside libc.
9699         * nscd/res_hconf.c: New file.
9700         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
9701         the new file.
9702         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
9703         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
9705         * nscd/hstcache.c (cache_addhst): Minimal optimization.
9707         [BZ #4925]
9708         * debug/pcprofiledump.c: Turn on internationalization by calling
9709         setlocale.  Patch mostly by Benno Schulenberg.
9711         [BZ #4936]
9712         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
9713         the state.
9714         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
9715         * iconvdata/bug-iconv5.c: New file.
9717 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
9719         [BZ #4896]
9720         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
9721         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
9722         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
9723         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
9724         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
9725         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
9726         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
9727         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
9729 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9731         [BZ #4937]
9732         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
9733         lookup loop.  Suggested by John Reiser.
9735 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
9737         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
9739 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
9741         * csu/libc-start.c: Don't handle VDSO_SETUP here.
9742         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
9743         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
9744         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
9745         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
9746         to...
9747         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
9749 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
9751         * po/nl.po: Update from translation team.
9753 2007-08-16  Andreas Jaeger  <aj@suse.de>
9755         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
9756         Reported by Peter Festner <peter.festner@ewetel.net>.
9758 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9760         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
9762 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
9764         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
9765         to check for undefined symbols.
9767         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
9768         If the syscall fails, set errno to the actual returned error number
9769         rather than EINVAL.
9770         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
9771         arguments are incorrect, set errno to EINVAL, if the syscall
9772         fails, set errno to the actual returned error number.
9774         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
9775         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
9777         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
9778         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
9779         file.
9780         (ASI_PNF, ASI_BLK_P): Don't define.
9781         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
9782         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
9783         file.
9784         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
9785         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
9786         file.
9788 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
9790         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
9791         FE_UNDERFLOW on Niagara CPUs.
9793         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
9794         exceptions.
9796 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
9798         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
9799         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
9800         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
9801         flush should be used or not inside of the function.
9802         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
9804         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
9805         __thread_start): Use HIDDEN_JUMPTARGET.
9806         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
9807         __thread_start): Likewise.
9808         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
9810         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
9811         Add libc_hidden_proto.
9812         (STRTOF): Add libc_hidden_proto.
9813         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
9814         (strtold_l, wcstold_l): Use them as second argument for
9815         long_double_symbol.
9817 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9819         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
9821 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9823         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
9825 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9827         * po/bg.po: New file.  From the translation team.
9829 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9831         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
9832         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
9833         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
9834         when each feature was introduced.
9836         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
9837         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
9838         (CHECK_HASH): New macro.
9839         (PREPARE_VERSION): Use it.
9841         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
9842         prototype if not __ASSUME_PSELECT.
9843         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
9844         prototype if not __ASSUME_PPOLL.
9846         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
9848         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
9849         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
9850         is defined.
9852 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
9854         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9855         (_libc_vdso_platform_setup): If vDSO is not available point
9856         __vdso_gettimeofday to the vsyscall.
9857         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
9858         __vdso_gettimeofday instead of vsyscall.
9860 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9862         * nscd/servicescache.c: Include kernel-features.h.
9863         * nscd/gai.c: Likewise.
9864         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9865         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9866         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
9867         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
9868         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
9869         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9870         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
9871         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
9872         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
9874 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9876         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
9877         and _dl_get_origin defines anymore.
9879         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
9880         Build fix for systems which might lack POSIX timer support.
9882         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9883         (_libc_vdso_platform_setup): Mangle function pointers before storing
9884         them.
9885         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
9886         Demangle vdso pointer before use.
9887         (INTERNAL_VSYSCALL): Likewise.
9889         * elf/cache.c (primes): Mark as const.
9890         Noted by Roland McGrath.
9892 2007-08-01  Andreas Jaeger  <aj@suse.de>
9893             Jakub Jelinek  <jakub@redhat.com>
9895         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
9896         (options): Add option.
9897         (parse_opt): Handle option.
9898         (manual_link): Adjust process_file caller.  Call implicit_soname.
9899         (search_dir): Formatting.  Use and populate auxiliary cache.
9900         (main): Load and save auxiliary cache.
9901         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
9902         stat64 from fstat64 to caller.
9903         (implicit_soname): New function.
9904         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
9905         leave *soname as NULL.
9906         * elf/cache.c: Include libgen.h.
9907         (print_entry, print_cache, compare, save_cache, add_to_cache):
9908         Formatting and cleanups.
9909         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
9910         aux_cache_file): New structures.
9911         (AUX_CACHEMAGIC): Define.
9912         (primes): New array.
9913         (aux_hash_size, aux_hash): New variables.
9914         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
9915         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
9916         load_aux_cache, save_aux_cache): New functions.
9917         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9918         (init_aux_cache, search_aux_cache, add_to_aux_cache,
9919         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9920         (process_file): Adjust prototype.
9922 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
9924         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9925         with __need_size_t.
9927 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9929         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9930         r_found_version structure as second parameter.
9931         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9932         (_dl_vdso_vsym): Change type of second parameter accordingly.
9933         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9934         (_libc_vdso_platform_setup): Adjust.
9935         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9936         (_libc_vdso_platform_setup): Likewise.
9938         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9939         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9940         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9941         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9942         * csu/libc-start.c: Pretty printing.
9943         Use VDSO_SETUP if defined.
9944         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9945         and let generic code call into _libc_vdso_platform_setup.
9946         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9947         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9948         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9949         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9950         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9951         for GLIBC_PRIVATE.
9952         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9953         (sysdep_rountines): Add dl-vdso.
9955         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9956         of routines.
9958         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9959         attribute_hidden to __vdso_gettimeofday prototype.
9961 2007-08-12  Roland McGrath  <roland@redhat.com>
9963         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9964         From: Karl Berry <karl@freefriends.org>.
9966 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
9968         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9969         an atime update for the files we read.
9971 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9973         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9975         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
9976         instead of mkstemp.
9978         * misc/Makefile (routines): Add mkostemp and mkostemp64.
9979         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9980         * misc/mkostemp.c: New file.
9981         * misc/mkostemp64.c: New file.
9982         * stdlib/stdlib.h: Declare the new functions.
9983         * sysdeps/posix/tempname.c: Add new parameter which is added to
9984         the flags for open.  Remove __GT_BIGFILE handling.
9985         * stdio-common/tempname.c: Likewise.
9986         * include/stdio.h: Adjust __gen_tempname prototype.
9987         Renumber __GT_* constants.
9988         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9989         * misc/mkdtemp.c: Likewise.
9990         * misc/mkstemp.c: Likewise.
9991         * misc/mkstemp64.c: Likewise.
9992         * misc/mktemp.c: Likewise.
9993         * stdio-common/tempnam.c: Likewise.
9994         * stdio-common/tmpfile.c: Likewise.
9995         * stdio-common/tmpfile64.c: Likewise.
9996         * stdio-common/tmpnam.c: Likewise.
9997         * stdio-common/tmpnam_r.c: Likewise.
9999 2007-08-10  Roland McGrath  <roland@frob.com>
10001         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
10002         New macros.
10003         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
10004         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
10006 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
10008         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
10009         possible.
10010         * nss/nss_files/files-alias.c (internal_setent): Likewise.
10011         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
10012         * nss/nss_files/files-have_o_cloexec.c: New file.
10014         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
10015         available.
10017 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
10019         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
10020         ___new_wcstold_l): New weak aliases.
10021         (strtold_l, wcstold_l): Use them as second argument for
10022         long_double_symbol.
10024 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
10026         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
10027         register in test for error.
10029         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
10030         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
10032         * po/sv.po: Update from translation team.
10034 2007-08-06  Roland McGrath  <roland@redhat.com>
10036         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
10037         Remove __strto*_l inlines.
10038         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
10039         * stdlib/strtod.c: Add libc_hidden_def.
10040         * stdlib/strtod_l.c: Likewise.
10041         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
10042         for __new_strtold and __new_wcstold.
10043         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
10044         __STRTOF, STRTOF.
10045         * stdlib/strtol.c: Add libc_hidden_def.
10046         * stdlib/strtol_l.c: Likewise.
10047         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
10048         strtoq.
10050         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
10052         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
10053         * scripts/data/localplt-generic.data: ... here.
10054         * elf/Makefile (check-data): Get generic file if no other.
10055         ($(objpfx)check-localplt.out): Make target unconditional.
10057         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
10058         Use ElfW(Nhdr).
10060 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
10062         * po/zh_CN.po: Updated translation from translation team.
10064 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
10066         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
10067         Don't use CGOTSETUP and CGOTRESTORE macros.
10069 2007-08-04  Roland McGrath  <roland@redhat.com>
10071         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
10073 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
10075         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
10076         __extension__ around the whole statement expression.
10078 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
10080         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
10081         elements during initialization.
10083         * po/pl.po: Updated translation from translation team.
10084         * po/tr.po: Likewise.
10085         * po/nl.po: Likewise.
10087 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
10089         * rt/aio.h: Add __nonnull attributes.
10091 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
10093         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
10094         * stdlib/Makefile (tests): Add tst-strtod5.
10095         (tst-strtod5-ENV): New.
10096         * stdlib/tst-strtod5.c: New file.
10098         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
10099         failed.
10100         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
10101         on failure.
10103         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
10104         allocated.
10106 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
10108         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
10109         numbers.
10111 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
10113         * io/Makefile (aux): Add have_o_cloexec.
10114         * include/fcntl.h: Declare __have_o_cloexec.
10115         * io/have_o_cloexec.c: New file.
10116         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
10117         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
10118         fcntl call if not necessary.
10119         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
10120         of local variable.
10122         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
10123         Avoid memset, add explicit initialization.
10124         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
10125         to the end and change into zero-sized array.
10126         Move lock member to fill a hole on 64-bit platforms.
10128         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
10129         inline functions.
10130         * include/stdlib.h: Add __strto*_internal prototypes here.
10131         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
10132         inline functions.
10133         * include/wchar.h: Add __wcsto*_internal prototypes.
10134         * sysdeps/generic/inttypes.h: No need to protect the declaration
10135         of the __strto*_internal and __wcsto*_internal members here.
10137         * rt/mqueue.h: Change const to __const and add nonnull attributes.
10139 2007-08-02  Roland McGrath  <roland@redhat.com>
10141         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
10142         $(inst_bindir)/getconf if possible.
10144         * posix/Makefile ($(objpfx)getconf.speclist): New target.
10145         (generated): Add it.
10146         ($(inst_libexecdir)/getconf): Use it.
10148 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
10150         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
10151         /proc is faster and sufficient.  /sys is still needed for
10152         __get_nprocs_conf.
10154 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
10156         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
10157         syscall as __fallocate64.
10158         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
10159         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
10161 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
10163         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
10164         value.
10166         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
10167         if off_t is different rank from size_t.
10169         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
10170         uw_frame_state_for): Avoid type punning warnings.
10171         * sysdeps/generic/unwind-dw2-fde-glibc.c
10172         (_Unwind_IteratePhdrCallback): Likewise.
10173         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
10174         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
10175         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
10176         pointers.
10178 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
10180         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
10181         total processors using sysfs.
10182         (__get_nprocs): Use sysfs to determine which processors are online.
10184 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
10186         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
10187         syscall arguments count.
10189         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
10191 2007-07-30  Roland McGrath  <roland@redhat.com>
10193         * manual/libc.texinfo: Update copyrights, formatting magic, and
10194         @dircategory.  From Karl Berry <karl@freefriends.org>.
10196 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
10198         [BZ #4860]
10199         * io/Makefile (headers): Add bits/fcntl2.h.
10201         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
10202         using gcc builtin.
10203         (__CPU_EQUAL_S): Likewise.
10205         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
10206         (tests): Add tst-cpuset.
10207         * posix/sched_cpualloc.c: New file.
10208         * posix/sched_cpufree.c: New file.
10209         * posix/tst-cpuset.c: New file.
10210         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
10211         GLIBC_2.7.
10212         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
10213         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
10214         macros.  Define CPU_*_S macros.
10216 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
10218         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
10219         entry.
10221         [BZ #4858]
10222         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
10223         #.0g and value rounded to 1.0.
10224         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
10226 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
10228         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
10229         for int_frac_digits and frac_digits.
10231         * login/logout.c (logout): Avoid aliasing violation.
10232         * login/logwtmp.c (logwtmp): Likewise.
10234         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
10236         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
10237         to avoid warning.
10238         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
10239         warning.
10240         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
10241         warning.
10242         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
10243         to avoid warnings.
10245         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
10246         void **.
10247         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
10249         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
10250         char * to avoid warning.
10251         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
10253         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
10255         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
10256         allocate_arrays): Cast second argument to charmap_find_symbol
10257         to char * to avoid warnings.
10259         * locale/programs/repertoire.c (repertoire_new_char): Change
10260         from_nr, to_nr and cnt to unsigned long, adjust printf format
10261         string.
10263         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
10264         Cast second argument to new_element to char * to avoid warnings.
10266         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
10268         * intl/gettextP.h (struct loaded_domain): Change plural to const
10269         struct expression *.
10270         * intl/plural-eval.c (plural_eval): Change first argument to
10271         const struct expression *.
10272         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
10273         argument to const struct expression **.
10274         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
10275         prototypes.
10276         * intl/loadmsgcat (_nl_unload_domain): Cast away const
10277         in call to __gettext_free_exp.
10279         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
10280         unitialized wstring/wpattern var warnings.
10282         * posix/runtests.c (struct a_test): Make data field const char *.
10284         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
10285         vars if not LDBL_MANT_DIG >= 106.
10287         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
10289         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
10290         __find_specmb to avoid warning.
10292         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
10294         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
10295         to avoid warnings.
10297         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
10298         initializer.
10300         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
10301         tv var when it will be actually used.
10303         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
10304         to avoid warnings.
10306         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
10307         char array resp. pointer.
10308         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
10309         char array.
10310         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
10311         to const unsigned char **.
10312         (ucs4_to_cns11643): Change second argument to unsigned char *.
10313         * iconvdata/euc-tw.c (BODY): Change endp type to
10314         const unsigned char *.
10315         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
10316         to unsigned char *.
10317         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
10318         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
10319         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
10320         types to unsigned char pointers/arrays instead of char.
10321         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
10322         to unsigned char *.
10323         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
10324         * iconvdata/jis0212.h: Include assert.h.
10325         (ucs4_to_jisx0212): Change second argument to unsigned char *.
10326         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
10327         of trying to handle that.
10328         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
10329         shut up a warning.
10330         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
10331         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
10332         two dimensional const unsigned char arrays.
10333         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
10334         Initialize endp to inptr to shut up a warning.
10336 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
10338         [BZ #4772]
10339         * time/strptime_l.c (__strptime_internal): Silently ignore
10340         strftime modifiers and field width in recursive calls.
10342         * include/time.h (enum ptime_locale_status): Remove.
10343         (__strptime_internal): Remove decided and era_cnt arguments,
10344         add statep argument.
10345         * time/strptime_l.c (__strptime_internal): Remove decided
10346         and era_cnt arguments, add statep argument.  Don't recompute
10347         any fields in recursive calls, only update caller's tm
10348         and state, if recursive call fails, don't change tm nor
10349         any state.
10350         (get_alt_number): Adjust.
10351         (recursive): Adjust caller.
10352         (strptime): Likewise.
10353         * time/strptime.c (strptime): Likewise.
10355 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
10357         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
10358         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
10359         if from and to charsets are the same.
10360         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
10361         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
10362         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
10364 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
10366         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
10367         Don't define wint_t when __need_mbstate_t unless it
10368         is necessary.
10369         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
10370         in the typedef if possible.
10371         * wctype/wctype.h (wint_t): Define by including
10372         wchar.h with __need_wint_t instead of including stddef.h
10373         with __need_wint_t and as fallback definining it ourselves.
10374         * iconv/gconv.h (__need_wint_t): Define before including
10375         wchar.h.
10376         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
10377         or _GLIBCPP_USE_WCHAR_T.
10378         (__need_wchar_t): Don't define
10379         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
10380         (__need_wint_t): Don't define before including stddef.h,
10381         define before including wchar.h only if _LIBC or
10382         _GLIBCPP_USE_WCHAR_T.
10383         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
10384         * sysdeps/mach/hurd/_G_config.h: Likewise.
10385         * sysdeps/generic/_G_config.h: Likewise.
10386         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
10387         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
10388         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
10389         if _LIBC or _GLIBCPP_USE_WCHAR_T.
10391 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
10393         * sysdeps/posix/posix_fallocate64.c: Undefine
10394         __posix_fallocate64_l64 before alias handling.
10395         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
10396         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
10397         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
10398         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
10400         * io/tst-posix_fallocate.c: Include <fcntl.h>.
10402 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
10404         * locale/programs/ld-collate.c (atwc): New variable.
10405         (add_to_tablewc): New toplevel function, moved from collate_output.
10406         (collate_output): Remove add_to_tablewc nested function.
10408         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
10409         (name_insert): New function.
10410         (write_output): Remove hash_table and hash_size vars and name_insert
10411         nested function.
10413 2007-07-24  Roland McGrath  <roland@redhat.com>
10415         * Makerules (install-others-programs-nosubdir): New target.
10416         (install-no-libc.a-nosubdir): Depend on it.
10418         * iconv/Makefile (install-others-programs): Set this instead of
10419         install-others.
10420         * login/Makefile (install-others-programs): Likewise.
10421         * posix/Makefile (install-others-programs): Likewise.
10423         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
10424         dependencies.
10426 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
10428         * io/Makefile (tests): Add tst-posix_fallocate.
10429         * io/tst-posix_fallocate.c: New file.
10431         * sysdeps/unix/sysv/linux/kernel-features.h: Define
10432         __ASSUME_FALLOCATE.
10434 2007-07-22  Roland McGrath  <roland@frob.com>
10436         * hurd/getdport.c: Add missing copyright year update.
10438         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
10439         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
10441 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
10443         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
10445         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
10446         O_CLOEXEC is needed.
10447         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
10448         Avoid additional fcntl to set O_CLOEXEC if not needed.
10449         * nis/nss_compat/compat-initgroups.c: Likewise.
10450         * nis/nss_compat/compat-pwd.c: Likewise.
10451         * nis/nss_compat/compat-spwd.c: Likewise.
10453 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10455         [BZ #3665]
10456         * manual/errno.texi: Change ECANCELED value to 119.
10458         [BZ #4610]
10459         * mach/lock-intern.h: Include <sys/cdefs.h>.
10461         [BZ #4178]
10462         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
10463         reading A.
10465         [BZ #4126]
10466         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
10467         to __sigsuspend.
10469         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
10471 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
10473         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
10474         `__ASSEMBLER__'.
10475         * sysdeps/mach/hurd/i386/tls.h: Likewise.
10477 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
10479         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
10480         descriptor received from nscd.
10482         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
10484         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
10485         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10486         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10487         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10488         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10489         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10491 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
10493         [BZ #4816]
10494         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
10496         [BZ #4813]
10497         * login/forkpty.c (forkpty): Close master and slave fds on
10498         fork failure.  Patch by
10499         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
10501 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
10503         * include/features.h (__USE_ISOC95): New define.
10504         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
10505         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
10506         for -std=iso9899:199409.
10507         * CONFORMANCE: Remove comments about unsupported AMD1.
10509 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
10511         * sysdeps/ia64/sched_cpucount.c: New file.
10512         * sysdeps/powerpc/sched_cpucount.c: New file.
10514         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
10515         __BEGIN_DECLS/__END_DECLS around the prototype.
10516         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
10517         pointer to const cpu_set_t.
10519         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
10520         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
10521         __need_size_t and include stddef.h.
10522         * sysvipc/sys/msg.h: Likewise.
10523         * posix/sched.h: Likewise.
10524         * hurd/hurd/signal.h (__need_size_t): Define.
10526         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
10527         neither does signal.h in pedantic ISO C namespaces.  stdio.h
10528         no longer defines wint_t or wchar_t.
10530         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
10531         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
10532         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
10533         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
10534         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
10535         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
10536         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
10537         * debug/printf_chk.c (__printf_chk): Likewise.
10538         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
10539         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
10541         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
10542         Define.
10544         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
10545         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
10547 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
10549         [BZ #4792]
10550         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
10551         * malloc/malloc.h (realloc): Likewise.
10553         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
10554         if one of proc_file_chain streams has that fileno.
10555         * stdio-common/Makefile (tests): Add tst-popen2.
10556         * stdio-common/tst-popen2.c: New test.
10558 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
10560         * elf/ldconfig.c: Allow GPLv2 or any later version.
10561         * elf/readlib.c: Likewise.
10562         * elf/chroot_canon.c: Likewise.
10563         * elf/cache.c: Likewise.
10564         * nscd/mem.c: Likewise.
10565         * nscd/getpwuid_r.c: Likewise.
10566         * nscd/grpcache.c: Likewise.
10567         * nscd/aicache.c: Likewise.
10568         * nscd/getsrvbynm_r.c: Likewise.
10569         * nscd/nscd.c: Likewise.
10570         * nscd/servicescache.c: Likewise.
10571         * nscd/getsrvbypt_r.c: Likewise.
10572         * nscd/initgrcache.c: Likewise.
10573         * nscd/gethstbyad_r.c: Likewise.
10574         * nscd/gethstbynm2_r.c: Likewise.
10575         * nscd/getgrnam_r.c: Likewise.
10576         * nscd/nscd_setup_thread.c: Likewise.
10577         * nscd/getpwnam_r.c: Likewise.
10578         * nscd/gai.c: Likewise.
10579         * nscd/connections.c: Likewise.
10580         * nscd/dbg_log.c: Likewise.
10581         * nscd/cache.c: Likewise.
10582         * nscd/hstcache.c: Likewise.
10583         * nscd/nscd_conf.c: Likewise.
10584         * nscd/getgrgid_r.c: Likewise.
10585         * nscd/pwdcache.c: Likewise.
10586         * catgets/gencat.c: Likewise.
10587         * locale/programs/linereader.h: Likewise.
10588         * locale/programs/locarchive.c: Likewise.
10589         * locale/programs/ld-paper.c: Likewise.
10590         * locale/programs/locfile-kw.h: Likewise.
10591         * locale/programs/ld-address.c: Likewise.
10592         * locale/programs/xmalloc.c: Likewise.
10593         * locale/programs/ld-time.c: Likewise.
10594         * locale/programs/localedef.c: Likewise.
10595         * locale/programs/simple-hash.c: Likewise.
10596         * locale/programs/xstrdup.c: Likewise.
10597         * locale/programs/ld-numeric.c: Likewise.
10598         * locale/programs/locfile-kw.gperf: Likewise.
10599         * locale/programs/ld-collate.c: Likewise.
10600         * locale/programs/charmap-kw.gperf: Likewise.
10601         * locale/programs/charmap.h: Likewise.
10602         * locale/programs/charmap-kw.h: Likewise.
10603         * locale/programs/config.h: Likewise.
10604         * locale/programs/locfile.c: Likewise.
10605         * locale/programs/ld-ctype.c: Likewise.
10606         * locale/programs/charmap.c: Likewise.
10607         * locale/programs/ld-messages.c: Likewise.
10608         * locale/programs/repertoire.h: Likewise.
10609         * locale/programs/locale.c: Likewise.
10610         * locale/programs/ld-name.c: Likewise.
10611         * locale/programs/linereader.c: Likewise.
10612         * locale/programs/locfile.h: Likewise.
10613         * locale/programs/3level.h: Likewise.
10614         * locale/programs/ld-monetary.c: Likewise.
10615         * locale/programs/ld-measurement.c: Likewise.
10616         * locale/programs/charmap-dir.c: Likewise.
10617         * locale/programs/ld-identification.c: Likewise.
10618         * locale/programs/localedef.h: Likewise.
10619         * locale/programs/charmap-dir.h: Likewise.
10620         * locale/programs/repertoire.c: Likewise.
10621         * locale/programs/simple-hash.h: Likewise.
10622         * locale/programs/ld-telephone.c: Likewise.
10623         * locale/programs/locale-spec.c: Likewise.
10624         * locale/programs/locfile-token.h: Likewise.
10625         * posix/getconf.c: Likewise.
10626         * iconv/dummy-repertoire.c: Likewise.
10627         * iconv/iconv_charmap.c: Likewise.
10628         * iconv/iconvconfig.c: Likewise.
10629         * iconv/iconv_prog.c: Likewise.
10630         * malloc/memusagestat.c: Likewise.
10631         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
10633 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10635         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
10636         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
10637         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
10638         check for the first argument.
10640 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
10642         [BZ #4775]
10643         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
10644         (__tgmath_real_type): Fix if expr is const int or other const
10645         qualified integral type.
10646         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
10647         expressions and handle const qualified arguments.
10648         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
10649         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10650         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
10651         statement expressions.
10652         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
10653         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
10654         (__TGMATH_UNARY_IMAG): Define.
10655         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
10656         * math/Makefile (tests): Add test-tgmath2.
10657         (CFLAGS-test-tgmath2.c): Add.
10658         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
10659         count_cfloat, count_cldouble): New variables.
10660         (NCCALLS): Define.
10661         (main): Check number of complex calls as well.
10662         (F(compile_test)): Add complex tests and tests with const qualified
10663         arguments.
10664         (y, z, ccount): Define.
10665         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
10666         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
10667         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
10668         F(cproj)): New functions.
10669         * math/test-tgmath2.c: New test.
10671 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
10673         [BZ #4776]
10674         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
10675         RPATH etc. as "/" rather than "", don't segfault on empty paths,
10676         instead output ".".
10677         * dlfcn/Makefile (distribute): Add glreflib3.c.
10678         (module-names): Add glreflib3.
10679         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
10680         glreflib1.so.
10681         (LDFLAGS_glreflib3.so): New.
10682         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
10683         glreflib1.so.
10684         * dlfcn/glreflib3.c: New file.
10686         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
10687         returned -1, return NULL.
10688         * intl/explodename.c (_nl_explode_name): Return -1 if
10689         _nl_normalize_codeset failed.
10691 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
10693         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
10694         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
10695         and avoid branch misspredicts for > 31 bytes memset case.
10696         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
10697         Remove toc ref to __cache_line_size.
10699         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
10700         to get ISA-V2.0 branch hints.
10701         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
10702         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
10703         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10704         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10705         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10706         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
10707         Remove toc ref to __cache_line_size.
10709         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
10710         Include math_ldbl_opt.h.
10712 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
10714         [BZ #4773]
10715         * time/strptime_l.c (__strptime_internal): Implement greedy
10716         matching of weekday and month names.
10718 2007-07-09  Roland McGrath  <roland@redhat.com>
10720         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
10721         (ELF_NOTE_ABI): Use it.
10722         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
10724 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
10726         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
10727         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10729 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
10731         [BZ #4745]
10732         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
10733         in loop to look for conversion specifier to avoid testing of
10734         wrong errno value.
10735         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
10736         * stdio-common/bug18.c: New file.
10737         * stdio-common/bug18a.c: New file.
10738         * stdio-common/bug19.c: New file.
10739         * stdio-common/bug19a.c: New file.
10741 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
10743         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
10744         running awk script.
10746 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
10748         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
10749         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
10750         Return NULL if mmap failed instead of asserting it does not.
10751         (calloc): Check for integer overflow.
10753         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
10754         than LONG_MAX / 10.
10756 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
10758         [BZ #4702]
10759         * nis/nss-default.c: Include errno.h.
10760         (init): Preserve errno.
10762 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
10764         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
10766 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
10768         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
10770 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10772         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
10774 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10776         * sysdeps/s390/dl-procinfo.c: New file.
10777         * sysdeps/s390/dl-procinfo.h: New file.
10778         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
10780 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
10782         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
10783         in PT_NOTE segments with multiple notes.
10784         * elf/readelflib.c (process_elf_file): Likewise.
10786 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
10788         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
10789         ISO C compliant.
10791 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10793         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
10795 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
10797         * include/link.h: Don't include rtld-lowlevel.h.
10798         (struct link_map): Remove l_scope_lock.
10799         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
10800         (_dl_scope_free_list): New field (variable) in _rtld_global.
10801         (DL_LOOKUP_SCOPE_LOCK): Remove.
10802         (_dl_scope_free): New prototype.
10803         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
10804         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
10805         (_dl_profile_fixup): Likewise.
10806         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
10807         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
10808         THREAD_GSCOPE_RESET_FLAG around it.
10809         * elf/dl-close.c (_dl_close_worker): Don't use
10810         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
10811         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
10812         scopes were queued or if l_scope_mem has been abandoned.
10813         * elf/dl-open.c (_dl_scope_free): New function.
10814         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
10815         * elf/dl-support.c (_dl_scope_free_list): New variable.
10816         * elf/dl-lookup.c (add_dependency): Remove flags argument.
10817         Remove DL_LOOKUP_SCOPE_LOCK handling.
10818         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
10819         handling.
10820         * elf/dl-object.c (_dl_new_object): Don't use
10821         __rtld_mrlock_initialize.
10823 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10825         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
10826         to fill in holes
10827         (rtld_global_ro): Likewise.
10829 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10831         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
10832         Move PT_LOAD checking to...
10833         (_dl_addr_inside_object): ... here, new function.
10834         * elf/dl-sym.c (do_sym): If not l_contiguous,
10835         call _dl_addr_inside_object.
10836         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
10837         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
10838         * elf/dl-open.c (dl_open_worker): Likewise.
10839         (_dl_addr_inside_object): New function if IS_IN_rtld.
10840         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
10841         holes are present or are PROT_NONE protected.
10842         * include/link.h (struct link_map): Add l_contiguous field.
10843         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
10845 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10846             Tomas Janousek  <tjanouse@redhat.com>
10847             Ulrich Drepper  <drepper@redhat.com>
10849         [BZ #4647]
10850         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
10851         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
10852         socket.
10853         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
10854         unused member a bitmap.
10855         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
10856         servers are configured.
10858 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10860         * elf/rtld.c (dl_main): Don't call init_tls more than once.
10862 2007-06-17  Andreas Schwab  <schwab@suse.de>
10864         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
10866 2007-06-16  Andreas Jaeger  <aj@suse.de>
10868         [BZ #4125]
10869         * sysdeps/unix/sysv/linux/sys/ptrace.h
10870         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
10871         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
10872         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
10873         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
10874         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
10875         Define.
10876         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10877         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10878         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10879         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10881 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
10883         [BZ #4599]
10884         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
10885         determining whether there are IPv4/IPv6 addresses, ignore loopback
10886         addresses.
10888 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10890         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
10891         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
10892         as the return type.  Change type of "r" variable to CMPtype.
10893         * soft-fp/eqsf2.c (__eqsf2): Likewise.
10894         * soft-fp/eqtf2.c (__eqtf2): Likewise.
10895         * soft-fp/gedf2.c (__gedf2): Likewise.
10896         * soft-fp/gesf2.c (__gesf2): Likewise.
10897         * soft-fp/getf2.c (__getf2): Likewise.
10898         * soft-fp/ledf2.c (__ledf2): Likewise.
10899         * soft-fp/lesf2.c (__lesf2): Likewise.
10900         * soft-fp/letf2.c (__letf2): Likewise.
10901         * soft-fp/unorddf2 (__unorddf2): Likewise.
10902         * soft-fp/unordsf2 (__unordsf2): Likewise.
10903         * soft-fp/unordtf2 (__unordtf2): Likewise.
10905 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
10907         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
10908         make sure gcc doesn't mess around with this.
10910 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10912         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
10914 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
10916         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
10917         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10918         at most once per _dl_close_worker.
10920 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10922         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10923         __sched_cpucount as const.
10924         * posix/sched_cpucount.c: Adjust.
10926         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10927         instruction for counting bits.
10928         * sysdeps/x86_64/sched_cpucount.c: New file.
10930 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
10932         * configure.in: Avoid variable named BASH.
10933         * config.make.in: Likewise.
10934         Patch in part by Mike Frysinger.
10936 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
10938         [BZ #4586]
10939         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10940         pseudo-zeros as zero.
10941         * sysdeps/x86_64/ldbl2mpn.c: New file.
10942         * sysdeps/ia64/ldbl2mpn.c: New file.
10944 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10946         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10947         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10948         Remove unreachable code at the end.
10950 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10952         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10953         ldbl-128ibm in comment.
10954         (fpclassifyl): Correct classification of denormals.
10955         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10956         return value for MIN denormal. Rewrite using long double math too
10957         correctly handle denormals and canonicalize the results.
10959 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
10961         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10962         (__mpn_construct_long_double): Fix conversion where result ought
10963         to be smaller than __LDBL_MIN__, or the low double should be
10964         denormal.  Fix decision where to negate low double - honor round
10965         to even rules.
10966         * stdio-common/tst-sprintf2.c: Include string.h.
10967         (COMPARE_LDBL): Define.
10968         (TEST): Also test whether a string hexadecimal float representation
10969         can be parsed back to the number.
10970         (main): Add a couple of further tests.
10972 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10974         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10975         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10976         is non-zero, but smaller than 2 * __DBL_MIN__.
10977         * stdio-common/tst-sprintf2.c: New test.
10978         * stdio-common/Makefile (tests): Add tst-sprintf2.
10980         * math/test-misc.c (main): Don't run last batch of tests with
10981         IBM long double format.
10983 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10985         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10986         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10987         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10988         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10989         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10990         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10991         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10992         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10993         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10994         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10995         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10997         New file.
10998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10999         New file.
11000         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
11001         New file.
11002         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
11003         New file.
11004         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
11005         New file.
11006         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
11007         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
11008         New file.
11009         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
11010         New file.
11011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
11012         New file.
11013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
11014         New file.
11015         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
11016         New file.
11018 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
11020         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
11021         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
11022         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
11023         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
11024         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
11025         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
11026         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
11027         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
11029 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
11031         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
11032         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
11033         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
11034         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
11035         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
11036         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
11037         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
11038         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
11040 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
11042         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
11043         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
11044         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
11045         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
11047 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
11049         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
11050         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
11052 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
11054         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
11055         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
11056         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
11057         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
11059 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
11061         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
11062         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
11064 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
11066         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
11067         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
11069         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
11070         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
11071         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
11072         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
11074 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
11076         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
11077         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
11078         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
11079         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
11081 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
11083         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
11084         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
11085         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
11086         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
11087         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
11088         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
11090 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
11092         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
11093         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
11094         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
11095         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
11097 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
11099         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
11100         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
11101         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
11102         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
11103         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
11104         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
11105         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
11106         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
11107         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
11108         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
11109         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
11110         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
11111         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
11112         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
11113         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
11114         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
11116 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
11118         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
11119         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
11121 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
11123         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
11124         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
11126 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
11128         * sysdeps/powerpc/powerpc32/970/Implies: New file.
11129         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
11130         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
11131         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
11132         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
11133         * sysdeps/powerpc/powerpc64/970/Implies: New file.
11134         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
11135         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
11136         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
11137         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
11139 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
11141         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
11143 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
11145         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
11146         branch miss-predicts. Ensure that cache line crossing does not impact
11147         dispatch grouping.
11149 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
11151         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
11152         "../../powerpc32/power4/memcopy.h".
11153         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
11154         "../../powerpc32/power4/wordcopy.c".
11156 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
11158         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
11159         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
11160         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
11161         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
11162         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
11163         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
11165 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
11167         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
11169 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
11171         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
11172         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
11173         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
11174         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
11175         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
11176         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
11177         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
11178         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
11180 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
11182         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
11184 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
11186         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
11187         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
11188         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
11189         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
11190         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
11191         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
11192         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
11194 2007-05-29  Roland McGrath  <roland@redhat.com>
11196         * po/Makefile (po-sed-cmd): New variable.
11197         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
11199 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
11201         * crypt/md5-crypt.c: Fix comment.
11203         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
11204         of crashing.  When this is the case or if the reply is malformed,
11205         don't try to close the new file descriptor since it does not
11206         exist.
11207         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
11209 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
11211         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
11212         if __NR_utimensat is not defined.
11214 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
11216         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
11218 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
11220         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
11221         (open): Fix comment typos.  Don't call __open_2 if flags
11222         is a compile time constant without O_CREAT.
11223         (__open64_2): Add nonnull attribute.
11224         (open64): Fix comment typos.  Don't call __open64_2 if flags
11225         is a compile time constant without O_CREAT.
11226         (__openat_2): Add nonnull attribute, fix nonnull attribute
11227         on redirect.
11228         (openat): Fix comment typos.  Don't call __openat_2 if flags
11229         is a compile time constant without O_CREAT.
11230         (__openat64_2): Add nonnull attribute, fix nonnull attribute
11231         on redirect.
11232         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
11233         is a compile time constant without O_CREAT.
11235 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
11237         * Makerules (sysd-rules): Define PTW for ptw-* files.
11238         * Versions: Define GLIBC_2.7 for libc.
11239         * include/stdio.h: Declare __fortify_fail.
11240         * debug/fortify_fail.c: New file.
11241         * debug/Makefile (routines): Add fortify_fail.
11242         * debug/chk_fail.c: Use __fortify_fail.
11243         * debug/stack_chk_fail.c: Likewise.
11244         * io/Versions: Export __open_2, __open64_2, __openat_2, and
11245         __openat64_2 for GLIBC_2.7.
11246         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
11247         * io/open.c: Define *_2 variant of function which checks for O_CREAT
11248         and fails if necessary.
11249         * io/open64.c: Likewise.
11250         * io/openat.c: Likewise.
11251         * io/openat64.c: Likewise.
11252         * sysdeps/unix/sysv/linux/open64.c: Likewise.
11253         * sysdeps/unix/sysv/linux/openat.c: Likewise.
11254         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
11255         * io/bits/fcntl2.h: New file.
11256         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
11257         __openat64_2.
11258         * include/bits/fcntl2.h: New file.
11259         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11260         Add open_2.
11261         * sysdeps/unix/sysv/linux/open_2.c: New file.
11263 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
11265         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
11266         as second parameter to handle_intel.
11268         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
11269         the entry.
11271         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
11272         handling to ...
11273         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
11274         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11275         cacheinfo.
11276         * sysdeps/x86_64/memcpy.S: Complete rewrite.
11277         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
11278         Patch by Evandro Menezes <evandro.menezes@amd.com>.
11280         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
11282 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
11284         [BZ #4525]
11285         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
11286         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
11287         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
11289         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
11291         [BZ #4514]
11292         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
11293         reinitialize workend at the start of each do_positional format spec
11294         loop, free workstart before do_positional loops.
11295         (printf_unknown): Fix size of work_buffer.
11296         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
11298         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
11299         (public_sET_STATe): If ms->version < 3, put all chunks into
11300         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
11301         chunks.
11303         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
11304         * malloc/hooks.c: Likewise.
11305         * malloc/arena.c: Likewise.
11306         * malloc/malloc.c (do_check_malloc_state): Don't assert
11307         n_mmaps is not greater than n_mmaps_max.  This removes the need
11308         for the previous change.
11310         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
11311         2007-05-07 commit.
11313 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
11315         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
11316         Define for kernel >= 2.6.22.
11318 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
11320         * elf/dl-close.c (_dl_close_worker): When removing object from
11321         global scope, wait for all lookups to finish afterwards.
11322         * elf/dl-open.c (add_to_global): When global scope array must
11323         grow, allocate a new one and free old array only after all
11324         lookups finish.
11325         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
11326         (_dl_lookup_symbol_x): Likewise.
11327         * elf/dl-support.c: Define _dl_wait_lookup_done.
11328         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
11329         _dl_wait_lookup_done.
11331         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
11332         not overlapping with arena.
11334         * malloc/mcheck.c (reallochook): If size==0, free the block.
11336         * rt/tst-shm.c: Use fstat64 instead of fstat.
11338         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
11339         __NR_sync_file_range is not defined.
11341 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
11343         Dummy files to prevent stub versions from being used.
11344         * sysdeps/x86_64/fpu/k_cosl.c: New file.
11345         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
11346         * sysdeps/x86_64/fpu/k_sinl.c: New file.
11347         * sysdeps/x86_64/fpu/k_tanl.c: New file.
11349         * version.h (VERSION): Set to 2.6.90.
11351 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
11353         * version.h (VERSION): Define to 2.6.
11354         * include/features.h (__GLIBC_MINOR__): Define to 6.
11356         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
11358         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
11359         sizes.
11361 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
11363         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
11364         number of mmaps.  n_mmaps_max is the target.
11365         * malloc/hooks.c: Likewise.
11366         * malloc/arena.c: Likewise.
11368 2007-05-12  Andreas Jaeger  <aj@suse.de>
11370         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
11371         getpid.
11373 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
11375         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
11376         adding new variables.
11378         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
11379         optimize.  Completely extend global scope array before making the
11380         new entries visible.
11382 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
11384         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
11385         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
11386         tst-getcpu.
11388         * include/link.h: Move l_version and l_nversion members around to
11389         fill gaps.
11391         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
11393         * sysdeps/unix/sysv/linux/sched_setaffinity.c
11394         (__sched_setaffinity_new): If syscall was successful and
11395         RESET_VGETCPU_CACHE is defined, use it before returning.
11396         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
11398         * io/sys/stat.h: Make sure struct timespec is defined for
11399         __USE_ATFILE.
11401         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
11402         UTIME_OMIT.
11403         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
11404         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
11405         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
11406         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
11407         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
11408         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
11409         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
11410         * io/sys/stat.h: Declare utimensat, futimens.
11411         * io/utimensat.c: New file.
11412         * io/futimens.c: New file.
11413         * sysdeps/unix/sysv/linux/utimensat.c: New file.
11414         * sysdeps/unix/sysv/linux/futimens.c: New file.
11415         * io/Makefile (routines): Add utimensat, futimens.
11416         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
11417         * sysdeps/unix/sysv/linux/lutimes.c: New file.
11418         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
11419         available.
11421         * include/sys/cdefs.h: Redefine __nonnull so that test for
11422         incorrect parameters in the libc code itself are not omitted.
11424 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
11426         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
11427         exception in addition to inexact when asked to raise only FE_INEXACT.
11429         [BZ #3427]
11430         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
11431         in *envp.
11433 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
11435         [BZ #4403]
11436         * string/strfry.c (strfry): Make result more random.
11438 2007-05-07  Richard Henderson  <rth@redhat.com>
11440         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
11441         if __NO_LONG_DOUBLE_MATH.
11442         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
11443         available in the compiler, add .arch directive to the assembly.
11445 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
11447         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
11448         compat_symbol to GLIBC_2_1.
11449         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
11450         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
11451         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
11452         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
11453         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
11454         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
11455         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
11456         libc, not libm.
11457         (__isnanl): New compat_symbol.
11459 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
11460             Jakub Jelinek  <jakub@redhat.com>
11462         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
11463         (new_heap): Initialize mprotect_size.
11464         (grow_heap): When growing, only mprotect from mprotect_size till
11465         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
11466         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
11468 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
11469             Peter Bergner  <bergner@us.ibm.com>
11471         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
11472         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
11473         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
11474         * sysdeps/powerpc/fpu/fe_mask.c: New file.
11475         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
11476         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
11477         Call __fe_mask_env() if all FP exceptions disabled.
11478         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
11479         from old FPSCR to new fenv to propagate DFP rounding modes.
11480         Call __fe_mask_env() if FP exceptions previously enabled.
11481         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
11482         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
11483         transitioning from all exceptions disabled to any exception enabled
11484         or visa versa.
11485         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
11486         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
11487         when transitioning from all exceptions disabled to any exception
11488         enabled or visa versa.
11489         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
11490         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
11491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
11492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
11493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
11494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
11496 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
11498         [BZ #4465]
11499         * posix/unistd.h: Remove __THROW from fdatasync.
11501 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
11503         [BZ #4465]
11504         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
11506 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
11508         * stdio-common/vfprintf.c (process_string_arg): Optimize
11509         ridiculous precision in wide char code printing multi-byte string.
11510         Reported by Jim Meyering <jim@meyering.net>.
11512         [BZ #4131]
11513         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
11514         boundaries to work around systems with overlapping binary loading.
11515         Based on a patch by Suzuki <suzuki@in.ibm.com>.
11517 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
11519         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
11520         __mbsnrtowcs after last change.
11522         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
11523         (get_ident): Likewise.
11525 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
11527         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
11528         with setting the sticky bit.
11529         * math/test-misc.c (main): Add more truncation tests.
11531 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
11533         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
11534         double in the function declaration.
11535         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
11536         double in the function declaration.
11537         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11538         float in the function declaration.
11539         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11540         float in the function declaration.
11542         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
11543         denormal operands.  Do not generate FP_EX_DENORM exception.
11544         (FP_UNPACK_RAW_EP): Ditto.
11545         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
11546         undefined _FP_UNPACK_RAW_E.
11547         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
11548         undefined _FP_UNPACK_RAW_EP.
11549         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
11550         undefined _FP_PACK_RAW_E.
11551         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
11552         undefined _FP_PACK_RAW_EP.
11554         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
11555         _FP_FRAC_COPY_2.
11556         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
11557         _FP_FRAC_COPY_4.
11559 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
11560             Jakub Jelinek  <jakub@redhat.com>
11562         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
11563         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
11564         this case.
11565         * soft-fp/op-common.h (FP_TRUNC): Ditto.
11567 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
11569         * math/test-misc.c (main): Add tests for rounding long double
11570         values close to smallest double denormalized value to double.
11572 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
11574         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
11575         condition for truncating to 0.  Set sticky bit for such
11576         truncation.
11578 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
11580         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
11581         fixed length array for ignore.
11583 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
11585         [BZ #4438]
11586         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
11587         stack for large precisions.
11588         * stdio-common/test-vfprintf.c (main): Add test for large
11589         precision.
11591 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
11593         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
11594         for exponent 0.
11595         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
11597         [BZ #4439]
11598         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
11599         account in the size check.
11600         * resolv/tst-inet_ntop.c: New test.
11601         * resolv/Makefile (tests): Add tst-inet_ntop.
11603 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
11604             Jakub Jelinek  <jakub@redhat.com>
11606         [BZ #4349]
11607         * malloc/malloc.c: Keep separate list for first blocks on the bin
11608         lists with a given size.  This helps skipping over list elements
11609         we know won't fit in two places.
11610         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
11612 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
11614         [BZ #4102]
11615         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
11616         label to Teredo tunnel addresses 2001://32.
11618 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
11620         * locale/programs/ld-collate.c (collate_read): Allow order_start
11621         after copy.
11623         * locale/programs/ld-collate.c (collate_read): Fix printing of
11624         error message.
11626         [BZ #3213]
11627         * locale/C-translit.h.in: Add entry for U2044.
11629         [BZ #4342]
11630         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
11631         hexa-decimal floats without exponent.
11632         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
11634 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11636         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
11637         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
11638         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
11639         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
11640         GLIBC_2.6.
11641         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
11642         Add sched_getcpu.
11644 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11646         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
11647         of 0 after the out_fail label.
11649 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11651         [BZ #4406]
11652         * iconv/gconv_charset.h (strip): Allow ':'.
11653         * iconv/iconv_open.c (iconv_open): Adjust comment.
11655 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11657         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
11658         version.
11660 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11662         [BZ #4381]
11663         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
11664         alignment of buffer and tmp_buffer.
11665         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
11666         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
11667         alignment of buffer.
11668         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
11669         bigger than INT_MAX.
11670         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
11671         h_errnop arguments.  Fail if buflen is too small.
11672         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
11674 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11676         [BZ #4405]
11677         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
11678         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
11680 2007-04-22  Roland McGrath  <roland@redhat.com>
11682         * elf/elf.h (NT_PRXFPREG): New macro.
11684 2007-04-19  Andreas Jaeger  <aj@suse.de>
11686         [BZ #3905]
11687         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
11688         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
11689         Added.
11691 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
11693         * include/sys/mman.h: Mark madvise hidden.
11694         * misc/madvise.c: Add libc_hidden_def.
11696 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
11698         * nis/nis_domain_of.c (__nis_domain_of): New function.
11699         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
11700         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
11701         * nis/nis_call.c (rec_dirsearch): Likewise.
11702         (first_shoot): Likewise.  Remove search_parent_first argument.
11703         (struct nis_server_cache): Rename search_parent_first field
11704         to search_parent.
11705         (nis_server_cache_search, nis_server_cache_add): Rename
11706         search_parent_first argument to search_parent.
11707         (__nisfind_server): Likewise.  If search_parent, call
11708         __nis_domain_of.
11710 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
11712         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
11714 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
11716         [BZ #4368]
11717         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
11719 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
11721         [BZ #4364]
11722         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
11724 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
11726         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
11727         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
11728         current number of locales in SUPPORTED.
11729         (create_archive): Initialize serial.
11730         (enlarge_archive): Preserve aliases rather than duplicating
11731         their locrecs.
11733 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11735         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
11736         after _IO_un_link, not before it.
11738         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
11739         special case handling when wcp == wstartp + 1.  Fix a comment typo.
11740         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
11742 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
11744         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
11745         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
11746         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
11747         Remove __THROW.
11748         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
11749         _IO_file_xsgetn_maybe_mmap): Likewise.
11750         * libio/oldfileops.c (old_do_write): Likewise.
11751         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
11752         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
11753         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
11754         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
11755         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
11756         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
11757         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
11758         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
11759         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
11760         _IO_file_underflow, _IO_file_underflow_mmap,
11761         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
11762         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
11763         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
11764         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
11765         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
11766         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
11767         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
11768         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
11769         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
11770         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
11771         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
11772         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
11773         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
11774         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
11775         _IO_adjust_column_internal, _IO_default_uflow_internal,
11776         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
11777         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
11778         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
11779         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
11780         _IO_file_close_it_internal, _IO_file_underflow_internal,
11781         _IO_file_overflow_internal, _IO_file_attach_internal,
11782         _IO_file_fopen_internal, _IO_file_sync_internal,
11783         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
11784         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
11785         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
11786         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
11787         _IO_seekpos_unlocked): Likewise.
11788         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
11789         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
11791 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
11793         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
11794         argument in xmalloc size computation.
11796 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11798         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
11799         math_opt_barrier and math_force_eval macros.
11801 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11803         [BZ #3306]
11804         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
11805         * sysdeps/i386/fpu/math_private.h: New file.
11806         * sysdeps/x86_64/fpu/math_private.h: New file.
11807         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
11808         math_force_eval macros.  Use "+m" constraint on asm rather than
11809         "=m" and "m".
11810         * math/s_nextafter.c (__nextafter): Likewise.
11811         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11812         Likewise.
11813         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
11814         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
11815         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11816         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
11817         math_opt_barrier and math_force_eval macros.
11818         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
11819         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
11820         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
11821         (__nexttoward): Use math_opt_barrier and
11822         math_force_eval macros.  Use "+m" constraint on asm rather than
11823         "=m" and "m".  Only use asm to force double result if
11824         FLT_EVAL_METHOD is 2.
11825         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
11826         (__nexttowardf): Use math_opt_barrier and
11827         math_force_eval macros.  Use "+m" constraint on asm rather than
11828         "=m" and "m".  Only use asm to force double result if
11829         FLT_EVAL_METHOD is not 0.
11830         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
11831         (__nexttowardf): Use math_opt_barrier and
11832         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11833         x to float using asm.
11834         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
11835         (__nldbl_nexttowardf): Use math_opt_barrier and
11836         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11837         x to float using asm.
11838         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
11839         (__nexttowardf): Use math_opt_barrier and math_force_eval
11840         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
11841         * math/bug-nextafter.c (zero, inf): New variables.
11842         (main): Add new tests.
11843         * math/bug-nexttoward.c (zero, inf): New variables.
11844         (main): Add new tests.
11846 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11848         [BZ #3427]
11849         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
11850         exceptions both in SW and MXCSR.
11851         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
11852         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
11853         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
11854         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11855         in MXCSR if SSE is available.
11856         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
11857         and ldsodefs.h.
11858         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
11859         Fix comment typo.
11860         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
11861         Return 0 rather than 1.
11862         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
11863         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
11864         * math/test-fenv.c (feholdexcept_tests): New function.
11865         (main): Call it.
11867 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
11869         [BZ #3427]
11870         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11871         in SW.
11873 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11875         [BZ #4344]
11876         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
11877         Reported by David Anderson <davea42@earthlink.net>.
11879 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
11881         * posix/sys/wait.h: Remove unnecessary forward declaration.
11883 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
11885         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
11886         with obj->do_servers after first_shoot.
11888 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
11890         * posix/Makefile (routines): Add sched_cpucount.
11891         (tests): Add tst-cpucount.
11892         * posix/sched_cpucount.c: New file.
11893         * posix/tst-cpucount.c: New file.
11894         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
11895         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
11896         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11897         * posix/sched.h: Define CPU_COUNT.
11899 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11901         * posix/fnmatch.c (STRUCT): Define.
11902         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
11903         * posix/fnmatch_loop.c (struct STRUCT): New type.
11904         (FCT): Add ends argument.  If ends != NULL and normal * is
11905         seen in the pattern, store current pattern and string pointers
11906         and return.  Adjust recursive calls.
11907         (EXT): Adjust FCT callers.
11908         (STRUCT): Undef at the end of the file.
11909         * posix/Makefile (tests): Add tst-fnmatch2.
11910         * posix/tst-fnmatch2.c: New test.
11912 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11914         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
11915         and 1 on failure.
11917         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11918         Change last argument to unsigned int.
11920 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
11922         * scripts/check-local-headers.sh: Filter out sys/capability.h.
11924 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11926         * config.h.in (HAVE_LIBCAP): Add.
11927         * nscd/selinux.h: Include sys/capability.h rather than non-existent
11928         sys/capabilities.h.
11929         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11930         free_caps.  Cast away const from 4th cap_set_flag argument.
11932 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
11934         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11935         GLIBC_2.6.
11936         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11937         Add sync_file_range.
11938         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11940 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
11942         * sysdeps/powerpc/bits/atomic.h
11943         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11944         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11945         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11946         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11947         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11948         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11949         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11950         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11951         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11952         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11953         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11954         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11955         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11956         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11957         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11958         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11959         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11960         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11961         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11962         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11964 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11966         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11967         (__cache_line_size): Define the variable here.  Add
11968         attribute_hidden, remove weak_extern.
11969         (__libc_start_main): Set __cache_line_size
11970         unconditionally.
11971         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11972         (__cache_line_size): Define the variable here.  Add
11973         attribute_hidden, remove weak_extern.
11974         (DL_PLATFORM_AUXV): Set __cache_line_size
11975         unconditionally.
11976         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11977         weak_extern, add attribute_hidden.
11978         (__elf_machine_runtime_setup): Assume __cache_line_size is always
11979         defined in ld.so.
11980         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11981         definition.
11982         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11984 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
11986         [BZ #4276]
11987         * timezone/africa: Update from tzdata2007d.
11988         * timezone/asia: Likewise.
11989         * timezone/australasia: Likewise.
11990         * timezone/backward: Likewise.
11991         * timezone/europe: Likewise.
11992         * timezone/iso3166.tab: Likewise.
11993         * timezone/leapseconds: Likewise.
11994         * timezone/northamerica: Likewise.
11995         * timezone/southamerica: Likewise.
11996         * timezone/zone.tab: Likewise.
11998         * timezone/private.h: Update from tzcode2007d.
11999         * timezone/zdump.c: Likewise.
12000         * timezone/zic.c: Likewise.
12002 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
12004         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
12005         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
12006         variables.
12007         (nis_server_cache_search, nis_server_cache_add): New functions.
12008         (__nisfind_server): Use them.  Add dbp and flags argument, if
12009         call __nisbind_create.
12010         (__nisbind_create): Add server_used and current_ep arguments,
12011         only call __nis_findfastest if server_used is ~0.
12012         (__do_niscall2, __prepare_niscall): Adjust callers.
12013         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
12014         ckey_cache_euid, ckey_cache_lock): New variables.
12015         (get_ckey): New function.
12016         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
12017         __pmap_getnisport.  Save __pmap_getnisport result in
12018         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
12019         key.
12020         * nis/nis_lookup.c (nis_lookup): Likewise.
12021         * nis/nis_table.c (nis_list): Likewise.
12022         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
12023         prototypes.
12025         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
12026         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
12027         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
12028         _nss_nisplus_getservbyport_r): Likewise.
12029         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
12030         _nss_nisplus_getnetbyaddr_r): Likewise.
12031         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
12032         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
12033         _nss_nisplus_getntohost_r): Likewise.
12034         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
12035         _nss_nisplus_getrpcbynumber_r): Likewise.
12037 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
12039         * configure.in (libc_cv_gnu89_inline): Only do compile test.
12040         * configure: Rebuilt.
12042         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
12043         bit-fields.
12044         * soft-fp/extended.h (_FP_UNION_E): Likewise.
12046 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
12048         [BZ #2831]
12049         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
12050         bit-fields.
12052 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
12054         * nscd/gai.c: Include alloca.h.
12055         (__libc_use_alloca): Define.
12057 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
12059         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
12060         smaller scopes.
12061         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
12062         (DL_DST_REQUIRED): Adjust user.
12064         * include/dlfcn.h (struct link_map): New forward decl.
12066         * inet/getnameinfo.c: Include stddef.h.
12067         (getnameinfo): Use offsetof.
12069         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
12071         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
12073         * string/strerror_l.c: Include stdlib.h.
12075         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
12076         * config.make.in (gnu89-inline-CFLAGS): New variable.
12077         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
12078         -std=gnu99.
12079         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
12080         * argp/argp.h: Use it.
12081         * bits/mathinline.h: Likewise.
12082         * bits/sigset.h: Likewise.
12083         * bits/string.h: Likewise.
12084         * ctype/ctype.h: Likewise.
12085         * hurd/hurd.h: Likewise.
12086         * hurd/hurd/fd.h: Likewise.
12087         * hurd/hurd/port.h: Likewise.
12088         * hurd/hurd/signal.h: Likewise.
12089         * hurd/hurd/threadvar.h: Likewise.
12090         * hurd/hurd/userlink.h: Likewise.
12091         * io/sys/stat.h: Likewise.
12092         * libio/bits/stdio.h: Likewise.
12093         * libio/bits/stdio2.h: Likewise.
12094         * mach/lock-intern.h: Likewise.
12095         * mach/mach/mig_support.h: Likewise.
12096         * math/bits/cmathcalls.h: Likewise.
12097         * posix/bits/unistd.h: Likewise.
12098         * socket/bits/socket2.h: Likewise.
12099         * stdlib/bits/stdlib.h: Likewise.
12100         * stdlib/stdlib.h: Likewise.
12101         * string/argz.h: Likewise.
12102         * string/bits/string2.h: Likewise.
12103         * string/bits/string3.h: Likewise.
12104         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
12105         * sysdeps/generic/inttypes.h: Likewise.
12106         * sysdeps/generic/machine-lock.h: Likewise.
12107         * sysdeps/generic/machine-sp.h: Likewise.
12108         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
12109         * sysdeps/i386/i486/bits/string.h: Likewise.
12110         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
12111         * sysdeps/mach/alpha/machine-lock.h: Likewise.
12112         * sysdeps/mach/alpha/machine-sp.h: Likewise.
12113         * sysdeps/mach/i386/machine-lock.h: Likewise.
12114         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
12115         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
12116         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
12117         * sysdeps/s390/bits/string.h: Likewise.
12118         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
12119         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12120         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
12121         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12122         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12123         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
12124         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
12125         * wcsmbs/bits/wchar2.h: Likewise.
12126         * wcsmbs/wchar.h: Likewise.
12127         * stdlib/gmp.h: Likewise.  Include <features.h> to get
12128         __extern_inline definition.
12130 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
12132         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
12133         NULL.
12135         [BZ #3919]
12136         * math/libm-test.inc (log_test): Test -Inf and NaN.
12137         (log10_test, log1p_test, log2_test): Test -Inf.
12138         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
12139         FE_INVALID when argument is qNaN.
12140         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
12141         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
12142         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
12143         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
12144         andb $1, %ah with testb $1, %ah, don't test for parity, instead
12145         testb $4, %ah and jump if non-zero.
12146         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
12147         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
12149         [BZ #4101]
12150         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
12151         ancestors with the same depths.
12152         Patch by Niels Moeller <nisse@lysator.liu.se>.
12153         (filter_doc): Don't crash if argp is NULL.
12154         * argp/Makefile (tests): Add tst-argp2.
12155         * argp/tst-argp2.c: New test.
12157         [BZ #4130]
12158         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
12159         open_not_cancel_2.
12160         (updwtmp_file): Likewise.
12162         [BZ #4181]
12163         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
12164         (inet6_opt_append): Don't check extlen is big enough if extbuf
12165         is NULL.
12166         (inet6_opt_finish): Likewise.
12167         * inet/Makefile (tests): Add test-inet6_opt.
12168         * inet/test-inet6_opt.c: New test.
12170         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
12171         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
12172         NLMSG_ERR.  Instead use a page sized buffer.
12173         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
12174         buffer.
12176 2007-03-14  Richard Henderson  <rth@redhat.com>
12178         * sysdeps/alpha/fpu/s_llround.c: New file.
12179         * sysdeps/alpha/fpu/s_llroundf.c: New file.
12180         * sysdeps/alpha/fpu/s_lround.c: New file.
12181         * sysdeps/alpha/fpu/s_lroundf.c: New file.
12182         * sysdeps/alpha/fpu/s_round.c: New file.
12183         * sysdeps/alpha/fpu/s_roundf.c: New file.
12184         * sysdeps/alpha/fpu/s_trunc.c: New file.
12185         * sysdeps/alpha/fpu/s_truncf.c: New file.
12187         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
12188         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
12189         * sysdeps/alpha/fpu/s_floor.c: Likewise.
12190         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
12191         * sysdeps/alpha/fpu/s_rint.c: Likewise.
12192         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
12194         * sysdeps/alpha/fpu/s_fmax.S: New file.
12195         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
12196         * sysdeps/alpha/fpu/s_fmin.S: New file.
12197         * sysdeps/alpha/fpu/s_fminf.S: New file.
12198         * sysdeps/alpha/fpu/s_isnan.c: New file.
12199         * sysdeps/alpha/fpu/s_isnanf.c: New file.
12200         * sysdeps/alpha/fpu/s_llrint.c: New file.
12201         * sysdeps/alpha/fpu/s_llrintf.c: New file.
12202         * sysdeps/alpha/fpu/s_lrint.c: New file.
12203         * sysdeps/alpha/fpu/s_lrintf.c: New file.
12204         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
12205         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
12207         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
12208         (__fdimf, fdimf, __fdim, fdim): Remove.
12209         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
12210         (__isnanf, __isnan, __isnanl): New.
12212 2007-03-13  Richard Henderson  <rth@redhat.com>
12214         * sysdeps/ieee754/ldbl-128/Makefile: New file.
12216 2007-03-13  Richard Henderson  <rth@redhat.com>
12218         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
12219         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
12220         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
12221         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
12222         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
12223         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
12225 2007-03-13  Richard Henderson  <rth@redhat.com>
12227         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
12228         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
12229         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
12230         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
12231         Move to dl-auxv.h; initialize instead of extern weak.
12232         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
12233         weak symbol.
12234         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
12235         Extern instead of initialized.
12237 2007-03-13  Richard Henderson  <rth@redhat.com>
12239         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
12240         __sigsuspend_nocancel.
12242 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
12244         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
12245         172.16/12 address range.
12247 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
12249         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
12250         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
12251         message.
12253 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
12255         [BZ #4069]
12256         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
12257         earlier.
12258         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
12260         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
12261         for x qNaN and y either +-inf or non-integer value.
12262         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
12263         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
12264         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
12266 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
12268         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
12269         from sysdep_headers.
12271 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
12273         * time/tzfile.c (find_transition): Instead of a linear search try to
12274         guess the transition index, use a linear search if the result is at
12275         most 10 transitions away from the guess or binary search otherwise.
12277 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
12279         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
12280         memory reallocation.
12282 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
12284         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
12285         and fix some typos.
12286         Optimize use of TOLOWER.
12288         [BZ #3325]
12289         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
12290         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
12291         * sysdeps/i386/fpu/e_fmod.S: Likewise.
12293         [BZ #3458]
12294         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
12295         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
12297         [BZ #4076]
12298         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
12299         (open_dir_stream): Likewise.
12300         * io/Makefile (tests): Add bug-ftw5.
12301         * io/bug-ftw5.c: New file.
12303         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
12304         * nscd/servicescache.c (cache_addserv): Likewise.
12306         * nscd/grpcache.c (cache_addgr): In case a record changed on
12307         refresh, adjust key_copy.
12309         [BZ #4074]
12310         * nscd/pwdcache.c (cache_addpw): In case a record changed on
12311         refresh, adjust key_copy.
12313         [BZ #4070]
12314         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
12315         special cases.
12316         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
12318 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
12320         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
12321         optimization.
12323         * stdio-common/vfscanf.c: Small cleanups throughout.
12325 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
12327         [BZ #3325]
12328         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
12329         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
12330         * sysdeps/i386/fpu/e_fmod.S: Likewise.
12331         Patch by Jared Casper <jaredcasper@gmail.com>.
12333         * sysdeps/unix/closedir.c: Outside libc don't use locking.
12334         * sysdeps/unix/opendir.c: Likewise.
12335         * sysdeps/unix/readdir.c: Likewise.
12337         [BZ #2211]
12338         * stdio-common/vfscanf.c: Handle localized digits etc for floating
12339         point numbers.
12340         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
12342         * stdio-common/vfscanf.c: Fix problems in width accounting.
12343         * stdio-common/tst-sscanf.c (double_tests): New tests.
12344         (main): Hook them up.
12346         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
12347         More simplifications of floating-point reader.
12349         * stdio-common/Makefile (tests): Add tst-swscanf.
12350         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
12351         testing.
12352         * stdio-common/tst-swscanf.c: New file.
12354 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
12356         [BZ #2633]
12357         * libio/stdio.h: Define struct _IO_FILE in global namespace.
12358         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
12359         Remove using for __jmp_buf_tag.
12360         * locale/locale.h (struct lconv): Also define in std namespace.
12361         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
12363         [BZ #3842]
12364         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
12365         using __libc_enable_secure.
12367         [BZ #3818]
12368         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
12370         [BZ #3745]
12371         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
12372         of names for ellipsises.
12374         [BZ #3348]
12375         * malloc/memusage.sh: Cleanups.
12376         * debug/xtrace.sh: Quoting and trap changes.
12378 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
12380         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
12382         * locale/iso-3166.def: Update entry for Serbia.
12383         * locale/iso-4217.def: Define RSD, remove CSD.
12385         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
12386         and 64-bit operations.
12388         [BZ #4040]
12389         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
12390         16-bit operations.
12392         * nscd/nscd.c (parse_opt): One more conversion to use send instead
12393         of writev.
12395 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
12397         [BZ #3991]
12398         * assert/assert.h (assert): Simplify.
12399         (assert_perror): Likewise.
12400         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
12402         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
12403         reqdata.
12405         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
12406         change: don't pass NULL in place of an integer.
12408 2007-02-02  Bruno Haible  <bruno@clisp.org>
12410         [BZ #3954]
12411         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
12412         Add mapping for U+327E.
12413         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
12414         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12415         mapping of 0xD9 0xE8.
12416         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
12417         mapping of U+327E.
12418         Reported by Jungshik Shin <jungshik@google.com>.
12420         [BZ #3955]
12421         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12422         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
12423         Reported by Jungshik Shin <jungshik@google.com>.
12425 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
12427         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
12428         byte variants.
12430         [BZ #4040]
12431         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
12432         byte variants.  Patch mostly be tom@tommay.net.
12434 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
12436         [BZ #3996]
12437         * posix/glob.c (attribute_hidden): Define if not defined.
12438         (glob): Unescape dirname, filename or username when needed and not
12439         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
12440         is NULL.  Handle unescaped [ in pattern without closing ].
12441         Don't pass GLOB_CHECK down to recursive glob for directories.
12442         (__glob_pattern_type): New function.
12443         (__glob_pattern_p): Implement using __glob_pattern_type.
12444         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
12445         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
12446         Remove unreachable code.
12447         * posix/globtest.sh: Add a couple of new tests.
12449 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
12451         * po/ru.po: Update from translation team.
12453 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
12455         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
12456         to the list of i486+ CPUs.
12457         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12459 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
12461         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
12462         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
12463         references.
12465 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
12467         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
12469         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
12470         * resolv/res_mkquery.c: Define __res_nopt.
12471         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
12472         try adding EDNS0 record.
12473         * resolv/res_send.c (send_dg): If request failed with FORMERR and
12474         EDNS0 record was send make sure we don't try it again.
12475         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
12476         * include/resolv.h: Declare __res_nopt.
12478 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
12480         [BZ #3944]
12481         * time/strptime_l.c (__strptime_internal): Set have_mon for
12482         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
12483         have been computed from tm_yday and tm_year.  Don't crash
12484         in day_of_the_week or day_of_the_year if not have_mon
12485         and tm_mon contains bogus value.
12486         * time/Makefile (tests): Add tst-strptime3.
12487         * time/tst-strptime3.c: New test.
12489 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
12491         [BZ #3957]
12492         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
12493         bit for RE_HAT_LISTS_NOT_NEWLINE.
12494         (build_charclass_op): Remove bogus comment.
12495         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
12496         * posix/bug-regex27.c: New test.
12497         * posix/bug-regex28.c: New test.
12499 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
12501         * po/sv.po: Update from translation team.
12503 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
12505         * nscd/nscd_helper.c (open_socket): Minor size optimization.
12507 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
12509         * include/locale.h (__uselocale): Add libc_hidden_proto.
12510         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
12512         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
12513         gettimeofday.
12515 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
12517         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
12518         returning.
12519         (PTR_DEMANGLE): Real definition now that it's not the same as
12520         PRT_MANGLE anymore.
12521         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
12523         * string/strerror_l.c: New file.
12524         * string/Makefile (routines): Add strerror_l.
12525         * string/string.h: Declare strerror_l.
12526         * string/Versions: Export strerror_l for GLIBC_2.6.
12528 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
12530         * nscd/nscd_helper.c (open_socket): Now takes request type and key
12531         as parameter.  Construct request record.  Try sending request
12532         before the first poll use, it usually succeeds.  Adjust all
12533         callers.
12534         * nscd/nscd-client.h: Define MAXKEYLEN.
12535         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
12537 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
12539         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
12540         from return value.
12541         * nscd/nscd_helper.c: Include string.h.
12542         (__nscd_cache_search): Remove const qualifier from return value.
12543         On strict alignment architectures check hash entry and data head
12544         alignment.
12545         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
12546         mmapped data during GC cycle contains garbage.  If
12547         __nscd_drop_map_ref fails, decrement mapped->counter when returning
12548         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
12549         dropped to 0.
12550         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
12551         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
12552         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
12553         * nscd/nscd_getai.c (__nscd_getai): Likewise.
12554         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12556 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
12558         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
12560 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
12562         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
12563         names not numbers in cfi_*.
12565 2007-01-26  Andreas Jaeger  <aj@suse.de>
12567         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
12568         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
12569         Correct values of PER_HPUX and PER_OSF4.
12571 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
12573         * elf/dl-minimal.c: Undefine _itoa first.
12574         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
12575         * malloc/mtrace.c: Revert last change.
12576         * posix/wordexp.c: Likewise.
12578 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
12580         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
12581         and __geode__ to the list of i486+ CPUs.
12582         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12584 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
12586         * stdio-common/_itoa.c: Include <limits.h>.
12587         * stdio-common/_itowa.c: Likewise.
12589 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
12591         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
12592         platforms.
12593         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
12594         64-bit platforms.
12595         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
12596         possible.
12597         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
12598         if possible.
12600         [BZ #3902]
12601         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
12602         * stdio-common/Makefile (tests): Add bug17.
12603         * stdio-common/bug17.c: New file.
12605 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
12607         * iconvdata/brf.c: New file.
12608         * iconvdata/testdata/BRF: New file.
12609         * iconvdata/testdata/BRF..UTF8: New file.
12610         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
12611         * iconvdata/Makefile: Add rules to build BRF.
12612         * iconvdata/TESTS: Add BRF entry.
12613         * iconvdata/gconv-modules: Likewise.
12614         * iconvdata/tst-tables.sh: Likewise.
12616 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
12618         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
12619         type `long long int', not `long int'.
12620         (wcstoq): Likewise.
12622 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
12624         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
12625         of values on 64-bit platforms which are too large.
12627 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
12628             Joe Kerian  <jkerian@us.us.ibm.com>
12630         [BZ #2749]
12631         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
12632         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
12633         (__copysignl): Use signbit() for comparison.
12634         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
12635         SET_LDOUBLE_WORDS64.
12637         [BZ #2423, #2749]
12638         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
12639         (__ceill): Remove calls to fegetround(), fesetround().
12640         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12641         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12642         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12644 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
12646         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
12648         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
12650 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
12652         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
12653         demangle pointer.
12654         * csu/libc-start.c: Likewise.
12656 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
12658         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
12659         really work anyway.
12661 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12663         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
12664         users.
12665         (handle_request): Remove unnecessary tests.
12667         * nscd/cache.c (cache_add): Record the failure to add to the cache.
12669 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
12671         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
12672         workbits in semi-raw fraction.
12674         * math/test-misc.c: Add new tests.
12676 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
12678         * math/basic-test.c: Include test-skeleton.c.
12679         (TEST_TRUNC): Define.
12680         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
12681         (main): Rename to ...
12682         (do_test): ...this.  Run new tests.
12683         (TEST_FUNCTION): Define.
12685 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
12686             Joe Kerian  <jkerian@us.us.ibm.com>
12688         [BZ #2749]
12689         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
12690         handling for high words.
12691         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
12692         and overflow for infinity.
12694 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12696         * nscd/connections.c (handle_request): Add a __builtin_expect.
12698         * nscd/connections.c (serv2db): Change type into structure which
12699         also says whether this is a request for data.  Renamed to
12700         servinfo.  All users changed.
12701         (handle_request): Much simpler test whether we should search the cache.
12703         * nscd/connections.c (handle_request): Fix thinko in selinux test
12704         invocation.
12706         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
12707         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
12708         it before getting dl_load_lock and then relock.
12709         (_dl_lookup_symbol_x): Pass flags to add_dependency.
12710         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
12711         case we unlocked the scope.
12712         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
12713         _dl_lookup_symbol_x in case we locked the scope.
12714         (_dl_profile_fixup): Likewise.
12715         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
12716         set DL_LOOKUP_SCOPE_LOCK.
12718 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
12720         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
12721         CFLAGS-getsrvbynpt_r.c.
12722         * nscd/getsrvbynm_r.c: New file.
12723         * nscd/getsrvbypt_r.c: New file.
12724         * nscd/nscd_getserv_r.c: New file.
12725         * nscd/servicescache.c: New file.
12726         * nscd/Makefile (routines): Add nscd_getserv_r.
12727         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
12728         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
12729         CFLAGS-getsrvbypt_r.c.
12730         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
12731         table.  Add entries for services database.
12732         * nscd/connections.c (serv2str): Mark as const.  Add entries for
12733         services database.
12734         (dbs): Add .reset_res and servdb initialization.
12735         (serv2db): Add entries for services database.
12736         (verify_persistent_db): Accept dbnr == servdb.
12737         (invalidate_cache): Rewrite database name recognition to use a table.
12738         Call res_init() if .reset_res is set for database.
12739         (handle_request): Add code to handle services database.
12740         * nscd/gai.c: Don't define __getservbyname_r.
12741         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
12742         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
12743         (serv_response_header): Define.
12744         (struct datahead): Add serv_response_header member.
12745         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
12746         using table.
12747         * nscd/nscd.conf: Add entries for services database.
12748         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
12749         Declare serv_iov_disabled.
12750         Declare addservbyname, readdservbyname, addservbyport, and
12751         readdservbyport.
12752         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
12753         (find_db): Fix error message.
12754         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
12755         __nscd_getservbyname_r, and __nscd_getservbyport_r.
12756         * nscd/selinux.c (perms): Add entries for services database.
12757         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
12758         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
12760         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
12761         * nscd/hstcache.c: Likewise.
12762         * nscd/pwdcache.c: Likewise.
12764         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
12765         computation of keylen.
12767         * include/string.h: Only redefine strndupa if this is really for
12768         libc code.
12770 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
12772         * nscd/nscd_gethst_r.c: Minor cleanups.
12774         * nscd/connections.c (handle_request): Check selinux permissions
12775         for all non-admin commands.
12777         * sysdeps/i386/i486/bits/atomic.h: Define
12778         atomic_compare_and_exchange_val_acq,
12779         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
12780         using __sync_* built-ins for gcc >= 4.1.
12781         * sysdeps/x86_64/bits/atomic.h: Likewise.
12783         [BZ #3840]
12784         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
12785         and .oS.d files.
12787 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
12789         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
12790         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
12791         (do_test): Check errno and exit(0) if ENOSYS.
12793 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12795         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
12796         thousands separators.
12797         * stdlib/Makefile: Add rules to build and run tst-strtod4.
12798         * stdlib/tst-strtod4.c: New test.
12800         [BZ #3855]
12801         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
12802         hexadecimal digit should accept just the initial 0.
12803         * stdlib/tst-strtod2.c (tests): New variable.
12804         (do_test): Run several tests rather than just one.
12806 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12808         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
12809         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12811 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
12813         * io/fts.c: Make sure fts_cur is always valid after return from
12814         fts_read.
12815         Patch by Miloslav Trmac <mitr@redhat.com>.
12817 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
12819         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
12820         (R_MIPS_NUM): Bump by 1.
12822 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
12824         * posix/execvp.c: Include alloca.h.
12825         (allocate_scripts_argv): Renamed to...
12826         (scripts_argv): ... this.  Don't allocate buffer here nor count
12827         arguments.
12828         (execvp): Use alloca if possible.
12829         * posix/Makefile: Add rules to build and run tst-vfork3 test.
12830         * posix/tst-vfork3.c: New test.
12832 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
12834         * string/Makefile (tst-strxfrm2-ENV): Define.
12835         * stdlib/Makefile (tst-strtod3-ENV): Define.
12837 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
12839         * posix/getconf.c: Update copyright year.
12840         * nss/getent.c: Likewise.
12841         * iconv/iconvconfig.c: Likewise.
12842         * iconv/iconv_prog.c: Likewise.
12843         * elf/ldconfig.c: Likewise.
12844         * catgets/gencat.c: Likewise.
12845         * csu/version.c: Likewise.
12846         * elf/ldd.bash.in: Likewise.
12847         * elf/sprof.c (print_version): Likewise.
12848         * locale/programs/locale.c: Likewise.
12849         * locale/programs/localedef.c: Likewise.
12850         * nscd/nscd.c (print_version): Likewise.
12851         * debug/xtrace.sh: Likewise.
12852         * malloc/memusage.sh: Likewise.
12853         * malloc/mtrace.pl: Likewise.
12854         * debug/catchsegv.sh: Likewise.
12856 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
12858         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
12859         attempts.
12861 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
12863         * posix/wordexp.c: Remove some unnecessary tests.
12865 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
12867         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
12868         blacklist the group till after we look it up.
12870 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
12872         * include/atomic.h (atomic_forced_read): New macro.
12874 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
12876         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
12878 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
12880         * nss/getXXbyYY_r.c: Include atomic.h.
12881         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
12882         add atomic_write_barrier () in between.
12884         * stdlib/Makefile (tests): Add tst-makecontext.
12885         * stdlib/tst-makecontext.c: New test.
12887         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12888         (__makecontext): Don't realign uc_mcontext.uc_regs.
12890 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
12892         * elf/dl-support.c: Include dl-procinfo.h.
12893         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
12894         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
12895         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
12896         Define.
12897         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
12898         hardcoded constants.
12899         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
12900         PPC_PLATFORM_* macros for array designators.
12902 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
12904         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
12905         names to the beginning.
12906         (_dl_powerpc_platforms): Add "power6x".
12907         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12908         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
12909         (_DL_PLATFORMS_COUNT): Increase.
12910         (_dl_string_platform): Handle power6x case.
12911         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
12912         PPC_FEATURE_POWER6_EXT): Define.
12913         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
12915 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
12917         [BZ #3747]
12918         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12919         [-2^31 .. 2^31) range.
12920         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12921         targets.
12922         * stdlib/tst-rand48-2.c: New test.
12923         * stdlib/Makefile (tests): Add tst-rand48-2.
12925 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
12927         * misc/tst-pselect.c (do_test): Fix sigblock argument.
12929 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
12931         * misc/tst-pselect.c (do_test): Make sure the helper process is
12932         terminating when the test is aborted.
12934 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
12936         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12937         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12938         Handle relatime mount option.
12940         [BZ #2337]
12941         * libio/Makefile (tests): Add tst-setvbuf1.
12942         * libio/tst-setvbuf1.c: New file.
12944 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
12946         [BZ #2337]
12947         * libio/genops.c (__uflow): Fix a typo.
12948         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12949         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
12950         the narrow buffer size.
12952 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
12954         [BZ #2337]
12955         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12956         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12957         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12958         in _flags.
12959         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12960         _IO_wstr_finish): Likewise.
12961         * libio/wmemstream.c (open_wmemstream): Likewise.
12962         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12963         even for wide streams.
12965 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
12967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12968         kernel-features.h.
12970 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
12972         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12973         separators also if no non-zero digits found.
12974         * stdlib/Makefile (tests): Add tst-strtod3.
12976 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
12978         [BZ #3632]
12979         * include/features.h: Fix comment about default value for
12980         _POSIX_C_SOURCE.
12982         [BZ #3664]
12983         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12984         empty parsed strings.
12985         * stdlib/Makefile (tests): Add tst-strtod2.
12986         * stdlib/tst-strtod2.c: New file.
12988         [BZ #3673]
12989         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12990         computation.
12991         * stdlib/Makefile (tests): Add tst-atof2.
12992         * stdlib/tst-atof2.c: New file.
12994         [BZ #3674]
12995         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12996         correctly if removing trailing zero of hex-float.
12997         * stdlib/Makefile (tests): Add tst-atof1.
12998         * stdlib/tst-atof1.c: New file.
13000 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
13002         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
13003         Start searching for next comma at p rather than rest.
13004         * misc/Makefile (tests): Add tst-mntent2.
13005         * misc/tst-mntent2.c: New test.
13007         * misc/getusershell.c (initshells): Check for integer overflows.
13008         Make strings buffer one bigger as fgets always succeeds when second
13009         argument is 1.  Don't use calloc for shells array.  Disallow
13010         / as shell.
13012 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
13014         * malloc/memusage.c: Handle realloc with new size of zero and
13015         non-NULL pointer correctly.
13016         (me): Really write first record twice.
13017         (struct entry): Make format bi-arch safe.
13018         (dest): Write out more realloc statistics.
13019         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
13021 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
13023         * nis/nis_subr.c (nis_getnames): Revert last change.
13025 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
13027         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
13028         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
13029         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
13030         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
13031         ENOTTY.
13032         * io/Makefile: Add rules to build and run tst-ttyname_r test.
13033         * io/tst-ttyname_r.c: New test.
13035 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13037         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
13039 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
13041         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
13042         jump table entries.
13044 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
13046         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
13047         `clone' function to ensure proper unwinding stop of gdb.
13048         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
13050 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
13052         * nscd/nscd.init: Remove obsolete and commented-out -S option
13053         handling.
13055 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
13057         [BZ #3514]
13058         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
13060         [BZ #3515]
13061         * manual/string.texi (strtok): Remove duplicate paragraph.
13063 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
13065         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
13066         libgcc not supporting `rflags' unwinding (register # >= 17).
13068 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
13070         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
13071         succeeded.
13073 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
13074             Jakub Jelinek  <jakub@redhat.com>
13075             Jan Kratochvil  <jan.kratochvil@redhat.com>
13077         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
13078         unwind information.
13079         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
13080         'restore_rt' even in the 'signal' directory.
13081         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
13083 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
13085         [BZ #3559]
13086         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
13087         malloc crashed.  Don't allocate memory unnecessarily in each
13088         loop.
13090 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
13092         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
13094 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
13096         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
13098 2006-11-18  Bruno Haible  <bruno@clisp.org>
13100         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
13101         __sysconf only after having tried to call getgroups32.
13103 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
13105         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
13106         addresses for IPv4 queries if they can be mapped.
13108 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
13110         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
13111         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
13112         (signmask): Add .size directive.
13113         (othermask): Add .type directive.
13115 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
13117         * po/nl.po: Update from translation team.
13119         * timezone/zdump.c: Redo fix for BZ #3137.
13121 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
13123         * nss/nss_files/files-alias.c (get_next_alias): Set line back
13124         to first_unused after parsing :include: file.
13126 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
13128         * timezone/africa: Update from tzdata2006o.
13129         * timezone/antarctica: Likewise.
13130         * timezone/asia: Likewise.
13131         * timezone/australasia: Likewise.
13132         * timezone/backward: Likewise.
13133         * timezone/europe: Likewise.
13134         * timezone/iso3166.tab: Likewise.
13135         * timezone/northamerica: Likewise.
13136         * timezone/southamerica: Likewise.
13137         * timezone/zone.tab: Likewise.
13139         * time/tzfile.c (__tzfile_read): Extend to handle new file format
13140         on machines with 64-bit time_t.
13142         * timezone/checktab.awk: Update from tzcode2006o.
13143         * timezone/ialloc.c: Likewise.
13144         * timezone/private.h: Likewise.
13145         * timezone/scheck.c: Likewise.
13146         * timezone/tzfile.h: Likewise.
13147         * timezone/tzselect.ksh: Likewise.
13148         * timezone/zdump.c: Likewise.
13149         * timezone/zic.c: Likewise.
13151         [BZ #3483]
13152         * elf/ldconfig.c (main): Call setlocale and textdomain.
13153         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
13155         [BZ #3480]
13156         * manual/argp.texi: Fix typos.
13157         * manual/charset.texi: Likewise.
13158         * manual/errno.texi: Likewise.
13159         * manual/filesys.texi: Likewise.
13160         * manual/lang.texi: Likewise.
13161         * manual/maint.texi: Likewise.
13162         * manual/memory.texi: Likewise.
13163         * manual/message.texi: Likewise.
13164         * manual/resource.texi: Likewise.
13165         * manual/search.texi: Likewise.
13166         * manual/signal.texi: Likewise.
13167         * manual/startup.texi: Likewise.
13168         * manual/stdio.texi: Likewise.
13169         * manual/sysinfo.texi: Likewise.
13170         * manual/syslog.texi: Likewise.
13171         * manual/time.texi: Likewise.
13172         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13174         [BZ #3465]
13175         * sunrpc/clnt_raw.c: Minimal message improvements.
13176         * sunrpc/pm_getmaps.c: Likewise.
13177         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
13178         * nis/nis_print_group_entry.c: Likewise.
13179         * locale/programs/repertoire.c: Likewise.
13180         * locale/programs/charmap.c: Likewise.
13181         * malloc/memusage.sh: Likewise.
13182         * elf/dl-deps.c: Likewise.
13183         * locale/programs/ld-collate.c: Likewise.
13184         * libio/vswprintf.c: Likewise.
13185         * malloc/memusagestat.c: Likewise.
13186         * sunrpc/auth_unix.c: Likewise.
13187         * sunrpc/rpc_main.c: Likewise.
13188         * nscd/cache.c: Likewise.
13189         * locale/programs/repertoire.c: Unify output messages.
13190         * locale/programs/charmap.c: Likewise.
13191         * locale/programs/ld-ctype.c: Likewise.
13192         * locale/programs/ld-monetary.c: Likewise.
13193         * locale/programs/ld-numeric.c: Likewise.
13194         * locale/programs/ld-time.c: Likewise.
13195         * elf/ldconfig.c: Likewise.
13196         * nscd/selinux.c: Likewise.
13197         * elf/cache.c: Likewise.
13198         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
13200         [BZ #3451]
13201         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
13202         change atomic.
13203         (ceil): Likewise.
13205 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
13207         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
13208         if N is one bigger than return value.
13209         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
13210         and l1 last arguments, if buf is defined, verify the return value
13211         equals to strlen (buf) and verify no byte beyond passed length
13212         is modified.
13214 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
13216         * po/sv.po: Update from translation team.
13218 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
13220         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
13221         noinline attribute.
13223 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
13225         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
13226         noinline attribute.
13228         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
13229         Use __new_sys_siglist instead of _sys_siglist_internal as
13230         second macro argument.
13231         (_old_sys_siglist): Use declare_symbol_alias macro instead of
13232         strong_alias.
13234 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
13236         [BZ #3493]
13237         * posix/unistd.h (sysconf): Remove const attribute.
13239         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
13240         temporary or deprecated addresses.
13241         Patch by Sridhar Samudrala <sri@us.ibm.com>.
13243         * string/Makefile (tests): Add tst-strxfrm2.
13244         * string/tst-strxfrm2.c: New file.
13246 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
13248         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
13249         rather than r->r_brk.
13251 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
13253         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
13254         optimization even if needed > n.
13256         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
13257         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
13258         return false, otherwise return true.
13259         (cache_rpath): Return decompose_rpath return value.
13261 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
13263         * include/libc-symbols.h (declare_symbol): Rename to...
13264         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
13265         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
13266         .size directive.
13267         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
13268         changes.
13269         * sysdeps/gnu/siglist.c: Likewise.
13271 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
13273         * sysdeps/powerpc/fpu/bits/mathinline.h
13274         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
13275         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
13277 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
13279         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
13280         Update handling of cache descriptor 0x49 for new models.
13281         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
13282         Likewise.
13284 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
13286         * malloc/memusage.c (dest): Reset not_me back to false after
13287         printing statistics.
13289 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
13291         * configure.in: Work around ld --help change and avoid -z relro
13292         test completely if the architecture doesn't care about security.
13294 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
13296         * po/sv.po: Update from translation team.
13298 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
13300         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
13301         generate compatibility version.
13303 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
13305         * configure.in: Relax -z relro requirement a bit.
13307         * po/sv.po: Update from translation team.
13309 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
13311         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
13312         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
13313         * elf/dl-close.c (_dl_close_worker): Likewise.
13314         * elf/dl-open.c (_dl_open_worker): Likewise.
13315         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
13317 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
13319         * configure.in: Require assembler support for visibility, compiler
13320         support for visibility and aliases, linker support for various -z
13321         options.
13322         * Makeconfig: Remove conditional code which now is unnecessary.
13323         * config.h.in: Likewise.
13324         * config.make.in: Likewise.
13325         * dlfcn/Makefile: Likewise.
13326         * elf/Makefile: Likewise.
13327         * elf/dl-load.c: Likewise.
13328         * elf/rtld.c: Likewise.
13329         * include/libc-symbols.h: Likewise.
13330         * include/stdio.h: Likewise.
13331         * io/Makefile: Likewise.
13332         * io/fstat.c: Likewise.
13333         * io/fstat64.c: Likewise.
13334         * io/fstatat.c: Likewise.
13335         * io/fstatat64.c: Likewise.
13336         * io/lstat.c: Likewise.
13337         * io/lstat64.c: Likewise.
13338         * io/mknod.c: Likewise.
13339         * io/mknodat.c: Likewise.
13340         * io/stat.c: Likewise.
13341         * io/stat64.c: Likewise.
13342         * libio/stdio.c: Likewise.
13343         * nscd/Makefile: Likewise.
13344         * stdlib/Makefile: Likewise.
13345         * stdlib/atexit.c: Likewise.
13346         * sysdeps/generic/ldsodefs.h: Likewise.
13347         * sysdeps/i386/dl-machine.h: Likewise.
13348         * sysdeps/i386/sysdep.h: Likewise.
13349         * sysdeps/i386/i686/memcmp.S: Likewise.
13350         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13351         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13352         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13354         * Makerules: USE_TLS support is now default.
13355         * tls.make.c: Likewise.
13356         * csu/Versions: Likewise.
13357         * csu/libc-start.c: Likewise.
13358         * csu/libc-tls.c: Likewise.
13359         * csu/version.c: Likewise.
13360         * dlfcn/dlinfo.c: Likewise.
13361         * elf/dl-addr.c: Likewise.
13362         * elf/dl-cache.c: Likewise.
13363         * elf/dl-close.c: Likewise.
13364         * elf/dl-iteratephdr.c: Likewise.
13365         * elf/dl-load.c: Likewise.
13366         * elf/dl-lookup.c: Likewise.
13367         * elf/dl-object.c: Likewise.
13368         * elf/dl-open.c: Likewise.
13369         * elf/dl-reloc.c: Likewise.
13370         * elf/dl-support.c: Likewise.
13371         * elf/dl-sym.c: Likewise.
13372         * elf/dl-sysdep.c: Likewise.
13373         * elf/dl-tls.c: Likewise.
13374         * elf/ldconfig.c: Likewise.
13375         * elf/rtld.c: Likewise.
13376         * elf/tst-tls-dlinfo.c: Likewise.
13377         * elf/tst-tls1.c: Likewise.
13378         * elf/tst-tls10.h: Likewise.
13379         * elf/tst-tls14.c: Likewise.
13380         * elf/tst-tls2.c: Likewise.
13381         * elf/tst-tls3.c: Likewise.
13382         * elf/tst-tls4.c: Likewise.
13383         * elf/tst-tls5.c: Likewise.
13384         * elf/tst-tls6.c: Likewise.
13385         * elf/tst-tls7.c: Likewise.
13386         * elf/tst-tls8.c: Likewise.
13387         * elf/tst-tls9.c: Likewise.
13388         * elf/tst-tlsmod1.c: Likewise.
13389         * elf/tst-tlsmod13.c: Likewise.
13390         * elf/tst-tlsmod13a.c: Likewise.
13391         * elf/tst-tlsmod14a.c: Likewise.
13392         * elf/tst-tlsmod2.c: Likewise.
13393         * elf/tst-tlsmod3.c: Likewise.
13394         * elf/tst-tlsmod4.c: Likewise.
13395         * elf/tst-tlsmod5.c: Likewise.
13396         * elf/tst-tlsmod6.c: Likewise.
13397         * include/errno.h: Likewise.
13398         * include/link.h: Likewise.
13399         * include/tls.h: Likewise.
13400         * locale/global-locale.c: Likewise.
13401         * locale/localeinfo.h: Likewise.
13402         * malloc/arena.c: Likewise.
13403         * malloc/hooks.c: Likewise.
13404         * malloc/malloc.c: Likewise.
13405         * resolv/Versions: Likewise.
13406         * sysdeps/alpha/dl-machine.h: Likewise.
13407         * sysdeps/alpha/libc-tls.c: Likewise.
13408         * sysdeps/generic/ldsodefs.h: Likewise.
13409         * sysdeps/generic/tls.h: Likewise.
13410         * sysdeps/i386/dl-machine.h: Likewise.
13411         * sysdeps/ia64/dl-machine.h: Likewise.
13412         * sysdeps/ia64/libc-tls.c: Likewise.
13413         * sysdeps/mach/hurd/fork.c: Likewise.
13414         * sysdeps/mach/hurd/i386/tls.h: Likewise.
13415         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
13416         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
13417         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
13418         * sysdeps/s390/libc-tls.c: Likewise.
13419         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13420         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13421         * sysdeps/sh/dl-machine.h: Likewise.
13422         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13423         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13424         * sysdeps/x86_64/dl-machine.h: Likewise.
13426         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
13427         split out locking and parameter checking.
13428         (_dl_close): Call _dl_close_worker after locking and checking.
13429         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
13430         _dl_close.
13431         * elf/Makefile: Add rules to build and run tst-thrlock.
13432         * elf/tst-thrlock.c:  New file.
13434         [BZ #3426]
13435         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
13436         reality.
13438         [BZ #3429]
13439         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
13440         we are sure we do not need it anymore for _dl_close.  Also move
13441         the asserts inside the lock region.
13442         Patch mostly by Suzuki <suzuki@in.ibm.com>.
13444 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
13446         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
13447         argument.
13448         (_dl_lookup_symbol_x): Adjust caller.
13450         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
13451         _ns_global_scope.
13452         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
13454         * elf/dl-libc.c: Revert l_scope name changes.
13455         * elf/dl-load.c: Likewise.
13456         * elf/dl-object.c: Likewise.
13457         * elf/rtld.c: Likewise.
13458         * elf/dl-close.c (_dl_close): Likewise.
13459         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
13460         always use __rtld_mrlock_{change,done}.  Always free old scope list
13461         here if not l_scope_mem.
13462         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
13463         change.  Never free scope list here.  Just __rtld_mrlock_lock before
13464         the lookup and __rtld_mrlock_unlock it after the lookup.
13465         * elf/dl-sym.c: Likewise.
13466         * include/link.h (struct r_scoperec): Remove.
13467         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
13468         with l_scope_mem and l_scoperec_lock with l_scope_lock.
13470 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
13472         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
13474 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13476         * configure.in: Disable building profile libraries by default.
13478 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13480         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
13481         as signed longs, check for x_base + pos overflow.
13482         * sunrpc/Makefile (tests): Add tst-xdrmem2.
13483         * sunrpc/tst-xdrmem2.c: New test.
13485 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13487         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
13488         _dl_lookup_symbol_x code.
13490 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13492         * elf/dl-runtime.c: Include sysdep-cancel.h.
13493         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
13494         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
13495         instead of catomic_* macros.
13496         * elf/dl-sym.c: Include sysdep-cancel.h.
13497         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
13498         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13499         * elf/dl-close.c: Include sysdep-cancel.h.
13500         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
13501         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13502         * elf/dl-open.c: Include sysdep-cancel.h.
13503         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
13504         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13506 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13508         [BZ #3313]
13509         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
13510         fastbin rather than end of fastbin array.
13512 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13514         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
13515         body macro.
13516         * sysdeps/x86_64/bits/atomic.h
13517         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
13518         (catomic_decrement): Use correct body macro.
13520 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13522         * include/atomic.h: Add a unique prefix to all local variables
13523         in macros.
13524         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
13526 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
13528         [BZ #3369]
13529         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
13530         and 7.
13532 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
13534         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
13536 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
13538         [BZ #3313]
13539         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
13540         determine highest fast bin to consolidate, always look into all of
13541         them.
13542         (do_check_malloc_state): Only require for empty bins for large
13543         sizes in main arena.
13545         * libio/stdio.h: Add more __wur attributes.
13547         * elf/dl-minimal.c (realloc): Optimize last patch.
13549 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
13551         [BZ #3352]
13552         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
13553         and use memcpy() if it does.
13555 2006-11-12  Andreas Jaeger  <aj@suse.de>
13557         [BZ #2510]
13558         * manual/search.texi (Hash Search Function): Clarify.
13559         (Array Search Function): Clarify.
13561 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
13563         [BZ #2830]
13564         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
13565         shifting.
13566         * math/atest-exp2.c (read_mpn_hex): Likewise.
13567         * math/atest-sincos.c (main): Likewise.
13569 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
13571         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
13572         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
13573         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
13574         version GLIBC_2.6.
13575         * Versions.def: Add GLIBC_2.6 for libc.
13577         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
13579         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
13581 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
13583         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
13585         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
13587         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
13588         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
13590 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
13592         * include/atomic.c: Define catomic_* operations.
13593         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
13594         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
13595         * malloc/memusage.c: Likewise.
13596         * gmon/mcount.c: Likewise.
13597         * elf/dl-close.c: Likewise.
13598         * elf/dl-open.c: Likewise.
13599         * elf/dl-profile.c: Likewise.
13600         * elf/dl-sym.c: Likewise.
13601         * elf/dl-runtime.c: Likewise.
13602         * elf/dl-fptr.c: Likewise.
13603         * resolv/res_libc.c: Likewise.
13605 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
13607         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
13608         components which lack them.
13610         * nis/nis_subr.c (nis_getnames): Make sure that we always return
13611         at least one entry consisting of the parameter concatenated with
13612         the domain.
13614 2006-10-10  Roland McGrath  <roland@frob.com>
13616         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
13617         * sysdeps/mach/hurd/futimes.c: Likewise.
13618         * sysdeps/mach/hurd/lutimes.c: Likewise.
13620 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
13621             Jakub Jelinek  <jakub@redhat.com>
13623         Implement reference counting of scope records.
13624         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
13625         from the list in objects which remain.  Always allocate new scope
13626         record.
13627         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
13628         don't resize, allocate a new one.
13629         * elf/dl-runtime.c: Update reference counters before using a scope
13630         array.
13631         * elf/dl-sym.c: Likewise.
13632         * elf/dl-libc.c: Adjust for l_scope name change.
13633         * elf/dl-load.c: Likewise.
13634         * elf/dl-object.c: Likewise.
13635         * elf/rtld.c: Likewise.
13636         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
13637         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
13638         Add l_scoperec_lock.
13639         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
13640         * sysdeps/generic/rtld-lowlevel.h: New file.
13642         * include/atomic.h: Rename atomic_and to atomic_and_val and
13643         atomic_or to atomic_or_val.  Define new macros atomic_and and
13644         atomic_or which do not return values.
13645         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
13646         Various cleanups.
13647         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13649         * po/sv.po: Update from translation team.
13651 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
13653         * Versions.def: Add GLIBC_2.6 to libpthread.
13655         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
13656         (versioned_symbol): Likewise.
13657         (compat_symbol): Likewise.
13659         * po/tr.po: Update from translation team.
13661 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13663         * nis/Banner: Removed.  It's been integral part forever and the
13664         author info is incomplete anyway.
13665         * libio/Banner: Likewise.
13667         * nis/nis_table.c (nis_list): If __follow_path fails in the new
13668         code, make sure the nis_freeresult call doesn't crash and that the
13669         result is reported correctly.
13671 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
13673         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
13674         when callback is NULL.
13676         * nis/Versions (libnss_nisplus): Add
13677         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
13678         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
13679         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
13680         _nss_create_tablename): Rename to...
13681         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
13682         ... these.  No longer static.
13683         (internal_setgrent): Adjust users.
13684         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
13685         Don't use locking around _nss_grp_create_tablename call.
13686         * nis/nss_nisplus/nisplus-initgroups.c: New file.
13688 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13690         * version.h (VERSION): Bump to 2.5.90 for new development tree.
13692 2006-10-06  Andreas Jaeger  <aj@suse.de>
13694         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
13696 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13698         * po/pl.po: Update from translation team.
13700         * nscd/nscd.c (main): Fix typo in message.
13701         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
13703 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13705         [BZ #3291]
13706         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
13707         errno.h, signal.h, unistd.h and sysdep-cancel.h.
13708         (__sigprocmask): Define.
13710 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
13712         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
13713         used.
13715 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13717         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
13718         in oldtotal and newtotal calculation.
13719         * nscd/nscd-client.h (struct mapped_database): Add datasize
13720         field.
13721         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
13722         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
13723         increased.
13724         (__nscd_cache_search): Add checks to make sure we never reference
13725         data beyond the current mapping.
13727 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
13729         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
13730         variables const to avoid compiler warnings.
13732         * io/fts.c (fts_close): Remove redundant checks.
13733         (fts_build): Likewise.
13734         (fts_palloc): Likewise.
13736         * manual/message.texi (Advanced gettext functions,
13737         Using gettextized software): Fix typos.
13739 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
13741         * posix/glob.c (glob_in_dir): Add some comments and asserts to
13742         explain why there are no leaks.
13744 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
13746         * libio/wmemstream.c: Include <wchar.h>.
13747         * libio/bug-wmemstream1.c: Likewise.
13748         * libio/tst-wmemstream1.c: Likewise.
13749         * libio/tst-wmemstream2.c: Likewise.
13751         * version.h (RELEASE): Bump to 2.5.
13752         * README: Regenerated.
13754         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
13756         [BZ #3273]
13757         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
13758         found no group members.
13759         Patch by Petr Baudis.
13761 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
13763         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
13764         assert bootstrap_map.l_tls_modid is zero.
13765         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
13766         if USE___THREAD.
13768 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
13770         * libio/stdio.h: Move open_wmemstream prototype to ...
13771         * wcsmbs/wchar.h: ... here.
13773 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
13775         [BZ #3252]
13776         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
13777         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
13778         __{,l}chown to handle the rest.
13779         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
13780         fchownat syscall and __ASSUME_32BITUIDS case inline, call
13781         __{,l}chown to handle the rest.
13782         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
13783         i386/fchownat.c.
13784         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
13785         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
13787         [BZ #3253]
13788         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
13789         time, rather allocate increasingly bigger arrays of pointers, if
13790         possible with alloca, if too large with malloc.
13792 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
13794         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
13796         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
13798 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
13800         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
13801         home addresses.
13802         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
13803         IFA_F_HOMEADDRESS flag for interfaces.
13804         * include/ifaddrs.h (struct in6addrinfo): Define
13805         in6ai_homeaddress.
13807 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
13809         [BZ #3225]
13810         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
13811         PTR_DEMANGLE3): Define.
13812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
13813         PTR_DEMANGLE3): Likewise.
13814         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
13815         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
13816         Likewise.
13817         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
13819 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
13821         * po/libc.pot: Regenerated.
13822         * po/be.po: Updated.
13823         * po/ca.po: Likewise.
13824         * po/cs.po: Likewise.
13825         * po/da.po: Likewise.
13826         * po/de.po: Likewise.
13827         * po/el.po: Likewise.
13828         * po/en_GB.po: Likewise.
13829         * po/es.po: Likewise.
13830         * po/fi.po: Likewise.
13831         * po/fr.po: Likewise.
13832         * po/gl.po: Likewise.
13833         * po/hr.po: Likewise.
13834         * po/hu.po: Likewise.
13835         * po/ja.po: Likewise.
13836         * po/ko.po: Likewise.
13837         * po/nb.po: Likewise.
13838         * po/nl.po: Likewise.
13839         * po/pl.po: Likewise.
13840         * po/pt_BR.po: Likewise.
13841         * po/ru.po: Likewise.
13842         * po/rw.po: Likewise.
13843         * po/sk.po: Likewise.
13844         * po/sv.po: Likewise.
13845         * po/tr.po: Likewise.
13846         * po/zh_CN.po: Likewise.
13847         * po/zh_TW.po: Likewise.
13849         [BZ #3137]
13850         * iconv/iconv_prog.c (main): Fix spelling in error message.
13851         * iconv/iconvconfig.c (main): Likewise.
13852         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
13853         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
13854         * locale/programs/localedef.c (main): Likewise.
13855         * locale/programs/repertoire.c (repertoire_read): Likewise.
13856         * timezone/zdump.c (main): Likewise.
13857         * nscd/connections.c (handle_request): Fix spelling in log message.
13858         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
13860 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
13862         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
13863         interfaces.
13865 2006-09-20  Andreas Jaeger  <aj@suse.de>
13867         * math/libm-test.inc (lrint_test_upward): Fix typo.
13869 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
13871         [BZ #2592]
13872         * math/libm-test.inc (lrint_test_tonearest): New function.
13873         (lrint_test_towardzero): New function.
13874         (lrint_test_downward): New function.
13875         (lrint_test_upward): New function.
13876         (main): Run these new tests.
13877         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
13878         of values near to 0.
13879         (two52): Use double not long double.
13880         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
13881         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
13882         (two23): Use float not double.
13883         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
13884         (two23): Use float not double.
13885         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
13886         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
13887         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13888         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13890 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13892         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
13893         Cast sp to unsigned long to avoid compiler warning.
13894         Use __makecontext_ret function instead of a trampoline on the stack.
13895         (__makecontext_ret): New function.
13896         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
13898 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
13900         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
13901         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
13902         bits.
13904 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
13906         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
13907         sure no reference to the unloaded map's search list remains in the
13908         dependency's scope.
13910 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13912         * elf/Makefile: Add rules to build and run unload7 test.
13913         * elf/unload7.c: New test.
13914         * elf/unload7mod1.c: New file.
13915         * elf/unload7mod2.c: New file.
13917 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
13919         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13920         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13921         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13922         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13923         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13924         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13925         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13926         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13927         PTRACE_GETEVENTMSG): Likewise.
13928         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13929         values.
13931 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
13933         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13934         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13935         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13936         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13938 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13940         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13941         write '\0' to the fd.
13942         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13943         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13944         Change regs to unsigned long pointer from unsigned int, fix fscr
13945         offset.
13947 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13949         * io/Makefile (CFLAGS-fstatat.c): Set.
13950         (CFLAGS-fstatat64.c): Likewise.
13951         (CFLAGS-mknodat.c): Likewise.
13953         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13954         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13955         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13956         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13958 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13959             Steven Munroe  <sjmunroe@us.ibm.com>
13961         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13962         names to the beginning.  Rename "cell" to "cellbe".
13963         (_dl_powerpc_platforms): New.
13964         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13965         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13966         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13967         (_DL_HWCAP_PLATFORM): Define to new mask.
13968         (_dl_platform_string, _dl_string_platform): New functions.
13969         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13970         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13972 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
13974         [BZ #2526]
13975         * README.libm: Fix a thinko in sqrt algorithm description.
13977         [BZ #3143]
13978         * manual/string.texi (argz_delete): Fix prototype.
13979         Patch by <alpt@freaknet.org>.
13981 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
13983         [BZ #3138]
13984         * io/test-lfs.c (do_prepare): Give name_len type size_t.
13985         * io/tst-fcntl.c (do_prepare): Likewise.
13986         * posix/tst-exec.c (do_prepare): Likewise.
13987         * posix/tst-preadwrite.c (do_prepare): Likewise.
13988         * posix/tst-spawn.c (do_prepare): Likewise.
13989         * posix/tst-truncate.c (do_prepare): Likewise.
13990         * rt/tst-aio.c (do_prepare): Likewise.
13991         * rt/tst-aio64.c (do_prepare): Likewise.
13992         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13993         size_t.
13995 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
13997         [BZ #2821]
13998         * time/mktime.c (guess_time_tm): Fix overflow detection.
13999         * time/Makefile (tests): Add bug-mktime1.
14000         * time/bug-mktime1.c: New file.
14002         [BZ #3189, #3188]
14003         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
14004         (mremap): Likewise.
14006 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
14008         [BZ #1006]
14009         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
14010         Ensure relocation doesn't clobber any bits outside of the
14011         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
14012         R_SPARC_HI22 and R_SPARC_H44.
14014         [BZ #2775]
14015         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
14016         (long) (MINSIZE + nb - old_size) is positive.
14018         * malloc/arena.c (grow_heap): When growing bail even if new_size
14019         is negative.
14021         [BZ #3155]
14022         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
14023         stack below r1.
14025 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
14027         * posix/regex_internal.c (re_string_reconstruct): Handle
14028         offset < pstr->valid_raw_len && pstr->offsets_needed case.
14029         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
14030         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
14031         re_string_context_at.
14032         * posix/Makefile: Add rules to build and run bug-regex26 test.
14033         * posix/bug-regex26.c: New test.
14035         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
14036         rather than col_sym_free.  Move seqp declaration earlier.
14038         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
14040 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
14042         * nscd/initgrcache.c (addinitgroupsX): Move any_success
14043         decl before first goto out.
14045 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
14047         * Makerules (shlib.lds): If have-hash-style, put .hash section
14048         at the end of the RO segment.
14050 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
14052         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
14053         style hash table format is used.
14055 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
14057         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
14058         randomization rather than before.
14059         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
14061 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
14063         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
14065         * malloc/malloc.c (_int_malloc): Use full list insert and not
14066         shortcut which assumes the list is empty for large requests
14067         too.
14069         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
14071 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
14073         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
14074         and offout arguments to the prototype.
14075         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
14076         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
14077         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
14078         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
14079         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
14080         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
14081         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
14082         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
14084 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
14086         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
14088         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
14089         dlopen parameters.
14091 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
14093         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
14094         only if herrno is NETDB_INTERNAL.  Handle errors other than
14095         ERANGE outside of the loops, handle TRY_AGAIN.
14097         * locale/programs/ld-ctype.c (translit_flatten): Issue error
14098         if other's ctype category was missing.
14099         * locale/programs/ld-collate.c (collate_read): Return if
14100         copy_locale's collate category is missing.
14102 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
14104         [BZ #2684]
14105         * malloc/malloc.c (public_rEALLOc): Try harder by using other
14106         arenas if allocation failed.
14107         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
14109 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
14111         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
14112         waste bins[0..1].
14113         (malloc_state): Reduce bins size by 2.
14114         (_int_malloc): Fix test for large enough buffer for early termination.
14115         When no unsorted block matches perfectly and an exiting block has
14116         to be split, use full list insert and not shortcut which assumes
14117         the list is empty.
14119         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
14120         failure.
14122 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
14124         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
14125         do anything.
14127         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
14128         symbol require exact match (these are PLTs).
14129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
14130         (_dl_ppc64_addr_sym_match): Likewise.
14132         [BZ #2683]
14133         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
14134         If symbol has a value use it.
14135         * elf/tst-dladdr1.c: New file.
14136         * elf/Makefile: Add rules to build and run tst-addr1.
14138 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
14140         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
14141         keeps failing and heap growth or new heap creation isn't
14142         successful either.
14143         * malloc/tst-malloc.c (main): Add new tests.
14145 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
14147         [BZ #2734]
14148         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
14149         as in the x86-64 code to use bswap.
14151 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
14153         [BZ #2680]
14154         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
14155         __USE_UNIX98.
14156         * posix/bits/unistd.h: Likewise.
14158 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
14160         [BZ #2751]
14161         * string/strchr.c: Add cast to avoid warning.
14163 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
14165         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
14166         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
14167         limit is needed to avoid the exploding of the address space
14168         requirement for secondary heaps.
14169         * malloc/arena.c (HEAP_MAX_SIZE): Define using
14170         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
14172 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
14174         [BZ #3018]
14175         * Makerules (depfiles): Handle extra-test-objs the same as
14176         extra-objs.
14177         (common-mostlyclean): Likewise.
14178         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
14179         instead.
14180         * elf/Makefile (extra-objs): Likewise.
14181         * stdlib/Makefile (extra-objs): Likewise.
14183 2006-08-14  Eric Blake  <ebb9@byu.net>
14185         [BZ #3044]
14186         * misc/error.h: Assume C89 or better.
14187         * misc/error.c: Likewise.
14189 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
14191         [BZ #3040]
14192         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
14193         __ASSUME_ATFCTS is defined.
14195 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
14197         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
14198         to sort in each call.
14200         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
14201         is empty simply return and use next service.
14202         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
14204         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
14205         tells us when not finding a charmap file is an error.
14206         * locale/programs/charmap.h: Adjust charmap_read prototype.
14207         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
14208         cannot find a charmap.
14209         * locale/programs/localedef.c (main): Adjust charmap_read call.
14211 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
14213         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
14214         sysdeps/posix/pause.c implementation instead.
14216 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
14218         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
14219         to EPERM.
14221 2006-08-13  Andreas Schwab  <schwab@suse.de>
14223         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
14224         Don't clobber caller's LRSAVE.
14225         (_dl_prof_resolve): Likewise.
14227 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
14229         [BZ #1996]
14230         * libio/memstream.c (open_memstream): Allocate initial buffer with
14231         calloc.
14232         * libio/wmemstream.c (open_wmemstream): Likewise.
14233         * libio/strops.c: Pretty printing.
14234         (_IO_str_overflow): Clear uninitialized part of the new buffer.
14235         (enlarge_userbuf): New function.
14236         (_IO_str_seekoff): Call it if seek position is larger than current
14237         buffer.
14238         * libio/wstrops.c: Likewise.
14239         * libio/vasprintf.c: Add comment as to why we do not have to use
14240         calloc instead of malloc to allocate initial buffer.
14241         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
14242         * libio/bug-memstream1.c: New file.
14243         * libio/bug-wmemstream1.c: New file.
14245 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
14247         * libio/wstrops.c: Remove dead macro definitions and comments.
14248         * libio/strops.c: Likewise.
14250         [BZ #2764]
14251         * login/utmpname.c (__utmpname): Remove unnecessary test.
14253 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
14255         [BZ #2832]
14256         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
14257         0s from integers.
14259 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
14261         [BZ #2987]
14262         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
14263         for CPU clocks.
14264         * sysdeps/unix/clock_settime.c: Add support for platform-specific
14265         setting of CPU clocks.
14267 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
14269         [BZ #2841]
14270         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
14271         since C99 requires the result to promote to 'int' when uint_least8_t
14272         and uint_least16_t promote to 'int'.
14274 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
14276         [BZ #3013]
14277         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
14278         lenght of one output field, correct bitmask creation.
14279         * locale/programs/ld-time.c: Add alignment.
14281         [BZ #2997]
14282         * misc/error.c: Add space between program name and message if file
14283         name is missing.
14285 2006-08-03  Eric Blake  <ebb9@byu.net>
14287         [BZ #2998]
14288         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
14290 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
14292         * malloc/memusagestat.c: Silence warnings.
14294         * malloc/malloc.c: Dynamically size mmap treshold if the program
14295         frees mmaped blocks.
14296         Patch by Valerie Henson and Arjan van de Ven.
14298 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
14300         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
14301         __USE_GNU.
14303         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
14304         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
14305         (DEF): Don't put the var into .gnu.linkonce.r.* section.
14306         Only provide var definitions in strtol_l (or for *ull*
14307         in strtoll_l).
14309         * stdio-common/bug16.c (tests): New array.
14310         (do_tests): Allow the first hexadecimal digit
14311         to be 1, 2, 4 or 8.  Do 3 additional tests.
14313         * sysdeps/s390/fpu/libm-test-ulps: Update.
14315         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
14316         fchownat syscall if available.
14317         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
14318         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
14319         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
14321 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
14323         * nis/nis_xdr.c: Avoid some function calls.
14325 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
14326             Ulrich Drepper  <drepper@redhat.com>
14328         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
14329         short cut if only one name component is stripped away.
14331 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
14333         * nis/nis_call.c: Minor cleanups throughout.
14334         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
14335         (first_shoot): Add search_parent_first parameter.  Only if it is set
14336         search parent server first.
14337         If directory for table found through cold start cache is not the same
14338         as referenced in the cache, don't use it.
14339         (__nisfind_server): Take additional parameter.  Pass it on to
14340         first_shoot.
14341         (__prepare_niscall): Adjust __nisfind_server call.
14342         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
14343         * nis/nis_table.c: Adjust __nisfind_server call.
14344         * nis/nis_lookup.c: Likewise.
14345         (nis_lookup): Don't loop endlessly if name is reduced to ".".
14347 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
14349         [BZ #2182]
14350         * math/s_cacosh.c: Return values from positive branch.
14351         * math/s_cacoshf.c: Likewise.
14352         * math/s_cacoshl.c: Likewise.
14354         [BZ #2883]
14355         * sysvipc/sys/msg.h: Change return value to ssize_t.
14356         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
14357         * sysvipc/msgrcv.c: Likewise.
14358         * include/sys/msg.h: Likewise.
14360         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
14361         test introduced in patch for bz #661.
14362         (getgrouplist): Simplify code a bit.  Don't allocate one additional
14363         element for NEWGROUPS.
14365         [BZ #2908]
14366         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
14367         'f', use '1' as leading digit not '\1'.
14368         * stdio-common/Makefile (tests): Add bug16.
14369         * stdio-common/bug16.c: New file.
14371         [BZ #2914]
14372         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
14373         and don't try to open it.  The patch introducing the macro
14374         contained a bug and used the same file name as the new file
14375         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
14376         this out completely.
14378         [BZ #2926]
14379         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
14380         Patch by Jerry James <Jerry.James@usu.edu>.
14382         * rt/Makefile (tests): Add tst-clock2.
14383         * rt/tst-clock2.c: New file.
14385         [BZ #2978]
14386         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
14387         function and its parameters and pass it to new thread.
14388         (__gai_notify): Add support for alternative waiting for completion.
14389         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
14390         waiting for completion.
14391         * resolv/getaddrinfo_a.c: Likewise.
14392         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
14393         waiting for completion is used.
14394         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
14395         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
14396         * resolv/gai_error.c: Likewise.
14397         * resolv/gai_sigqueue.c: Likewise.
14399 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
14401         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
14402         errno to EBADF and return MACH_PORT_NULL.
14404 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
14406         [BZ #2980]
14407         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
14409 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
14411         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
14412         walk them instead of the symbol table.
14414 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
14416         [BZ #2098]
14417         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
14418         status of NSS calls, not the number of returned entries.
14420         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
14421         request_key, keyctl.
14423 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14425         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
14427 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
14429         * elf/tst-auditmod1.c: Fix typo in #error.
14431 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14433         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
14435         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
14437 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
14439         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
14440         that the directory is empty even on non-POSIX filesystems.
14442 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14444         * elf/dl-open.c (dl_open_worker): Add branch prediction.
14446         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
14447         the backend NSS module.  If backend setgrent call failed, don't have
14448         internal_setgrent fail.  Just remember this until it is needed.
14449         * nis/nss_compat/compat-pwd.c: Likewise.
14450         * nis/nss_compat/compat-spwd.c: Likewise.
14452 2006-07-30  Roland McGrath  <roland@redhat.com>
14454         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
14455         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
14456         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
14457         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
14459         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
14460         (nanosleep_not_cancel): New macro.
14461         (sigsuspend_not_cancel): new macro.
14462         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
14463         (do_sigsuspend): Define as inline.
14464         (__sigsuspend): Always use do_sigsuspend.
14465         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
14466         * include/signal.h: Declare __sigsuspend_nocancel.
14467         * sysdeps/posix/pause.c
14468         [! NO_CANCELLATION] (__pause_nocancel): New function.
14470         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
14471         * include/time.h (__nanosleep_nocancel): Likewise.
14473 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
14475         * locale/programs/localedef.c (add_to_readlist): Rename local
14476         variables to avoid confusion.
14478         * locale/programs/charmap.c (charmap_read): Emit error message if
14479         charmap couldn't be found or read.
14481 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
14483         * sysdeps/unix/sysv/linux/kernel-features.h: Define
14484         __ASSUME_FUTEX_LOCK_PI.
14485         * include/time.h: Declare __nanosleep_nocancel.
14486         * include/unistd.h: Declare __pause_nocancel.
14488         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
14489         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
14490         get the __stack_chk_fail_local definition when it's needed.
14492 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
14494         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
14495         * dlfcn/bug-atexit3.c: New file.
14496         * dlfcn/bug-atexit3-lib.cc: New file.
14498         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
14499         used when the namespace is not the base namespace.
14501 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
14503         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
14504         (__new_exitfn): Bump it in every successful call.
14505         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
14506         more exit handlers, call them right away.
14507         * stdlib/exit.h: Declare __new_exitfn_called.
14509 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
14511         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
14512         calling registered handler.
14514         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
14515         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14516         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14517         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14518         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14519         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14520         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14521         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14523 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
14525         * elf/dl-lookup.c (dl_new_hash): New functions.
14526         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
14527         value here.  Compute new-style hash value.  Pass new hash value
14528         and reference to variable with the old value to do_lookup_x.
14529         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
14530         old-style hash table.
14531         (_dl_debug_bindings): Pass new hash value and reference to variable
14532         with the old value to do_lookup_x.
14533         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
14534         new-style hash value and change old-style hash value parameter to
14535         be a reference.  Reoganize functions to determine whether
14536         new-style hash table is available.  Only fall back on old-style
14537         table.  If old-style hash value is needed, compute it here.
14538         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
14539         entry.
14540         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
14541         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
14542         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
14543         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
14544         * Makeconfig: If linker supports --hash-style option add it to all
14545         linker command lines to build DSOs.
14546         * config.make.in: Define have-hash-style.
14547         * configure.in: Test whether linker supports --hash-style option.
14549         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
14550         * sysdeps/generic/ldsodefs.h: Adjust prototype.
14552 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
14554         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
14555         auditing.
14557         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
14558         RPATH of main map twice.
14560 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
14562         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
14563         look further, return original strings.
14564         (_nl_find_msg): Do not return found translation if the conversion
14565         failed.  Either signal the string is unusable or that something went
14566         wrong and the original should be used.
14568 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
14570         * string/_strerror.c (__strerror_r): Add __builtin_expect.
14572 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
14574         [BZ #2766]
14575         * misc/insremque.c (insque): Handle prev == NULL.
14576         * misc/Makefile (tests): Add tst-insremque.
14577         * misc/tst-insremque.c: New test.
14579 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
14581         [BZ #2792]
14582         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
14583         conflict with DL_DST_REQUIRED.
14585 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
14587         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
14588         match what Solaris does.
14590 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
14592         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
14593         local_setegid instead of seteuid and setegid.
14594         * sysdeps/generic/local-setxid.h: New file.
14595         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
14597         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
14599         * string/Makefile (tests): Add bug-envz1.
14600         * string/bug-envz1.c: New file.
14602 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
14604         * posix/regex_internal.c (re_string_skip_chars): If no character has
14605         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
14606         to the byte which couldn't be converted.
14607         (re_string_reconstruct): Don't clear valid_raw_len before calling
14608         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
14609         tip_context using re_string_context_at.
14610         * posix/Makefile: Add rules to build and run bug-regex25 test.
14611         * posix/bug-regex25.c: New test.
14613 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
14615         [BZ #2703]
14616         * string/envz.c (envz_strip): Correct erroneously reversed src
14617         and dest parameters to memmove() invocation.
14619 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
14621         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
14622         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
14623         to make sure the database has been already invalidated.
14624         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
14625         after the cache has been invalidated.  Use pthread_mutex_lock rather
14626         than pthread_mutex_trylock if fd != -1.
14627         * nscd/connections.c (invalidate_cache): Add fd argument, write
14628         response to fd if not calling prune_cache, pass fd to prune_cache.
14629         (handle_request): Adjust invalidate_cache caller.
14630         (nscd_run): Pass -1 as fd to prune_cache.
14632 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
14634         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
14635         the correct place.
14637 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
14639         * nscd/nscd.h (struct database_dyn): Add prunelock field.
14640         * nscd/cache.c (prune_cache): Take prunelock before starting the
14641         work.  Just return in case it is already taken.
14642         * nscd/connections.c (dbs): Initialize .prunelock.
14644 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
14646         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
14647         copying.  No need to allocate new array for group members.  Just
14648         move the pointers and update the size.
14650         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
14651         Avoid memory leak in case realloc fails.  Simplification for
14652         better code generation.
14654         Avoid deprecation warning because of libc_hidden_proto for
14655         inet6_option_alloc.
14656         * inet/inet6_option.c (option_alloc): Renamed from
14657         inet6_option_alloc.  Made static.
14658         (inet6_option_alloc): Now a simple wrapper around option_alloc.
14659         (inet6_option_append): Call option_alloc.
14660         * include/netinet/in.h: Remove libc_hidden_proto for
14661         inet6_option_alloc.
14663         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
14664         for cleanup when cb!=NULL [Coverity CID 233].
14666 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
14668         [BZ #2693]
14669         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
14670         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
14671         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
14672         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
14673         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
14674         and inet6_rth_getaddr.
14675         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
14676         array.
14677         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
14678         Mark inet6_option_* interfaces as deprecated.
14679         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
14680         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
14681         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
14682         inet6_rth_segments, and inet6_rth_getaddr.
14683         * inet/inet6_opt.c: New file.
14684         * inet/inet6_rth.c: New file.
14686         * inet/netinet/icmp6.h: Pretty printing.
14688         [BZ #2683]
14689         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
14691 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
14693         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
14694         doing it all here.  When server does not know the answer do not
14695         fail immediate, try parent first.
14697         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
14698         overflow test.
14700 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
14702         * nis/nis_call.c (__prepare_niscall): New function.  Split out
14703         from __do_niscall.
14704         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
14705         and exported.
14706         (__follow_path): New function.  Split out from nis_list.
14707         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
14708         _xdr_nis_result.
14709         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
14710         _xdr_nis_result.
14711         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
14712         and __follow_path.
14713         * nis/Versions: Export __prepare_niscall, __create_ib_request,
14714         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
14715         from libnsl for version GLIBC_PRIVATE.
14716         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
14717         Remove entry parameter from _nss_nisplus_parse_pwent and
14718         _nss_nisplus_parse_grent.
14719         * nis/nss_nisplus/nisplus-parser.c: Likewise.
14720         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
14721         again.  Rewrite getpwent handling to not use nis_first_entry and
14722         nis_next_entry.  Roll out own niscall handling.
14723         * nis/nss_nisplus/nisplus-grp.c: Likewise.
14725         * sunrpc/xdr_rec.c: Fix typo in comment.
14727 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
14729         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
14730         handling.
14732         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
14733         to allocate memory for my_pollfd.  Better initialization of
14734         cb_is_running.  Use TEMP_FAILURE_RETRY.
14736         * malloc/memusage.sh (memusageso): Add quotes.
14737         (memusagestat): Likewise.
14738         * debug/xtrace.sh (pcprofileso): Likewise.
14739         (pcprofiledump): Likewise.
14740         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
14741         replacement.
14742         * malloc/Makefile ($(objpfx)memusage): Likewise.
14744         * nis/nis_callback.c (__nis_create_callback): Calls to
14745         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
14746         asprintf call fails.
14748         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
14749         no uninitialized memory is passed to sendto.
14751 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14753         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
14754         of snprintf+strdup.  Handle OOM.
14755         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
14756         cb->serv together.  Remove now obsolete free calls.
14757         (__nis_destroy_callback): Remove now obsolete free call.
14759 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
14761         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
14762         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
14763         and ULA respectively). Set precedence for IPv4 address to 10 as
14764         defined in RFC3484 for preferring IPv6.
14765         * posix/gai.conf: Update to match the new default tables.
14767 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
14769         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
14770         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
14771         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
14772         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
14774         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
14775         Removed.
14776         (init_nss_interface): Remove initialization of these variables.
14778 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14780         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
14781         nis_free_directory forward to avoid duplication.
14783 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
14785         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
14786         rec_dirsearch returning NULL.
14787         (first_shoot): Handle __nis_finddirectory returning NULL.
14788         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
14790         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
14791         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
14793 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
14795         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
14796         pid changed.
14798 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
14800         * include/rpc/pmap_prot.h: Mark all functions as hidden.
14802         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
14803         * nscd/nscd_getgr_r.c: Likewise.
14805         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
14807         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
14808         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
14810         * stdlib/longlong.h (__clz_tab): Mark as hidden.
14812         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
14814         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
14816         * include/rpc/auth.h: Mark xdr_des_block_internal and
14817         xdr_opaque_auth_internal as hidden.
14819         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
14820         hidden.
14822         * include/rpc/xdr.h: Mark all _internal functions as hidden.
14824         * misc/getusershell.c (okshells): Don't use static initializers,
14825         do it dynamically.
14827         * stdlib/fmtmsg.c (keywords): Change type of len element to
14828         uint32_t to not waste space on 64bit machines.
14830         * locale/setlocale.c: Change _nl_category_names into a string.
14831         Add new _nl_category_name_idxs.  Change all users.
14832         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
14833         Declare _nl_category_name_idxs.
14834         * locale/findlocale.c: Adjust for _nl_category_names change.
14835         * locale/loadlocale.c: Likewise.
14836         * locale/newlocale.c: Likewise.
14837         * intl/dcigettext.c: Likewise.
14839         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
14840         (add_alias2): ...here.  New function.
14841         (__gconv_read_conf): Simplify builtin alias handling.
14842         (builtin_aliases): Convert to string to avoid relocations.
14843         * iconv/gconv_builtin.h: Add comment about correct formatting.
14845 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
14847         * resolv/res_debug.c (loc_ntoa): Make error const.
14849 2006-05-14  Andreas Schwab  <schwab@suse.de>
14851         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
14853 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
14855         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
14856         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
14857         sizeof (cpu_set_t).
14859 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
14861         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
14863         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
14865         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
14866         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
14868         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
14869         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
14871         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
14872         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
14873         xdr_cback_data.
14875         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
14876         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14877         xdr_ypupdate_args.
14879         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
14880         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
14882         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
14883         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
14885         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
14886         * include/rpcsvc/nis_callback.h: New file.
14888         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
14889         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
14891         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14892         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14894         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
14895         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
14897         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14898         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14900         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
14901         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14902         xdr_ypdelete_args.
14904         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
14905         __BEGIN_DECLS and __END_DECLS, the header is not installed.
14907         * nis/nis_error.c: Remove table of strings.  Use position
14908         independent mechanism.
14909         * nis/nis_error.h: New file.
14911 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
14913         * locale/programs/ld-time.c (time_finish): If wide era name or
14914         format aren't provided, set both wname and wformat to L"".
14916 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14918         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14919         results if the call was succesful.
14921         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14923         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14924         as hidden.
14926 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
14928         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14930 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14932         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14933         caller makes sure this is not the case.
14934         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
14936 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
14938         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14939         calls.
14941         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14942         [Coverity CID 229, 230]
14944         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14945         DGETTEXT calls.
14946         (hol_help): Likewise.  [Coverity CID 226, 227]
14948         * string/argz-replace.c (__argz_replace): Unconditionally call
14949         free on SRC.  [Coverity CID 225]
14951         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14952         the return value of __nis_default_owner and __nis_default_group,
14953         it has been especially allocated.  [Coverity CID 224]
14955         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
14956         searchgroup and searchowner.  Significantly simplified.
14957         (__nis_default_owner): Remove duplication.  Do not locally copy the
14958         string before duplicating it.
14959         (__nis_default_group): Likewise.
14961         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14962         we must clear the variable before calling __nisfind_server.
14964         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14965         nis_getnames.  [Coverity CID 223]
14967         * locale/programs/locfile.c (locfile_read): Use alloca instead of
14968         xmalloc to allocate local repertoire name.  [Coverity CID 222]
14970         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14971         allocate memory for the input to add_bytes.  [Coverity CID 221]
14973         * posix/wordexp.c (w_addword): Free word if realloc fails and it
14974         was allocated here.  [Coverity CID 219, 220]
14976         * posix/getconf.c (print_all): Free confstr data after printing.
14977         [Coverity CID 218]
14979         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14980         list allocation fails.  [Coverity CID 215]
14982         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14983         [Coverity CID 213]
14985         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14986         string is NULL.  [Coverity CID 212]
14987         * argp/Makefile: Add rules to build and run bug-argp1.
14988         * argp/bug-argp1.c: New file.
14990         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14991         end of string.
14992         * stdlib/canonicalize.c (__realpath): Likewise.
14994         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14995         pointer.  [Coverity CID 206]
14997         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14998         in statically linked code.
14999         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
15000         statically built code, be prepared to have no link map.
15001         [Coverity CID 205]
15003         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
15004         dgettext calls. [Coverity CID 204]
15006         * argp/argp-help.c (struct uparams): Remove valid member.  Change
15007         the one user.
15008         (uparam_names): Reduce size.  Avoid relative relocations.
15009         Moved to read-only segment.
15010         (fill_in_uparams): Update for new layout.
15012         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
15013         assumed to always be != NULL. [Coverity CID 202]
15015         * argp/argp-help.c (hol_entry_help): Remove some dead code
15016         [Coverity CID 200].
15018         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
15019         away a few more unconditional yperr2nss calls.
15020         (_nss_nis_getservbyname_r): Likewise.
15022 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
15024         * sysdeps/generic/ldsodefs.h: Remove support for non-core
15025         architectures.
15027         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
15028         that unused memory passed to sendto is nevertheless initialized.
15030         [BZ #2499]
15031         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
15032         possibly unaligned memory accesses.
15034         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
15035         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
15036         and __putlong respectively.  Correct buffer overflow check for
15037         NS_NOTIFY_OP.
15039         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
15041         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
15042         (send_dg): Rewrite error handling to be more compact and avoid
15043         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
15045         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
15047         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
15048         instead of ns_get16.
15049         (res_queriesmatch): Likewise.  Minor optimization.
15051         [BZ #2499]
15052         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
15053         __libc_res_nsend might reallocate the buffer for the answer.  In
15054         this case we have to reload the HP pointer.
15056 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
15058         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
15059         some branch prediction hints.
15061         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
15062         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
15063         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
15064         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
15065         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
15066         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
15067         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
15068         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
15070 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
15072         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
15073         by a GOT relocation to make Scrt1.o position independent.
15074         * sysdeps/s390/s390-64/elf/start.S: Likewise.
15076         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
15077         six system call parameters.
15078         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
15080 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
15082         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
15083         malloc&bzero.
15085         * sunrpc/svc_udp.c (BZERO): Remove definition.
15086         (CALLOC): Define.
15087         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
15089         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
15090         (des_SPtrans): Use uint32_t type.
15091         (des_skb): Likewise.
15093         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
15095 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
15097         [BZ #2509]
15098         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
15099         on 32-bit arches.
15101 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
15103         * locale/programs/ld-address.c (address_finish): Fix one more
15104         place where the iso639 array might be accessed beyond the limits.
15106 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
15108         * nis/nis_table.c (nis_list): Avoid clearing res twice before
15109         filling it for the first time.
15111         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
15112         Adjust all callers.
15113         Free res object content before returning.
15115         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
15117         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
15118         client->cl_auth.
15120         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
15121         cleanup for initial thread, just the free call on TVP.
15123         * nscd/gai.c (__getline): Define.
15126 See ChangeLog.16 for earlier changes.