Hurd: fix ttyname{,_r} errno result for non-ttys
[glibc.git] / ChangeLog
blobee565af088b8a27dfb8d24d55302398783803779
1 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
4         when converting to ms.
6 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
9         EOPNOTSUPP errors with ENOTTY.
10         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
11         EOPNOTSUPP errors with ENOTTY.
13 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
15         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
16         Add strcasecmp_l-ssse3.
17         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
18         strcasecmp.
19         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
20         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
21         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
23 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
25         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
27         * string/Makefile (strop-tests): Add strcasecmp.
28         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
29         strcasecmp_l-nonascii.
30         (gen-as-const-headers): Add locale-defines.sym.
31         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
32         * sysdeps/x86_64/strcasecmp.S: New file.
33         * sysdeps/x86_64/strcasecmp_l.S: New file.
34         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
35         * sysdeps/x86_64/locale-defines.sym: New file.
36         * string/test-strcasecmp.c: New file.
38         * string/test-strcasestr.c: Test both ends of the range of characters.
39         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
41 2010-07-29  Roland McGrath  <roland@redhat.com>
43         [BZ #11856]
44         * manual/locale.texi (Yes-or-No Questions): Fix example code.
46 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
48         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
49         for ld.so.
51 2010-07-27  Andreas Schwab  <schwab@redhat.com>
53         * manual/memory.texi (Malloc Tunable Parameters): Document
54         M_PERTURB.
56 2010-07-26  Roland McGrath  <roland@redhat.com>
58         [BZ #11840]
59         * configure.in (-fgnu89-inline check): Set and substitute
60         gnu89_inline, not libc_cv_gnu89_inline.
61         * configure: Regenerated.
62         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
64 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
66         * string/test-strnlen.c: New file.
67         * string/Makefile (strop-tests): Add strnlen.
68         * string/tester.c (test_strnlen): Add a few more test cases.
69         * string/tst-strlen.c: Better error reporting.
71         * sysdeps/x86_64/strnlen.S: New file.
73 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
75         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
76         lower-latency instructions.
78 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
80         * string/test-strcasestr.c: New file.
81         * string/test-strstr.c: New file.
82         * string/Makefile (strop-tests): Add strstr and strcasestr.
83         * string/str-two-way.h: Don't undefine MAX.
84         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
86 2010-07-21  Andreas Schwab  <schwab@redhat.com>
88         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
89         strcasestr-nonascii.
90         (CFLAGS-strcasestr-nonascii.c): Define.
91         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
92         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
93         Remove unused attribute.
95 2010-07-20  Roland McGrath  <roland@redhat.com>
97         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
98         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
99         ld.so.cache was broken.  With it, there is no way to disable dsocaps
100         like LD_HWCAP_MASK can disable hwcaps.
102 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
104         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
106 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
108         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
109         call in strcasestr.
110         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
111         __strcasestr_sse42_nonascii.
112         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
113         strcasestr-nonascii.c.
114         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
116 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
118         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
119         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
120         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
121         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
123 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
125         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
126         fcntl.
128 2010-07-06  Andreas Schwab  <schwab@redhat.com>
130         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
131         dl_signal_cerror.
133 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
135         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
136         _PC_PIPE_BUF using F_GETPIPE_SZ.
138 2010-07-05  Roland McGrath  <roland@redhat.com>
140         * manual/arith.texi (Rounding Functions): Fix rint description
141         implicit in round description.
143 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
145         * elf/Makefile: Fix linking for a few tests to make recent linker
146         happy.
148 2010-06-30  Andreas Schwab  <schwab@redhat.com>
150         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
151         $(common-objpfx)libc_nonshared.a.
153 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
155         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
156         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
157         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
158         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
159         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
160         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
161         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
162         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
163         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
167         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
169         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
171         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
174         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
175         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
177         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
178         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
179         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
180         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
181         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
182         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
183         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
184         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
185         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
186         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
187         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
188         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
189         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
190         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
192         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
193         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
195         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
196         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
200         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
204 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
206         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
207         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
208         * string/memmove.c (memmove): Renamed to ...
209         (MEMMOVE): ...this.  Default to memmove.
210         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
211         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
212         (END_CHK): Define.
213         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
214         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
215         mempcpy-ssse3-back memmove-ssse3-back.
216         * sysdeps/x86_64/multiarch/bcopy.S: New file .
217         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
218         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
219         * sysdeps/x86_64/multiarch/memcpy.S: New file.
220         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
221         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
222         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
223         * sysdeps/x86_64/multiarch/memmove.c: New file.
224         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
225         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
226         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
227         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
228         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
229         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
230         Define.
231         (index_Fast_Copy_Backward): Define.
232         (HAS_ARCH_FEATURE): Define.
233         (HAS_FAST_REP_STRING): Define.
234         (HAS_FAST_COPY_BACKWARD): Define.
236 2010-06-21  Andreas Schwab  <schwab@redhat.com>
238         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
239         Restore proper fallback handling.
241 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
243         [BZ #11701]
244         * posix/group_member.c (__group_member): Correct checking loop.
246         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
247         OOM in getpwuid_r correctly.  Return error number when the caller
248         should return, otherwise -1.
249         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
250         call returning > 0 value.
251         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
253 2010-06-07  Andreas Schwab  <schwab@redhat.com>
255         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
256         libc_nonshared.a from targets in modules-names.
258 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
260         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
261         requires it.
263 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
265         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
266         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
267         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
268         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
270 2010-06-02  Andreas Schwab  <schwab@redhat.com>
272         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
274 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
276         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
277         and F_GETPIPE_SZ.
278         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
279         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
280         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
281         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
282         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
283         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
285 2010-06-14  Roland McGrath  <roland@redhat.com>
287         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
289 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
291         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
292         __REDIRECT followed by __THROW.
293         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
294         * posix/getopt.h (getopt): Likewise.
296 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
298         * hurd/lookup-at.c (__file_name_lookup_at): Accept
299         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
300         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
301         in AT_FLAGS.
302         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
303         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
305 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
307         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
309 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
311         [BZ #11640]
312         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
313         Properly check family and model.
315 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
317         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
319 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
321         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
323 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
325         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
326         symbol reference.
328 2010-05-19  Andreas Schwab  <schwab@redhat.com>
330         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
331         symbol reference.
333 2010-05-21  Andreas Schwab  <schwab@redhat.com>
335         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
336         and internal_recvmmsg.
337         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
338         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
339         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
340         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
342         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
343         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
344         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
346 2010-05-20  Andreas Schwab  <schwab@redhat.com>
348         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
350 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
352         POWER7 optimizations.
353         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
354         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
356 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
358         * version.h: Update for 2.13 development version.
360 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
362         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
363         exceptions.  Return 0.
365 2010-05-07  Roland McGrath  <roland@redhat.com>
367         * elf/ldconfig.c (main): Add a const.
369 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
371         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
372         (args_options): Add no-idn option.
373         (ahosts_keys_int): Add idn_flags to ai_flags.
374         (parse_option): Handle 'i' option to clear idn_flags.
376         * malloc/malloc.c (_int_free): Possible race in the most recently
377         added check.  Only act on the data if no current modification
378         happened.
380 See ChangeLog.17 for earlier changes.