Fix IPTOS_CLASS definition.
[glibc.git] / ChangeLog
blob96655d8b0456f50710ac8425b04e5ca385ab74a3
1 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
3         [BZ #11903]
4         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
5         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
7         * nss/Makefile: Add rules to build and run tst-nss-test1.
8         * shlib-versions: Add entry for libnss_test1.
9         * nss/nss_test1.c: New file.
10         * nss/tst-nss-test1.c: New file.
12         * nss/nsswitch.c (__nss_database_custom): Define new variable.
13         (__nss_configure_lookup): Set appropriate entry in
14         __nss_configure_lookup to true.
15         * nss/nsswitch.h: Define enum with indeces of databases in
16         databases and __nss_database_custom arrays.  Declare
17         __nss_database_custom.
18         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
19         to avoid using nscd when custom rules are installed.
20         * nss/getXXbyYY_r.c: Likewise.
21         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
23         * nss/nss_files/files-parse.c: Whitespace fixes.
25 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
27         [BZ #11883]
28         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
29         * posix/fnmatch_loop.c: Likewise.
31 2010-07-17  Andi Kleen  <ak@linux.intel.com>
33         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
34         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
35         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
36         * Versions.def [GLIBC_2.13]: Add.
38 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
40         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
41         Also fail if tpwd after pwuid call is NULL.
43 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
46         when converting to ms.
48 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
50         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
51         EOPNOTSUPP errors with ENOTTY.
52         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
53         EOPNOTSUPP errors with ENOTTY.
55 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
57         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
58         Add strcasecmp_l-ssse3.
59         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
60         strcasecmp.
61         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
62         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
63         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
65 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
67         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
69         * string/Makefile (strop-tests): Add strcasecmp.
70         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
71         strcasecmp_l-nonascii.
72         (gen-as-const-headers): Add locale-defines.sym.
73         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
74         * sysdeps/x86_64/strcasecmp.S: New file.
75         * sysdeps/x86_64/strcasecmp_l.S: New file.
76         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
77         * sysdeps/x86_64/locale-defines.sym: New file.
78         * string/test-strcasecmp.c: New file.
80         * string/test-strcasestr.c: Test both ends of the range of characters.
81         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
83 2010-07-29  Roland McGrath  <roland@redhat.com>
85         [BZ #11856]
86         * manual/locale.texi (Yes-or-No Questions): Fix example code.
88 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
90         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
91         for ld.so.
93 2010-07-27  Andreas Schwab  <schwab@redhat.com>
95         * manual/memory.texi (Malloc Tunable Parameters): Document
96         M_PERTURB.
98 2010-07-26  Roland McGrath  <roland@redhat.com>
100         [BZ #11840]
101         * configure.in (-fgnu89-inline check): Set and substitute
102         gnu89_inline, not libc_cv_gnu89_inline.
103         * configure: Regenerated.
104         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
106 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
108         * string/test-strnlen.c: New file.
109         * string/Makefile (strop-tests): Add strnlen.
110         * string/tester.c (test_strnlen): Add a few more test cases.
111         * string/tst-strlen.c: Better error reporting.
113         * sysdeps/x86_64/strnlen.S: New file.
115 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
117         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
118         lower-latency instructions.
120 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
122         * string/test-strcasestr.c: New file.
123         * string/test-strstr.c: New file.
124         * string/Makefile (strop-tests): Add strstr and strcasestr.
125         * string/str-two-way.h: Don't undefine MAX.
126         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
128 2010-07-21  Andreas Schwab  <schwab@redhat.com>
130         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
131         strcasestr-nonascii.
132         (CFLAGS-strcasestr-nonascii.c): Define.
133         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
134         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
135         Remove unused attribute.
137 2010-07-20  Roland McGrath  <roland@redhat.com>
139         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
140         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
141         ld.so.cache was broken.  With it, there is no way to disable dsocaps
142         like LD_HWCAP_MASK can disable hwcaps.
144 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
146         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
148 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
150         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
151         call in strcasestr.
152         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
153         __strcasestr_sse42_nonascii.
154         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
155         strcasestr-nonascii.c.
156         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
158 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
160         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
161         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
162         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
163         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
165 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
167         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
168         fcntl.
170 2010-07-06  Andreas Schwab  <schwab@redhat.com>
172         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
173         dl_signal_cerror.
175 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
177         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
178         _PC_PIPE_BUF using F_GETPIPE_SZ.
180 2010-07-05  Roland McGrath  <roland@redhat.com>
182         * manual/arith.texi (Rounding Functions): Fix rint description
183         implicit in round description.
185 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
187         * elf/Makefile: Fix linking for a few tests to make recent linker
188         happy.
190 2010-06-30  Andreas Schwab  <schwab@redhat.com>
192         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
193         $(common-objpfx)libc_nonshared.a.
195 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
197         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
198         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
199         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
200         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
201         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
202         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
203         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
204         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
214         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
219         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
220         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
221         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
222         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
223         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
224         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
225         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
226         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
227         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
228         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
229         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
230         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
232         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
236         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
246 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
248         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
249         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
250         * string/memmove.c (memmove): Renamed to ...
251         (MEMMOVE): ...this.  Default to memmove.
252         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
253         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
254         (END_CHK): Define.
255         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
256         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
257         mempcpy-ssse3-back memmove-ssse3-back.
258         * sysdeps/x86_64/multiarch/bcopy.S: New file .
259         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
260         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
261         * sysdeps/x86_64/multiarch/memcpy.S: New file.
262         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
263         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
264         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
265         * sysdeps/x86_64/multiarch/memmove.c: New file.
266         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
267         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
268         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
269         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
270         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
271         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
272         Define.
273         (index_Fast_Copy_Backward): Define.
274         (HAS_ARCH_FEATURE): Define.
275         (HAS_FAST_REP_STRING): Define.
276         (HAS_FAST_COPY_BACKWARD): Define.
278 2010-06-21  Andreas Schwab  <schwab@redhat.com>
280         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
281         Restore proper fallback handling.
283 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
285         [BZ #11701]
286         * posix/group_member.c (__group_member): Correct checking loop.
288         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
289         OOM in getpwuid_r correctly.  Return error number when the caller
290         should return, otherwise -1.
291         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
292         call returning > 0 value.
293         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
295 2010-06-07  Andreas Schwab  <schwab@redhat.com>
297         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
298         libc_nonshared.a from targets in modules-names.
300 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
302         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
303         requires it.
305 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
307         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
308         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
309         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
310         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
312 2010-06-02  Andreas Schwab  <schwab@redhat.com>
314         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
316 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
318         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
319         and F_GETPIPE_SZ.
320         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
321         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
322         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
323         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
324         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
325         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
327 2010-06-14  Roland McGrath  <roland@redhat.com>
329         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
331 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
333         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
334         __REDIRECT followed by __THROW.
335         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
336         * posix/getopt.h (getopt): Likewise.
338 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
340         * hurd/lookup-at.c (__file_name_lookup_at): Accept
341         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
342         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
343         in AT_FLAGS.
344         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
345         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
347 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
349         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
351 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
353         [BZ #11640]
354         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
355         Properly check family and model.
357 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
359         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
361 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
363         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
365 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
367         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
368         symbol reference.
370 2010-05-19  Andreas Schwab  <schwab@redhat.com>
372         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
373         symbol reference.
375 2010-05-21  Andreas Schwab  <schwab@redhat.com>
377         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
378         and internal_recvmmsg.
379         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
380         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
381         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
382         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
384         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
385         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
386         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
388 2010-05-20  Andreas Schwab  <schwab@redhat.com>
390         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
392 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
394         POWER7 optimizations.
395         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
396         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
398 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
400         * version.h: Update for 2.13 development version.
402 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
404         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
405         exceptions.  Return 0.
407 2010-05-07  Roland McGrath  <roland@redhat.com>
409         * elf/ldconfig.c (main): Add a const.
411 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
413         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
414         (args_options): Add no-idn option.
415         (ahosts_keys_int): Add idn_flags to ai_flags.
416         (parse_option): Handle 'i' option to clear idn_flags.
418         * malloc/malloc.c (_int_free): Possible race in the most recently
419         added check.  Only act on the data if no current modification
420         happened.
422 See ChangeLog.17 for earlier changes.