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