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