]> git.ipfire.org Git - thirdparty/glibc.git/blame - ChangeLog
Optimize xmalloc, xcalloc, xrealloc, and xstrdup
[thirdparty/glibc.git] / ChangeLog
CommitLineData
ec09c1c4
UD
12012-01-08 Ulrich Drepper <drepper@gmail.com>
2
3 * include/sys/cdefs.h: Define __attribute_alloc_size.
4 * catgets/gencat.c: Add alloc_size attribute and apply consistently
5 the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
6 * elf/pldd.c: Likewise.
7 * iconv/iconv_charmap.c: Likewise.
8 * iconv/iconvconfig.c: Likewise.
9 * iconv/strtab.c: Likewise.
10 * locale/programs/locale.c: Likewise.
11 * locale/programs/localedef.h: Likewise.
12 * locale/programs/simple-hash.c: Likewise.
13 * nscd/nscd.h: Likewise.
14 * nss/makedb.c: Likewise.
15 * sysdeps/generic/ldconfig.h: Likewise.
16 * locale/programs/localedef.c: Remove xmalloc prototype.
17 * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
18
20b38e03
PP
192012-01-05 Paul Pluzhnikov <ppluzhnikov@google.com>
20
21 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
22 appropriate.
23
a0da5fe1
UD
242012-01-08 Ulrich Drepper <drepper@gmail.com>
25
1d5a644a 26 * math/Makefile (tests): Add tst-CMPLX.
669704fd 27 * math/tst-CMPLX.c: New file.
1d5a644a 28
8784a6db
UD
29 * math/complex.h (CMPLXL): Fix typo.
30
d9a216c0
UD
31 * debug/Makefile (routines): Add poll_chk and ppoll_chk.
32 * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
33 GLIBC_2.16.
34 * debug/tst-chk1.c: Add poll and ppoll tests.
35 * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
36 * include/sys/poll.h: Add hidden proto for ppoll.
37 * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
38 * sysdeps/mach/hurd/ppoll.c: Likewise.
39 * io/ppoll.c: Likewise.
40 * debug/poll_chk.c: New file.
41 * debug/ppoll_chk.c: New file.
42 * include/bits/poll2.h: New file.
43 * io/bits/poll2.h: New file.
44
ac097f5c
UD
45 [BZ #1350]
46 * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
47
2119dcfa
UD
48 * configure.in: static is always set to yes. Remove.
49 * config.make.in: Don't set build-static.
50 * Makeconfig: Remove use of build-static.
51 * dlfcn/Makefile: Likewise.
52 * elf/Makefile: Likewise.
53 * math/Makefile: Likewise.
54 * misc/Makefile: Likewise.
55 * nptl/Makefile: Likewise.
56 * sysdeps/mach/hurd/Makefile: Likewise.
57
121766a9
UD
58 * configure.in: PWD_P is not used anymore.
59 * config.make.in: Remove PWD_P entry.
60
51a1d39c 61 * configure.in: Remove last remnants of RANLIB.
8720d066 62 No need to check for signed size_t anymore.
215f4bdc
UD
63 Don't set libc_commonpagesize and libc_relro_required here for Alpha
64 and IA-64.
3857022a 65 Remove __builtin_expect test because we require at least gcc 3.4.
51a1d39c
UD
66 * aclocal.m4: Likewise.
67
d3ed7225
UD
68 * wcsmbs/mbrtoc16.c: Implement using towc function.
69 * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
70 * wcsmbs/wcsmbsload.c: Likewise.
71 * iconv/gconv_simple.c: Likewise.
72 * iconv/gconv_int.h: Likewise.
73 * iconv/gconv_builtin.h: Likewise.
74 * iconv/iconv_prog.c: Remove CHAR16 handling.
75
76 * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
77
78 * wcsmbs/mbrtowc.c: Better check for invalid inputs.
79
a0da5fe1
UD
80 * configure.in: Remove --with-elf and --enable-bounded options.
81 Dont set base_machine for ia64. More non-ELF conditions removed.
82 Remove testing and setting of leading underscore information.
83 * config.make.in (build-bounded): Set to no.
84 * config.h.in: Remove NO_UNDERSCORES entry.
85 * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS. ELF has
86 them.
87 * csu/start.c: Remove !NO_UNDERSCORE code.
88 * locale/localeinfo.h: Likewise.
89 * sysdeps/generic/machine-gmon.h: Likewise.
90 * sysdeps/generic/sysdep.h: Likewise.
91 * sysdeps/i386/sysdep.h: Likewise.
92 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
93 * sysdeps/mach/sysdep.h: Likewise.
94 * sysdeps/s390/s390-32/sysdep.h: Likewise.
95 * sysdeps/s390/s390-64/sysdep.h: Likewise.
96 * sysdeps/sh/sysdep.h: Likewise.
97 * sysdeps/sparc/sparc32/alloca.S: Likewise.
98 * sysdeps/unix/i386/sysdep.S: Likewise.
99 * sysdeps/unix/sparc/start.c: Likewise.
100 * sysdeps/unix/sparc/sysdep.S: Likewise.
101 * sysdeps/unix/sparc/sysdep.h: Likewise.
102 * sysdeps/unix/start.c: Likewise.
103 * sysdeps/unix/x86_64/sysdep.S: Likewise.
104 * sysdeps/x86_64/sysdep.h: Likewise.
105
df78418a
UD
1062012-01-07 Ulrich Drepper <drepper@gmail.com>
107
a784e502
UD
108 [BZ #13553]
109 * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
110 for non-gcc.
111 * argp/argp-fmtstream.h: Use const instead __const.
112 * argp/argp.h: Likewise.
113 * assert/assert.h: Likewise.
114 * bits/fenv.h: Likewise.
115 * bits/sched.h: Likewise.
116 * bits/sigset.h: Likewise.
117 * bits/sigthread.h: Likewise.
118 * catgets/nl_types.h: Likewise.
119 * conform/data/pthread.h-data: Likewise.
120 * crypt/crypt-private.h: Likewise.
121 * crypt/crypt.h: Likewise.
122 * crypt/crypt_util.c: Likewise.
123 * ctype/ctype.h: Likewise.
124 * debug/execinfo.h: Likewise.
125 * debug/mbsnrtowcs_chk.c: Likewise.
126 * debug/mbsrtowcs_chk.c: Likewise.
127 * debug/wcsnrtombs_chk.c: Likewise.
128 * debug/wcsrtombs_chk.c: Likewise.
129 * debug/wcstombs_chk.c: Likewise.
130 * dirent/dirent.h: Likewise.
131 * dlfcn/dlfcn.h: Likewise.
132 * elf/neededtest4.c: Likewise.
133 * grp/grp.h: Likewise.
134 * gshadow/gshadow.h: Likewise.
135 * iconv/gconv.h: Likewise.
136 * iconv/gconv_int.h: Likewise.
137 * iconv/gconv_simple.c: Likewise.
138 * iconv/iconv.h: Likewise.
139 * iconv/loop.c: Likewise.
140 * iconv/skeleton.c: Likewise.
141 * include/aio.h: Likewise.
142 * include/aliases.h: Likewise.
143 * include/argz.h: Likewise.
144 * include/arpa/inet.h: Likewise.
145 * include/assert.h: Likewise.
146 * include/dirent.h: Likewise.
147 * include/dlfcn.h: Likewise.
148 * include/execinfo.h: Likewise.
149 * include/fcntl.h: Likewise.
150 * include/fenv.h: Likewise.
151 * include/glob.h: Likewise.
152 * include/grp.h: Likewise.
153 * include/libintl.h: Likewise.
154 * include/mntent.h: Likewise.
155 * include/netdb.h: Likewise.
156 * include/pwd.h: Likewise.
157 * include/rpc/netdb.h: Likewise.
158 * include/sched.h: Likewise.
159 * include/search.h: Likewise.
160 * include/shadow.h: Likewise.
161 * include/signal.h: Likewise.
162 * include/stdio.h: Likewise.
163 * include/stdlib.h: Likewise.
164 * include/string.h: Likewise.
165 * include/sys/socket.h: Likewise.
166 * include/sys/stat.h: Likewise.
167 * include/sys/statfs.h: Likewise.
168 * include/sys/statvfs.h: Likewise.
169 * include/sys/syslog.h: Likewise.
170 * include/sys/time.h: Likewise.
171 * include/sys/uio.h: Likewise.
172 * include/time.h: Likewise.
173 * include/unistd.h: Likewise.
174 * include/utmp.h: Likewise.
175 * include/wchar.h: Likewise.
176 * include/wctype.h: Likewise.
177 * inet/aliases.h: Likewise.
178 * inet/arpa/inet.h: Likewise.
179 * inet/netinet/ether.h: Likewise.
180 * inet/netinet/in.h: Likewise.
181 * intl/libintl.h: Likewise.
182 * io/bits/fcntl2.h: Likewise.
183 * io/fcntl.h: Likewise.
184 * io/ftw.h: Likewise.
185 * io/sys/poll.h: Likewise.
186 * io/sys/stat.h: Likewise.
187 * io/sys/statfs.h: Likewise.
188 * io/sys/statvfs.h: Likewise.
189 * io/utime.h: Likewise.
190 * libio/bits/stdio.h: Likewise.
191 * libio/bits/stdio2.h: Likewise.
192 * libio/libio.h: Likewise.
193 * libio/libioP.h: Likewise.
194 * libio/stdio.h: Likewise.
195 * locale/lc-ctype.c: Likewise.
196 * locale/locale.h: Likewise.
197 * login/utmp.h: Likewise.
198 * malloc/arena.c: Likewise.
199 * malloc/malloc.c: Likewise.
200 * malloc/malloc.h: Likewise.
201 * malloc/mcheck.c: Likewise.
202 * malloc/mtrace.c: Likewise.
203 * math/bits/mathcalls.h: Likewise.
204 * math/fenv.h: Likewise.
205 * math/math_private.h: Likewise.
206 * misc/bits/error.h: Likewise.
207 * misc/bits/syslog.h: Likewise.
208 * misc/err.h: Likewise.
209 * misc/error.h: Likewise.
210 * misc/fstab.h: Likewise.
211 * misc/mntent.h: Likewise.
212 * misc/regexp.h: Likewise.
213 * misc/search.h: Likewise.
214 * misc/sgtty.h: Likewise.
215 * misc/sys/mman.h: Likewise.
216 * misc/sys/syslog.h: Likewise.
217 * misc/sys/uio.h: Likewise.
218 * misc/sys/xattr.h: Likewise.
219 * misc/ttyent.h: Likewise.
220 * nis/rpcsvc/ypclnt.h: Likewise.
221 * nss/nss.h: Likewise.
222 * posix/bits/unistd.h: Likewise.
223 * posix/fnmatch.h: Likewise.
224 * posix/glob.h: Likewise.
225 * posix/sched.h: Likewise.
226 * posix/spawn.h: Likewise.
227 * posix/sys/wait.h: Likewise.
228 * posix/unistd.h: Likewise.
229 * posix/wordexp.h: Likewise.
230 * pwd/pwd.h: Likewise.
231 * resolv/netdb.h: Likewise.
232 * resource/sys/resource.h: Likewise.
233 * rt/aio.h: Likewise.
234 * rt/bits/mqueue2.h: Likewise.
235 * rt/mqueue.h: Likewise.
236 * shadow/shadow.h: Likewise.
237 * signal/signal.h: Likewise.
238 * socket/send.c: Likewise.
239 * socket/sendto.c: Likewise.
240 * socket/sys/socket.h: Likewise.
241 * stdio-common/printf.h: Likewise.
242 * stdlib/bits/stdlib.h: Likewise.
243 * stdlib/fmtmsg.h: Likewise.
244 * stdlib/monetary.h: Likewise.
245 * stdlib/stdlib.h: Likewise.
246 * stdlib/ucontext.h: Likewise.
247 * streams/stropts.h: Likewise.
248 * string/argz.h: Likewise.
249 * string/bits/string2.h: Likewise.
250 * string/string.h: Likewise.
251 * string/strings.h: Likewise.
252 * sunrpc/rpc/auth.h: Likewise.
253 * sunrpc/rpc/auth_des.h: Likewise.
254 * sunrpc/rpc/clnt.h: Likewise.
255 * sunrpc/rpc/netdb.h: Likewise.
256 * sunrpc/rpc/pmap_clnt.h: Likewise.
257 * sunrpc/rpc/xdr.h: Likewise.
258 * sysdeps/generic/inttypes.h: Likewise.
259 * sysdeps/generic/net/if.h: Likewise.
260 * sysdeps/generic/sys/swap.h: Likewise.
261 * sysdeps/gnu/net/if.h: Likewise.
262 * sysdeps/gnu/utmpx.h: Likewise.
263 * sysdeps/i386/fpu/bits/fenv.h: Likewise.
264 * sysdeps/i386/i486/bits/string.h: Likewise.
265 * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
266 * sysdeps/s390/bits/string.h: Likewise.
267 * sysdeps/s390/fpu/bits/fenv.h: Likewise.
268 * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
269 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
270 * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
271 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
272 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
273 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
274 * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
275 * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
276 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
277 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
278 * sysdeps/unix/sysv/linux/preadv.c: Likewise.
279 * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
280 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
281 * sysdeps/unix/sysv/linux/readv.c: Likewise.
282 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
283 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
284 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
285 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
286 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
287 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
288 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
289 * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
290 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
291 * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
292 * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
293 * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
294 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
295 * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
296 * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
297 * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
298 * sysvipc/sys/ipc.h: Likewise.
299 * sysvipc/sys/msg.h: Likewise.
300 * sysvipc/sys/sem.h: Likewise.
301 * sysvipc/sys/shm.h: Likewise.
302 * termios/termios.h: Likewise.
303 * time/sys/time.h: Likewise.
304 * time/time.h: Likewise.
305 * wcsmbs/bits/wchar2.h: Likewise.
306 * wcsmbs/uchar.h: Likewise.
307 * wcsmbs/wchar.h: Likewise.
308 * wctype/wctype.h: Likewise.
309
0269750c
UD
310 [BZ #13551]
311 * Makeconfig: Remove all but ELF support including AIX support.
312 * Makerules: Likewise.
313 * config.h.in: Likewise.
314 * config.make.in: Likewise.
315 * configure: Likewise.
316 * configure.in: Likewise.
317 * csu/Makefile: Likewise.
318 * csu/version.c: Likewise.
319 * debug/Makefile: Likewise.
320 * dlfcn/Makefile: Likewise.
321 * elf/Makefile: Likewise.
322 * extra-lib.mk: Likewise.
323 * iconv/Makefile: Likewise.
324 * include/libc-symbols.h: Likewise.
325 * include/shlib-compat.h: Likewise.
326 * resolv/Makefile: Likewise.
327 * resolv/res_libc.c: Likewise.
328 * rt/Makefile: Likewise.
329 * sysdeps/i386/asm-syntax.h: Likewise.
330 * sysdeps/i386/sysdep.h: Likewise.
331 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
332 * sysdeps/mach/sysdep.h: Likewise.
333 * sysdeps/powerpc/powerpc32/Makefile: Likewise.
334 * sysdeps/powerpc/powerpc64/Makefile: Likewise.
335 * sysdeps/s390/asm-syntax.h: Likewise.
336 * sysdeps/s390/s390-32/sysdep.h: Likewise.
337 * sysdeps/s390/s390-64/sysdep.h: Likewise.
338 * sysdeps/sh/sysdep.h: Likewise.
339 * sysdeps/unix/sparc/sysdep.h: Likewise.
340 * sysdeps/wordsize-32/divdi3.c: Likewise.
341 * sysdeps/x86_64/sysdep.h: Likewise.
342
00bbd29b
UD
343 * argp/Versions: Remove _argp_unlock_xxx.
344
345 [BZ #13559]
346 * abilist/ld.abilist: Update. Adjust for removal of tls option.
347 * abilist/libBrokenLocale.abilist: Likewise.
348 * abilist/libanl.abilist: Likewise.
349 * abilist/libc.abilist: Likewise.
350 * abilist/libcrypt.abilist: Likewise.
351 * abilist/libdl.abilist: Likewise.
352 * abilist/libm.abilist: Likewise.
353 * abilist/libnsl.abilist: Likewise.
354 * abilist/libpthread.abilist: Likewise.
355 * abilist/libresolv.abilist: Likewise.
356 * abilist/librt.abilist: Likewise.
357 * abilist/libthread_db.abilist: Likewise.
358 * abilist/libutil.abilist: Likewise.
359 * abilist/libnss_db.abilist: New file.
360
361 * scripts/abilist.awk: Add support for indirect functions.
362
a2693a0e
UD
363 * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
364
3f05895f
UD
365 * sysdeps/generic/ldsodefs.h: Remove Alpha support.
366
ecb6fb48
UD
367 * shlib-versions: Remove entries for ports architectures.
368
664f8cb9
UD
369 * elf/tls-macros.h: Remove support for Alpha and IA-64. Should be in
370 files in ports.
371 * elf/stackguard-macros.h: Remove support for IA-64.
372 * elf/tst-auditmod1.c: Likewise.
373 * sysdeps/generic/ldsodefs.h: Likewise.
374
7ae81d88
UD
375 * sysdeps/unix/sysv/linux/configure.in: Ports should define
376 libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
377 configure files.
378
bdeba135
UD
379 [BZ #13552]
380 * configure.in: Remove --enable-omitfp support.
381 * FAQ.in: Adjust.
382 * config.make.in: Likewise.
383 * Makeconfig: Likewise.
384 * manual/install.texi: Likewise.
385
d75a0a62
UD
386 In case anyone cares, the IA-64 architecture could move to ports.
387 * sysdeps/ia64/*: Removed.
388 * sysdeps/unix/sysv/linux/ia64/*: Removed.
b13b9885 389 * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
d75a0a62 390
dcc9756b
UD
391 [BZ #13555]
392 * configure.in: Remove entries for unsupported architectures.
393
d3761ebc 394 [BZ #13533]
9954432e
UD
395 * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
396 * iconv/gconv_simple.c: Rename char16_t routines. Add char16_t<->utf8
397 routines.
398 * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
399 * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
400 * wcsmbs/c16rtomb.c: Fix a few problems. Disable all the code and
401 fall back to using wcrtomb.
402 * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
403 * wcsmbs/wcsmbsload.c: Make char16 routines optional. Adjust for
404 renaming.
405 * wcsmbs/Makefile (tests): Add tst-c16c32-1:
406 * wcsmbs/tst-c16c32-1.c: New file.
407
408 * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
409 local variable.
410
c3a87236
UD
411 * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
412
28926a1b
UD
413 * elf/tst-unique3.cc: Add explicit declaration of gets.
414 * elf/tst-unique3lib.cc: Likewise.
415 * elf/tst-unique3lib2.cc: Likewise.
416 * elf/tst-unique4.cc: Likewise.
417
df78418a
UD
418 * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
419
8ecd6b2a
JM
4202012-01-06 Joseph Myers <joseph@codesourcery.com>
421
422 [BZ #13566]
423 * assert/assert.h (static_assert): Don't define for C++.
424 * libio/stdio.h (gets): Do declare for C++ <= C++11.
425 * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
426
9f115170
UD
4272012-01-03 Ulrich Drepper <drepper@gmail.com>
428
5e0d0300
UD
429 * iconv/loop.c (single loop): Fix assertion in storing of
430 remaining bytes.
431
9f115170
UD
432 * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
433
81fb02b0
UD
4342012-01-01 Ulrich Drepper <drepper@gmail.com>
435
436 * posix/getconf.c: Update copyright year.
437 * nss/getent.c: Likewise.
a316c1f6 438 * nss/makedb.c: Likewise.
81fb02b0
UD
439 * iconv/iconvconfig.c: Likewise.
440 * iconv/iconv_prog.c: Likewise.
441 * elf/ldconfig.c: Likewise.
a316c1f6
UD
442 * elf/pldd.c: Likewise.
443 * elf/sotruss.ksh: Likewise.
81fb02b0
UD
444 * catgets/gencat.c: Likewise.
445 * csu/version.c: Likewise.
446 * elf/ldd.bash.in: Likewise.
447 * elf/sprof.c (print_version): Likewise.
448 * locale/programs/locale.c: Likewise.
449 * locale/programs/localedef.c: Likewise.
a316c1f6 450 * login/programs/pt_chown.c: Likewise.
81fb02b0
UD
451 * nscd/nscd.c (print_version): Likewise.
452 * debug/xtrace.sh: Likewise.
453 * malloc/memusage.sh: Likewise.
454 * malloc/mtrace.pl: Likewise.
455 * debug/catchsegv.sh: Likewise.
456
2ba92745
JJ
4572011-12-30 Jakub Jelinek <jakub@redhat.com>
458
459 * posix/regex_internal.c (re_string_fetch_byte_case): Remove
460 pure attribute.
461
dadebdae
UD
4622011-12-24 Ulrich Drepper <drepper@gmail.com>
463
d3761ebc 464 [BZ #13533]
db6af3eb
UD
465 * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
466 * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
467 transformations.
468 * iconv/gconv_int.h: Likewise.
469 * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
470 * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
471 from libc for GLIBC_2.16.
472 * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
473 * wcsmbs/wcrtomb.c: Define c32rtomb alias.
474 * wcsmbs/uchar.h: Really define mbstate_t.
475 * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
476 * wcsmbs/c16rtomb.c: New file.
477 * wcsmbs/mbrtoc16.c: New file.
478 * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
479 for C/POSIX locale.
480 (__wcsmbs_load_conv): Do not fill in c16 routines yet.
481 * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
482
dadebdae
UD
483 * wcsmbs/wchar.h: Add missing __restrict.
484
67371b56
UD
4852011-12-23 Ulrich Drepper <drepper@gmail.com>
486
74033a25
UD
487 [BZ #13532]
488 * time/Makefile (routines): Add timespec_get.
489 * time/Versions: Export timespec_get from libc for GLIBC_2.16.
490 * time/time.h: Define TIME_UTC and declare timespec_get. Define
491 timespec for ISO C11.
492 * time/timespec_get.c: New file.
493 * sysdeps/unix/sysv/linux/timespec_get.c: New file.
494 * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
495
380d7e87
UD
496 [BZ #13531]
497 * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
498 * stdlib/stdlib.h: Declare aligned_alloc.
499 * Versions.def: Add GLIBC_2.16 for libc.
500 * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
501
4e9e7a35
UD
502 [BZ 13527]
503 * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
504 ISO C11.
505
380d7e87 506 * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
8fd8ff3b
UD
507 code.
508
03a71829
UD
509 [BZ #13528]
510 * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
511
839e283e
UD
512 [BZ #13529]
513 * assert/assert.h (static_assert): Define.
514
ce5294e2 515 * version.h: Update for 2.16 development version.
90fa7312 516
8d44e150 517 [BZ #13526]
d7809905
UD
518 * include/features.h: Handle __STDC_VERSION__ >= 201112 and
519 _ISOC11_SOURCE.
520
c0da14cd
UD
521 * version.h (RELEASE): Bump for 2.15 release.
522 * include/features.h (__GLIBC_MINOR__): Bump to 15.
523
530a3249
MP
524 * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
525 Patch by Marek Polacek <mpolacek@redhat.com>.
526
67371b56
UD
527 * bits/byteswap.h: Protect long long constants with __extension__.
528 * sysdeps/i386/bits/byteswap.h: Likewise.
529 * sysdeps/ia64/bits/byteswap.h: Likewise.
530 * sysdeps/s390/bits/byteswap.h: Likewise.
531 * sysdeps/x86_64/bits/byteswap.h: Likewise.
532
15db4de1
LD
5332011-12-23 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
534
535 [BZ #13540]
bbe315ea
LD
536 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
537 destination buffer.
15db4de1
LD
538 * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
539
2b2596b1
MP
5402011-12-23 Marek Polacek <polacek@redhat.com>
541
542 * elf/dl-addr.c (determine_info): Add inline keyword.
543 * elf/tst-auditmod4b.c (check_avx): Likewise.
544 * elf/tst-auditmod6b.c (check_avx): Likewise.
545 * elf/tst-auditmod6c.c (check_avx): Likewise.
546 * elf/tst-auditmod7b.c (check_avx): Likewise.
547
70c6c246
UD
5482011-12-23 Ulrich Drepper <drepper@gmail.com>
549
550 * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
551 !__SSE_MATH__.
552
c044cf14
LD
5532011-12-23 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
554
15db4de1 555 [BZ #13540]
c044cf14
LD
556 * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
557 processing for last bytes.
558
6b13d9d9
BH
5592011-08-06 Bruno Haible <bruno@clisp.org>
560
d455f537
BH
561 [BZ #13061]
562 * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
563 U+0385, not to U+1FEE.
564
6b13d9d9
BH
565 [BZ #13062]
566 * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
567 entry for U+00A5 U+0301.
568
db910efd
UD
5692011-12-22 Ulrich Drepper <drepper@gmail.com>
570
27deeafc
UD
571 [BZ #13166]
572 * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
573 buffer for the output is too small.
574
aed9d171
UD
575 * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
576 optimization.
577
db910efd
UD
578 [BZ #13185]
579 * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
580 SSE flags if possible.
581
2bd779ae
LD
5822011-12-22 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
583
e7f9dac3 584 [BZ #13540]
2bd779ae
LD
585 * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
586 processing for last bytes.
587
154bfc16
JM
5882011-12-22 Joseph Myers <joseph@codesourcery.com>
589
590 * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
591 (syscall-list-default-options, syscall-list-default-condition)
592 (syscall-list-includes): Define.
593 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
594 list of ABIs and options and #if conditions for each ABI. Do not
595 handle common syscalls between ABIs specially.
596 * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
597 Remove.
598 (syscall-list-variants, syscall-list-32bit-options)
599 (syscall-list-32bit-condition, syscall-list-64bit-options)
600 (syscall-list-64bit-condition): Define.
601 * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
602 (syscall-list-variants, syscall-list-32bit-options)
603 (syscall-list-32bit-condition, syscall-list-64bit-options)
604 (syscall-list-64bit-condition): Define.
605 * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
606 Remove.
607 (syscall-list-variants, syscall-list-32bit-options)
608 (syscall-list-32bit-condition, syscall-list-64bit-options)
609 (syscall-list-64bit-condition): Define.
610 * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
611 Remove.
612 (syscall-list-variants, syscall-list-32bit-options)
613 (syscall-list-32bit-condition, syscall-list-64bit-options)
614 (syscall-list-64bit-condition): Define.
615
21eaf3a5
UD
6162011-12-22 Ulrich Drepper <drepper@gmail.com>
617
16c6f992
UD
618 * locale/iso-639.def: Add brx entry.
619
41043168
UD
620 [BZ #13328]
621 * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
622 Proposed by Mariusz_Cukr <marcukr@op.pl>.
623
21eaf3a5
UD
624 * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
625 __feraiseexcept_renamed.
626
e3a851a2
UD
6272011-12-21 Ulrich Drepper <drepper@gmail.com>
628
4920765e
UD
629 [BZ #13538]
630 * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
631 EPOLLET with unsigned values.
632 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
633 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
634
e3a851a2
UD
635 * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
636 to large cancellation.
637 * math/s_cacoshf.c: Likewise.
638 * math/s_cacoshl.c: Likewise.
639
b27e24b8
RK
6402011-11-18 Richard B. Kreckel <kreckel@ginac.de>
641
642 [BZ #13305]
aebefeee 643 [BZ #12786]
b27e24b8
RK
644 * math/s_cacosh.c: Fix rare miscomputation in cacosh().
645 * math/s_cacoshf.c: Likewise.
646 * math/s_cacoshl.c: Likewise.
647
ee190f67
UD
6482011-12-21 Ulrich Drepper <drepper@gmail.com>
649
650 [BZ #13439]
651 * iconv/gconv.h: Define __GCONV_SWAP.
652 * iconvdata/unicode.c: The swap bit must be stored in __flags.
653 * iconvdata/utf-16.c: Likewise.
654 * iconvdata/utf-32.c: Likewise.
655
707f25df
AS
6562011-12-21 Andreas Schwab <schwab@linux-m68k.org>
657
658 [BZ #13524]
659 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
660 numerator after shifting it by one limb.
661
d2daaa1e
RÁE
6622011-12-19 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
663
664 * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
665 under [__USE_EXTERN_INLINES].
666
a4647e72
UD
6672011-12-17 Ulrich Drepper <drepper@gmail.com>
668
669 [BZ #13446]
670 * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
671
f0b264f1
AZ
6722011-11-22 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
673
674 * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
675 * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
676 optimized code.
677 * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
678 * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
679 * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
680 * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
681 for strncasecmp/strncasecmp_l compilation.
682 * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
683 * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
684
8ef4f244
MP
6852011-12-08 Marek Polacek <mpolacek@redhat.com>
686
687 [BZ #13484]
688 * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
689 of __asm__.
690
97ac2654
UD
6912011-12-17 Ulrich Drepper <drepper@gmail.com>
692
693 [BZ #13506]
694 * time/tzfile.c (__tzfile_read): Check values from file header.
695
91d2a845
WS
6962011-11-21 Will Schmidt <will_schmidt@vnet.ibm.com>
697
698 * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
699 * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
700 * powerpc/powerpc32/dl-start.S: Likewise.
701 * powerpc/powerpc32/elf/start.S: Likewise.
702 * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
703 * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
704 * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
705 * powerpc/powerpc32/fpu/s_floor.S: Likewise.
706 * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
707 * powerpc/powerpc32/fpu/s_lround.S: Likewise.
708 * powerpc/powerpc32/fpu/s_rint.S: Likewise.
709 * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
710 * powerpc/powerpc32/fpu/s_round.S: Likewise.
711 * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
712 * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
713 * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
714 * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
715 * powerpc/powerpc32/memset.S: Likewise.
716 * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
717 * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
718 * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
719 * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
720 * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
721 * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
722 * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
723 * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
724 * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
725 * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
726 * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
727 * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
728 * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
729
a1267ba1
AZ
7302011-11-18 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
731
732 * math/libm-test.inc: Added more nearbyint tests.
733 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
734 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
735 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
736 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
737
ad8ac1bd
RL
7382011-11-21 Ross Lagerwall <rosslagerwall@gmail.com>
739
740 * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
741 FD_CLOEXEC.
742
1d3e4b61
UD
7432011-11-14 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
744
745 * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
746 Add wcscpy-ssse3 wcscpy-c.
747 * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
748 * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
749 * sysdeps/x86_64/multiarch/wcscpy.S: New file.
750 * sysdeps/x86_64/wcschr.S: New file.
751 * sysdeps/x86_64/wcsrchr.S: New file.
752 * string/test-strcmp.c: Remove checking of wcscmp function for
753 wrong alignments.
754 * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
755 (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
756 wcsrchr-sse2 wcsrchr-c.
757 * sysdeps/i386/i686/multiarch/wcschr.S: New file.
758 * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
759 * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
760 * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
761 * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
762 * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
763 * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
764 * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
765 * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
766 * wcsmbc/wcschr.c (WCSCHR): New macro.
767
5b330a2d
UD
7682011-11-17 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
769
770 * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
771 * wcsmbs/test-wcsrchr.c: New file.
772 * string/test-strrchr.c: Add wcsrchr support.
773 (WIDE): New macro.
774 * wcsmbs/test-wcscpy.c: New file.
775 * string/test-strcpy.c: Add wcscpy support.
776 (WIDE): New macro.
26428b7c 777
f039c043
UD
7782011-12-10 Ulrich Drepper <drepper@gmail.com>
779
780 * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
781 the inner loop.
782
850fb039
AS
7832011-12-06 Andreas Schwab <schwab@linux-m68k.org>
784
785 [BZ #13472]
786 * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
787
4efbd5cb
UD
7882011-12-04 Ulrich Drepper <drepper@gmail.com>
789
52ff5dd0 790 * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
52ad36a2 791 Minor optimizations.
52ff5dd0 792
4efbd5cb
UD
793 * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
794 * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
795 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
796
8a426e12
UD
7972011-12-03 Ulrich Drepper <drepper@gmail.com>
798
aff2453d
UD
799 * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
800 IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
801 IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
802 for gcc to avoid warnings.
803 * inet/Makefile (tests): Add tst-checks.
804 * inet/tst-checks.c: New file.
805
806 * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
807 warning.
808
809 * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
810 __wmemcmp_sse2.
811
812 * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
813 * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
814
8a426e12
UD
815 * malloc/mcheck.h: Fix use of incorrect encoding in comment.
816
9bea3473
UD
8172011-12-02 Ulrich Drepper <drepper@gmail.com>
818
3a965496
UD
819 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
820 problem.
821
9bea3473
UD
822 * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
823
f101631b
UD
8242011-11-29 Joseph Myers <joseph@codesourcery.com>
825
826 * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
827 conditional on GCC version.
828 (__arch_compare_and_exchange_val_8_acq)
829 (__arch_compare_and_exchange_val_16_acq)
830 (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
831 (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
832 (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
833
a98275aa
UD
8342011-12-02 Joseph Myers <joseph@codesourcery.com>
835
836 * sysdeps/sh/backtrace.c: New file.
837
d4cc29a2
AS
8382011-12-02 Andreas Schwab <schwab@redhat.com>
839
840 * misc/bits/select2.h (__FD_ELT): Mark as extension. Add
841 parenthesis.
842
6257af2d
AS
8432011-12-01 Andreas Schwab <schwab@redhat.com>
844
845 * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
846 falling back to utime.
847
b5f44c1a
AS
8482011-11-30 Andreas Schwab <schwab@redhat.com>
849
850 * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
851 expectations for float.
852
f3a6cc0a
AS
8532011-11-29 Andreas Schwab <schwab@redhat.com>
854
855 * locale/weight.h (findidx): Add parameter len.
856 * locale/weightwc.h (findidx): Likewise.
857 * posix/fnmatch_loop.c (FCT): Adjust caller.
858 * posix/regcomp.c (build_equiv_class): Likewise.
859 * posix/regex_internal.h (re_string_elem_size_at): Likewise.
860 * posix/regexec.c (check_node_accept_bytes): Likewise.
861 * string/strcoll_l.c (STRCOLL): Likewise.
862 * string/strxfrm_l.c (STRXFRM): Likewise.
863
9d65ea3a
UD
8642011-11-17 Ulrich Drepper <drepper@gmail.com>
865
866 * Makefile.in: Remove CVSOPT handling.
867 * configure.in: Remove use of AC_REVISION.
868 * iconvdata/Makefile (distribute): No need to filter out CVS.
869 * scripts/list-sources.sh: Remove CVS, subversion and monotone
870 handling.
871
5583a086
AS
8722011-11-16 Andreas Schwab <schwab@redhat.com>
873
874 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
875 [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
876 [USE_AS_STRNCASECMP_L]: Likewise.
877 (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
878 NO_TLS_DIRECT_SEG_REFS.
879 * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
880 Fix argument offsets for non-PIC.
881 [USE_AS_STRNCASECMP_L]: Likewise.
882 (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
883 NO_TLS_DIRECT_SEG_REFS.
884
d62a8200
UD
8852011-11-15 Ulrich Drepper <drepper@gmail.com>
886
9d65ea3a 887 * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
d62a8200
UD
888 O_CLOEXEC.
889 * locale/loadlocale.c (_nl_load_locale): Likewise.
890
09f93bd3
AS
8912011-11-15 Andreas Schwab <schwab@redhat.com>
892
446514f9
AS
893 * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
894 [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
895 * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
896 (SYSCALL_GETTIME): Set errno on error.
897
09f93bd3
AS
898 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
899 count references to noai6ai_cached.
900
312be3f9
UD
9012011-11-15 Ulrich Drepper <drepper@gmail.com>
902
903 * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
904
905 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
906 FD_CLOEXEC for /proc/self/maps.
907
908 * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
909 FD_CLOEXEC for /proc/meminfo.
910
911 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
912 gai.conf.
913
914 * resolv/res_query.c (res_hostalias): Don't allow cancellation and set
915 FD_CLOEXEC for given file.
916
917 * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
918
919 * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
920 FD_CLOEXEC for /etc/hosts.
921 (_gethtent): Likewise.
922
923 * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
924
925 * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
926 cancellation and set FD_CLOEXEC for /etc/netgroup.
927
928 * nss/nss_files/files-key.c (search): Don't allow cancellation when
929 reading /etc/publickey.
930
931 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
932 allow cancellation when reading /etc/group.
933
934 * nss/nss_files/files-alias.c (internal_setent): Don't allow
935 cancellation.
936 (get_next_alias): Likewise for included file. Also set FD_CLOEXEC.
937
938 * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
939 when using data file.
940
941 * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
942
943 * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
944 (write_nis_obj): Use "c" and "e" in fopen.
945
946 * misc/mntent_r.c (__setmntent): Also append e to fopen format.
947
948 * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
949
950 * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
951
952 * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
953
954 * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
955 locale.alias.
956
957 * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
958
959 * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
960
961 * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
962
963 * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
964 file parsing and set FD_CLOEXEC.
965
82af0fa8
UD
9662011-11-14 Ulrich Drepper <drepper@gmail.com>
967
968 * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
969
a5fb313c
AS
9702011-11-14 Andreas Schwab <schwab@redhat.com>
971
972 * malloc/arena.c (arena_get2): Don't call reused_arena when
973 _int_new_arena failed.
974
6abf3465
UD
9752011-11-14 Ulrich Drepper <drepper@gmail.com>
976
977 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
978 (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
979 * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
980 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
981 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
982 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
983 to compile strcasecmp and strncasecmp.
984 * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
985 * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
986
987 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
988
76e3966e
UD
9892011-11-13 Ulrich Drepper <drepper@gmail.com>
990
991 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
992 locale-defines.sym to gen-as-const-headers.
993 (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
994 strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
995 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
996 to compile strcasecmp and strncasecmp.
997 * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
998 strcasecmp_l and strncasecmp_l.
999 * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
1000 * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
1001 * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
1002 * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
1003 * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
1004 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
1005 * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
1006 * sysdeps/i386/i686/multiarch/strncase.S: New file.
1007 * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
1008 * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
1009 * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
1010
ab26144e
UD
10112011-11-12 Ulrich Drepper <drepper@gmail.com>
1012
7edb22ef
UD
1013 * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
1014 result of SYSDEP_GETTIME_CPU to retval.
1015 * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
1016 parameter list to macro. Remove trailing semicolon. Adjust users.
1017
9694fc44
UD
1018 * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
1019 variable.
1020
8ad89ef8
UD
1021 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
1022 mantissa words.
1023 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
1024
0c822ef9
UD
1025 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
1026 from unused variable.
1027
874e0564
UD
1028 * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
1029 DWARF definitions.
1030 * sysdeps/generic/dwarf2.h: Don't define enums when using the file
1031 for assembling.
1032
3a2edc79
UD
1033 * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
1034 over namespaces.
1035
f3c2577f
UD
1036 * sunrpc/rpc_prot.c (rejected): Fix case value.
1037
294ce126
UD
1038 * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
1039 unsigned long long int to avoid warnings in shift.
1040
5e2b63c6
UD
1041 * posix/regex_internal.c (re_string_reconstruct): Actually use result
1042 of use of trans.
1043 * posix/regex_internal.h (re_string_wchar_at): Remove temporary
1044 variable tmp.
1045
e7f4b08e
UD
1046 * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
1047 * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
1048 * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
1049
ab26144e
UD
1050 * nis/nis_table.c (nis_list): Use variable of correct type for
1051 result of __follow_path call.
1052
8a6d5255
AZ
10532011-11-07 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
1054
1055 * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
1056 of math functions ceil, trunc, floor, round, and sqrt, when
1057 avaliable on the platform.
1058 * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
1059 name clash.
1060 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1061 * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
1062 * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
1063
aaddc98c
MP
10642011-10-30 Marek Polacek <mpolacek@redhat.com>
1065
1066 * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
1067 * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
1068
95b7042b
RM
10692011-11-11 Roland McGrath <roland@hack.frob.com>
1070
1071 * include/unistd.h: Fix __readlink return type.
1072 Reported by Chris Metcalf <cmetcalf@tilera.com>.
1073
57769839
UD
10742011-11-11 Ulrich Drepper <drepper@gmail.com>
1075
1076 * stdlib/ucontext.h: Undo last change for makecontext.
1077
edc5984d
AS
10782011-11-11 Andreas Schwab <schwab@redhat.com>
1079
98591e58
AS
1080 * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
1081
edc5984d
AS
1082 * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
1083 * setjmp/setjmp.h: Mark functions as non-leaf.
1084 * setjmp/bits/setjmp2.h: Likewise.
1085 * stdlib/ucontext.h: Likewise.
1086
77cdc054
AS
10872011-11-10 Andreas Schwab <schwab@redhat.com>
1088
1089 * malloc/arena.c (_int_new_arena): Don't increment narenas.
1090 (reused_arena): Don't check arena limit.
1091 (arena_get2): Atomically check arena limit.
1092
fe72eebd
UD
10932011-11-08 Ulrich Drepper <drepper@gmail.com>
1094
5f078c32
UD
1095 * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
1096 * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
1097
fe72eebd
UD
1098 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
1099 instructions.
1100
ae1bc2fa
AS
11012011-11-07 Andreas Schwab <schwab@redhat.com>
1102
7583a88d
AS
1103 * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
1104 handler when locking.
1105
ae1bc2fa
AS
1106 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
1107 Fix size of allocated buffer.
1108
10fb0bfa
AS
11092011-11-04 Andreas Schwab <schwab@redhat.com>
1110
998832a4
AS
1111 [BZ #10103]
1112 * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
1113 declarations for long double functions.
1114 * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
1115
10fb0bfa
AS
1116 * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
1117
3d7ba52b
AS
11182011-11-03 Andreas Schwab <schwab@redhat.com>
1119
a9ae54a1
AS
1120 * nscd/nscd.c (main): Don't start AVC thread until credentials are
1121 installed.
1122
3d7ba52b
AS
1123 * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
1124 is disabled.
1125
bc8db248
ST
11262011-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1127
1128 * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
1129
45b96dd6
AS
11302011-11-01 Andreas Schwab <schwab@linux-m68k.org>
1131
647776f6
AS
1132 * include/alloca.h (stackinfo_alloca_round): Define.
1133 (extend_alloca): Use it.
1134 [_STACK_GROWS_UP]: Correct check for adjacent allocation.
1135 * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
1136 here.
1137
d91a8b93
AS
1138 * scripts/check-local-headers.sh: Ignore libaudit.h.
1139
45b96dd6
AS
1140 * nscd/Makefile (extra-objs): Make recursively expanded.
1141
432d41ce
UD
11422011-11-01 Ulrich Drepper <drepper@gmail.com>
1143
34372fc6
UD
1144 * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
1145 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1146
fadb59f8
UD
1147 * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
1148 * posix/tst-rfc3484-2.c: Likewise.
1149 * posix/tst-rfc3484-3.c: Likewise.
1150
78239589
UD
1151 * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
1152 process_vm_writev.
1153 * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
1154 process_vm_writev.
1155 * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
1156 process_vm_writev from libc using GLIBC_2.15 version.
1157
432d41ce
UD
1158 * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
1159
02f9c6cf
PP
11602011-10-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1161
1162 * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
1163 stack usage.
1164
3a2c0242
UD
11652011-10-31 Ulrich Drepper <drepper@gmail.com>
1166
f4ec4833
UD
1167 [BZ #13367]
1168 * nss/getent.c (initgroups_keys): Show error message in case no group
1169 names are given.
1170
3a2c0242
UD
1171 * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
1172 * inet/check_pf.c: Provide dummy versions of __free_in6ai and
1173 __bump_nl_timestamp.
1174 * nscd/connections (nscd_init): When host database is served open
1175 netlink socket and request notification about configuration changes.
1176 (main_loop_poll): Track netlink file descriptor and bump timestamp
1177 in case data becomes available.
1178 (main_loop_epoll): Likewise.
1179 * nscd/nscd-client.h (DB_VERSION): Bump to 2.
1180 (database_pers_head): Add extra_data fileds.
1181 Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
1182 * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
1183 * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
1184 Adjust caller.
1185 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
1186 in6ai data, call __free_in6ai.
1187 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
1188 Add -DHAVE_NETLINK.
1189 * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite. Cache the
1190 interface information. Reuse previous data if netlink timestamp
1191 is not changed.
1192 (__bump_nl_timestamp): New function.
1193 (__free_in6ai): New function.
1194
636064eb
UD
11952011-10-30 Ulrich Drepper <drepper@gmail.com>
1196
1197 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
1198 close_not_cancel_no_status here.
1199 (__check_pf): Reorganize code a bit to not call close twice if OOM.
1200
9beb2334
UD
12012011-10-29 Ulrich Drepper <drepper@gmail.com>
1202
6ef76f3b
UD
1203 [BZ #13276]
1204 * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
1205 return value.
1206
0ffc4f3e 1207 * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
9beb2334
UD
1208 * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
1209 asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
1210
cb95113e
UD
12112011-07-03 Andreas Jaeger <aj@suse.de>
1212
1213 [BZ #10709]
1214 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
1215 of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
1216 * math/libm-test.inc (sin_test): Add test case.
1217
a1b560ff
UD
12182011-10-29 Ulrich Drepper <drepper@gmail.com>
1219
c9aaface
UD
1220 [BZ #13337]
1221 * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
1222 Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
1223
d272e7f1
UD
1224 * elf/chroot_canon.c (chroot_canon): Cleanups.
1225
1bc33071
UD
1226 * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
1227
1760874d
TJ
1228 [BZ #13335]
1229 * elf/chroot_canon.c (chroot_canon): Fix readlink call.
1230 Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
1231
51d91b18
UD
1232 * string/test-strchr.c: Make usable for strchrnul testing.
1233 * string/test-strchrnul.c: New file.
1234 * string/Makefile (strop-tests): Add strchrnul.
1235
a1b560ff 1236 * po/it.po: Update from translation team.
b611fb81 1237 * po/es.po: Likewise.
a1b560ff 1238
a5b81e1f
UD
12392011-10-28 Ulrich Drepper <drepper@gmail.com>
1240
fd52bc6d
UD
1241 * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
1242 the three constants needed as parameters. Drop the others.
1243 (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
1244 __m128i_strloadu_tolower.
52e4b9eb
UD
1245 Create and initialize variable zero and use it in all the places
1246 where _mm_setzero_si128 was used.
fd52bc6d 1247
a5b81e1f
UD
1248 * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
1249 doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
1250 mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
1251 * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
1252 anymore.
1253 * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
1254 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
1255 * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
1256 __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
1257 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
1258 __mpranred, __mptan.
1259 * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
1260 * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
1261 * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
1262 * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
1263 * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
1264 * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
1265 * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
1266 * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
1267 * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
1268
b4343346
AS
12692011-10-28 Andreas Schwab <schwab@redhat.com>
1270
0c92d8a8
AS
1271 * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
1272 redefine if SHARED.
1273 * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
1274
b4343346
AS
1275 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
1276 wide char related routines to wcsmbs subdir.
1277
3871f58f
AS
12782011-10-27 Andreas Schwab <schwab@redhat.com>
1279
1280 [BZ #13344]
1281 * misc/sys/cdefs.h (__THROWNL): Define.
1282 * posix/unistd.h: Use __THREADNL instead of __THREAD
1283 for memory synchronization functions.
1284
94d44d9f
RM
12852011-10-26 Roland McGrath <roland@hack.frob.com>
1286
21b64b15 1287 [BZ #13349]
94d44d9f
RM
1288 * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
1289 doesn't exist.
1290 * manual/stdio.texi (Obstack Streams): Node removed.
1291
f6ce9294
AS
12922011-10-26 Andreas Schwab <schwab@redhat.com>
1293
80479147
AS
1294 * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
1295 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
1296 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
1297
f6ce9294
AS
1298 * math/math_private.h (math_force_eval): Allow non-addressable
1299 arguments.
1300 * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
1301
618280a1
UD
13022011-10-25 Ulrich Drepper <drepper@gmail.com>
1303
e0016b11
UD
1304 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
1305 file is not needed.
1306
1307 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
1308 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
1309 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
1310 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
1311 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
1312 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
1313 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
1314 * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
1315 Add AVX variants.
1316 * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
1317 * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
1318 * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
1319 * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
1320 * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
1321 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
1322 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
1323 * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
1324 * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
1325 * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
1326 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
1327 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
1328 * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
1329 * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
1330 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
1331 * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
1332 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
1333 * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
1334 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
1335
1336 * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
1337 all the time. Define bit_AVX. Define HAS_* macros using bit_* macros.
1338
618280a1
UD
1339 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
1340 place. Use VEX encoding when compiling for AVX.
1341
37822576
AS
13422011-10-25 Andreas Schwab <schwab@redhat.com>
1343
1f1e1947
AS
1344 * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
1345 * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
1346
37822576
AS
1347 * string/test-strchr.c (do_test): Don't generate NUL bytes.
1348
31ea014d
UD
13492011-10-25 Ulrich Drepper <drepper@gmail.com>
1350
d7826aa1 1351 * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
ffb124cc 1352 useless if() expression.
d7826aa1
UD
1353 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
1354 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
1355 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
1356 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
1357 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
1358 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
1359 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
1360 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
1361 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
1362 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
1363 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
1364 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
1365 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
1366 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
1367 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
1368 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
1369 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
1370 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1371 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
1372
31ea014d
UD
1373 * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
1374
16437fec
AS
13752011-10-25 Andreas Schwab <schwab@redhat.com>
1376
1377 * elf/dl-deps.c (_dl_map_object_deps): Remove always true
1378 condition.
1379 * elf/dl-fini.c (_dl_sort_fini): Likewise.
1380
31d3cc00
UD
13812011-10-25 Ulrich Drepper <drepper@gmail.com>
1382
1383 * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
1384 .text section. Avoid duplicate constants.
1385 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1386 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1387 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1388 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1389 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1390 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1391 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1392 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1393 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1394 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1395 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1396 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1397 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1398 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1399 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1400 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1401 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1402 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1403 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1404 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1405 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1406 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1407 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1408 * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
1409 * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
1410 * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
1411 * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
1412 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
1413 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
1414 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
1415 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
1416 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
1417 * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
1418 * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
1419 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
1420 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
1421 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
1422 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
1423 * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
1424 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
1425 * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
1426 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
1427 * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
1428 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
1429 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
1430
58985aa9
UD
14312011-10-24 Ulrich Drepper <drepper@gmail.com>
1432
202c9deb
UD
1433 * sysdeps/x86_64/dla.h: Move to ...
1434 * sysdeps/x86_64/fpu/dla.h: ...here.
1435 (DLA_FMS): Some compilers fail to inline __builtin_fma in some
1436 situations. Use __builtin_fma only for gcc 4.6 and up.
a0cf1edd 1437
af968f62
UD
1438 * config.make.in: Add have-mfma4 entry.
1439 * configure.in: Substitute libc_cv_cc_fma4.
1440 * math/Makefile (dbl-only-routines): Add sincostab.
1441 * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
1442 Use __sincostab not sincos.
1443 * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
1444 name is a macro.
1445 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1446 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1447 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1448 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise. Define singArctan2
1449 using __copysign.
1450 * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr. Don't define
1451 __cr and __cpymn. Define __cpy unless NO___CPY is defined. Define
1452 norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
1453 * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
1454 and __inv.
1455 * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
1456 * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
1457 __copysign.
1458 * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos. Don't
1459 define aliases when function name is a macro.
1460 * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
1461 sysdeps/ieee754/dbl-64/sincos.tbl.
1462 * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
1463 fma4-enabled routines.
1464 * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
1465 * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
1466 * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
1467 * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
1468 * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
1469 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
1470 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
1471 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
1472 * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
1473 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
1474 * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
1475 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
1476 * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
1477 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
1478 * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
1479 * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
1480 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
1481 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
1482 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
1483 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
1484 * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
1485 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
1486 * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
1487 * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
1488 * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
1489 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
1490 * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
1491 * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
1492 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
1493 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
1494
58985aa9
UD
1495 * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
1496 rename.
1497 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1498 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1499 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1500 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1501 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1502 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1503 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1504 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1505
a201fbcf
AS
15062011-10-24 Andreas Schwab <schwab@redhat.com>
1507
1508 * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
1509
fc2ee42a
LD
15102011-10-23 Ulrich Drepper <drepper@gmail.com>
1511
bb3129bd
UD
1512 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
1513
0275fff8
UD
1514 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
1515 prediction.
1516 * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
1517
2fa2ae85
UD
1518 * string/strnlen.c: Don't define STRNLEN, reverse logic.
1519 Remove unused variable magic_bits.
1520 * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
1521
fc2ee42a
LD
1522 * string/strnlen.c: Define and use STRNLEN macro.
1523 * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
1524 Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
1525 * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
1526 * wcsmbs/wcslen.c: Define and use WCSLEN.
1527 * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
1528 * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
1529 * sysdeps/i386/i686/multiarch/strnlen.S: New file.
1530 * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
1531 * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
1532 * sysdeps/i386/i686/multiarch/wcslen.S: New file.
1533 Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
1534
ce7dd29f
LD
15352011-10-20 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
1536
1537 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1538 strnlen-sse2-no-bsf.
1539 Rename strlen-no-bsf to strlen-sse2-no-bsf.
1540 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
1541 * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
1542 Add strnlen support.
1543 (USE_AS_STRNLEN): New macro.
1544 * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
1545 * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
1546 Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
1547 * sysdeps/x86_64/wcslen.S: New file.
1548
979c70a3
MZ
15492011-10-20 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
1550
1551 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
1552 XMM-moves are used for copying on small sizes.
1553
2d09f82f
LD
15542011-10-19 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
1555
1556 * wcsmbs/Makefile (strop-tests): Add wcschr.
1557 * wcsmbs/test-wcschr.c: New file.
1558 * string/test-strchr.c: Update.
1559 Add wcschr support.
1560 (WIDE): New macro.
1561
619fccca
LD
15622011-10-18 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
1563
2d09f82f 1564 * wcsmbs/Makefile (strop-tests): Add wcslen.
619fccca
LD
1565 * wcsmbs/test-wcslen.c: New file.
1566 * string/test-strlen.c: Update.
1567 Add wcslen support.
1568 (WIDE): New macro.
1569
09f699ea
UD
15702011-10-23 Ulrich Drepper <drepper@gmail.com>
1571
1572 * po/it.po: Update from translation team.
1573
95584d3b
LD
15742011-09-22 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
1575
1576 * sysdeps/x86_64/wcscmp.S: Update.
1577 Fix wrong comparison semantics.
1578 wcscmp shall use signed comparison not unsigned.
1579 Don't use substraction to avoid overflow bug.
1580 * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
1581 * wcsmbc/wcscmp.c: Likewise.
1582 * string/test-strcmp.c: Likewise.
1583 Add new tests to check cases with negative values.
1584
c8b3296b
UD
15852011-10-23 Ulrich Drepper <drepper@gmail.com>
1586
1587 * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
1588 * sysdeps/x86_64/dla.h: ...here. New file.
1589 * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
1590 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1591 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1592 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1593 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1594 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1595 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1596 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1597 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1598
246ad57a
AS
15992011-10-23 Andreas Schwab <schwab@linux-m68k.org>
1600
1601 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
1602 __ynl_finite aliases.
1603
a1a87169
UD
16042011-10-22 Ulrich Drepper <drepper@gmail.com>
1605
0d355eb7
UD
1606 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1607
a1a87169
UD
1608 * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
1609 define DLA_FMA.
1610 [DLA_FMA] (EMULV): Use DLA_FMA.
1611 [DLA_FMA] (MUL12): Use EMULV.
1612 * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
1613 that are not needed.
1614 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1615 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1616 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1617 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1618 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1619 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1620 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1621
ee2aafe0
AS
16222011-10-22 Andreas Schwab <schwab@linux-m68k.org>
1623
1624 * math/s_nan.c: Undef __nan.
1625 * math/s_nanf.c: Undef __nanf.
1626 * math/s_nanl.c: Undef __nanl.
1627 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
1628 "math_private.h".
1629
bc62c2fb
UD
16302011-10-22 Ulrich Drepper <drepper@gmail.com>
1631
77425c63
UD
1632 * math/s_catan.c: Add branch predictions.
1633 * math/s_catanf.c: Likewise.
1634 * math/s_catanh.c: Likewise.
1635 * math/s_catanhf.c: Likewise.
1636 * math/s_catanhl.c: Likewise.
1637 * math/s_catanl.c: Likewise.
1638 * math/s_cexp.c: Likewise.
1639 * math/s_cexpf.c: Likewise.
1640 * math/s_cexpl.c: Likewise.
1641 * math/s_clog.c: Likewise.
1642 * math/s_clog10.c: Likewise.
1643 * math/s_clog10f.c: Likewise.
1644 * math/s_clog10l.c: Likewise.
1645 * math/s_clogf.c: Likewise.
1646 * math/s_clogl.c: Likewise.
1647 * math/s_csqrt.c: Likewise.
1648 * math/s_csqrtf.c: Likewise.
1649 * math/s_csqrtl.c: Likewise.
1650 * math/s_ctanf.c: Likewise.
1651 * math/s_ctanh.c: Likewise.
1652 * math/s_ctanhf.c: Likewise.
1653 * math/s_ctanhl.c: Likewise.
1654 * math/s_ctanl.c: Likewise.
1655
bc62c2fb
UD
1656 * math/math_private.h: Define __nan, __nanf, __nanl.
1657 * math/s_cacosh.c: Include <math_private.h>.
1658 * math/s_cacoshl.c: Likewise.
1659 * math/s_casinh.c: Likewise.
1660 * math/s_casinhf.c: Likewise.
1661 * math/s_casinhl.c: Likewise.
1662 * math/s_ccos.c: Rely entire on ccosh.
1663 * math/s_ccosf.c: Rely entire on ccoshf.
1664 * math/s_ccosl.c: Rely entirely on ccoshl.
1665 * math/s_ccosh.c: Add branch predicion helpers. Add branch prediction.
1666 Remove tests for FE_INVALID.
1667 * math/s_ccoshf.c: Likewise.
1668 * math/s_ccoshl.c: Likewise.
1669 * math/s_csin.c: Likewise.
1670 * math/s_csinf.c: Likewise.
1671 * math/s_csinh.c Likewise.
1672 * math/s_csinhf.c: Likewise.
1673 * math/s_csinhl.c: Likewise.
1674 * math/s_csinl.c: Likewise.
1675 * math/s_ctan.c: Likewise.
1676 * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
1677 * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
1678 * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
1679
8ec250a4
UD
16802011-10-21 Ulrich Drepper <drepper@gmail.com>
1681
c196fed8
UD
1682 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
1683 compilation problems.
1684
8ec250a4
UD
1685 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
1686 __builtin_expect.
1687
8d4f46c6
UD
16882011-10-20 Ulrich Drepper <drepper@gmail.com>
1689
ed72b654
UD
1690 * sysdeps/i386/configure.in: Test for -mfma4 option.
1691 * config.h.in: Add HAVE_FMA4_SUPPORT entry.
1692 * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
1693 COMMON_CPUID_INDEX_80000001.
1694 * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
1695 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
1696 use it if FMA3 is not supported.
1697 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
1698
8d4f46c6
UD
1699 * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
1700 * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
1701
d45c60c2
AS
17022011-10-20 Andreas Schwab <schwab@redhat.com>
1703
1704 [BZ #12892]
1705 * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
1706 it would create a cycle with a link time dependency.
1707
d9a4d2ab
UD
17082011-10-19 Ulrich Drepper <drepper@gmail.com>
1709
855d1560
UD
1710 * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
1711 instruction.
1712 * string/Makefile (strop-tests): Add rawmemchr.
1713 * string/test-rawmemchr.c: New file.
1714
d9a4d2ab
UD
1715 * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
1716 * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file. Split out from...
1717 * sysdeps/x86_64/multiarch/strcmp.S: ...here. Include strcmp-sse42.S
1718 when compiling str{,n}casecmp and when AVX is available. Hook up
1719 new optimized code in initializers.
1720
8f3b1ffe
AS
17212011-10-19 Andreas Schwab <schwab@redhat.com>
1722
1723 * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
1724 __feraiseexcept instead of feraiseexcept.
1725
d38f1dba
UD
17262011-10-18 Ulrich Drepper <drepper@gmail.com>
1727
d9a8d0ab
UD
1728 * math/math_private.h: Define defaults for libc_fetestexcept and
1729 libc_feupdateenv.
1730 * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
1731 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
1732 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
1733 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
1734 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
1735 * sysdeps/x86_64/fpu/math_private.h: Define special versions of
1736 libc_fetestexcept and libc_feupdateenv.
1737
4855e3dd
UD
1738 * math/math_private.h: Define defaults for libc_feholdexcept_setround,
1739 libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
1740 * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
1741 * sysdeps/x86_64/fpu/math_private.h: Define special version of
1742 libc_feholdexcept_setround.
1743
581d30e3
UD
1744 * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
1745 Add s_nearbyint-c and s_nearbyintf-c.
1746 * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
1747 nearbyintf inlines.
1748 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
1749 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
1750 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
1751 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
1752
d38f1dba
UD
1753 * math/math_private.h: Define defaults for libc_fegetround,
1754 libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
1755 libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
1756 libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
1757 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
1758 libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
1759 standard functions.
1760 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
1761 Remove comments and hacks for old compiler versions.
1762 * sysdeps/x86_64/fpu/math_private.h: Define special versions of
1763 libc_fegetround, libc_fesetround, libc_feholdexcept, and
1764 libc_feholdexceptl.
1765
caa6c9d8
AS
17662011-10-18 Andreas Schwab <schwab@redhat.com>
1767
1768 * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
83c7615c
AS
1769 (__feraiseexcept_renamed): Add __NTH.
1770 (feraiseexcept): Add __NTH. Rename local variables to fix
caa6c9d8
AS
1771 namespace violations.
1772
97c066e6
UD
17732011-10-17 Ulrich Drepper <drepper@gmail.com>
1774
99ce7b04
UD
1775 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
1776
1004d182
UD
1777 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
1778
228a984d
UD
1779 * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
1780 recently added interfaces.
1781 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
1782
c8553a6a
UD
1783 * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
1784 about macro parameter expansion.
1785
ed22dcf6
UD
1786 * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
1787 __NO_MATH_INLINES is defined. Cleanups.
1788
1789 * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
1790 and __floorf is target has SSE4.1.
1791 * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
1792 * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
1793 * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
1794 * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
1795
b171c137
UD
1796 * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
1797 name.
1798 (floorf): Likewise.
1799
97c066e6
UD
1800 * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
1801
629f62ef
AS
18022011-10-17 Andreas Schwab <schwab@redhat.com>
1803
49a43d80
AS
1804 * misc/sys/cdefs.h: Fix last change.
1805
629f62ef
AS
1806 * grp/initgroups.c (internal_getgrouplist): Fix initgroups
1807 database lookup.
1808
e453f6cd
UD
18092011-10-16 Ulrich Drepper <drepper@gmail.com>
1810
aa78043a
UD
1811 * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
1812
ad0f5cad
UD
1813 * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
1814 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
1815 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
1816 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
1817 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
1818 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
1819 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
1820 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
1821 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
1822 * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
1823 * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
1824 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
1825 * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
1826 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
1827 * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
1828 * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
1829 * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
1830 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
1831 * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
1832 * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
1833 * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
1834 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
1835
1836 * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
1837 ceil, ceilf, floor, floorf.
1838
1839 * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
1840 Perform IRELATIVE relocations last.
1841
e453f6cd
UD
1842 * elf/do-rel.h: Add another parameter nrelative, replacing the
1843 local variable with the same name. Change name of the function
1844 to end in Rel or Rela (uppercase).
1845 * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
1846 nrelative to ranges. Only nonzero for DT_REL/DT_RELA. Pass to the
1847 elf_dynamic_do_##reloc function.
1848
fd5bdc09
UD
18492011-10-15 Ulrich Drepper <drepper@gmail.com>
1850
79b195b5
UD
1851 * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
1852 is sufficient, at least on modern CPUs.
1853
d4a28569
UD
1854 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
1855
b61099b5
UD
1856 * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
1857 * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
1858
bcf01e6d
UD
1859 * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
1860 __expl_finite.
1861 * math/bits/math-finite.h: Add entries for exp.
1862 * math/e_expl.c: Add __*_finite alias.
1863 * sysdeps/i386/fpu/e_exp.S: Likewise.
1864 * sysdeps/i386/fpu/e_expf.S: Likewise.
1865 * sysdeps/i386/fpu/e_expl.c: Likewise.
1866 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1867 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
1868 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
1869 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
1870 * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
1871 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1872 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1873
ba1a0d59
UD
1874 * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
1875 is sufficient, at least on modern CPUs.
1876
fd5bdc09
UD
1877 * ctype/ctype-info.c (__ctype_init): Define.
1878 * include/ctype.h (__ctype_init): Declare.
1879 (__ctype_b_loc): The variable is always initialized.
1880 (__ctype_toupper_loc): Likewise.
1881 (__ctype_tolower_loc): Likewise.
1882 * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
1883 * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
1884
7872cfb0
AS
18852011-10-15 Andreas Schwab <schwab@linux-m68k.org>
1886
b468825a
AS
1887 * wcsmbs/wmemcmp.c (WMEMCMP): Define.
1888
7872cfb0
AS
1889 * configure.in: Also look in $cxxmachine/include for C++ system
1890 headers.
1891
be13f7bf
LD
18922011-09-27 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
1893
1894 * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
1895 memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
1896 * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
1897 * sysdeps/x86_64/multiarch/memcmp.S: Update. Add __memcmp_ssse3.
1898 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
1899 (USE_AS_WMEMCMP): New macro.
1900 Fixing indents.
1901 * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
1902 * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
1903 * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
1904 * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
1905 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
1906 wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
1907 * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
1908 * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
1909 * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
1910 * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
1911 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
1912 (USE_AS_WMEMCMP): New macro.
1913 * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
1914 * sysdeps/string/test-memcmp.c: Update.
1915 Fix simple_wmemcmp.
1916 Add new tests.
1917 * wcsmbs/wmemcmp.c: Update.
1918 (WMEMCMP): New macro.
1919 Fix overflow bug.
1920
556a2007
AJ
19212011-10-12 Andreas Jaeger <aj@suse.de>
1922
1923 [BZ #13268]
1924 * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
1925
538faaa7
UD
19262011-10-15 Ulrich Drepper <drepper@gmail.com>
1927
ab6737ff
UD
1928 * libio/iofwide.c (do_length): Avoid warning.
1929
538faaa7
UD
1930 * ctype/ctype.h (__isctype_f): Add missing __THROW.
1931
396a21b1
UD
19322011-10-14 Ulrich Drepper <drepper@gmail.com>
1933
cdf2901f
UD
1934 * elf/pldd-xx.c (find_maps): Remove leftover debug message.
1935
38ad40ce
UD
1936 * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
1937 * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
1938 * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
1939 * sysdeps/i386/i686/fpu/e_log.S: New file.
1940 * sysdeps/i386/i686/fpu/e_logf.S: New file.
1941 * sysdeps/i386/i686/fpu/e_logl.S: New file.
1942
396a21b1
UD
1943 * ctype/ctype.h: Add support for inlined isXXX functions when
1944 compiling C++ code.
1945
6b1f68c9
AS
19462011-10-14 Andreas Schwab <schwab@redhat.com>
1947
349290c0
AS
1948 * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
1949
6b1f68c9
AS
1950 * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
1951
f2282d42
RM
19522011-10-13 Roland McGrath <roland@hack.frob.com>
1953
1954 [BZ #13291]
1955 * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
1956
5298ffa8
AS
19572011-10-13 Andreas Schwab <schwab@redhat.com>
1958
714fad23
AS
1959 * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
1960 * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
1961 feraiseexcept.
1962
81dcc7fb
AS
1963 * sysdeps/x86_64/memrchr.S: Check for zero size.
1964
5298ffa8
AS
1965 * string/stratcliff.c: Add memrchr tests.
1966
951fbcec
LD
19672011-10-12 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
1968
1969 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
1970 memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
1971 rawmemchr-sse2 rawmemchr-sse2-bsf.
1972 * sysdeps/i386/i686/multiarch/memchr.S: New file.
1973 * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
1974 * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
1975 * sysdeps/i386/i686/multiarch/memrchr.S: New file.
1976 * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
1977 * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
1978 * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
1979 * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
1980 * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
1981 * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
1982 * string/memrchr.c (MEMRCHR): New macro.
1983
0ac5ae23
UD
19842011-10-12 Ulrich Drepper <drepper@gmail.com>
1985
1986 Add integration with gcc's -ffinite-math-only and optimize wrapper
1987 functions in libm.
1988 * Versions.def: Define GLIBC_2.15 version for libm.
1989 * math/Makefile (headers): Add bits/math-finite.h.
1990 * math/bits/math-finite.h: New file.
1991 * sysdeps/ia64/fpu/bits/math-finite.h: New file.
1992 * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
1993 * math/e_acoshl.c: Add __*_finite alias.
1994 * math/e_acosl.c: Likewise.
1995 * math/e_asinl.c: Likewise.
1996 * math/e_atan2l.c: Likewise.
1997 * math/e_atanhl.c: Likewise.
1998 * math/e_coshl.c: Likewise.
1999 * math/e_exp10.c: Likewise.
2000 * math/e_exp10f.c: Likewise.
2001 * math/e_exp10l.c: Likewise.
2002 * math/e_exp2l.c: Likewise.
2003 * math/e_fmodl.c: Likewise.
2004 * math/e_gammal_r.c: Likewise.
2005 * math/e_hypotl.c: Likewise.
2006 * math/e_j0l.c: Likewise.
2007 * math/e_j1l.c: Likewise.
2008 * math/e_jnl.c: Likewise.
2009 * math/e_lgammal_r.c: Likewise.
2010 * math/e_log10l.c: Likewise.
2011 * math/e_log2l.c: Likewise.
2012 * math/e_logl.c: Likewise.
2013 * math/e_powl.c: Likewise.
2014 * math/e_sinhl.c: Likewise.
2015 * math/e_sqrtl.c: Likewise.
2016 * math/e_scalb.c: Completely rewritten and optimized.
2017 * math/e_scalbf.c: Likewise.
2018 * math/e_scalbl.c: Likewise.
2019 * math/w_acos.c: Likewise.
2020 * math/w_acosf.c: Likewise.
2021 * math/w_acosl.c: Likewise.
2022 * math/w_acosh.c: Likewise.
2023 * math/w_acoshf.c: Likewise.
2024 * math/w_acoshl.c: Likewise.
2025 * math/w_asin.c: Likewise.
2026 * math/w_asinf.c: Likewise.
2027 * math/w_asinl.c: Likewise.
2028 * math/w_atan2.c: Likewise.
2029 * math/w_atan2f.c: Likewise.
2030 * math/w_atan2l.c: Likewise.
2031 * math/w_atanh.c: Likewise.
2032 * math/w_atanhf.c: Likewise.
2033 * math/w_atanhl.c: Likewise.
2034 * math/w_exp10.c: Likewise.
2035 * math/w_exp10f.c: Likewise.
2036 * math/w_exp10l.c: Likewise.
2037 * math/w_fmod.c: Likewise.
2038 * math/w_fmodf.c: Likewise.
2039 * math/w_fmodl.c: Likewise.
2040 * math/w_j0.c: Likewise.
2041 * math/w_j0f.c: Likewise.
2042 * math/w_j0l.c: Likewise.
2043 * math/w_j1.c: Likewise.
2044 * math/w_j1f.c: Likewise.
2045 * math/w_j1l.c: Likewise.
2046 * math/w_jn.c: Likewise.
2047 * math/w_jnf.c: Likewise.
2048 * math/w_log.c: Likewise.
2049 * math/w_logf.c: Likewise.
2050 * math/w_logl.c: Likewise.
2051 * math/w_log10.c: Likewise.
2052 * math/w_log10f.c: Likewise.
2053 * math/w_log10l.c: Likewise.
2054 * math/w_log2.c: Likewise.
2055 * math/w_log2f.c: Likewise.
2056 * math/w_log2l.c: Likewise.
2057 * math/w_pow.c: Likewise.
2058 * math/w_powf.c: Likewise.
2059 * math/w_powl.c: Likewise.
2060 * math/w_remainder.c: Likewise.
2061 * math/w_remainderf.c: Likewise.
2062 * math/w_remainderl.c: Likewise.
2063 * math/w_scalb.c: Likewise.
2064 * math/w_scalbf.c: Likewise.
2065 * math/w_scalbl.c: Likewise.
2066 * math/w_sqrt.c: Likewise.
2067 * math/w_sqrtf.c: Likewise.
2068 * math/w_sqrtl.c: Likewise.
2069 * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
2070 are declared. Include <bits/math-finite.h> if -ffinite-math-only is
2071 used.
2072 * math/math_private.h: Declare __kernel_standard_f.
2073 * math/w_cosh.c: Remove cruft and optimize a bit.
2074 * math/w_coshf.c: Likewise.
2075 * math/w_coshl.c: Likewise.
2076 * math/w_exp2.c: Likewise.
2077 * math/w_exp2f.c: Likewise.
2078 * math/w_exp2l.c: Likewise.
2079 * math/w_hypot.c: Likewise.
2080 * math/w_hypotf.c: Likewise.
2081 * math/w_hypotl.c: Likewise.
2082 * math/w_lgamma.c: Likewise.
2083 * math/w_lgamma_r.c: Likewise.
2084 * math/w_lgammaf.c: Likewise.
2085 * math/w_lgammaf_r.c: Likewise.
2086 * math/w_lgammal.c: Likewise.
2087 * math/w_lgammal_r.c: Likewise.
2088 * math/w_sinh.c: Likewise.
2089 * math/w_sinhf.c: Likewise.
2090 * math/w_sinhl.c: Likewise.
2091 * math/w_tgamma.c: Likewise.
2092 * math/w_tgammaf.c: Likewise.
2093 * math/w_tgammal.c: Likewise.
2094 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
2095 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
2096 * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
2097 Minor optimizations. Pretty printing. Remove cruft.
2098 * sysdeps/i386/fpu/e_acosf.S: Likewise.
2099 * sysdeps/i386/fpu/e_acosh.S: Likewise.
2100 * sysdeps/i386/fpu/e_acoshf.S: Likewise.
2101 * sysdeps/i386/fpu/e_acoshl.S: Likewise.
2102 * sysdeps/i386/fpu/e_acosl.c: Likewise.
2103 * sysdeps/i386/fpu/e_asin.S: Likewise.
2104 * sysdeps/i386/fpu/e_asinf.S: Likewise.
2105 * sysdeps/i386/fpu/e_atan2.S: Likewise.
2106 * sysdeps/i386/fpu/e_atan2f.S: Likewise.
2107 * sysdeps/i386/fpu/e_atan2l.c: Likewise.
2108 * sysdeps/i386/fpu/e_atanh.S: Likewise.
2109 * sysdeps/i386/fpu/e_atanhf.S: Likewise.
2110 * sysdeps/i386/fpu/e_atanhl.S: Likewise.
2111 * sysdeps/i386/fpu/e_exp10.S: Likewise.
2112 * sysdeps/i386/fpu/e_exp10f.S: Likewise.
2113 * sysdeps/i386/fpu/e_exp10l.S: Likewise.
2114 * sysdeps/i386/fpu/e_exp2.S: Likewise.
2115 * sysdeps/i386/fpu/e_exp2f.S: Likewise.
2116 * sysdeps/i386/fpu/e_exp2l.S: Likewise.
2117 * sysdeps/i386/fpu/e_fmod.S: Likewise.
2118 * sysdeps/i386/fpu/e_fmodf.S: Likewise.
2119 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
2120 * sysdeps/i386/fpu/e_hypot.S: Likewise.
2121 * sysdeps/i386/fpu/e_hypotf.S: Likewise.
2122 * sysdeps/i386/fpu/e_log.S: Likewise.
2123 * sysdeps/i386/fpu/e_log10.S: Likewise.
2124 * sysdeps/i386/fpu/e_log10f.S: Likewise.
2125 * sysdeps/i386/fpu/e_log10l.S: Likewise.
2126 * sysdeps/i386/fpu/e_log2.S: Likewise.
2127 * sysdeps/i386/fpu/e_log2f.S: Likewise.
2128 * sysdeps/i386/fpu/e_log2l.S: Likewise.
2129 * sysdeps/i386/fpu/e_logf.S: Likewise.
2130 * sysdeps/i386/fpu/e_logl.S: Likewise.
2131 * sysdeps/i386/fpu/e_pow.S: Likewise.
2132 * sysdeps/i386/fpu/e_powf.S: Likewise.
2133 * sysdeps/i386/fpu/e_powl.S: Likewise.
2134 * sysdeps/i386/fpu/e_remainder.S: Likewise.
2135 * sysdeps/i386/fpu/e_remainderf.S: Likewise.
2136 * sysdeps/i386/fpu/e_remainderl.S: Likewise.
2137 * sysdeps/i386/fpu/e_scalb.S: Likewise.
2138 * sysdeps/i386/fpu/e_scalbf.S: Likewise.
2139 * sysdeps/i386/fpu/e_scalbl.S: Likewise.
2140 * sysdeps/i386/fpu/e_sqrt.S: Likewise.
2141 * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
2142 * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
2143 * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
2144 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2145 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2146 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
2147 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
2148 * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
2149 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
2150 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
2151 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
2152 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
2153 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
2154 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
2155 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2156 * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
2157 * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
2158 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2159 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2160 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
2161 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2162 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2163 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
2164 * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
2165 * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
2166 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
2167 * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
2168 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
2169 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
2170 * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
2171 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
2172 * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
2173 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
2174 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
2175 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
2176 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
2177 * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
2178 * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
2179 * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
2180 * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
2181 * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
2182 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
2183 * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
2184 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
2185 * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
2186 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2187 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2188 * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
2189 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
2190 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2191 * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
2192 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
2193 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
2194 * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
2195 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2196 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2197 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2198 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2199 * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2200 * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2201 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2202 * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
2203 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2204 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
2205 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
2206 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
2207 * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
2208 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
2209 * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
2210 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
2211 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
2212 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
2213 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
2214 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
2215 * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
2216 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
2217 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
2218 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
2219 * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
2220 * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
2221 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2222 * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
2223 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
2224 * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
2225 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
2226 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
2227 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2228 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2229 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2230 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2231 * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
2232 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
2233 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
2234 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
2235 * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
2236 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
2237 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
2238 * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
2239 * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
2240 * sysdeps/s390/fpu/e_sqrt.c: Likewise.
2241 * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
2242 * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
2243 * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
2244 * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
2245 * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
2246 * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
2247 * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
2248 * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
2249 * sysdeps/x86_64/fpu/e_logl.S: Likewise.
2250 * sysdeps/x86_64/fpu/e_powl.S: Likewise.
2251 * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
2252 * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
2253 * sysdeps/x86_64/fpu/e_sqrt.c: Likewise. Fix parameter order
2254 * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
2255 * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
2256 (__isnanf): Likewise.
2257 (__isinf_ns): Likewise.
2258 (__isinf_nsf): Likewise.
2259 (__finite): Likewise.
2260 (__finitef): Likewise.
2261 (__ieee754_sqrt): Define as macro.
2262 (__ieee754_sqrtf): Define as macro.
2263 (__ieee754_sqrtl): Define as macro.
2264 * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
2265 inlined copy.
2266 * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
2267 __FINITE_MATH_ONLY__ consistent.
2268 * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
2269
12cc2fcd
AS
22702011-10-10 Andreas Schwab <schwab@linux-m68k.org>
2271
a843a204
AS
2272 * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
2273 of rawmemchr.
2274
12cc2fcd
AS
2275 * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
2276
c853acd5
UD
22772011-10-09 Ulrich Drepper <drepper@gmail.com>
2278
2279 * po/ja.po: Update from translation team.
2280
c658d255
RM
22812011-10-08 Roland McGrath <roland@hack.frob.com>
2282
110946e4
RM
2283 * locale/programs/locarchive.c (prepare_address_space): New function.
2284 (create_archive, enlarge_archive, open_archive): Use it.
2285
50604220
RM
2286 * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
2287 inside [SHARED], where it is used.
2288
c658d255
RM
2289 * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
2290
2291 * nss/getent.c (netgroup_keys): Remove unused variable.
2292 * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
2293
6a621eb7
UD
22942011-10-08 Ulrich Drepper <drepper@gmail.com>
2295
7edb55ce
UD
2296 * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
2297 * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
2298 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
2299 * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
2300 * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
2301 * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
2302 * math/Makefile (libm-calls): Add s_isinf_ns.
2303 * math/divtc3.c: Use __isinf_nsl instead of isinf.
2304 * math/multc3.c: Likewise.
2305 * math/s_casin.c: Likewise.
2306 * math/s_casinf.c: Likewise.
2307 * math/s_casinl.c: Likewise.
2308 * math/s_ccos.c: Likewise.
2309 * math/s_ccosf.c: Likewise.
2310 * math/s_ccosl.c: Likewise.
2311 * math/s_ctan.c: Likewise.
2312 * math/s_ctanf.c: Likewise.
2313 * math/s_ctanh.c: Likewise.
2314 * math/s_ctanhf.c: Likewise.
2315 * math/s_ctanhl.c: Likewise.
2316 * math/s_ctanl.c: Likewise.
2317 * math/w_fmod.c: Likewise.
2318 * math/w_fmodf.c: Likewise.
2319 * math/w_fmodl.c: Likewise.
2320 * math/w_remainder.c: Likewise.
2321 * math/w_remainderf.c: Likewise.
2322 * math/w_remainderl.c: Likewise.
2323 * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
2324 * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
2325 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
2326 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
2327 * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
2328 * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
2329 * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
2330 __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
2331
187da0ae
UD
2332 * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
2333 of the number.
2334 * stdio-common/printf_fphex.c: Likewise.
2335 * stdio-common/printf_size.c: Likewise.
2336
9277c064
UD
2337 * math/e_exp10.c: Include math_private.h using <...> not "...".
2338 * math/e_exp10f.c: Likewise.
2339 * math/e_exp10l.c: Likewise.
2340 * math/e_exp2l.c: Likewise.
2341 * math/e_j0l.c: Likewise.
2342 * math/e_j1l.c: Likewise.
2343 * math/e_jnl.c: Likewise.
2344 * math/e_lgammal_r.c: Likewise.
2345 * math/e_rem_pio2l.c: Likewise.
2346 * math/e_scalb.c: Likewise.
2347 * math/e_scalbf.c: Likewise.
2348 * math/e_scalbl.c: Likewise.
2349 * math/k_cosl.c: Likewise.
2350 * math/k_sinl.c: Likewise.
2351 * math/k_tanl.c: Likewise.
2352 * math/s_cacoshf.c: Likewise.
2353 * math/s_catan.c: Likewise.
2354 * math/s_catanf.c: Likewise.
2355 * math/s_catanh.c: Likewise.
2356 * math/s_catanhf.c: Likewise.
2357 * math/s_catanhl.c: Likewise.
2358 * math/s_catanl.c: Likewise.
2359 * math/s_ccosh.c: Likewise.
2360 * math/s_ccoshf.c: Likewise.
2361 * math/s_ccoshl.c: Likewise.
2362 * math/s_cexp.c: Likewise.
2363 * math/s_cexpf.c: Likewise.
2364 * math/s_cexpl.c: Likewise.
2365 * math/s_clog.c: Likewise.
2366 * math/s_clog10.c: Likewise.
2367 * math/s_clog10f.c: Likewise.
2368 * math/s_clog10l.c: Likewise.
2369 * math/s_clogf.c: Likewise.
2370 * math/s_clogl.c: Likewise.
2371 * math/s_csin.c: Likewise.
2372 * math/s_csinf.c: Likewise.
2373 * math/s_csinh.c: Likewise.
2374 * math/s_csinhf.c: Likewise.
2375 * math/s_csinhl.c: Likewise.
2376 * math/s_csinl.c: Likewise.
2377 * math/s_csqrt.c: Likewise.
2378 * math/s_csqrtf.c: Likewise.
2379 * math/s_csqrtl.c: Likewise.
2380 * math/s_ctan.c: Likewise.
2381 * math/s_ctanf.c: Likewise.
2382 * math/s_ctanh.c: Likewise.
2383 * math/s_ctanhf.c: Likewise.
2384 * math/s_ctanhl.c: Likewise.
2385 * math/s_ctanl.c: Likewise.
2386 * math/s_ldexp.c: Likewise.
2387 * math/s_ldexpf.c: Likewise.
2388 * math/s_ldexpl.c: Likewise.
2389 * math/s_significand.c: Likewise.
2390 * math/s_significandf.c: Likewise.
2391 * math/s_significandl.c: Likewise.
2392 * math/w_acos.c: Likewise.
2393 * math/w_acosf.c: Likewise.
2394 * math/w_acosh.c: Likewise.
2395 * math/w_acoshf.c: Likewise.
2396 * math/w_acoshl.c: Likewise.
2397 * math/w_acosl.c: Likewise.
2398 * math/w_asin.c: Likewise.
2399 * math/w_asinf.c: Likewise.
2400 * math/w_asinl.c: Likewise.
2401 * math/w_atan2.c: Likewise.
2402 * math/w_atan2f.c: Likewise.
2403 * math/w_atan2l.c: Likewise.
2404 * math/w_atanh.c: Likewise.
2405 * math/w_atanhf.c: Likewise.
2406 * math/w_atanhl.c: Likewise.
2407 * math/w_cosh.c: Likewise.
2408 * math/w_coshf.c: Likewise.
2409 * math/w_coshl.c: Likewise.
2410 * math/w_dremf.c: Likewise.
2411 * math/w_exp10.c: Likewise.
2412 * math/w_exp10f.c: Likewise.
2413 * math/w_exp10l.c: Likewise.
2414 * math/w_exp2.c: Likewise.
2415 * math/w_exp2f.c: Likewise.
2416 * math/w_fmod.c: Likewise.
2417 * math/w_fmodf.c: Likewise.
2418 * math/w_fmodl.c: Likewise.
2419 * math/w_hypot.c: Likewise.
2420 * math/w_hypotf.c: Likewise.
2421 * math/w_hypotl.c: Likewise.
2422 * math/w_j0.c: Likewise.
2423 * math/w_j0f.c: Likewise.
2424 * math/w_j0l.c: Likewise.
2425 * math/w_j1.c: Likewise.
2426 * math/w_j1f.c: Likewise.
2427 * math/w_j1l.c: Likewise.
2428 * math/w_jn.c: Likewise.
2429 * math/w_jnf.c: Likewise.
2430 * math/w_jnl.c: Likewise.
2431 * math/w_lgamma.c: Likewise.
2432 * math/w_lgamma_r.c: Likewise.
2433 * math/w_lgammaf.c: Likewise.
2434 * math/w_lgammaf_r.c: Likewise.
2435 * math/w_lgammal.c: Likewise.
2436 * math/w_lgammal_r.c: Likewise.
2437 * math/w_log.c: Likewise.
2438 * math/w_log10.c: Likewise.
2439 * math/w_log10f.c: Likewise.
2440 * math/w_log10l.c: Likewise.
2441 * math/w_log2.c: Likewise.
2442 * math/w_log2f.c: Likewise.
2443 * math/w_log2l.c: Likewise.
2444 * math/w_logf.c: Likewise.
2445 * math/w_logl.c: Likewise.
2446 * math/w_pow.c: Likewise.
2447 * math/w_powf.c: Likewise.
2448 * math/w_powl.c: Likewise.
2449 * math/w_remainder.c: Likewise.
2450 * math/w_remainderf.c: Likewise.
2451 * math/w_remainderl.c: Likewise.
2452 * math/w_scalb.c: Likewise.
2453 * math/w_scalbf.c: Likewise.
2454 * math/w_scalbl.c: Likewise.
2455 * math/w_sinh.c: Likewise.
2456 * math/w_sinhf.c: Likewise.
2457 * math/w_sinhl.c: Likewise.
2458 * math/w_sqrt.c: Likewise.
2459 * math/w_sqrtf.c: Likewise.
2460 * math/w_sqrtl.c: Likewise.
2461 * math/w_tgamma.c: Likewise.
2462 * math/w_tgammaf.c: Likewise.
2463 * math/w_tgammal.c: Likewise.
2464
6a621eb7
UD
2465 * po/ja.po: Update from translation team.
2466
bf582445
AJ
24672011-09-29 Andreas Jaeger <aj@suse.de>
2468
f9efbf3a
AJ
2469 [BZ #13179]
2470 * sunrpc/netname.c (netname2host): Fix logic.
2471
bf582445
AJ
2472 [BZ #6779]
2473 [BZ #6783]
2474 * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
2475 correctly.
2476 * math/w_remainder.c (__remainder): Likewise.
2477 * math/w_remainderf.c (__remainderf): Likewise.
2478 * math/libm-test.inc (remainder_test): Add test cases.
2479
48693bea
AK
24802011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2481
2482 * stdlib/longlong.h: Update from GCC. Fix zarch smul_ppmm and
2483 sdiv_qrnnd.
2484
42622229
LD
24852011-10-07 Ulrich Drepper <drepper@gmail.com>
2486
2487 * string/test-memcmp.c: Avoid unncessary #defines.
2488 Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
2489
093ecf92
LD
24902011-08-31 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
2491
2492 * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
2493 Use new sse2 version for core i3 - i7 as it's faster
2494 than sse42 version.
2495 (bit_Prefer_PMINUB_for_stringop): New.
2496 * sysdeps/x86_64/rawmemchr.S: Update.
2497 Replace with faster SSE2 version.
2498 * sysdeps/x86_64/memrchr.S: New file.
2499 * sysdeps/x86_64/memchr.S: Update.
2500 Replace with faster SSE2 version.
2501
fde56e5c
MP
25022011-09-12 Marek Polacek <mpolacek@redhat.com>
2503
2504 * elf/dl-load.c (lose): Add cast to avoid warning.
2505
21fd49a9
UD
25062011-10-07 Ulrich Drepper <drepper@gmail.com>
2507
5a06e643
UD
2508 * po/ca.po: Update from translation team.
2509
684ae515
UD
2510 * inet/getnetgrent_r.c: Hook up nscd.
2511 * nscd/Makefile (routines): Add nscd_netgroup.
2512 (nscd-modules): Add netgroupcache.
2513 (CFLAGS-netgroupcache.c): Define.
2514 * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
2515 (cache_search): Add const to second parameter.
2516 * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
2517 INNETGR.
2518 (dbs): Add netgrdb entry.
2519 (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
2520 (verify_persistent_db): Handle netgrdb.
2521 (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
2522 * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
2523 GETFDNETGR.
2524 (netgroup_response_header): Define.
2525 (innetgroup_response_header): Define.
2526 (datahead): Add netgroup_response_header and innetgroup_response_header
2527 elements.
2528 * nscd/nscd.conf: Add entries for netgroup cache.
2529 * nscd/nscd.h (dbtype): Add netgrdb.
2530 (_PATH_NSCD_NETGROUP_DB): Define.
2531 (netgroup_iov_disabled): Declare.
2532 (xmalloc, xcalloc, xrealloc): Move declarations here.
2533 (cache_search): Adjust prototype.
2534 Add netgroup-related prototypes.
2535 * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
2536 * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
2537 (__nscd_innetgr): Declare.
2538 * nscd/selinux.c (perms): Use access_vector_t as element type and
2539 add netgroup-related initializers.
2540 * nscd/netgroupcache.c: New file.
2541 * nscd/nscd_netgroup.c: New file.
2542 * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
2543 * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
2544 For four parameters use innetgr.
2545 * nss/nss_files/files-init.c: Add definition and callback for netgr.
2546 * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
2547 (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
2548 * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
2549
21fd49a9
UD
2550 * nscd/connections.c (register_traced_file): Don't register file
2551 for disabled databases.
2552
054c0457
UD
25532011-10-06 Ulrich Drepper <drepper@gmail.com>
2554
32b63198
UD
2555 * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
2556
054c0457
UD
2557 * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
2558 from tree and freeing node.
2559
64031225
JO
25602011-09-25 Jiri Olsa <jolsa@redhat.com>
2561
2562 * nss/nsswitch.c (__nss_database_lookup): Handle
2563 nss_parse_service_list out of memory case.
2564
0490345c
JO
25652011-09-15 Jiri Olsa <jolsa@redhat.com>
2566
2567 * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
2568 out of memory case.
2569
3a62d00d
AS
25702011-10-04 Andreas Schwab <schwab@redhat.com>
2571
2572 * include/dlfcn.h (__RTLD_NOIFUNC): Define.
2573 * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
2574 pass it down.
2575 * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
2576 elf_machine_rela, elf_machine_lazy_rel.
2577 (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
2578 (ELF_DYNAMIC_DO_REL): Likewise.
2579 (ELF_DYNAMIC_DO_RELA): Likewise.
2580 (ELF_DYNAMIC_RELOCATE): Likewise.
2581 * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
2582 to ELF_DYNAMIC_DO_REL.
2583 * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
2584 (dl_main): In trace mode always set __RTLD_NOIFUNC.
2585 * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
2586 elf_machine_rela.
2587 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
2588 skip_ifunc, don't call ifunc function if non-zero.
2589 (elf_machine_rela): Likewise.
2590 (elf_machine_lazy_rel): Likewise.
2591 (elf_machine_lazy_rela): Likewise.
2592 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
2593 (elf_machine_lazy_rel): Likewise.
2594 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
2595 Likewise.
2596 (elf_machine_lazy_rel): Likewise.
2597 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
2598 Likewise.
2599 (elf_machine_lazy_rel): Likewise.
2600 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
2601 (elf_machine_lazy_rel): Likewise.
2602 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
2603 (elf_machine_lazy_rel): Likewise.
2604 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
2605 (elf_machine_lazy_rel): Likewise.
2606 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
2607 (elf_machine_lazy_rel): Likewise.
2608 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2609 (elf_machine_lazy_rel): Likewise.
2610 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2611 (elf_machine_lazy_rel): Likewise.
2612
68577918
UD
26132011-09-28 Ulrich Drepper <drepper@gmail.com>
2614
2615 * nss/nss_files/files-init.c (_nss_files_init): Use static
2616 initialization for all the *_traced_file variables.
2617
68822d74
AS
26182011-09-28 Andreas Schwab <schwab@redhat.com>
2619
2620 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
2621
2056100b
RM
26222011-09-27 Roland McGrath <roland@hack.frob.com>
2623
2624 [BZ #13226]
2625 * manual/signal.texi (Longjmp in Handler): Grammar fixes.
2626
32c76b63
AS
26272011-09-27 Andreas Schwab <schwab@redhat.com>
2628
2629 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
2630 Reread the line before reparsing it.
2631
bf972c9d
AS
26322011-09-26 Andreas Schwab <schwab@redhat.com>
2633
2634 * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
2635
e057a1b5
JM
26362011-09-21 Chung-Lin Tang <cltang@codesourcery.com>
2637 Maxim Kuvyrkov <maxim@codesourcery.com>
2638 Joseph Myers <joseph@codesourcery.com>
2639
2640 * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
2641 if needed for __stack_chk_guard.
2642
bc7e1c36
RM
26432011-09-19 Roland McGrath <roland@hack.frob.com>
2644
ecb1482f
RM
2645 * sysdeps/posix/spawni.c (script_execute): Always define it.
2646 It will be optimized away if unused.
2647 (maybe_script_execute): New function.
2648 (__spawni): Call it.
2649
bc7e1c36
RM
2650 * Makerules: Don't include tls.make.
2651 (config-tls): Always set to thread.
2652 * tls.make.c: File removed.
2653
1c3b002b
MF
26542011-09-19 Mike Frysinger <vapier@gentoo.org>
2655
2656 * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
2657 * config.make.in (CPPFLAGS-config): New substituted variable.
2658
2840865d
UD
26592011-09-15 Ulrich Drepper <drepper@gmail.com>
2660
88738eb6
UD
2661 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
2662
cbf645a6 2663 [BZ #13192]
2840865d
UD
2664 * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
2665 Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
2666
b402e91a
RM
26672011-09-15 Roland McGrath <roland@hack.frob.com>
2668
2669 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
2670 (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
2671 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
2672 (CALL_FAIL): Likewise.
2673 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
2674 (CALL_FAIL): Macro removed.
2675 Patch mostly by Mike Frysinger <vapier@gentoo.org>.
2676
4c1a1f71
UD
26772011-09-15 Ulrich Drepper <drepper@gmail.com>
2678
2679 * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
2680 for __FINITE_MATH_ONLY__ == 1.
2681
edc121be
AS
26822011-09-15 Andreas Schwab <schwab@redhat.com>
2683
2684 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
2685 __ieee754_sqrt instead of sqrt.
2686 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
2687 __ieee754_sqrtf instead of sqrtf.
2688 * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
2689 __floorf instead of floorf.
2690 * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
2691 __floorf, __truncf instead of floorf, truncf.
2692
cd205654
UD
26932011-09-14 Ulrich Drepper <drepper@gmail.com>
2694
ee4d0315
UD
2695 * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
2696
cd205654
UD
2697 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
2698 __extern_always_inline.
2699 Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
2700 32-bit.
2701
48b67d71
AS
27022011-09-14 Andreas Schwab <schwab@redhat.com>
2703
2704 * elf/rtld.c (dl_main): Also relocate in dependency order when
2705 doing symbol dependency testing.
2706
1ae12c75
AS
27072011-09-13 Andreas Schwab <schwab@linux-m68k.org>
2708
2709 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
2710 Always define `refsym'.
2711
995a80df
AS
27122011-09-13 Andreas Schwab <schwab@redhat.com>
2713
e529793b
AS
2714 * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
2715 (__FD_ELT): Renamed from __FDELT.
2716 * misc/bits/select2.h (__FD_ELT): Likewise.
2717 * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
2718 __FD_MASK instead of __FDELT, __FDMASK.
2719 * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
2720 Likewise.
2721 * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
2722 Likewise.
2723
52d4fef8
AS
2724 * elf/Makefile (gen-ldd): Fix pattern.
2725
995a80df
AS
2726 * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
2727 (init_tls): Likewise.
2728
8682f8b0
UD
27292011-09-12 Ulrich Drepper <drepper@gmail.com>
2730
2731 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
2732
de82006d
AS
27332011-09-12 Andreas Schwab <schwab@redhat.com>
2734
a7c8e6a1
AS
2735 * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
2736 `struct cmsghdr *' instead of `void *'.
2737 * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
2738 Likewise.
2739
0f31fe77
AS
27402011-09-11 Andreas Schwab <schwab@linux-m68k.org>
2741
2742 * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
2743 if non-absolute.
2744 * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
2745 ldd_rewrite_script.
0f31fe77 2746
32b4c839
UD
27472011-09-11 Ulrich Drepper <drepper@gmail.com>
2748
83cd1420
UD
2749 * configure.in: Remove --with-tls option.
2750 * config.h.in: Remove HAVE_TLS_SUPPORT entry.
2751 * sysdeps/i386/elf/configure.in: Always test for TLS support and err
2752 out in case it is missing.
2753 * sysdeps/ia64/elf/configure.in: Likewise.
2754 * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
2755 * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
2756 * sysdeps/s390/s390-32/elf/configure.in: Likewise.
2757 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
2758 * sysdeps/sh/elf/configure.in: Likewise.
2759 * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
2760 * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
2761 * sysdeps/x86_64/elf/configure.in: Likewise.
2762 * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
2763 * sysdeps/mach/hurd/tls.h: Likewise.
2764
633f745d
UD
2765 [BZ #13067]
2766 * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
2767
f318beb8
UD
2768 [BZ #13090]
2769 * configure.in: Fix use of AC_INIT.
2770
32b4c839
UD
2771 * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
2772
3ce1f295
UD
27732011-09-10 Ulrich Drepper <drepper@gmail.com>
2774
bb016596
UD
2775 * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
2776 __set_errno.
8e58439c
UD
2777 * malloc/hooks.c: Likewise.
2778
aebae053 2779 [BZ #11929]
02d46fc4
UD
2780 * malloc/arena.c (ptmalloc_init_minimal): Removed. Initialize all
2781 variables statically.
2782 (narenas): Initialize.
2783 (list_lock): Initialize.
bb016596
UD
2784 (ptmalloc_init): Don't call ptmalloc_init_minimal. Remove
2785 initializtion of main_arena and list_lock. Small cleanups.
02d46fc4
UD
2786 Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
2787 * malloc/malloc.c: Remove malloc_getpagesize. Include <ldsodefs.h>.
2788 Add initializers to main_arena and mp_.
2789 (malloc_state): Remove pagesize member. Change all users to use
2790 GLRO(dl_pagesize).
2791
2792 * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
2793 * sysdeps/unix/sysv/linux/getpagesize.c: Simplify. GLRO(dl_pagesize)
2794 is always initialized.
2795
22a89187
UD
2796 * malloc/malloc.c: Removed unused configurations and dead code.
2797 * malloc/arena.c: Likewise.
2798 * malloc/hooks.c: Likewise.
02d46fc4 2799 * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
22a89187 2800
d063d164
UD
2801 * include/tls.h: Removed. USE___THREAD must always be defined.
2802 * bits/libc-tsd.h: Don't handle !USE___THREAD.
2803 * elf/dl-libc.c: Likewise.
2804 * elf/dl-tsd.c: Likewise.
2805 * include/errno.h: Likewise.
2806 * include/netdb.h: Likewise.
2807 * include/resolv.h: Likewise.
2808 * inet/herrno-loc.c: Likewise.
2809 * inet/herrno.c: Likewise.
2810 * malloc/arena.c: Likewise.
2811 * malloc/hooks.c: Likewise.
2812 * malloc/malloc.c: Likewise.
2813 * resolv/res-state.c: Likewise.
2814 * resolv/res_libc.c: Likewise.
2815 * sysdeps/i386/dl-machine.h: Likewise.
2816 * sysdeps/ia64/dl-machine.h: Likewise.
2817 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
2818 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
2819 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2820 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2821 * sysdeps/sh/dl-machine.h: Likewise.
2822 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2823 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2824 * sysdeps/unix/i386/sysdep.S: Likewise.
2825 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
2826 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
2827 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2828 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
2829 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2830 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2831 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
2832 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
2833 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
2834 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2835 * sysdeps/unix/x86_64/sysdep.S: Likewise.
2836 * sysdeps/x86_64/dl-machine.h: Likewise.
2837 * tls.make.c: Likewise.
2838
3ce1f295
UD
2839 * configure.in: Remove --with-__thread option. Make tests for
2840 --no-whole-archive, __builtin_expect, symbol redirection, __thread,
2841 tls_model attribute fail if no support is available. Remove
2842 USE_IN_LIBIO.
2843 * Makeconfig: Adjust for dropped configure option. All features are
2844 now mandatory.
2845 * Makerules: Likewise.
2846 * Versions.def: Likewise.
2847 * argp/argp-fmtstream.c: Likewise.
2848 * argp/argp-fmtstream.h: Likewise.
2849 * argp/argp-help.c: Likewise.
2850 * assert/assert.c: Likewise.
2851 * config.h.in: Likewise.
2852 * config.make.in: Likewise.
2853 * configure: Likewise.
2854 * configure.in: Likewise.
2855 * csu/Versions: Likewise.
2856 * csu/init.c: Likewise.
2857 * elf/tst-audit2.c: Likewise.
2858 * elf/tst-tls10.c: Likewise.
2859 * elf/tst-tls10.h: Likewise.
2860 * elf/tst-tls11.c: Likewise.
2861 * elf/tst-tls12.c: Likewise.
2862 * elf/tst-tls14.c: Likewise.
2863 * elf/tst-tlsmod11.c: Likewise.
2864 * elf/tst-tlsmod12.c: Likewise.
2865 * elf/tst-tlsmod13.c: Likewise.
2866 * elf/tst-tlsmod13a.c: Likewise.
2867 * elf/tst-tlsmod14a.c: Likewise.
2868 * elf/tst-tlsmod15b.c: Likewise.
2869 * elf/tst-tlsmod16a.c: Likewise.
2870 * elf/tst-tlsmod16b.c: Likewise.
2871 * elf/tst-tlsmod7.c: Likewise.
2872 * elf/tst-tlsmod8.c: Likewise.
2873 * elf/tst-tlsmod9.c: Likewise.
2874 * gmon/gmon.c: Likewise.
2875 * grp/fgetgrent_r.c: Likewise.
2876 * grp/putgrent.c: Likewise.
2877 * hurd/fopenport.c: Likewise.
2878 * include/libc-symbols.h: Likewise.
2879 * include/tls.h: Likewise.
2880 * intl/gettextP.h: Likewise.
2881 * intl/loadinfo.h: Likewise.
2882 * locale/global-locale.c: Likewise.
2883 * locale/localeinfo.h: Likewise.
2884 * mach/devstream.c: Likewise.
2885 * malloc/arena.c: Likewise.
2886 * malloc/set-freeres.c: Likewise.
2887 * misc/err.c: Likewise.
2888 * misc/getttyent.c: Likewise.
2889 * misc/mntent_r.c: Likewise.
2890 * posix/getopt.c: Likewise.
2891 * posix/wordexp.c: Likewise.
2892 * pwd/fgetpwent_r.c: Likewise.
2893 * resolv/Versions: Likewise.
2894 * resolv/res_hconf.c: Likewise.
2895 * shadow/fgetspent_r.c: Likewise.
2896 * shadow/putspent.c: Likewise.
2897 * stdio-common/printf_fphex.c: Likewise.
2898 * stdio-common/tmpfile.c: Likewise.
2899 * stdlib/abort.c: Likewise.
2900 * stdlib/fmtmsg.c: Likewise.
2901 * sunrpc/auth_unix.c: Likewise.
2902 * sunrpc/clnt_perr.c: Likewise.
2903 * sunrpc/clnt_tcp.c: Likewise.
2904 * sunrpc/clnt_udp.c: Likewise.
2905 * sunrpc/clnt_unix.c: Likewise.
2906 * sunrpc/openchild.c: Likewise.
2907 * sunrpc/svc_simple.c: Likewise.
2908 * sunrpc/svc_tcp.c: Likewise.
2909 * sunrpc/svc_udp.c: Likewise.
2910 * sunrpc/svc_unix.c: Likewise.
2911 * sunrpc/xdr.c: Likewise.
2912 * sunrpc/xdr_array.c: Likewise.
2913 * sunrpc/xdr_rec.c: Likewise.
2914 * sunrpc/xdr_ref.c: Likewise.
2915 * sunrpc/xdr_stdio.c: Likewise.
2916
1248c1c4
PB
29172011-09-09 Ulrich Drepper <drepper@gmail.com>
2918
2919 * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
2920
29212011-07-03 Andreas Jaeger <aj@suse.de>
2922
2923 * math/libm-test.inc (jn_test): Add tests for BZ#11589.
2924 * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
2925 regenerate with gen-libm-tests.pl.
2926
29272010-05-12 Petr Baudis <pasky@suse.cz>
2928
2929 [BZ #11589]
2930 * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
2931 around j0() zero points by switching to j1().
2932 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
2933 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2934 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
2935 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2936
f22e1074
UD
29372011-09-09 Ulrich Drepper <drepper@gmail.com>
2938
f19009c1
UD
2939 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
2940 instead of 0.
2941 * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
2942 instead of 0. .
2943 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2944 Patch in part by Pavel Roskin <proski@gnu.org>.
2945
3f8cc204
UD
2946 [BZ #13138]
2947 * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
2948 realloc.
2949 (_IO_vfscanf_internal): Remove reteof. Use errout after setting done.
2950 Free memory block if necessary.
2951
f22e1074
UD
2952 [BZ #12847]
2953 * libio/genops.c (INTDEF): For string streams the _lock pointer can
2954 be NULL. Don't lock in this case.
2955
0a2349f9
RM
29562011-09-09 Roland McGrath <roland@hack.frob.com>
2957
2958 * elf/elf.h (ELFOSABI_GNU): New macro.
2959 (ELFOSABI_LINUX): Define to that.
2960
f3cdd467
DZ
29612011-07-29 Denis Zaitceff <zaitceff@gmail.com>
2962
2963 * string/strncat.c (strncat): Undef the symbol in case it has been
2964 defined in bits/string.h.
2965
74718d13
UD
29662011-09-09 Ulrich Drepper <drepper@gmail.com>
2967
633e9e0f
UD
2968 * elf/sotruss.ksh: Clean up, fix, and complete help messages.
2969
0a2349f9 2970 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
74718d13
UD
2971 link map.
2972
f9924780
AJ
29732011-08-17 Andreas Jaeger <aj@suse.de>
2974
2975 * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
2976
7f5517aa
PP
29772011-08-18 Paul Pluzhnikov <ppluzhnikov@google.com>
2978 Ian Lance Taylor <iant@google.com>
2979
2980 * math/libm-test.inc (lround_test): New testcase.
2981 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
2982
762011fe
UD
29832011-09-08 Ulrich Drepper <drepper@gmail.com>
2984
92963737
UD
2985 * Makefile: Remove support for automatic cvs check-ins.
2986 * Makerules: Likewise.
2987 * config.make.in: Likewise.
2988 * configure.in: Likewise.
2989 * intl/Makefile: Likewise.
2990 * locale/Makefile: Likewise.
2991 * po/Makefile: Likewise.
2992 * posix/Makefile: Likewise.
2993 * sysdeps/gnu/Makefile: Likewise.
2994 * sysdeps/mach/hurd/Makefile: Likewise.
2995 * sysdeps/sparc/sparc32/Makefile: Likewise.
2996
b0727fd8
JS
2997 [BZ #13118]
2998 * posix/Makefile (bug-regex32-ENV): Define.
2999 Patch by John Stanley <jpsinthemix@verizon.net>.
3000
a0f33f99
UD
3001 * misc/Makefile (headers): Add bits/select2.h.
3002 * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
3003 * misc/bits/select2.h: New file.
3004 * include/bits/select2.h: New file.
3005 * debug/Makefile (routines): Add fdelt_chk.
3006 * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
3007 * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
3008 FD_ISSET.
3009 * debug/fdelt_chk.c: New file.
3010
762011fe
UD
3011 * wcsmbs/test-wcscmp.c: Moved from string/*. Adjust.
3012 * wcsmbs/test-wmemcmp.c: Likewise.
3013 * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
a0f33f99 3014 * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
762011fe
UD
3015
30162011-09-08 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
3017
3018 * string/Makefile (strop-tests): Add memcmp.
3019 * string/test-wmemcmp.c: New file.
3020 * string/test-memcmp.c: Add wmemcmp support.
3021
7f513ec8
RM
30222011-09-08 Roland McGrath <roland@hack.frob.com>
3023
0442afb4
RM
3024 [BZ #13153]
3025 * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
3026 2011-07-19 change.
3027
7f513ec8
RM
3028 * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
3029 garbage value in a __mach_port_mod_refs call in the cases of the
3030 task-self and thread-self ports.
3031
a12b2239
ST
30322011-09-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
3033
3034 * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
3035
610f9ab4
AS
30362011-09-08 Andreas Schwab <schwab@redhat.com>
3037
7f513ec8 3038 * elf/dl-load.c (lose): Check for non-null L.
610f9ab4 3039
48882a1a
LD
30402011-09-07 Ulrich Drepper <drepper@gmail.com>
3041
b49865be
UD
3042 * elf/dl-load.c (open_verify): Use O_CLOEXEC.
3043
fdc86bc9
UD
3044 * elf/dl-libc.c (dlerror_run): Pass back error code from
3045 dl_catch_error.
3046
c966526a
UD
3047 [BZ #13123]
3048 * elf/dl-load.c (lose): Free l_origin if it is valid.
3049
48882a1a
LD
3050 * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
3051 names.
3052 * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
3053 * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
3054 * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
3055 * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
3056 * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
3057 Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
3058
77a2a8b4
AZ
30592011-08-01 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
3060
3061 * sysdeps/powerpc/fpu/e_hypot.c: New file.
3062 * sysdeps/powerpc/fpu/e_hypotf.c: New file.
3063 * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
3064 * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
3065 * sysdeps/powerpc/fpu/k_cosf.c: New file.
3066 * sysdeps/powerpc/fpu/k_sinf.c: New file.
3067 * sysdeps/powerpc/fpu/s_cosf.c: New file.
3068 * sysdeps/powerpc/fpu/s_sinf.c: New file.
3069 * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
3070 * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
3071
24f579d8
AM
30722011-08-15 Alan Modra <amodra@gmail.com>
3073
3074 [BZ #13092]
3075 * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
3076 * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
3077 * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here. Add
3078 ppc_mcount to static-only-routines.
3079 * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
3080 __mcount_internal.
3081 * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
3082 __mcount_internal with usual JUMPTARGET. Remove useless nop.
3083
3d4837df
UD
30842011-08-18 David Flaherty <flaherty@linux.vnet.ibm.com>
3085
3086 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
3087 for finite and infinity parameters.
3088
22700377
WS
30892011-08-04 Will Schmidt <will_schmidt@vnet.ibm.com>
3090
3091 * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
3092 and add nop instructions for throughput optimization.
3093 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
3094
5025581e
WS
30952011-07-28 Will Schmidt <will_schmidt@vnet.ibm.com>
3096
3097 * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
3098 aligned copy for power7 with vector-scalar instructions.
3099 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
3100
08a300c9
L
31012011-07-24 H.J. Lu <hongjiu.lu@intel.com>
3102
3103 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
3104 AVX check.
3105
59178ef9
AS
31062011-09-07 Andreas Schwab <schwab@redhat.com>
3107
3108 [BZ #13144]
3109 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
3110 last change.
3111
e38ba7ab
UD
31122011-09-07 Ulrich Drepper <drepper@gmail.com>
3113
3114 * sysdeps/unix/sysv/linux/x86_64/init-first.c
3115 (_libc_vdso_platform_setup): If vDSO is not present store pointer to
3116 syscall wrapper around clock_gettime in __vdso_clock_gettime.
3117 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
3118 clock_gettime.
3119
d53a73ac
UD
31202011-09-06 Ulrich Drepper <drepper@gmail.com>
3121
fc8bffcc
UD
3122 * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
3123 Forgot to demangle the pointer.
3124
ceaa0c5d
UD
3125 * sysdeps/i386/sysdep.h: Define atom_text_section.
3126 * sysdeps/x86_64/sysdep.h: Likewise.
3127 * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
3128 section with atom_text_section.
3129 * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
3130 * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
3131 * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
3132 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
3133 * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
3134
a77d3c17
UD
3135 * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
3136 * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
3137 already be defined. Change to take two parameters and don't assign
3138 result to variable. Adjust all users.
3139 Define INTERNAL_GETTIME if not already defined.
3140 Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
3141 call.
3142 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
3143 HAVE_CLOCK_GETTIME_VSYSCALL.
3144 * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
3145
d53a73ac
UD
3146 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
3147 gettimeofday vsyscall, just use time.
3148
a8f84144
AS
31492011-09-06 Andreas Schwab <schwab@redhat.com>
3150
3151 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
3152 <errno.h>.
3153
ef606249
UD
31542011-09-06 Ulrich Drepper <drepper@gmail.com>
3155
3156 * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
3157 syscall on x86-64.
3158 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
3159 syscall.
3160 * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
3161 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
3162 syscall if possible.
3163
6585cb60
UD
31642011-09-05 Ulrich Drepper <drepper@gmail.com>
3165
3166 * elf/pldd.c (get_process_info): Don't read whole ELF header, just
3167 e_ident. Don't pass to find_mapsXX.
3168 * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
3169
a5f524e4
LD
31702011-07-20 Liubov Dmitrieva <liubov.dmitrieva@intel.com>
3171
3172 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3173 strchr-sse2-no-bsf strrchr-sse2-no-bsf
3174 * sysdeps/x86_64/multiarch/strchr.S: Update.
3175 Check bit_slow_BSF bit.
3176 * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
3177 * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
3178 * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
3179
554881ef
UD
31802011-09-05 Ulrich Drepper <drepper@gmail.com>
3181
d96de963
UD
3182 [BZ #13134]
3183 * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
3184 before glibc 2.15.
3185 (tryshell): Define.
3186 (__spawni): Change last parameter to be flag. Test
3187 SPAWN_XFLAGS_USE_PATH flag to use path or not.
3188 Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
3189 * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
3190 * posix/spawni.c: Likewise.
3191 * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
3192 * posix/spawnp.c: Likewise. Change normal version to use
3193 SPAWN_XFLAGS_USE_PATH.
3194 * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
3195 SPAWN_XFLAGS_TRY_SHELL.
3196
d48e5868
UD
3197 [BZ #13150]
3198 * posix/glob.h: Remove gcc 1.x support.
3199
554881ef
UD
3200 [BZ #13068]
3201 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
3202
693fb948
LD
32032011-07-20 Liubov Dmitrieva <liubov.dmitrieva@intel.com>
3204
3205 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
3206 strchr-sse2 strrchr-sse2 strchr-sse2-bsf
3207 strrchr-sse2-bsf
3208 * sysdeps/i386/i686/multiarch/strchr.S: New file.
3209 * sysdeps/i386/i686/multiarch/strrchr.S: New file.
3210 * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
3211 * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
3212 * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
3213 * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
3214
1b48c537
UD
32152011-08-29 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
3216
49d42c37
UD
3217 * sysdeps/x86_64/wcscmp.S: New file.
3218
1b48c537
UD
3219 * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
3220 wcscmp-c wcscmp-sse2
3221 * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
3222 * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
3223 * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
3224 * wcsmbs/wcscmp.c: Allow renaming.
3225
15c95c5d
DM
32262011-09-05 David S. Miller <davem@davemloft.net>
3227
3228 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
3229 stack slot, rather than the struct return pointer slot.
3230 * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
3231 * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
3232 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
3233 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
3234
2f0ad8f3
UD
32352011-09-05 Ulrich Drepper <drepper@gmail.com>
3236
d88ae418
UD
3237 * po/ja.po: Update from translation team.
3238
2f0ad8f3
UD
3239 [BZ #13144]
3240 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
3241 kernel in 64-bit binaries.
3242
5f4318d1
DM
32432011-09-01 David S. Miller <davem@davemloft.net>
3244
3245 * elf/elf.h (HWCAP_SPARC_*): Move to..
3246 * sysdeps/sparc/sysdep.h: this new file and add new values.
3247 * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
3248 * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
3249 _DL_HWCAP_COUNT to 24.
3250 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
3251 entries.
3252 * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
3253 __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
3254 * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
3255 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
3256 instead of magic constants.
3257 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
3258
3ba57516
DM
32592011-08-31 David S. Miller <davem@davemloft.net>
3260
3261 * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
3262 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
3263 Reimplement to do errno handling inline.
3264 (SYSCALL_ERROR_HANDLER): New macro.
3265 (__SYSCALL_STRING): Do not do errno handling in asm.
3266 (__CLONE_SYSCALL_STRING): Delete.
3267 (__INTERNAL_SYSCALL_STRING): Delete.
3268 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
3269 sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
3270 (PSEUDO): Reimplement to do errno handling inline.
3271 (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
3272 (SYSCALL_ERROR_HANDLER): New macro.
3273 (__SYSCALL_STRING): Do not do errno handling in asm.
3274 (__CLONE_SYSCALL_STRING): Delete.
3275 (__INTERNAL_SYSCALL_STRING): Delete.
3276 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
3277 Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
3278 i386.
3279 (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
3280 (inline_syscall*): Add 'err' argument.
3281 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
3282 INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
3283 (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
3284 INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
3285
3286 * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
3287 * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
3288
2bc17433
AS
32892011-08-30 Andreas Schwab <schwab@redhat.com>
3290
3291 * elf/rtld.c (dl_main): Relocate objects in dependency order.
3292
fbeb5f4d
JO
32932011-08-29 Jiri Olsa <jolsa@redhat.com>
3294
3295 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
3296 directive.
3297
ad69cc26
DM
32982011-08-24 David S. Miller <davem@davemloft.net>
3299
3300 * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
3301
39dd69df
AS
33022011-08-24 Andreas Schwab <schwab@redhat.com>
3303
3304 * elf/Makefile: Add rules to build and run unload8 test.
3305 * elf/unload8.c: New file.
3306 * elf/unload8mod1.c: New file.
3307 * elf/unload8mod1x.c: New file.
3308 * elf/unload8mod2.c: New file.
3309 * elf/unload8mod3.c: New file.
3310
3311 * elf/dl-close.c (_dl_close_worker): Reset private search list if
3312 it wasn't used.
3313
2c0b250a
DM
33142011-08-23 David S. Miller <davem@davemloft.net>
3315
3316 * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
3317 subtract stack bias.
3318 * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
3319 %sp not %fp in calculations.
3320 (_JMPBUF_UNWINDS_ADJ): Likewise.
3321
22044b48
DM
3322 * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
3323 (aio_suspend): Call it to force an exception region around the
3324 AIO_MISC_WAIT() invocation.
3325
2cae4995
AS
33262011-08-23 Andreas Schwab <schwab@redhat.com>
3327
3328 * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
3329 backslash.
3330
873a772e
AJ
33312011-07-04 Aurelien Jarno <aurelien@aurel32.net>
3332
3333 * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
3334 protection macro.
3335 * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
3336 and <dl-machine.h>.
3337 (Elf64_FuncDesc): Remove.
3338
25ad0df1
DM
33392011-08-22 David S. Miller <davem@davemloft.net>
3340
3341 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
3342 sigaltstack check, add missing cfi directives.
3343 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
3344 missing cfi directives, and sigaltstack handling.
3345
e888bcbe
AS
33462011-08-16 Andreas Schwab <schwab@redhat.com>
3347
3348 [BZ #11724]
3349 * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
3350 object is seen twice.
3351 * elf/dl-fini.c (_dl_sort_fini): Likewise.
3352
3353 * elf/Makefile (distribute): Add tst-initorder2.c.
3354 (tests): Add tst-initorder2.
3355 (modules-names): Add tst-initorder2a tst-initorder2b
3356 tst-initorder2c tst-initorder2d. Add rules to build them.
3357 ($(objpfx)tst-initorder2.out): New rule.
3358 * elf/tst-initorder2.c: New file.
3359 * elf/tst-initorder2.exp: New file.
3360
87162f46
AS
33612011-08-22 Andreas Schwab <schwab@redhat.com>
3362
70538b7f
AS
3363 * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
3364
f55ffe58
AS
3365 * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
3366 dependencies back to end of function.
3367
87162f46
AS
3368 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
3369 $(elfobjdir)/ld.so.
3370
91b392a4
UD
33712011-08-21 Ulrich Drepper <drepper@gmail.com>
3372
3373 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
3374 * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
3375 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
3376 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
3377 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
3378 of __vdso_gettimeofday.
3379 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
3380 __vdso_gettimeofday and __vdso_time. Define __vdso_getcpu with
3381 attribute_hidden.
3382 (_libc_vdso_platform_setup): Remove initialization of
3383 __vdso_gettimeofday and __vdso_time.
3384
5c43483f
UD
33852011-08-20 Ulrich Drepper <drepper@gmail.com>
3386
775a77e7
UD
3387 * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
3388 and fgetc_unlocked.
3389 * nss/nss_files/files-key.c (search): Use fgets_unlocked and
3390 getc_unlocked.
89f447ed 3391
49c74ba9
UD
3392 * elf/dl-open.c (add_to_global): Report additions to the global scope
3393 for LD_DEBUG=scopes.
3394 (dl_open_worker): Also print scope of newly loaded dependencies.
001f0a6c 3395 (_dl_show_scope): Indicate if there is no scope.
49c74ba9 3396
5c43483f
UD
3397 [BZ #13114]
3398 * stdio-common/Makefile (tests): Add bug24.
3399 * stdio-common/bug24.c: New file.
3400
a101b025
AJ
34012011-08-19 Andreas Jaeger <aj@suse.de>
3402
3403 [BZ #13114]
3404 * libio/fileops.c (_IO_new_file_fopen): Fix handling of
3405 non-existant file when using close-on-exec mode.
3406
c88f1766
UD
34072011-08-20 Ulrich Drepper <drepper@gmail.com>
3408
0276a718
UD
3409 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
3410 the very first instruction.
3411
c88f1766
UD
3412 * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
3413 the CFI state in the end.
3414 * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
3415 inclusion of dl-trampoline.h.
3416 Based on a patch by Jiri Olsa <jolsa@redhat.com>.
3417
51ccffa0
AS
34182011-08-19 Andreas Schwab <schwab@redhat.com>
3419
94d7165f
AS
3420 * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
3421 expectations for long double.
3422
51ccffa0
AS
3423 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
3424 from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
3425
fd708658 34262011-08-14 David S. Miller <davem@davemloft.net>
c27714f1
DM
3427
3428 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
3429 artificual limit depends upon the system page size.
3430
44f0a71e
UD
34312011-08-17 Ulrich Drepper <drepper@gmail.com>
3432
3433 * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
3434 * resolv/Makefile: Define CFLAGS-libresolv.
3435
8de79a24
AS
34362011-08-17 Andreas Schwab <schwab@redhat.com>
3437
3438 * nss/makedb.c (compute_tables): Make variables used in nested
3439 function static.
3440
27724598
UD
34412011-08-17 Ulrich Drepper <drepper@gmail.com>
3442
c5305d88
UD
3443 * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
3444 * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
3445 if buffer was too small.
3446
27724598
UD
3447 * elf/pldd.c (main): Attach to all threads in the process.
3448 Rewrite /proc handling to use *at functions.
3449
076fe015
UD
34502011-08-16 Ulrich Drepper <drepper@gmail.com>
3451
174baab3
UD
3452 * elf/dl-open.c (_dl_show_scope): Take additional parameter which
3453 specifies first scope to show.
3454 (dl_open_worker): Update callers. Move printing scope of new
3455 object to before the relocation.
44f0a71e 3456 * elf/rtld.c (dl_main): Update _dl_show_scope call.
174baab3
UD
3457 * sysdeps/generic/ldsodefs.h: Update declaration.
3458
076fe015
UD
3459 * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
3460 string for the scope number.
3461
a60df2c3
UD
34622011-08-14 Ulrich Drepper <drepper@gmail.com>
3463
3464 * nscd/servicescache.c (cache_addserv): Make sure written is always
3465 initialized.
3466
5e4287d1
RM
34672011-08-14 Roland McGrath <roland@hack.frob.com>
3468
85ae0589
RM
3469 * sysdeps/i386/i486/bits/atomic.h
3470 (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
3471 statement expression, so as to suppress "set but not used" warning.
3472 (__arch_c_compare_and_exchange_val_64_acq): Likewise.
3473
69f63097
RM
3474 * string/strncat.c (STRNCAT): Use prototype definition.
3475
675456ef
RM
3476 * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
3477 (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
3478 -Iprograms here.
3479 (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
3480 (localedef-modules): Add localedef.
3481 (locale-modules): Add locale.
3482
5e4287d1
RM
3483 * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
3484 * elf/rtld.c (dl_main): Invert order of assignment in last change,
3485 to avoid a warning.
3486
9c96ff23
DM
34872011-08-14 David S. Miller <davem@davemloft.net>
3488
3489 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
3490 RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
3491
f9ddf089
UD
34922011-08-13 Ulrich Drepper <drepper@gmail.com>
3493
44f0a71e 3494 * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
73d7af4f
UD
3495 (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
3496 * elf/rtld.c (dl_main): Set l_name of vDSO.
3497 Call _dl_show_scope when DL_DEBUG_SCOPES.
3498 (process_dl_debug): Recognize scopes flag and also set it for all.
3499 * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
3500 Declare _dl_show_scope.
3501
1dc27704
UD
3502 * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
3503 (do_dlopen): Pass caller_dlopen to dl_open.
3504 (__libc_dlopen_mode): Initialize caller_dlopen.
3505
f9ddf089
UD
3506 * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
3507 of libc. Make tolower call locale-independent. Optimize a bit by
3508 using isdigit instead of isalnum.
3509 * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
3510
9ac533d3
UD
35112011-08-12 Ulrich Drepper <drepper@gmail.com>
3512
3513 * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
3514 was a dependency or dynamically loaded.
3515
89edf2e9
UD
35162011-08-11 Ulrich Drepper <drepper@gmail.com>
3517
8e999d29
UD
3518 * intl/l10nflist.c: Allow architecture-specific pop function.
3519 * sysdeps/x86_64/l10nflist.c: New file.
3520
89edf2e9
UD
3521 * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
3522 classification.
3523
14d96785
AS
35242011-08-10 Andreas Schwab <schwab@redhat.com>
3525
3526 * include/dirent.h: Add libc_hidden_proto for scandirat and
3527 scandirat64. Don't declare __scandirat64.
3528 * dirent/scandirat.c: Add libc_hidden_def.
3529 * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
3530 * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
3531
6761ac04
DM
35322011-08-10 David S. Miller <davem@davemloft.net>
3533
3534 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
3535 enum.
3536 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
3537 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
3538 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
3539
c55fbd1e
UD
35402011-08-09 Ulrich Drepper <drepper@gmail.com>
3541
3542 * Versions.def [libc]: Add GLIBC_2.15.
3543 * dirent/Makefile (routines): Add scandirat and scandirat64.
3544 * dirent/Versions [libc]: Export scandirat and scandirat64 for
3545 GLIBC_2.15.
3546 * dirent/dirent.h: Declare scandirat and scandirat64.
3547 * dirent/scandirat.c: New file.
3548 * dirent/scandirat64.c: New file.
3549 * sysdeps/wordsize-64/scandirat.c: New file.
3550 * sysdeps/wordsize-64/scandirat64.c: New file.
3551 * dirent/opendir.c: Define opendirat.
3552 * dirent/scandir.c: Move code to scandirat.c. Implement scandir
3553 using scandirat.
3554 * dirent/scandir64.c: Adjust for scandir.c change.
3555 * include/dirent.h: Define scandir_cancel_struct. Declare __opendirat,
3556 __scandirat64, and __scandir_cancel_handler.
3557 * sysdeps/unix/opendir.c: Rename __opendir to __opendirat. Take
3558 additional parameter and use openat instead of open (outside of ld.so).
3559 Add new __opendir as wrapper around __opendirat.
3560 * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
3561 here without requiring old scandirat implementation.
3562
879165f2
UD
35632011-08-08 Ulrich Drepper <drepper@gmail.com>
3564
3565 * dirent/scandir.c (cancel_handler): Renamed to
3566 __scandir_cancel_handler. Do not define if SKIP_SCANDIR_CANCEL is
3567 defined. Adjust users.
3568 * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
3569 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
3570
cb7e923b
UD
35712011-08-04 Ulrich Drepper <drepper@gmail.com>
3572
16292edd
UD
3573 * string/test-string.h (IMPL): Use __STRING to expand name and then
3574 stringify it.
3575
cb7e923b
UD
3576 * string/test-strcmp.c: Unify most of the WIDE and !WIDE code. Lots
3577 of cleanups.
3578
cff82933
LD
35792011-07-22 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
3580
3581 * string/Makefile: Update.
3582 (strop-tests): Append strncat.
3583 * string/test-wcscmp.c: New file.
3584 New comprehensive test for wcscmp.
3585 * string/test-strcmp.c: Update.
3586 (WIDE): New define.
3587
9be9bfcc
AS
35882011-07-22 Andreas Schwab <schwab@redhat.com>
3589
3590 * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
3591 line.
3592
2e96f1c7
AS
35932011-07-26 Andreas Schwab <schwab@redhat.com>
3594
3595 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
3596 encoding to ACE if AI_IDN.
3597
85188888
JJ
35982011-08-01 Jakub Jelinek <jakub@redhat.com>
3599
3600 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
3601 to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
3602
5fa16e9b
LD
36032011-07-22 Liubov Dmitrieva <liubov.dmitrieva@intel.com>
3604
3605 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
3606 Fix overflow bug in strncat.
3607 * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
3608
3609 * string/test-strncat.c: Update.
3610 Add new tests for checking overflow bugs.
3611
36122011-07-15 Liubov Dmitrieva <liubov.dmitrieva@intel.com>
3613
3614 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
3615 strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
3616 * sysdeps/i386/i686/multiarch/strcat.S: New file.
3617 * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
3618 * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
3619 * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
3620 * sysdeps/i386/i686/multiarch/strncat.S: New file.
3621 * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
3622 * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
3623
3624 * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
3625 (USE_AS_STRCAT): Define.
3626 Add strcat and strncat support.
3627 * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
3628
8c1a459f
AS
36292011-07-25 Andreas Schwab <schwab@redhat.com>
3630
3631 * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
3632 __n bigger than INT_MAX+1.
3633 (__strncmp_g): Likewise.
3634
bba33c28
UD
36352011-07-23 Ulrich Drepper <drepper@gmail.com>
3636
798be72d
UD
3637 * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
3638 * libio/stido.h: Likewise.
3639
8accd4dc
UD
3640 * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
3641 (AF_NFC): Define.
3642 * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
3643 (AF_NFC): Define.
3644
cbff0d96
UD
3645 * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
3646 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
3647 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
3648 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
3649 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
3650
9191c04a
UD
3651 [BZ #13021]
3652 * scripts/test-installation.pl: Don't expect libnss_test1 to be
3653 installed.
3654
bba33c28
UD
3655 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
3656 typo.
3657 (_dl_x86_64_save_sse): Likewise.
3658
90f139dd
UD
36592011-07-22 Ulrich Drepper <drepper@gmail.com>
3660
1aae088a
UD
3661 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
3662 OSXSAVE.
3663 (_dl_x86_64_save_sse): Likewise.
3664
8e2045f5
UD
3665 * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
3666
90f139dd
UD
3667 * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
3668
1d002f25
AS
36692011-07-21 Andreas Schwab <schwab@redhat.com>
3670
3671 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
3672 change.
3673 (_dl_x86_64_save_sse): Use correct AVX check.
3674
21137f89
UD
36752011-07-21 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
3676
3677 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
3678 bug in strncpy/strncat.
3679 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
3680
a65c0b7a
UD
36812011-07-21 Ulrich Drepper <drepper@gmail.com>
3682
3683 * string/tester.c (test_strcat): Add tests for different alignments
3684 of source and destination.
3685 (test_strncat): Likewise.
3686
6986b98a
UD
36872011-07-20 Ulrich Drepper <drepper@gmail.com>
3688
90bb2039
UD
3689 [BZ #12852]
3690 * posix/glob.c (glob): Check passed in values before using them in
3691 expressions to avoid some overflows.
3692 (glob_in_dir): Likewise.
3693
5644ef54
UD
3694 [BZ #13007]
3695 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
3696 check for AVX enablement so that we don't crash with old kernels and
3697 new hardware.
3698 * elf/tst-audit4.c: Add same checks here.
3699 * elf/tst-audit6.c: Likewise.
3700
3701 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
6986b98a 3702
bfc9dc9b
AS
37032011-07-09 Andreas Schwab <schwab@linux-m68k.org>
3704
3705 * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
3706
702e64bb
UD
37072011-07-20 Ulrich Drepper <drepper@gmail.com>
3708
3709 * po/cs.po: Update from translation team.
3710 * po/bg.po: Likewise.
3711
295e904f
MP
37122011-07-12 Marek Polacek <mpolacek@redhat.com>
3713
3714 * misc/sys/cdefs.h: Add support for const attribute.
3715 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
3716 to gnu_dev_{major,minor,makedev} functions.
3717
3ff94596
MP
37182011-07-20 Marek Polacek <mpolacek@redhat.com>
3719
3720 * intl/dcigettext.c (get_output_charset): Add missing bracket.
3721
28b59fca
AS
37222011-07-20 Andreas Schwab <schwab@redhat.com>
3723
3724 * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
3725 strlen results.
3726
19df733e
AK
37272011-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3728
3729 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
3730 (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
3731 register in order to avoid conflicts with the soft frame pointer
3732 being held in r11 when necessary.
3733 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3734 (INTERNAL_VSYSCALL_NCS): Likewise.
3735
c8835729
MP
37362011-07-14 Marek Polacek <mpolacek@redhat.com>
3737
3738 * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
3739 * elf/dl-fini.c (_dl_fini): Adjust caller.
3740 * elf/dl-close.c (_dl_close_worker): Likewise.
3741 * sysdeps/generic/ldsodefs.h: Adjust declaration.
3742
b902330c
MP
37432011-07-15 Marek Polacek <mpolacek@redhat.com>
3744
8991e135
MP
3745 * elf/cache.c (load_aux_cache): Remove unnecessary condition of
3746 "aux_cache->nlibs < 0".
3747
b902330c
MP
3748 * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
3749 in the reload-count case.
3750
99710781
LD
37512011-07-15 Liubov Dmitrieva <liubov.dmitrieva@intel.com>
3752
3753 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3754 strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
3755 strncat-sse2-unaligned strncat-c strlen-sse2-pminub
3756 * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
3757 * sysdeps/x86_64/multiarch/strcat.S: New file.
3758 * sysdeps/x86_64/multiarch/strncat.S: New file.
3759 * sysdeps/x86_64/multiarch/strncat-c.c: New file.
3760 * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
3761 * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
3762 * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
3763 * sysdeps/x86_64/multiarch/strcpy-ssse3.S
3764 (USE_AS_STRCAT): Define.
3765 Add strcat and strncat support.
3766 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
3767 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
3768 * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
3769 * string/strncat.c: Update.
3770 (USE_AS_STRNCAT): Define.
3771 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3772 Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
3773 and i7.
3774 * sysdeps/x86_64/multiarch/init-arch.h
3775 (bit_Prefer_PMINUB_for_stringop): New.
3776 (index_Prefer_PMINUB_for_stringop): Likewise.
3777 * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
3778 bit_Prefer_PMINUB_for_stringop.
3779
7dc6bd90
UD
37802011-07-19 Ulrich Drepper <drepper@gmail.com>
3781
3782 * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
3783 buffer64.
3784 * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
3785 of casting of buffer.
3786 * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
3787 buffer32 and buffer64.
3788 * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
3789 writes instead of casting of buffer.
3790 * crypt/md5.h (struct md5_ctx): Move buffer into union and add
3791 buffer32.
3792 * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
3793 casting of buffer.
3794
e0e72284
AS
37952011-07-19 Andreas Schwab <schwab@redhat.com>
3796
3797 * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
3798
feb1eb0b
UD
37992011-07-19 Ulrich Drepper <drepper@gmail.com>
3800
3801 * nscd/nscd.c (termination_handler): Don't do anything for a database
3802 if it has not yet been initialized.
3803
298711ff
UD
38042011-07-18 Ulrich Drepper <drepper@gmail.com>
3805
3806 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
3807
38082011-07-15 Marek Polacek <mpolacek@redhat.com>
3809
3810 * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
3811
f9d68389
UD
38122011-07-18 Ulrich Drepper <drepper@gmail.com>
3813
3814 * po/nl.po: Update from translation team.
3815 * po/sv.po: Likewise.
3816
db290cf5
RM
38172011-07-16 Roland McGrath <roland@hack.frob.com>
3818
3819 * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
3820 now disallowed by GCC.
5c550700 3821
fd5e21c7
RM
3822 * configure.in (use-default-link): Default to yes if a test -shared
3823 link meets our qualifications.
3824 * configure: Regenerated.
3825
5c550700
RM
3826 * config.make.in (output-format): New variable.
3827 * configure.in: Check for ld --print-output-format support.
3828 * configure: Regenerated.
3829 * Makerules ($(common-objpfx)format.lds)
3830 [$(output-format) != unknown]: Just use $(output-format),
3831 instead of the linker-script munging.
3832
9fa2c032
RM
38332011-07-14 Roland McGrath <roland@hack.frob.com>
3834
a6928d51
RM
3835 * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
3836 of $(common-objpfx)shlib.lds.
3837 * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
3838
661607b3
RM
3839 * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
3840 Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
3841
9fa2c032
RM
3842 * configure.in (-z relro check): Adjust test code to add a large
3843 writable data section after it.
3844 * configure: Regenerated.
3845
defe9061
RM
38462011-07-11 Roland McGrath <roland@hack.frob.com>
3847
3848 * configure.in (-z relro check): Fix test code to make the variable
3849 truly const.
3850 * configure: Regenerated.
3851
319b9ad4
UD
38522011-07-11 Ulrich Drepper <drepper@gmail.com>
3853
3854 * nscd/nscd.h (struct traced_file): Define.
3855 (struct database_dyn): Remove inotify_descr, reset_res, and filename
3856 elements. Add traced_files.
3857 (inotify_fd): Declare.
3858 (register_traced_file): Declare.
3859 * nscd/connections.c (dbs): Remove reset_res and filename initializers.
3860 (inotify_fd): Export.
3861 (resolv_conf_descr): Remove.
3862 (nscd_init): Move inotify descriptor creation to main.
3863 Don't register files for notification here.
3864 (register_traced_file): New function.
3865 (invalidate_cache): Don't use reset_res to determine whether to call
3866 res_init, go through the list of registered files.
3867 (main_loop_poll): The inotify descriptors are now stored in the
3868 structures for the traced files.
3869 (main_loop_epoll): Likewise
3870 * nscd/nscd.c (main): Create inotify socket here. Pass extra argument
3871 to __nss_disable_nscd.
3872 * nscd/cache.c (prune_cache): There is no single inotify descriptor
3873 for a database anymore. Check the records for all the registered
3874 files instead.
3875 * nss/Makefile (libnss_files-routines): Add files-init.
3876 (libnss_db-routines): Add db-init.
3877 * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
3878 [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
3879 * nss/nss_db/db-init.c: New file.
3880 * nss/nss_files/files-init.c: New file.
3881 * nss/nsswitch.c (nss_load_library): New function. Broken out of
3882 __nss_lookup_function.
3883 (__nss_lookup_function): Call nss_load_library.
3884 (nss_load_all_libraries): New function.
3885 (__nss_disable_nscd): Take parameter with callback function for files
3886 to register. Set is_nscd. Load all the DSOs for the NSS modules
3887 used for the cached services.
3888 * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
3889 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
3890 options for features to all the files in nscd.
3891
3892 * nss/nsswitch.c (nss_parse_file): Add missing fclose.
3893
23bee3e8
RM
38942011-07-10 Roland McGrath <roland@hack.frob.com>
3895
3896 * csu/elf-init.c (__libc_csu_init): Comment typo.
3897
46a5b7f0
UD
38982011-07-09 Ulrich Drepper <drepper@gmail.com>
3899
3900 * po/pl.po: Update from translation team.
3901 * po/ja.po: Likewise.
3902 * po/ru.po: Likewise.
3903 * po/ko.po: Likewise.
3904 * po/fr.po: Likewise.
3905
d30cf5bb
RM
39062011-07-09 Roland McGrath <roland@hack.frob.com>
3907
113ddea4
RM
3908 * configure.in (.ctors/.dtors header and trailer check):
3909 Use an empirical test on a built program.
3910 * configure: Regenerated.
3911
574920b4
RM
3912 * configure.in (-z relro check): Use an empirical test on a built DSO.
3913 Detect, but do not require, on ia64.
3914 * configure: Regenerated.
3915
d30cf5bb
RM
3916 * configure.in (READELF): Find it with AC_CHECK_TOOL.
3917 Update tests that use readelf to use $READELF instead.
3918 * configure: Regenerated.
3919
8538fdb3
UD
39202011-07-08 Ulrich Drepper <drepper@gmail.com>
3921
3922 * malloc/hooks.c (memalign_check): Avoid using checked_request2size
3923 if the result is not used.
3924
04d08991
AJ
39252011-07-05 Andreas Jaeger <aj@suse.de>
3926
3927 [BZ#9696]
3928 * stdlib/tst-strtod.c: Add testcase.
3929
de283087
AD
39302011-07-07 Ulrich Drepper <drepper@gmail.com>
3931
4e5f31c8 3932 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
46a5b7f0 3933 (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
4e5f31c8
UD
3934 The latter has a higher limit. Take additional parameter to pass to
3935 the new function.
3936 (__pathconf): Pass file to __statfs_link_max.
3937 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
3938 __statfs_link_max.
3939 * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
3940 __statfs_link_max.
3941
de283087
AD
3942 [BZ #12868]
3943 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
3944 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
3945 Handle Lustre.
3946 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
3947 (__statfs_filesize_max): Likewise.
3948 Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
3949
c75fa153
AJ
39502011-07-05 Andreas Jaeger <aj@suse.de>
3951
3952 * resolv/res_comp.c (dn_skipname): Remove unused variable.
3953
1a544854
UD
39542011-07-06 Marek Polacek <mpolacek@redhat.com>
3955
3956 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
3957 `status' variable.
3958 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
3959 Likewise.
3960
6f0eec67
UD
39612011-07-04 H.J. Lu <hongjiu.lu@intel.com>
3962
3963 * Makefile (strop-tests): Add strncat.
3964 * string/test-strncat.c: New file.
3965
aae30307
UD
39662011-06-30 Marek Polacek <mpolacek@redhat.com>
3967
3968 * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
3969
c0cfb5eb
UD
39702011-06-21 Andreas Jaeger <aj@suse.de>
3971
3972 * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
3973 Copy rule from iconvdata/Makefile.
3974
01636b21
UD
39752011-07-06 Ulrich Drepper <drepper@gmail.com>
3976
3977 [BZ #12922]
3978 * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
3979 but no long options are defined, just return 'W'.
3980
9895c8bc
UD
39812011-06-22 Marek Polacek <mpolacek@redhat.com>
3982
3983 [BZ #9696]
3984 * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
3985
5d4cf042
UD
39862011-07-06 Ulrich Drepper <drepper@gmail.com>
3987
3988 * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
3989 netgroups to read.
960e5535 3990 (innetgr): Likewise.
5d4cf042 3991
751eb97e
RM
39922011-07-05 Roland McGrath <roland@hack.frob.com>
3993
3994 * config.make.in (install_root): Default to $(DESTDIR).
3995
f15f1e45
UD
39962011-07-05 Ulrich Drepper <drepper@gmail.com>
3997
3998 * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
3999
4e34ac6a
RM
40002011-07-02 Roland McGrath <roland@hack.frob.com>
4001
5e9b6af4
RM
4002 * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
4003
84f9ea0f
RM
4004 * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
4005 containing directory rather than embedding absolute directory names.
4006
ea5ee9f7
RM
4007 * scripts/check-local-headers.sh: Rewritten using awk.
4008 Match by word, not by line. Print error messages for matches.
4009 * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
4010
1b74661a
RM
4011 * Makerules [shlib-lds-flags empty]:
4012 ($(common-objpfx)libc_pic.opts): New target.
4013 ($(common-objpfx)libc_pic.os.clean): New target.
4014 ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
4015
4016 * config.make.in (OBJCOPY): New variable.
4017 * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
4018 * configure: Regenerated.
4019
f781ef40
RM
4020 * config.make.in (use-default-link): New variable.
4021 * configure.in (use_default_link): Grok --with-default-link to set it.
4022 * configure: Regenerated.
4023 * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
4024 (shlib-lds, shlib-lds-flags): Define to empty.
4025
2d4fa81e
RM
4026 * Makerules (shlib-lds): New variable.
4027 (shlib-lds-flags): New variable.
4028 (build-shlib, build-moduile, build-module-asneeded): Use it.
4029 ($(common-objpfx)libc.so): Use $(shlib-lds).
4030 ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
4031 * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
4032
31fffa6b
RM
4033 * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
4034 DT_FLAGS/DT_FLAGS_1 with zero flags.
4035
4e34ac6a
RM
4036 * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
4037 linker script munging.
4038
fcfc776b
UD
40392011-07-02 Ulrich Drepper <drepper@gmail.com>
4040
4041 * crypt/sha512.h (struct sha512_ctx): Add union to access total also
4042 as 128-bit value.
4043 * crypt/sha512.c (sha512_process_block): Perform total addition using
4044 128-bit if possible.
4045 (__sha512_finish_ctx): Likewise.
4046 * crypt/sha256.h (struct sha256_ctx): Add union to access total also
4047 as 64-bit value.
4048 * crypt/sha256.c (SWAP64): Define.
4049 (sha256_process_block): Perform total addition using 64-bit if
4050 possible.
4051 (__sha256_finish_ctx): Likewise.
4052
99231d9a
UD
40532011-07-01 Ulrich Drepper <drepper@gmail.com>
4054
4055 * nscd/pwdcache.c (cache_addpw): Cleanup. Add branch prediction.
4056 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4057 * nscd/hstcache.c (cache_addhst): Likewise.
4058 * nscd/grpcache.c (cache_addgr): Likewise.
4059 * nscd/aicache.c (addhstaiX): Likewise
4060 * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
4061
445b4a53
TK
40622011-07-01 Thorsten Kukuk <kukuk@suse.de>
4063
4064 * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
4065 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4066 * nscd/hstcache.c (cache_addhst): Likewise.
4067 * nscd/grpcache.c (cache_addgr): Likewise.
4068 * nscd/aicache.c (addhstaiX): Likewise
4069
6d4d8e8e
AS
40702011-07-01 Andreas Schwab <schwab@redhat.com>
4071
4072 * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
4073 domain only when needed.
4074
89f654c5
AS
40752011-06-30 Andreas Schwab <schwab@redhat.com>
4076
4077 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
4078 is always restored.
4079
cf3b23ff
UD
40802011-06-29 Ulrich Drepper <drepper@gmail.com>
4081
4082 * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
4083 are re-adding the entry.
4084 * nscd/servicescache.c (cache_addserv): Likewise.
4085
751626f9
AJ
40862011-06-30 Aurelien Jarno <aurelien@aurel32.net>
4087
4088 * sysdeps/generic/dl-irel.h: fix protection against multiple
4089 inclusions.
4090 * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
4091
9113ea1f
UD
40922011-06-28 Ulrich Drepper <drepper@gmail.com>
4093
5c0b8d90
UD
4094 [BZ #12935]
4095 * malloc/memusage.sh: Fix quoting in message.
4096 * debug/xtrace.sh: Likewise.
4097
9113ea1f
UD
4098 * configure.in: Remove support for --experimental-malloc option, make
4099 it the default.
4100 * config.make.in: Likewise.
4101 * malloc/Makefile: Likewise.
4102
a4172181
AS
41032011-06-27 Andreas Schwab <schwab@redhat.com>
4104
4105 * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
4106 two-byte characters.
4107
78a7eee7
RM
41082011-06-27 Roland McGrath <roland@hack.frob.com>
4109
62bede13
RM
4110 * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
4111 AC_CACHE_CHECK invocation.
4112 * configure: Regenerated.
4113
78a7eee7
RM
4114 * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
4115
5ce33a62
UD
41162011-06-27 Ulrich Drepper <drepper@gmail.com>
4117
034807a9
UD
4118 [BZ #12350]
4119 * nscd/aicache.c (addhstaiX): Restore only RES_USE_INET6
4120 bit from old_res_options.
4121
4902da17
UD
4122 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
4123
5ce33a62
UD
4124 * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
4125 value type for setfct.
4126
c2344f56
L
41272011-06-23 H.J. Lu <hongjiu.lu@intel.com>
4128
4129 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
4130 __gettimeofday instead of gettimeofday.
4131
68468076
UD
41322011-06-26 Ulrich Drepper <drepper@gmail.com>
4133
4134 * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
4135
acb0d739
L
41362011-06-24 H.J. Lu <hongjiu.lu@intel.com>
4137
4138 * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
4139
4140 * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
4141 info.
4142
8912479f
L
41432011-06-22 H.J. Lu <hongjiu.lu@intel.com>
4144
4145 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4146 strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
4147 strcpy-sse2-unaligned strncpy-sse2-unaligned
4148 stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
4149 * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
4150 * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
4151 * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
4152 * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
4153 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
4154 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
4155 * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
4156 * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
4157 * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
4158 (STRCPY): Support SSE2 and SSSE3 versions.
4159
d5495a11
UD
41602011-06-24 Ulrich Drepper <drepper@gmail.com>
4161
4162 [BZ #12874]
4163 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
4164 * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
4165 kernels which artificially limit size of requests.
4166
0b1cbaae
L
41672011-06-22 H.J. Lu <hongjiu.lu@intel.com>
4168
4169 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
4170 strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
4171 strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
4172 * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
4173 * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
4174 * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
4175 * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
4176 * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
4177 * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
4178 * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
4179 * sysdeps/i386/i686/multiarch/strcpy.S: New file.
4180 * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
4181 * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
4182 * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
4183 * sysdeps/i386/i686/multiarch/strncpy.S: New file.
4184 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4185 Enable unaligned load optimization for Intel Core i3, i5 and i7
4186 processors.
4187 * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
4188 Define.
4189 (index_Fast_Unaligned_Load): Define.
4190 (HAS_FAST_UNALIGNED_LOAD): Define.
4191
07f494a0
MP
41922011-06-23 Marek Polacek <mpolacek@redhat.com>
4193
4194 * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
4195
fa3fc0fe
UD
41962011-06-22 Ulrich Drepper <drepper@gmail.com>
4197
4198 [BZ #12907]
4199 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
4200 until it is clear that the information is realy needed.
4201 Patch mostly by David Hanisch <david.hanisch@nsn.com>.
4202
e12df166
AS
42032011-06-22 Andreas Schwab <schwab@redhat.com>
4204
4205 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
4206
852eb34d
UD
42072011-06-22 Ulrich Drepper <drepper@gmail.com>
4208
84e2a551
UD
4209 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
4210 /sys/devices/system/cpu/online if it is usable.
4211
852eb34d
UD
4212 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
4213 reading the information from the /proc filesystem to once a second.
4214
6e502e19
UD
42152011-06-21 Andreas Jaeger <aj@suse.de>
4216
4217 * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
4218 NULL after inclusion of kernel headers.
4219
75d39ff2
UD
42202011-06-21 Ulrich Drepper <drepper@gmail.com>
4221
51f9aa6a
UD
4222 * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
4223 calls to internal_setent.
4224
c0244a9d
UD
4225 [BZ #12885]
4226 * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
4227 addresses using gethostbyname4_r ignore IPv4 addresses.
4228
c5e3c2ae
UD
4229 * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
4230 branch using gethostbyname2 is only for AF_INET. Optimize accordingly.
4231
75d39ff2
UD
4232 * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
4233
42675c6f
DM
42342011-06-20 David S. Miller <davem@davemloft.net>
4235
4236 * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
4237 inclusions.
4238 * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
4239
4240 * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
4241 (elf_irel): Use it.
4242 * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
4243 * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
4244 * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
4245 * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
4246 * sysdeps/x86_64/dl-irel.h: Likewise.
4247
4248 * elf/dl-runtime.c: Use elf_ifunc_invoke.
4249 * elf/dl-sym.c: Likewise.
4250
57912a71
UD
42512011-06-15 Ulrich Drepper <drepper@gmail.com>
4252
4253 * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch. We
4254 need to dereference resplen2.
4255
ee22793d
AS
42562011-06-14 Andreas Schwab <schwab@redhat.com>
4257
4258 * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
4259
a9e836b0
UD
42602011-06-15 Ulrich Drepper <drepper@gmail.com>
4261
77fb9117
UD
4262 * Makeconfig: Define vardbdir and inst_vardbdir.
4263 * nss/Makefile: Add rules to install db-Makefile.
4264
40c1b22c
UD
4265 * nss/nss_db/db-XXX.c: Cleanup.
4266
9f2da732
UD
4267 * nss/Makefile (libnss_db-dbs): Add db-initgroups.
4268 * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
4269 GLIBC_PRIVATE.
4270 * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
4271 * nss/makedb.c: Implement -g option to specify that value strings
4272 are generated and should not be added to table iterated over for
4273 get*ent calls.
4274 * nss/nss_db/db-initgroups.c: New file.
4275
82e9a1f7
UD
4276 * nss/getent.c: Add support for initgroups lookups through getgrouplist
4277 interface.
4278
c41af17e
UD
4279 * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
4280 (internal_getgrouplist): Adjust to name change.
4281 Update use_initgroups_entry if this is not the first call.
4282 * nss/databases.def: Add initgroups entry.
4283
a9e836b0
UD
4284 * nss/makedb.c (compute_tables): Check result of multiple hash table
4285 sizes to minimize maximum chain length.
4286
2666d441
UD
42872011-06-14 Ulrich Drepper <drepper@gmail.com>
4288
4289 * Versions.def: Add entry for libnss_db.
4290 * shlib-versions: Likewise.
4291 * nss/Makefile: Add rules to build libnss_db.
4292 * nss/Versions: Add libnss_db information. Organize libnss_files
4293 entries better.
4294 * nss/db-Makefile: Add gshadow support. Change rules for the new
4295 makedb progra. Some minor improvements to generate smaller files.
4296 * nss/nss_db/nss_db.h: Move NSS database header data structures to
4297 here from...
4298 * nss/makedb.c: ...here.
4299 Improve database format to be smaller and require less memory at
4300 runtime.
4301 * nss/nss_db/db-XXX.x: Adjust for new database format. Don't use
4302 db anymore.
4303 * nss/nss_db/db-netgrp.c: Likewise.
4304 * nss/nss_db/db-open.c: Likewise.
4305 * nss/nss_files/flies-XXX.x: Adjust comments.
4306 * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
4307 * nss/nss_files/files-grp.c: Likewise.
4308 * nss/nss_files/files-hosts.c: Likewise.
4309 * nss/nss_files/files-network.c: Likewise.
4310 * nss/nss_files/files-proto.c: Likewise.
4311 * nss/nss_files/files-pwd.c: Likewise.
4312 * nss/nss_files/files-rpc.c: Likewise.
4313 * nss/nss_files/files-service.c: Likewise.
4314 * nss/nss_files/files-sgrp.c: Likewise.
4315 * nss/nss_files/files-spwd.c: Likewise.
4316 * nss/nss_db/db-alias.c: Removed.
4317 * nss/nss_db/dummy-db.h: Removed.
4318
9ee76b5a
UD
43192011-06-02 Ulrich Drepper <drepper@gmail.com>
4320
4321 * nss/makedb.c: Rewritten to not use database library.
4322 * nss/Makefile: Update to build new makedb program.
4323
c71ca1f8
AJ
43242011-06-14 Andreas Jaeger <aj@suse.de>
4325
4326 * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
4327 memset declaration.
4328
3154bfb8
UD
43292011-06-10 Andreas Schwab <schwab@redhat.com>
4330
4331 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
4332 tmpbuf.
4333
b350afab
RM
43342011-06-10 Roland McGrath <roland@hack.frob.com>
4335
decd4e50
RM
4336 * Makerules (shlib.lds): Fail if the linker script comes out empty.
4337 * elf/Makefile ($(objpfx)ld.so): Likewise.
4338
5615eaf2
RM
4339 * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
4340 Don't list ld.so twice in dependencies.
4341
4342 * posix/bug-regex31.c: Include <stdlib.h>.
4343
4344 * nscd/hstcache.c (cache_addhst): Remove unused variable.
4345
4346 * nis/nss_compat/compat-spwd.c
4347 (getspent_next_nss_netgr): Remove unused variable.
4348 * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
4349
4350 * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
4351 nonmembers" output to use the right array.
4352
4353 * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
4354
4355 * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
4356
4357 * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
4358 * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
4359 * catgets/gencat.c (read_input_file): Likewise.
4360 * locale/programs/locarchive.c (enlarge_archive): Likewise.
4361
4362 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
4363 variable definition inside #if's controlling its use.
4364
4365 * inet/getnetgrent_r.c (innetgr): Remove unused variable.
4366
4367 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
4368
4369 * misc/syslog.c (__vsyslog_chk): Remove unused variable.
4370
4371 * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
4372 unreachable code.
4373
4374 * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
4375
b68e08db
RM
4376 * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
4377 * configure: Regenerated.
4378
b350afab
RM
4379 * Makerules: Revert last change.
4380 * elf/Makefile: Likewise.
4381
28368601
RM
43822011-06-09 Roland McGrath <roland@hack.frob.com>
4383
4384 * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
4385 * elf/Makefile ($(objpfx)librtld.os): Likewise.
4386 (reloc-link): Likewise.
4387
11988f8f
UD
43882011-06-09 Ulrich Drepper <drepper@gmail.com>
4389
4390 * elf/Makefile: Add rules to build pldd.
4391 * elf/pldd.c: New file.
4392 * elf/pldd-xx.c: New file.
4393
e80fab37
UD
43942011-06-07 Ulrich Drepper <drepper@gmail.com>
4395
4396 * version.h: Update for 2.15 development version.
4397
9b849836
DM
43982011-06-07 David S. Miller <davem@davemloft.net>
4399
4400 * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
4401 ifuncs.
4402 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
4403 elf_machine_lazy_rel): Likewise.
4404 * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
4405 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
4406 elf_machine_lazy_rel): Likewise.
4407 * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
4408 dl_hwcap via passed in argument.
4409 * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
4410 Likewise.
4411
5a31b283
AK
44122011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4413
4414 * stdlib/longlong.h: Update from GCC. Fix smul_ppmm for S/390.
4415
069e52f8
RM
44162011-06-06 Roland McGrath <roland@hack.frob.com>
4417
4418 [BZ #12849]
4419 * manual/fdl-1.1.texi: New file, verbatim from:
4420 http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
4421 * manual/lgpl-2.1.texi: New file, verbatim from:
4422 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
4423 * manual/Makefile (licenses): New variable, list those new file names.
4424 (texis): Use it.
4425 (chapters.% top-menu.%): Include $(licenses) with $(appendices).
4426
4427 * manual/fdl.texi: File removed.
4428 * manual/lesser.texi: File removed.
4429 * manual/libc.texinfo (Copying, Documentation License):
4430 Use new @include file names, put @appendix directive before @include.
4431
f16846a5
JJ
44322011-06-04 Jakub Jelinek <jakub@redhat.com>
4433
4434 [BZ #12841]
4435 * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
4436 (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
4437 (mq_open): Add __NTH.
4438
3d29045b
L
44392011-06-02 H.J. Lu <hongjiu.lu@intel.com>
4440
4441 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4442 Assume Intel Core i3/i5/i7 processor if AVX is available.
4443
8c297311
UD
44442011-05-31 Ulrich Drepper <drepper@gmail.com>
4445
4446 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
4447 typo.
4448
c8fc0c91
UD
44492011-05-31 Andreas Schwab <schwab@redhat.com>
4450
4451 * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
4452 memory. Use alloca_account. Fix memory leak when retrying.
4453
5b27a807
UD
44542011-05-31 Ulrich Drepper <drepper@gmail.com>
4455
356f8bc6
UD
4456 * version.h (RELEASE): Bump for 2.14 release.
4457 * include/features.h (__GLIBC_MINOR__): Bump to 14.
4458
5b27a807
UD
4459 * config.make.in (RANLIB): Remove entry.
4460
01f16ab0
UD
44612011-05-30 Ulrich Drepper <drepper@gmail.com>
4462
41fce8bd
UD
4463 * po/Makefile (po-sed-cmd): Add ksh to extensions.
4464 (libc.pot): Work around missing support for .ksh extension in xgettext.
4465
4769ae77
UD
4466 [BZ #12684]
4467 * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
4468 if both request failed.
4469 (send_dg): In case of server errors clear resplen or *resplen2.
4470
6b1e7d19
UD
4471 [BZ #12454]
4472 * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
4473 when there are multiple maps.
4474 * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
4475 (_dl_fini): Remove test here.
4476
01f16ab0
UD
4477 * elf/rtld.c (dl_main): Don't allow the loader to load itself.
4478
b1ebd700
UD
44792011-05-29 Ulrich Drepper <drepper@gmail.com>
4480
7ae22829
UD
4481 [BZ #12350]
4482 * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
4483 bit from old_res_options.
4484 (gaih_inet): Likewise.
4485
553149f6 4486 [BZ #11099]
18a84741 4487 * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
873ca504
UD
4488 as signed.
4489
652ffab1
UD
4490 * resolv/res_init.c (res_setoptions): Make the code more compact.
4491
16985fd0
UD
4492 [BZ #11558]
4493 * resolv/res_init.c (res_setoptions): Recognize use-vc option and
4494 set RES_USEVC.
4495
0464f746
UD
4496 [BZ #11634]
4497 * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
4498
7d17596c
UD
4499 * malloc/malloc.h: Mark malloc hook variables as deprecated.
4500
cf6bbbd7
UD
4501 [BZ #11781]
4502 * malloc/malloc.h: Declare malloc hook variables as volatile.
4503
13f1ab36
UD
4504 * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
4505 in last patch.
4506
b1ebd700
UD
4507 [BZ #11799]
4508 * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
4997db74 4509 raise in the comment.
80e2212d
UD
4510 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4511 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4512 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
b1ebd700 4513
ce67228d
UD
45142011-05-28 Ulrich Drepper <drepper@gmail.com>
4515
8887a920
UD
4516 [BZ #12811]
4517 * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
4518 grow the buffers more if it already has to be sufficient.
4519 (build_wcs_upper_buffer): Likewise.
4520 * posix/regexec.c (check_matching): Likewise.
4521 (clean_state_log_if_needed): Likewise.
4522 (extend_buffers): Don't enlarge buffers beyond size of the input
4523 buffer.
4524 Patches mostly by Emil Wojak <emil@wojak.eu>.
4525 * posix/bug-regex32.c: New file.
4526 * posix/Makefile (tests): Add bug-regex32.
4527
4f031072
UD
4528 * locale/findlocale.c (_nl_find_locale): Return right away if
4529 _nl_explode_name failed.
4530 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
4531
d0478f0c
UD
4532 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
4533
de81b246
UD
4534 * debug/xtrace.sh: Unify messages.
4535 * malloc/memusage.sh: Likewise.
4536
c738465a
UD
4537 [BZ #12813]
4538 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
4539 time symbol from vDSO. Substitute with vsyscall if not available.
4540 * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
4541 __vdso_time.
4542
f1f929d7
UD
4543 * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
4544 * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
4545 * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
4546 Add sendmmsg and internal_sendmmsg.
4547 * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
4548 * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
4549 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
4550
ce67228d
UD
4551 * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
4552 * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
4553 * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
4554
e57420c6
UD
45552011-05-27 Ulrich Drepper <drepper@gmail.com>
4556
a8509ca5
UD
4557 [BZ #12813]
4558 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
4559 Retrieve getcpu symbol from vDSO. Substitute with vsyscall if not
4560 available.
4561 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
4562 __vdso_getcpu.
4563
e57420c6
UD
4564 [BZ #12814]
4565 * iconvdata/Makefile (tests): Add bug-iconv9.
4566 * iconvdata/bug-iconv9.c: New file.
4567
4d07db15
AS
45682011-05-27 Andreas Schwab <schwab@redhat.com>
4569
4570 [BZ #12814]
4571 * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
4572
ea486f69
JJ
45732011-05-25 Jakub Jelinek <jakub@redhat.com>
4574
4575 * sysdeps/unix/sysv/linux/x86_64/sys/user.h
4576 (struct user_regs_struct): Change intcs field back to cs.
4577
6f038433
UD
45782011-05-25 Ulrich Drepper <drepper@gmail.com>
4579
4580 * po/ja.po: Update from translation team.
4581
67f86a25
UD
45822011-05-23 Ulrich Drepper <drepper@gmail.com>
4583
4584 [BZ #12795]
4585 * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
4586 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
4587
def7fbd6
AS
45882011-05-20 Andreas Schwab <schwab@redhat.com>
4589
4590 * stdlib/longlong.h: Update from GCC.
4591
f50ef8f1
AS
45922011-05-23 Andreas Schwab <schwab@redhat.com>
4593
4594 * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
4595 parameter name.
4596 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
4597 Add parameter name.
4598 (__sysconf): Pass it down.
4599
de7ce8f1
UD
46002011-05-22 Ulrich Drepper <drepper@gmail.com>
4601
f2962a71
UD
4602 [BZ #12671]
4603 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
4604 some situations.
4605 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
4606 * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
4607 add in in __libc_use_alloca calls. Adjust callers.
4608 (glob): Use malloc in some situations.
4609
de7ce8f1
UD
4610 * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
4611 and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
4612 pltexit.
4613
aec84f53
UD
46142011-05-21 Ulrich Drepper <drepper@gmail.com>
4615
05bb4a68
UD
4616 * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
4617 and CLOCK_BOOTTIME_ALARM.
4618
7ea72f99
UD
4619 [BZ #12782]
4620 * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
4621 is returned.
4622
7e4afad5
UD
4623 * string/_strerror.c (__strerror_r): Print negative errors as signed
4624 numbers.
4625
8e211fec
UD
4626 [BZ #12777]
4627 * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
4628 (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
4629 * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
4630
f7d82dc9
UD
4631 * configure.in: Fix typo in redirection and correct removal of test
4632 files in two cases.
4633
cc9e536d
UD
4634 [BZ #12788]
4635 * locale/setlocale.c (new_composite_name): Fix test to check for
4636 identical name of all categories.
4637
aec84f53
UD
4638 [BZ #12792]
4639 * libio/filedoalloc.c (local_isatty): New function.
4640 (_IO_file_doallocate): Use local_isatty.
4641 * stdio-common/perror.c (perror): In case a new stream is used
4642 forward the stream error.
4643 * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
4644 error flag.
4645
78e64fdc
RT
46462011-05-20 Ulrich Drepper <drepper@gmail.com>
4647
34a9094f
UD
4648 [BZ #11869]
4649 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
4650 alloca.
4651 * include/alloca.h (extend_alloca_account): Define.
4652
78e64fdc
RT
4653 [BZ #11857]
4654 * posix/regex.h: Fix comments with documentation of user-accessible
4655 fields after compilation and describe correct free'ing of pattern
4656 after re_compile_pattern.
4657 Patch by Reuben Thomas <rrt@sc3d.org>.
4658
457bddfc
RA
46592011-05-18 Ryan S. Arnold <rsa@us.ibm.com>
4660
4661 * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
4662 and -mno-altivec to prevent the compiler from using Altivec and/or
4663 VSX instructions when the corresponding registers are not available.
4664
a4527b51
AS
46652011-05-19 Andreas Schwab <schwab@redhat.com>
4666
4667 * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
4668
ed690b2f
UD
46692011-05-19 Ulrich Drepper <drepper@gmail.com>
4670
4671 * libio/freopen.c (freopen): Use __dup2, not dup2.
4672 * libio/freopen64.c (freopen64): Likewise.
4673
8db73634
L
46742011-05-17 H.J. Lu <hongjiu.lu@intel.com>
4675
4676 [BZ #12775]
4677 * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
4678 * math/Makefile (tests): Add test-powl.
4679 (CFLAGS-test-powl.c): Define.
4680 * math/test-powl.c: New file.
4681
0a197a9d
L
46822011-05-16 H.J. Lu <hongjiu.lu@intel.com>
4683
4684 * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
4685
ee30c380
UD
46862011-05-17 Ulrich Drepper <drepper@gmail.com>
4687
4688 [BZ #11837]
4689 * iconvdata/gb18030.c: Update to GB18020-2005.
4690
6ce75379
UD
46912011-05-16 Ulrich Drepper <drepper@gmail.com>
4692
a4b89fd8
AR
4693 * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
4694 RE_SYNTAX_POSIX_AWK): Update to match recent development.
4695 Patch by Aharon Robbins <arnold@skeeve.com>.
4696
ea389b12
UD
4697 [BZ #11892]
4698 * stdlib/putenv.c (putenv): Don't always create copy of the variable
4699 on the stack.
4700
68a3f91f
UD
4701 [BZ #11895]
4702 * misc/pselect.c (__pselect): Handle timeout value errors hidden
4703 through underflows.
4704
15cc7dd1
UD
4705 [BZ #12766]
4706 * misc/error.c (error_at_line): Ensure file_name and old_file_name
4707 point to strings before performing equality test for error_one_per_line
4708 mode.
4709
f3799213
UD
4710 [BZ #11697]
4711 * login/programs/pt_chown.c (do_pt_chown): Always call chown.
4712
d79a9c94
UD
4713 [BZ #11820]
4714 * sysdeps/unix/sysv/linux/x86_64/sys/user.h
4715 (struct user_fpregs_struct): Avoid __uint*_t types.
4716
56e5eb46
UD
4717 [BZ #6420]
4718 * malloc/mtrace.c (tr_where): Add additional parameter to point to
4719 symbol info. Use it instead of calling _dl_addr locally.
4720 (lock_and_info): New function.
4721 (tr_freehook): Call lock_and_info and pass symbol info as additional
4722 parameter to tr_where.
4723 (tr_mallochook): Likewise.
4724 (tr_reallochook): Likewise.
4725 (tr_memalignhook): Likewise.
4726
6ce75379
UD
4727 * malloc/mtrace.c: Remove support for USE_MTRACE_FILE. It is not
4728 used and couldn't be at all thread-safe.
4729
f8a3b5bf
UD
47302011-05-15 Ulrich Drepper <drepper@gmail.com>
4731
94b7cc37
UD
4732 * libio/freopen.c (freopen): Don't close old file descriptor
4733 before the new one is opened. Instead dup the new file descriptor
4734 to the old one after the new stream is created.
4735 * libio/freopen64.c (freopen64): Likewise.
4736 * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
4737 * libio/fileops.c (_IO_new_file_close_it): Handle new
4738 _IO_FLAGS2_NOCLOSE flag.
4739 (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
4740 If _IO_file_open didn't set FD_CLOEXEC do it after the call.
4741 * libio/oldfileops.c (_IO_old_file_close_it): Handle new
4742 _IO_FLAGS2_NOCLOSE flag.
4743 * include/unistd.h: Add hidden_proto for dup3.
4744 Define __have_dup3.
4745 * io/dup3.c: Define hidden symbol.
4746 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
4747
bd25564e
UD
4748 [BZ #7101]
4749 * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
4750 when an incomplete long option is used.
4751 * posix/tst-getopt_long1.c: New file.
4752 * posix/Makefile (tests): Add tst-getopt_long1.
4753
c84cfef4
UD
4754 [BZ #10138]
4755 * scripts/config.guess: Update from autoconf-2.68.
4756 * scripts/config.sub: Likewise.
4757
3b85df27
UD
4758 [BZ #10157]
4759 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
4760 tests into ...
4761 (has_cpuclock): ...this. New function.
4762 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
4763 macro here based on has_cpuclock code.
4764
15a856b1
UD
4765 [BZ #10149]
4766 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
4767 First byte (not low byte) is now always NUL.
4768 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
4769
05f399e6
UD
4770 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
4771 Use non-cancelable interfaces.
4772
10a52685 4773 [BZ #9809]
94ecc67d
UD
4774 * locale/iso-639.def: Add entry for Sorani.
4775
f8a3b5bf
UD
4776 [BZ #11901]
4777 * include/stdlib.h: Move include protection to the right place.
4778 Define abort_msg_s. Declare __abort_msg with it.
4779 * stdlib/abort.c (__abort_msg): Adjust type.
4780 * assert/assert.c (__assert_fail_base): New function. Majority
4781 of code from __assert_fail. Allocate memory for __abort_msg with
4782 mmap.
4783 (__assert_fail): Now call __assert_fail_base.
4784 * assert/assert-perr.c: Remove bulk of implementation. Use
4785 __assert_fail_base.
4786 * include/assert.hL Declare __assert_fail_base.
4787 * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
4788 mmap.
4789 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
4790
1af4e298
UD
47912011-05-14 Ulrich Drepper <drepper@gmail.com>
4792
f8a3b5bf 4793 [BZ #11952]
d26dfc60
MG
4794 [BZ #12453]
4795 * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
4796 until all modules are registered in the DTV.
4797 * elf/Makefile: Add rules to build and run tst-tls19.
4798 * elf/tst-tls19.c: New file.
4799 * elf/tst-tls19mod1.c: New file.
4800 * elf/tst-tls19mod2.c: New file.
4801 * elf/tst-tls19mod3.c: New file.
4802 Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
4803
2fc54d6f
UD
4804 [BZ #12083]
4805 * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
4806 correctly.
4807
98d76b46
UD
4808 [BZ #12601]
4809 * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
4810 two-byte sequence errors.
4811 * iconvdata/Makefile (tests): Add bug-iconv8.
4812 * iconvdata/bug-iconv8.c: New file.
4813
da3c19ef
UD
4814 [BZ #12626]
4815 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
4816 buf2 definition.
4817
ca408c15
UD
4818 * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
4819
d6f67f7d
UD
4820 [BZ #12432]
4821 * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
4822 (dummy_getcfa): New function.
4823 (init): Get _Unwind_GetCFA address, use dummy if not found.
4824 (backtrace_helper): In recursion check, also check whether CFA changes.
4825 (__backtrace): Completely initialize arg.
4826
1af4e298 4827 * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
0656e90e
UD
4828 storing incomplete byte sequence in state object. Avoid testing for
4829 guaranteed too small input if we know there is enough data available.
1af4e298 4830
da62f81b
AS
48312011-05-11 Andreas Schwab <schwab@redhat.com>
4832
4833 * Makeconfig (+link-pie): Indent.
4834 * Rules (binaries-pie): Define if $(have-fpie) and
4835 $(build-shared).
4836 (binaries-shared): Also filter out $(binaries-pie).
4837 ($(addprefix $(objpfx),$(binaries-pie))): New rule.
4838 * nscd/Makefile (others-pie): Add nscd.
4839 (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
4840 ($(objpfx)nscd): Remove command override.
4841 * login/Makefile (others-pie): Add pt_chown.
4842 ($(objpfx)pt_chown): Remove command override.
4843 * elf/Makefile: Add PIE tests to tests and tests-pie variables and
4844 remove command overrides.
4845
fcabc0f8
UD
48462011-05-13 Ulrich Drepper <drepper@gmail.com>
4847
20030ae6
UD
4848 * libio/tst_putwc.c: Fix error messages.
4849
fcabc0f8
UD
4850 [BZ #12724]
4851 * libio/fileops.c (_IO_new_file_close_it): Always flush when
4852 currently writing and seek to current position when not.
4853 * libio/Makefile (tests): Add bug-fclose1.
4854 * libio/bug-fclose1.c: New file.
4855
320a5dc0
PB
48562011-05-12 Ulrich Drepper <drepper@gmail.com>
4857
4858 [BZ #12511]
4859 * elf/dl-lookup.c (enter): Don't test for copy relocation here and
4860 don't set DF_1_NODELETE here.
4861 (do_lookup_x): When entering new entry test for copy relocation
4862 and if necessary set DF_1_NODELETE flag.
4863 * elf/tst-unique4.cc: New file.
4864 * elf/tst-unique4.h: New file.
4865 * elf/tst-unique4lib.cc: New file.
4866 * elf/Makefile: Add rules to build and run tst-unique4.
4867 Patch by Piotr Bury <pbury@goahead.com>.
4868
22836f52
UD
48692011-05-11 Ulrich Drepper <drepper@gmail.com>
4870
f574184a
UD
4871 [BZ #12052]
4872 * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
4873
e1fb097f
UD
4874 [BZ #12625]
4875 * misc/mntent_r.c (addmntent): Flush the stream after the output
4876
22836f52
UD
4877 [BZ #12393]
4878 * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
4879 (is_trusted_path_normalize): Skip initial colon. Append slash
4880 to empty buffer. Duplicate is_trusted_path code but allow
4881 constructed patch to be prefix.
4882 (is_dst): Allow $ORIGIN followed by /.
4883 (_dl_dst_substitute): Correct clearing of check_for_trusted.
4884 Correct testing of result of is_trusted_path_normalize
4885 (decompose_rpath): Fix warning.
4886
7b3b0b2a
UD
48872011-05-10 Ulrich Drepper <drepper@gmail.com>
4888
4889 [BZ #11257]
4890 * grp/initgroups.c (internal_getgrouplist): When we found the service
4891 list through the initgroups entry in nsswitch.conf do not always
4892 continue on a successful lookup. Don't always use the
eac80ce2 4893 __nss_group_database value if it is set.
7b3b0b2a
UD
4894 * nss/nsswitch.conf (initgroups): Change action for successful db
4895 lookup to continue for compatibility.
4896
2a81eaa5
UD
48972011-05-09 Ulrich Drepper <drepper@gmail.com>
4898
be97a69e
UD
4899 [BZ #11532]
4900 * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
4901 and CP774 modules.
4902 * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
4903 and CP774 modules.
4904 * iconvdata/tst-tables.sh: Likewise.
4905 * iconvdata/cp770.c: New file.
4906 * iconvdata/cp771.c: New file.
4907 * iconvdata/cp772.c: New file.
4908 * iconvdata/cp773.c: New file.
4909 * iconvdata/cp774.c: New file.
4910 * iconvdata/testdata/CP770: New file.
4911 * iconvdata/testdata/CP770..UTF8: New file.
4912 * iconvdata/testdata/CP771: New file.
4913 * iconvdata/testdata/CP771..UTF8: New file.
4914 * iconvdata/testdata/CP772: New file.
4915 * iconvdata/testdata/CP772..UTF8: New file.
4916 * iconvdata/testdata/CP773: New file.
4917 * iconvdata/testdata/CP773..UTF8: New file.
4918 * iconvdata/testdata/CP774: New file.
4919 * iconvdata/testdata/CP774..UTF8: New file.
4920
4921 * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
4922 END CHARMAP line.
4923 * iconvdata/gen-8bit-gap.sh: Likewise.
4924 * iconvdata/gen-8bit.sh: Likewise.
4925
c1e9e399
UD
4926 * locale/iso-639.def: Add ary entry.
4927
24c55fb3 4928 [BZ #11258]
96b4b1b0
UD
4929 * locale/C-translit.h.in: Add U20A1 transliteration.
4930
bdc2f971
KB
4931 [BZ #12178]
4932 * locale/iso-639.def: Add wae entry.
4933 Patch by Kevin Bortis <bortis@translate-wae.ch>.
4934
2952b117
UD
4935 [BZ #12545]
4936 * locale/programs/localedef.c (construct_output_path): Use ssize_t
4937 for n.
4938
2a81eaa5
UD
4939 [BZ #12711]
4940 * locale/C-translit.h.in: Add entry for U20B9.
4941 Patch by pravin.d.s@gmail.com.
4942
28377d1b
UD
49432011-05-08 Ulrich Drepper <drepper@gmail.com>
4944
7fb90fb8
UD
4945 [BZ #12713]
4946 * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
4947 ENAMETOOLONG use generic getcwd.
6fb2dde3
UD
4948 * sysdeps/posix/getcwd.c: Add support to use openat. Make usable
4949 in rtld. Use *stat64.
7fb90fb8 4950 * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
6fb2dde3 4951 Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
7fb90fb8 4952 * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
6fb2dde3
UD
4953 * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
4954 * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
4955 * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
4956 * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
4957 __fstatat64 macros.
7fb90fb8
UD
4958 * include/dirent.h: Add libc_hidden_proto for rewinddir.
4959 * dirent/rewinddir.c: Add libc_hidden_def.
4960 * sysdeps/mach/hurd/rewinddir.c: Likewise.
6fb2dde3 4961 * sysdeps/unix/rewinddir.c: Likewise. Don't do locking outside libc.
7fb90fb8 4962
28377d1b
UD
4963 * include/dirent.h (__alloc_dir): Add flags parameter.
4964 * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
4965 * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
4966 __alloc_dir.
4967 (__alloc_dir): Take new parameter. Don't call fcntl for invocations
4968 from fdopendir if O_CLOEXEC is already set.
4969
66bdbaa4
AM
49702011-03-15 Alan Modra <amodra@gmail.com>
4971
4972 * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
4973 l_tls_firstbyte_offset non-zero. Save padding offset in
4974 l_tls_firstbyte_offset for later use.
4975 * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
4976 freeing static tls block.
4977
95721191
JN
49782011-03-05 Jonathan Nieder <jrnieder@gmail.com>
4979
4980 * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
4981 where #ifdef was intended. The intent is to prevent ARG_MAX from
4982 being defined by the kernel headers.
4983
f87dfb1f
UD
49842011-05-07 Ulrich Drepper <drepper@gmail.com>
4985
4986 [BZ #12734]
4987 * resolv/resolv.h: Define RES_NOTLDQUERY.
4988 * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
4989 no-tld-query and set RES_NOTLDQUERY.
4990 * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
4991 * resolv/res_query.c (__libc_res_nsearch): Backport changes from
4992 modern BIND to search name as TLD unless forbidden.
4993
47c3cd7a
UD
49942011-05-07 Petr Baudis <pasky@suse.cz>
4995 Ulrich Drepper <drepper@gmail.com>
4996
4997 [BZ #12393]
4998 * elf/dl-load.c (fillin_rpath): Move trusted path check...
4999 (is_trusted_path): ...to here.
c1e9ea35 5000 (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
47c3cd7a 5001 (_dl_dst_substitute): Verify expanded $ORIGIN path elements
c1e9ea35 5002 using is_trusted_path_normalize() in setuid scripts.
47c3cd7a 5003
8a35c912
PP
50042011-05-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5005
5006 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
5007 __BEGIN/__END_DECLS.
5008
acd41f47
UD
50092011-05-06 Ulrich Drepper <drepper@gmail.com>
5010
5011 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
5012 NSS_STATUS_NOTFOUND if no record was found.
5013
597df647
AS
50142011-05-05 Andreas Schwab <schwab@redhat.com>
5015
5016 * sunrpc/Makefile (headers): Add rpc/netdb.h.
5017 (headers-not-in-tirpc): Remove rpc/netdb.h
5018 * resolv/netdb.h: Revert last change.
5019
b9af1301
PP
50202011-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
5021
5022 * Makeconfig (link-libc-static): Use --{start,end}-group to handle
5023 circular dependency between libgcc.a and libc.a.
5024
4e34d5f5
AS
50252011-05-05 Andreas Schwab <schwab@redhat.com>
5026
5027 * resolv/netdb.h: Don't include <rpc/netdb.h>.
5028 * nis/Makefile: Don't install rpcsvc/*.
5029 * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
5030 instead of <rpc/types.h>.
5031 (MAXHOSTNAMELEN): Define.
5032
00ee369c
AS
50332011-05-03 Andreas Schwab <schwab@redhat.com>
5034
5035 * elf/ldconfig.c (add_dir): Don't crash on empty path.
5036
0b592a30
MB
50372011-04-28 Maciej Babinski <mbabinski@google.com>
5038
5039 [BZ #12714]
5040 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
5041 gethostbyname4_r when IPv6 results are possible.
5042
6e04cbbe
UD
50432011-05-02 Ulrich Drepper <drepper@gmail.com>
5044
5045 [BZ #12723]
5046 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
5047 _PC_PIPE_BUF handling.
5048
e4ecafe0
BH
50492011-04-30 Bruno Haible <bruno@clisp.org>
5050
5051 [BZ #12717]
5052 * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
5053 * resolv/netdb.h (getnameinfo): Change type of flags parameter
5054 to 'int'.
5055 * inet/getnameinfo.c (getnameinfo): Likewise.
5056
125ee683
UD
50572011-04-29 Ulrich Drepper <drepper@gmail.com>
5058
5059 * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
5060 to groups setting in database lookup.
5061 * nss/nsswitch.conf: Add initgroups entry.
5062
b722481a
EB
50632011-04-22 Ulrich Drepper <drepper@gmail.com>
5064
5065 [BZ #12685]
5066 * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
5067 mode string.
5068 Patch by Eric Blake <eblake@redhat.com>.
5069
4df46dbd
L
50702011-04-20 H.J. Lu <hongjiu.lu@intel.com>
5071
5072 * sunrpc/Makefile (need-export-routines): Add svc_run.
5073 (routines): Remove svc_run.
5074 ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
5075 * sunrpc/clnt_perr.c (clnt_perrno): Export.
5076 * sunrpc/svc_run.c (svc_run): Likewise.
5077 * sunrpc/svc_udp.c (svcudp_create): Likewise.
5078
e84142d2
UD
50792011-04-21 Ulrich Drepper <drepper@gmail.com>
5080
5081 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
5082 problem in reallocation in last patch.
5083
877175d8
UD
50842011-04-20 Ulrich Drepper <drepper@gmail.com>
5085
5086 * sunrpc/Makefile: Move inclusion of Rules.
5087
ab8eed78
UD
50882011-04-19 Ulrich Drepper <drepper@gmail.com>
5089
5090 * nss/nss_files/files-initgroups.c: New file.
5091 * nss/Makefile (libnss_files-routines): Add files-initgroups.
5092 * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
5093 _nss_files_initgroups_dyn.
5094
e3d8f584
RS
50952011-03-31 Richard Sandiford <richard.sandiford@linaro.org>
5096
5097 * elf/elf.h (R_ARM_IRELATIVE): Define.
5098
af190f45
UD
50992011-04-19 Ulrich Drepper <drepper@gmail.com>
5100
5101 * po/ru.po: Update from translation team.
5102
53cf59ef
UD
51032011-04-17 Ulrich Drepper <drepper@gmail.com>
5104
5105 * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
5106 dependencies.
5107
4c559bcd
MF
51082011-02-06 Mike Frysinger <vapier@gentoo.org>
5109
5110 [BZ #12653]
5111 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
5112 MEMCPY_CHK with USE_AS_BCOPY ifdef check.
5113 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
5114 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
5115 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
5116
4420675c
AS
51172011-03-28 Andreas Schwab <schwab@linux-m68k.org>
5118
5119 * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
5120 differing bytes.
5121 * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
5122 * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
5123 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
5124
75ea32ab
UD
51252011-04-17 Ulrich Drepper <drepper@gmail.com>
5126
5127 [BZ #12420]
5128 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
5129 storing it.
5130 * stdlib/bug-getcontext.c: New file.
5131 * stdlib/Makefile: Add rules to build and run bug-getcontext.
5132
27390476
AK
51332011-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5134
5135 * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
5136 instructions into .machine "z9-109".
5137 * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
5138 * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
5139
10442705
AK
51402011-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5141
5142 * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
5143 between environment variables and auxiliary vector.
5144
7b57bfe5
UD
51452011-04-16 Ulrich Drepper <drepper@gmail.com>
5146
5147 * Makefile: Add rules to build linkobj/libc.so.
5148 * include/libc-symbols.h: Define libc_hidden_nolink.
5149 * include/rpc/auth.h: Mark functions which are to be hidden.
5150 * include/rpc/auth_des.h: Likewise.
5151 * include/rpc/auth_unix.h: Likewise.
5152 * include/rpc/clnt.h: Likewise.
5153 * include/rpc/des_crypt.h: Likewise.
5154 * include/rpc/key_prot.h: Likewise.
5155 * include/rpc/pmap_clnt.h: Likewise.
5156 * include/rpc/pmap_prot.h: Likewise.
5157 * include/rpc/pmap_rmt.h: Likewise.
5158 * include/rpc/rpc_msg.h: Likewise.
5159 * include/rpc/svc.h: Likewise.
5160 * include/rpc/svc_auth.h: Likewise.
5161 * include/rpc/xdr.h: Likewise.
5162 * nis/Makefile: Link all DSOs against linkobj/libc.so.
5163 * nss/Makefile: Likewise.
5164 * sunrpc/Makefile: Don't install headers. Build library with normal
5165 entry points. Don't build rpcinfo. Link RPC tests appropriately.
5166 * sunrpc/auth_des.c: Hide exported symbols by default, export some
5167 for the compat linking library. Remove use of INTDEF/INTUSE.
5168 * sunrpc/auth_none.c: Likewise.
5169 * sunrpc/auth_unix.c: Likewise.
5170 * sunrpc/authdes_prot.c: Likewise.
5171 * sunrpc/authuxprot.c: Likewise.
5172 * sunrpc/clnt_gen.c: Likewise.
5173 * sunrpc/clnt_perr.c: Likewise.
5174 * sunrpc/clnt_raw.c: Likewise.
5175 * sunrpc/clnt_simp.c: Likewise.
5176 * sunrpc/clnt_tcp.c: Likewise.
5177 * sunrpc/clnt_udp.c: Likewise.
5178 * sunrpc/clnt_unix.c: Likewise.
5179 * sunrpc/des_crypt.c: Likewise.
5180 * sunrpc/des_soft.c: Likewise.
5181 * sunrpc/get_myaddr.c: Likewise.
5182 * sunrpc/key_call.c: Likewise.
5183 * sunrpc/key_prot.c: Likewise.
5184 * sunrpc/netname.c: Likewise.
5185 * sunrpc/pm_getmaps.c: Likewise.
5186 * sunrpc/pm_getport.c: Likewise.
5187 * sunrpc/pmap_clnt.c: Likewise.
5188 * sunrpc/pmap_prot.c: Likewise.
5189 * sunrpc/pmap_prot2.c: Likewise.
5190 * sunrpc/pmap_rmt.c: Likewise.
5191 * sunrpc/publickey.c: Likewise.
5192 * sunrpc/rpc_cmsg.c: Likewise.
5193 * sunrpc/rpc_common.c: Likewise.
5194 * sunrpc/rpc_dtable.c: Likewise.
5195 * sunrpc/rpc_prot.c: Likewise.
5196 * sunrpc/rpc_thread.c: Likewise.
5197 * sunrpc/rtime.c: Likewise.
5198 * sunrpc/svc.c: Likewise.
5199 * sunrpc/svc_auth.c: Likewise.
5200 * sunrpc/svc_authux.c: Likewise.
5201 * sunrpc/svc_raw.c: Likewise.
5202 * sunrpc/svc_run.c: Likewise.
5203 * sunrpc/svc_simple.c: Likewise.
5204 * sunrpc/svc_tcp.c: Likewise.
5205 * sunrpc/svc_udp.c: Likewise.
5206 * sunrpc/svc_unix.c: Likewise.
5207 * sunrpc/svcauth_des.c: Likewise.
5208 * sunrpc/xcrypt.c: Likewise.
5209 * sunrpc/xdr.c: Likewise.
5210 * sunrpc/xdr_array.c: Likewise.
5211 * sunrpc/xdr_float.c: Likewise.
5212 * sunrpc/xdr_intXX_t.c: Likewise.
5213 * sunrpc/xdr_mem.c: Likewise.
5214 * sunrpc/xdr_rec.c: Likewise.
5215 * sunrpc/xdr_ref.c: Likewise.
5216 * sunrpc/xdr_sizeof.c: Likewise.
5217 * sunrpc/xdr_stdio.c: Likewise.
5218
e6c61494
UD
52192011-04-10 Ulrich Drepper <drepper@gmail.com>
5220
5221 [BZ #12650]
5222 * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
5223 * sysdeps/ia64/dl-tls.h: Likewise.
5224 * sysdeps/powerpc/dl-tls.h: Likewise.
5225 * sysdeps/s390/dl-tls.h: Likewise.
5226 * sysdeps/sh/dl-tls.h: Likewise.
5227 * sysdeps/sparc/dl-tls.h: Likewise.
5228 * sysdeps/x86_64/dl-tls.h: Likewise.
5229 * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
5230
34fe483e
AS
52312011-03-14 Andreas Schwab <schwab@redhat.com>
5232
5233 * elf/dl-load.c (_dl_dst_substitute): When skipping the first
5234 rpath element also skip the following colon.
5235 (expand_dynamic_string_token): Add is_path parameter and pass
5236 down to DL_DST_REQUIRED and _dl_dst_substitute.
5237 (decompose_rpath): Call expand_dynamic_string_token with
5238 non-zero is_path. Ignore empty rpaths.
5239 (_dl_map_object_from_fd): Call expand_dynamic_string_token
5240 with zero is_path.
5241
f12a32e6
AS
52422011-04-08 Andreas Schwab <schwab@linux-m68k.org>
5243
5244 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
5245 Make cancelable.
5246
38a7d692
UD
52472011-04-09 Ulrich Drepper <drepper@gmail.com>
5248
5249 [BZ #12655]
5250 * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
5251 Patch by Filipe David Manana <fdmanana@apache.org>.
5252
e451d22b
AS
52532011-04-07 Andreas Schwab <schwab@redhat.com>
5254
5255 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
5256 Maintain aligned stack.
5257 (CHECK_RSP): Remove unused macro.
5258
dedc7c7b
UD
52592011-04-03 Ulrich Drepper <drepper@gmail.com>
5260
5261 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
5262 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5263
94521213
UD
52642011-04-02 Ulrich Drepper <drepper@gmail.com>
5265
5266 * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
5267
8cb700c0 5268 * include/features.h: Mention __USE_XOPEN2K8 in comment.
81489b2e 5269
0354e355
L
52702011-03-26 H.J. Lu <hongjiu.lu@intel.com>
5271
5272 [BZ #12518]
5273 * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
5274 * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
5275 * sysdeps/x86_64/memmove.c: New file.
5276 * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
5277 (memcpy): Renamed to ...
5278 (__new_memcpy): This.
5279 (memcpy): Provide GLIBC_2_14 memcpy.
5280 * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
5281 (memcpy): Provide GLIBC_2_2_5 memcpy.
5282
8593482f
UD
52832011-04-01 Ulrich Drepper <drepper@gmail.com>
5284
5285 [BZ #12631]
5286 * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
5287
81a5726b
AS
52882011-03-30 Andreas Schwab <schwab@redhat.com>
5289
5290 * misc/syncfs.c: New file.
5291 * misc/Makefile (routines): Add syncfs.
5292 * posix/unistd.h: Declare syncfs.
5293 * sysdeps/unix/syscalls.list: Add syncfs.
5294
00e5419f
AS
52952011-04-01 Andreas Schwab <schwab@redhat.com>
5296
5297 * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
5298 open_by_handle_at.
5299 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
5300 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5301 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5302 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5303 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5304 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5305 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5306
748876bf
UD
53072011-04-01 Ulrich Drepper <drepper@gmail.com>
5308
658e451d
UD
5309 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
5310 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5311 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5312 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5313 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5314 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5315 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5316
748876bf
UD
5317 * io/Makefile: Compile fallocate.c, fallocate64.c, and
5318 sync_file_range.c with -fexceptions.
5319 * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
5320 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
5321 * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
5322 * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
5323 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
5324 * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
5325 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
3167dad0
UD
5326 sync_file_range as cancellation point
5327 * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file. This is
5328 now a wrapper around __call_sync_file_range with cancellation handling.
5329 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
5330 * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this. Change
5331 function name to __call_sync_file_range.
5332 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
5333 Add call_sync_file_range.
748876bf 5334
6e63d5e1
AS
53352011-04-01 Andreas Schwab <schwab@redhat.com>
5336
5337 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
748876bf 5338 bits/timex.h.
6e63d5e1 5339
46998f74
UD
53402011-04-01 Ulrich Drepper <drepper@gmail.com>
5341
4c1423ed
UD
5342 * iconv/iconv.h: Fix typo in comment.
5343 * io/fcntl.h: Likewise.
5344 * libio/stdio.h: Likewise.
5345 * posix/spawn.h: Likewise.
5346 * posix/unistd.h: Likewise.
5347 * stdlib/stdlib.h: Likewise.
5348 * time/time.h: Likewise.
5349 * wcsmbs/wchar.h: Likewise.
5350
158648c0
UD
5351 * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
5352 open_by_handle): Add.
5353 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
5354 and MAX_HANDLE_SZ. Declare name_to_handle_at and open_by_handle.
5355 Augment a few comments.
5356 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5357 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5358 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5359 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5360 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5361 * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
5362 open_by_handle.
5363
46998f74
UD
5364 * io/fcntl.h (AT_EMPTY_PATH): Define.
5365
83fe108b
UD
53662011-03-30 Ulrich Drepper <drepper@gmail.com>
5367
5368 * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
5369 * sysdeps/unix/sysv/linux/bits/time.h: New file.
5370 * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
5371 to...
5372 * sysdeps/unix/sysv/linux/bits/timex.h: ...here. New file.
034c4e15
UD
5373 * Versions.def: Add GLIBC_2.14.
5374 * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
5375 Export.
83fe108b 5376
bb242059
UD
53772011-03-22 Ulrich Drepper <drepper@gmail.com>
5378
5379 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
5380 round counter.
5381 * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
5382
c97a1282
L
53832011-03-20 H.J. Lu <hongjiu.lu@intel.com>
5384
5385 [BZ #12597]
5386 * string/test-strncmp.c (do_page_test): New function.
5387 (check2): Likewise.
5388 (test_main): Call check2.
5389 * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
5390
2a115601
UD
53912011-03-20 Ulrich Drepper <drepper@gmail.com>
5392
5393 [BZ #12587]
5394 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
5395 Handle cache information in CPU leaf 4.
5396 * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
5397
8126d904
UD
53982011-03-18 Ulrich Drepper <drepper@gmail.com>
5399
042c49c6 5400 [BZ #12583]
8126d904
UD
5401 * posix/fnmatch.c (fnmatch): Check size of pattern in wide
5402 character representation.
5403 Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
5404
ccfe366e
RA
54052011-03-16 Ryan S. Arnold <rsa@us.ibm.com>
5406
5407 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
5408 END(__isnan) to END(__isnanf) to match function entry point/label
5409 EALIGN(__isnanf,...).
5410
c6e13027
JJ
54112011-03-10 Jakub Jelinek <jakub@redhat.com>
5412
5413 * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
5414
33f85a3f
UD
54152011-03-10 Ulrich Drepper <drepper@gmail.com>
5416
028478fa
UD
5417 [BZ #12510]
5418 * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
5419 copy from the symbol referenced in the relocation to initialize the
5420 used variable.
5421 Patch by Piotr Bury <pbury@goahead.com>.
5422 * elf/Makefile: Add rules to build and tst-unique3.
5423 * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
5424 * elf/tst-unique3.cc: New file.
5425 * elf/tst-unique3.h: New file.
5426 * elf/tst-unique3lib.cc: New file.
5427 * elf/tst-unique3lib2.cc: New file.
5428
33f85a3f
UD
5429 * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
5430
03592fc7
MF
54312011-03-10 Mike Frysinger <vapier@gentoo.org>
5432
5433 * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
5434 $LDFLAGS and -nostdlib -nostartfiles to linking step. Change main
5435 to _start.
03592fc7 5436
6a5ee102
UD
54372011-03-06 Ulrich Drepper <drepper@gmail.com>
5438
5439 * elf/dl-load.c (_dl_map_object): If we are looking for the first
5440 to-be-loaded object along a path to loader is ld.so.
5441
7e4ba49c
HJ
54422011-03-02 Harsha Jagasia <harsha.jagasia@amd.com>
5443 Ulrich Drepper <drepper@gmail.com>
5444
5445 * sysdeps/x86_64/memset.S: After aligning destination, code
5446 branches to different locations depending on the value of
5447 misalignment, when multiarch is enabled. Fix this.
5448
54492011-03-02 Harsha Jagasia <harsha.jagasia@amd.com>
5450
5451 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
5452 Set _x86_64_preferred_memory_instruction for AMD processsors.
5453 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5454 Set bit_Prefer_SSE_for_memop for AMD processors.
5455
13a804de
UD
54562011-03-04 Ulrich Drepper <drepper@gmail.com>
5457
5458 * libio/fmemopen.c (fmemopen): Optimize a bit.
5459
9d25c392
AS
54602011-03-03 Andreas Schwab <schwab@redhat.com>
5461
5462 * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
5463
a5543c6a
RM
54642011-03-03 Roland McGrath <roland@redhat.com>
5465
5466 * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
5467
012d35f7
DM
54682011-02-28 Aurelien Jarno <aurelien@aurel32.net>
5469
7e4ba49c 5470 * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
012d35f7
DM
5471 __bzero_ultra1 instead of __memset_ultra1.
5472
4bff6e01
AS
54732011-02-23 Andreas Schwab <schwab@redhat.com>
5474 Ulrich Drepper <drepper@gmail.com>
5475
5476 [BZ #12509]
5477 * include/link.h (struct link_map): Add l_orig_initfini.
5478 * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
5479 returning unsuccessfully.
5480 * elf/dl-close.c (_dl_close_worker): If this is the last explicit
5481 close of a file loaded at startup, restore the original l_initfini
5482 list.
5483 * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
5484 list, store the pointer.
5485 * elf/Makefile ($(objpfx)noload-mem): New rule.
5486 (noload-ENV): Define.
5487 (tests): Add $(objpfx)noload-mem.
5488 * elf/noload.c: Include <memcheck.h>.
5489 (main): Call mtrace. Close all opened handles.
5490
f2092faf
AS
54912011-02-17 Andreas Schwab <schwab@redhat.com>
5492
5493 [BZ #12454]
5494 * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
5495 dependencies are missing.
5496
6c8a2e88
ST
54972011-02-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
5498
f2092faf 5499 Fix __if_freereq crash: Unlike the generic version which uses free,
6c8a2e88
ST
5500 Hurd needs munmap.
5501 * sysdeps/mach/hurd/ifreq.h: New file.
5502
84a42118
PB
55032011-01-27 Petr Baudis <pasky@suse.cz>
5504 Ulrich Drepper <drepper@gmail.com>
5505
071f805e 5506 [BZ 12445]#
84a42118
PB
5507 * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
5508 to extend_alloca().
5509 * stdio-common/bug23.c: New file.
5510 * stdio-common/Makefile (tests): Add bug23.
5511
e23fe25b
AS
55122010-09-28 Andreas Schwab <schwab@redhat.com>
5513 Ulrich Drepper <drepper@gmail.com>
5514
5515 [BZ #12489]
5516 * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
5517 before performing relro protection. At old place add assertion
5518 to make sure nothing changed.
5519
d3f02e10
NS
55202011-02-17 Nathan Sidwell <nathan@codesourcery.com>
5521 Glauber de Oliveira Costa <glommer@gmail.com>
5522
5523 * elf/elf.h: Add new ARM TLS relocs.
5524
d55fd7a5
RA
55252011-02-16 Ryan S. Arnold <rsa@us.ibm.com>
5526
5527 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
5528 (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
5529 cast from r3.
5530 * sysdeps/wordsize-64/Makefile: New file. Add tst-writev to
5531 'tests' variable.
5532 * sysdeps/wordsize-64/tst-writev.c: New file.
5533
2206397e
RA
55342011-02-15 Ryan S. Arnold <rsa@us.ibm.com>
5535
5536 * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
5537 -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
5538 insns in _dl_start to prevent a TOC reference before relocs are
5539 resolved.
5540
e9433893
UD
55412011-02-15 Ulrich Drepper <drepper@gmail.com>
5542
5543 [BZ #12469]
5544 * Makeconfig: Remove RANLIB definition.
5545 * Makerules: Don't use RANLIB.
5546 * aclocal.m4: Remove ranlib test.
5547 * configure.in: No need to check for ranlib.
5548 * elf/rtld-Rules: Don't use RANLIB.
5549
f75286c6
ST
55502011-02-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
5551
8e31c82d
ST
5552 * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
5553 protection macro.
5554 * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
5555 inclusion protection macro.
5556
f75286c6
ST
5557 * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
5558 SIGRTMIN and SIGRTMAX and print information in that case only when
5559 SIGRTMIN is defined.
5560
c1d0e639
JJ
55612011-02-11 Jakub Jelinek <jakub@redhat.com>
5562
5563 * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
5564 arginfo fn returning -1.
5565
5566 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
5567 and thousands string is zero terminated.
5568
edf9294e
AS
55692011-02-03 Andreas Schwab <schwab@redhat.com>
5570
5571 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
5572 sysdeps/unix/sysv/linux/bits/socket.h.
5573
2b7e92df
ST
55742011-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5575
edf9294e
AS
5576 * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
5577 (__CPU_COUNT): Remove old macros.
5578 (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
5579 (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
5580 (__CPU_ALLOC, __CPU_FREE): Add macros.
2b7e92df
ST
5581 (__sched_cpualloc, __sched_cpufree): Add declarations.
5582
a4c7ea7b
UD
55832011-02-05 Ulrich Drepper <drepper@gmail.com>
5584
5585 * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
5586 (struct datahead): Reuse 32 bits of the alignment for a TTL field.
5587 * nscd/aicache.c (addhstaiX): Return timeout of added value.
5588 (readdhstai): Return value of addhstaiX call.
5589 * nscd/grpcache.c (cache_addgr): Return timeout of added value.
5590 (addgrbyX): Return value returned by cache_addgr.
5591 (readdgrbyname): Return value returned by addgrbyX.
5592 (readdgrbygid): Likewise.
5593 * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
5594 (addpwbyX): Return value returned by cache_addpw.
5595 (readdpwbyname): Return value returned by addhstbyX.
5596 (readdpwbyuid): Likewise.
5597 * nscd/servicescache.c (cache_addserv): Return timeout of added value.
5598 (addservbyX): Return value returned by cache_addserv.
5599 (readdservbyname): Return value returned by addservbyX:
5600 (readdservbyport): Likewise.
5601 * nscd/hstcache.c (cache_addhst): Return timeout of added value.
5602 (addhstbyX): Return value returned by cache_addhst.
5603 (readdhstbyname): Return value returned by addhstbyX.
5604 (readdhstbyaddr): Likewise.
5605 (readdhstbynamev6): Likewise.
5606 (readdhstbyaddrv6): Likewise.
5607 * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
5608 (readdinitgroups): Return value returned by addinitgroupsX.
5609 * nscd/cache.c (readdfcts): Change return value of functions to time_t.
5610 (prune_cache): Keep track of timeout value of re-added entries.
5611 * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
5612 * nscd/nscd.h: Adjust prototypes of readd* functions.
5613
a0bf67cc
RM
56142011-02-04 Roland McGrath <roland@redhat.com>
5615
5616 * nis/nis_server.c (nis_servstate): Use the right name for 0.
5617 (nis_stats): Likewise.
5618 * nis/nis_modify.c (nis_modify): Likewise.
5619 * nis/nis_remove.c (nis_remove): Likewise.
5620 * nis/nis_add.c (nis_add): Likewise.
5621
5622 * elf/dl-object.c (_dl_new_object): Remove unused variable L.
5623
5624 * posix/fnmatch_loop.c: Add some consts.
5625
5626 * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
5627
435b95eb
L
56282011-02-02 H.J. Lu <hongjiu.lu@intel.com>
5629
5630 [BZ #12460]
5631 * config.make.in (config-cflags-novzeroupper): Define.
5632 * configure.in: Substitute libc_cv_cc_novzeroupper.
5633 * elf/Makefile (AVX-CFLAGS): Define.
5634 (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
5635 (CFLAGS-tst-auditmod4a.c): Likewise.
5636 (CFLAGS-tst-auditmod4b.c): Likewise.
5637 (CFLAGS-tst-auditmod6b.c): Likewise.
5638 (CFLAGS-tst-auditmod6c.c): Likewise.
5639 (CFLAGS-tst-auditmod7b.c): Likewise.
5640 * sysdeps/i386/configure.in: Check -mno-vzeroupper.
5641
8517b15e
UD
56422011-02-02 Ulrich Drepper <drepper@gmail.com>
5643
5644 * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
5645 function to the callback.
5646 Patch partly by Jiri Olsa <jolsa@redhat.com>.
5647
10a656fe
AS
56482011-02-02 Andreas Schwab <schwab@redhat.com>
5649
5650 * shadow/sgetspent.c: Check return value of __sgetspent_r instead
5651 of errno.
5652
968dad0a
UD
56532011-01-19 Ulrich Drepper <drepper@gmail.com>
5654
9f94d2ea 5655 [BZ #11724]
968dad0a
UD
5656 * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
5657 of constructors.
5658 * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
5659 of destructors.
5660 (_dl_fini): Don't call _dl_sort_fini if there is only one object.
5661
5662 [BZ #11724]
5663 * elf/Makefile: Add rules to build and run new test.
5664 * elf/tst-initorder.c: New file.
5665 * elf/tst-initorder.exp: New file.
5666 * elf/tst-initordera1.c: New file.
5667 * elf/tst-initordera2.c: New file.
5668 * elf/tst-initordera3.c: New file.
5669 * elf/tst-initordera4.c: New file.
5670 * elf/tst-initorderb1.c: New file.
5671 * elf/tst-initorderb2.c: New file.
5672 * elf/tst-order-a1.c: New file.
5673 * elf/tst-order-a2.c: New file.
5674 * elf/tst-order-a3.c: New file.
5675 * elf/tst-order-a4.c: New file.
5676 * elf/tst-order-b1.c: New file.
5677 * elf/tst-order-b2.c: New file.
5678 * elf/tst-order-main.c: New file.
5679 New test case by George Gensure <werkt0@gmail.com>.
5680
86e92359
UD
56812010-10-01 Andreas Schwab <schwab@redhat.com>
5682
5683 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
5684 decoding ACE if AI_CANONIDN.
5685
5d5732b0
UD
56862011-01-18 Ulrich Drepper <drepper@gmail.com>
5687
5688 * elf/Makefile: Build IFUNC tests unless multi-arch = no.
5689
a77e8cbc
UD
56902011-01-17 Ulrich Drepper <drepper@gmail.com>
5691
6392473f
UD
5692 * version.h (RELEASE): Bump for 2.13 release.
5693 * include/features.h: (__GLIBC_MINOR__): Bump to 13.
5694
620a0529
UD
5695 * io/fcntl.h: Define AT_NO_AUTOMOUNT.
5696
18ba70a5
UD
5697 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
5698 MADV_NOHUGEPAGE.
32465c3e
UD
5699 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
5700 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
5701 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
5702 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
5703 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
5704 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
5705
c0dafcf1
UD
5706 * posix/getconf.c: Update copyright year.
5707 * catgets/gencat.c: Likewise.
5708 * csu/version.c: Likewise.
5709 * debug/catchsegv.sh: Likewise.
5710 * debug/xtrace.sh: Likewise.
5711 * elf/ldconfig.c: Likewise.
5712 * elf/ldd.bash.in: Likewise.
5713 * elf/sprof.c (print_version): Likewise.
5714 * iconv/iconv_prog.c: Likewise.
5715 * iconv/iconvconfig.c: Likewise.
5716 * locale/programs/locale.c: Likewise.
5717 * locale/programs/localedef.c: Likewise.
5718 * malloc/memusage.sh: Likewise.
5719 * malloc/mtrace.pl: Likewise.
5720 * nscd/nscd.c (print_version): Likewise.
5721 * nss/getent.c: Likewise.
5722
a77e8cbc
UD
5723 * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
5724 PF_CAIF, and PF_ALG.
5725 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5726
77e8bddf
AS
57272011-01-16 Andreas Schwab <schwab@linux-m68k.org>
5728
1f20b93a
AS
5729 * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
5730 (modules-names): Use them.
5731 (ifunc-test-modules, ifunc-pie-tests): Define.
5732 (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
5733 tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
5734 (test-extras): Likewise.
5735 ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
5736 $(compile-command.c).
5737 ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
5738 (all-built-dso): Define.
5739 (check-textrel.out, check-execstack.out): Depend on it.
5740
77e8bddf
AS
5741 * configure.in: Don't override --enable-multi-arch.
5742
bc425b33
UD
57432011-01-15 Ulrich Drepper <drepper@gmail.com>
5744
5745 [BZ #6812]
5746 * nscd/hstcache.c (tryagain): Define.
5747 (cache_addhst): Return tryagain not notfound for temporary errors.
5748 (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
5749 failed.
5750
794c3ad3
UD
57512011-01-14 Ulrich Drepper <drepper@gmail.com>
5752
70181fdd
UD
5753 [BZ #10563]
5754 * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
5755 to make the syscall.
5756 * sysdeps/unix/sysv/linux/setgroups.c: New file.
5757
794c3ad3
UD
5758 [BZ #12378]
5759 * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
5760 and fall back to matching as normal character if the string ends before
5761 the matching ']' is found. This is what POSIX requires.
5762 * posix/testfnm.c: Adjust test result.
5763 * posix/globtest.sh: Adjust test result. Add new test.
5764 * posix/tst-fnmatch.input: Likewise.
5765 * posix/tst-fnmatch2.c: Add new test.
5766
68dc9497
AS
57672010-12-28 Andreas Schwab <schwab@linux-m68k.org>
5768
5769 * elf/Makefile (check-execstack): Revert last change. Depend on
5770 check-execstack.h.
5771 (check-execstack.h): New target.
5772 (generated): Add check-execstack.h.
5773 * elf/check-execstack.c: Include "check-execstack.h".
5774 (main): Revert last change.
5775 (handle_file): Return zero if GNU_STACK is absent and
5776 DEFAULT_STACK_PERMS doesn't include PF_X.
5777
451f001b
UD
57782011-01-13 Ulrich Drepper <drepper@gmail.com>
5779
cfa28e56
UD
5780 * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
5781 in child fails because the descriptor is already closed.
8cf8ce17
UD
5782 * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
5783 * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
5784 * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
cfa28e56 5785
1086d70d
UD
5786 [BZ #12397]
5787 * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
5788 syscall.
5789
451f001b
UD
5790 [BZ #10484]
5791 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
5792 temporary buffer used to handle multi lookups locally.
a85b5cb4 5793 * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
451f001b 5794
08769175
UD
57952011-01-12 Ulrich Drepper <drepper@gmail.com>
5796
5797 * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
5798 loader is ld.so.
5799
5e49c52e
UD
58002011-01-10 Paul Pluzhnikov <ppluzhnikov@google.com>
5801
5802 * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
5803 alignment for SSE2.
5804
60522a5f
UD
58052011-01-12 Ulrich Drepper <drepper@gmail.com>
5806
5807 [BZ #12394]
5808 * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
5809 characters. When rounding increased number of integer digits recompute
5810 number of groups.
5811 * stdio-common/tst-grouping.c: New file.
5812 * stdio-common/Makefile: Add rules to build and run tst-grouping.
5813
f257bbd7
UD
58142011-01-09 Ulrich Drepper <drepper@gmail.com>
5815
5816 * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
5817 __FD_CLR, and __FS_ISSET. gcc generates better code on its own.
5818
5819 * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
5820 void.
5821 * bits/select.h: Likewise.
5822
fa9c15cb
UD
58232011-01-08 Ulrich Drepper <drepper@gmail.com>
5824
5825 * po/ja.po: Update from translation team.
5826
16c2895f
DM
58272011-01-04 David S. Miller <davem@sunset.davemloft.net>
5828
5829 [BZ #11155]
5830 * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
5831 implementation just like for lxstat, fxstatat, et al.
5832
2543fef2
JM
58332010-12-27 Jim Meyering <meyering@redhat.com>
5834
5835 [BZ #12348]
5836 * posix/regexec.c (build_trtable): Return failure indication upon
5837 calloc failure. Otherwise, re_search_internal could infloop on OOM.
5838
98727dbe
UD
58392010-12-25 Ulrich Drepper <drepper@gmail.com>
5840
5bd6dc5c
UD
5841 [BZ #12201]
5842 * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
5843 * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
5844 * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
5845 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
5846
97983464
UD
5847 [BZ #12207]
5848 * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
5849
98727dbe
UD
5850 [BZ #12204]
5851 * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
5852 * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
5853
4a531bb0
L
58542010-12-15 H.J. Lu <hongjiu.lu@intel.com>
5855
5856 * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
5857 * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
5858 script has SORT_BY_INIT_PRIORITY.
5859 * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
5860 NO_CTORS_DTORS_SECTIONS is defined.
5861 * elf/soinit.c: Likewise.
5862 * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
5863 NO_CTORS_DTORS_SECTIONS is defined.
5864 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
5865 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5866 * sysdeps/sh/init-first.c: Likewise.
5867 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
5868
07eb4b71
UD
58692010-12-24 Ulrich Drepper <drepper@gmail.com>
5870
5871 * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
5872 always use the slow path.
5873
30950a5f
RA
58742010-12-15 Ryan S. Arnold <rsa@us.ibm.com>
5875
5876 * elf/Makefile: (check-execstack): Replace $(native-compile) with a
5877 similar rule which adds the sysdep directories to the header search in
5878 order to pick up the correct platform stackinfo.h.
5879 * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
5880 perform test if it is, otherwise return successfully without testing.
5881 * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
5882 DEFAULT_STACK_PERMS define in stackinfo.h.
5883 * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
5884 defined in stackinfo.h.
5885 * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
5886 DEFAULT_STACK_PERMS defined in stackinfo.h.
5887 * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
5888 * sysdeps/ia64/stackinfo.h: Likewise.
5889 * sysdeps/s390/stackinfo.h: Likewise.
5890 * sysdeps/sh/stackinfo.h: Likewise.
5891 * sysdeps/sparc/stackinfo.h: Likewise.
5892 * sysdeps/x86_64/stackinfo.h: Likewise.
5893 * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
5894 PF_X for powerpc64. Retain PF_X for powerpc32.
5895
db753e2c
UD
58962010-12-19 Ulrich Drepper <drepper@gmail.com>
5897
14b697f7
UD
5898 * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
5899 accurately.
db753e2c
UD
5900 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
5901 GETDENTS_64BIT_ALIGNED.
5902
28300719
UD
59032010-12-14 Ulrich Drepper <dreper@gmail.com>
5904
14b697f7 5905 * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
28300719 5906
4f197237
AS
59072010-12-10 Andreas Schwab <schwab@redhat.com>
5908
dbb0472f
AS
5909 * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
5910 _GNU_SOURCE.
5911
4f197237
AS
5912 * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
5913 * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
5914 Remove __restrict.
5915 (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
5916 (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
5917
fb88ac72
UD
59182010-12-09 Ulrich Drepper <drepper@gmail.com>
5919
5920 [BZ #11655]
5921 * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
5922 are initialized.
5923
42acbb92
JJ
59242010-12-09 Jakub Jelinek <jakub@redhat.com>
5925
5926 * string/bits/string3.h (memmove, bcopy): Remove __restrict.
5927
c038d98d
UD
59282010-12-03 Ulrich Drepper <drepper@gmail.com>
5929
5930 * po/it.po: Update from translation team.
5931
3a4a2499
L
59322010-12-01 H.J. Lu <hongjiu.lu@intel.com>
5933
5934 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
5935 unused codes.
5936
1e24cf6e
UD
59372010-11-30 Ulrich Drepper <drepper@gmail.com>
5938
5939 * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
5940
a7690819
AS
59412010-11-24 Andreas Schwab <schwab@redhat.com>
5942
5943 * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
5944 specially.
5945 (gaih_getanswer_slice): Likewise.
5946
3bf8d1b1
JJ
59472010-10-20 Jakub Jelinek <jakub@redhat.com>
5948
5949 * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
5950
6db52fbb
PB
59512010-05-31 Petr Baudis <pasky@suse.cz>
5952
5953 [BZ #11149]
5954 * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
5955 silently even in the chroot mode.
5956
eaca7569
UD
59572010-11-22 Ulrich Drepper <drepper@gmail.com>
5958
5959 * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
5960 last patch a bit. Pretty printing
5961
3056dcdb
UD
59622010-05-31 Petr Baudis <pasky@suse.cz>
5963
5964 [BZ #10085]
5965 * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
5966 initialization of skip_initgroups_dyn.
5967
cf7c9078
UD
59682010-11-19 Ulrich Drepper <drepper@gmail.com>
5969
5970 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
5971 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
5972
a1fb5e3e
UD
59732010-11-16 Ulrich Drepper <drepper@gmail.com>
5974
5975 * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
5976
3540d66b
AS
59772010-11-11 Andreas Schwab <schwab@redhat.com>
5978
5979 * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
5980 * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
5981 (tst-fnmatch-ENV): Set MALLOC_TRACE.
5982 ($(objpfx)tst-fnmatch-mem): New rule.
5983 (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
5984 * posix/tst-fnmatch.c (main): Call mtrace.
5985
13b69574
L
59862010-11-11 H.J. Lu <hongjiu.lu@intel.com>
5987
5988 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5989 Support Intel processor model 6 and model 0x2c.
5990
da93d214
LM
59912010-11-10 Luis Machado <luisgpm@br.ibm.com>
5992
5993 * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
5994 signed comparison.
5995
8ca52c6e
L
59962010-11-09 H.J. Lu <hongjiu.lu@intel.com>
5997
5998 [BZ #12205]
5999 * string/test-strncasecmp.c (check_result): New function.
6000 (do_one_test): Use it.
6001 (check1): New function.
6002 (test_main): Use it.
6003 * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
6004 Support strcasecmp and strncasecmp.
6005
69da074d
UD
60062010-11-08 Ulrich Drepper <drepper@gmail.com>
6007
6008 [BZ #12194]
6009 * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
6010 * sysdeps/x86_64/bits/byteswap.h: Likewise.
6011
ff02d528
L
60122010-11-07 H.J. Lu <hongjiu.lu@intel.com>
6013
6014 * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
6015 IFUNC support.
6016 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
6017 memset-x86-64.
6018 * sysdeps/x86_64/multiarch/bzero.S: New file.
6019 * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
6020 * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
6021 * sysdeps/x86_64/multiarch/memset.S: New file.
6022 * sysdeps/x86_64/multiarch/memset_chk.S: New file.
6023 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6024 Set bit_Prefer_SSE_for_memop for Intel processors.
6025 * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
6026 Define.
6027 (index_Prefer_SSE_for_memop): Define.
6028 (HAS_PREFER_SSE_FOR_MEMOP): Define.
6029
344d0b54
LM
60302010-11-04 Luis Machado <luisgpm@br.ibm.com>
6031
6032 * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
6033 * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
6034
c0dde15b
UD
60352010-11-03 H.J. Lu <hongjiu.lu@intel.com>
6036
6037 [BZ #12191]
6038 * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
6039 (__x86_64_raw_data_cache_size_half): Likewise.
6040 (__x86_64_raw_shared_cache_size): Likewise.
6041 (__x86_64_raw_shared_cache_size_half): Likewise.
6042
6043 * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
6044 (__x86_64_raw_data_cache_size_half): Likewise.
6045 (__x86_64_raw_shared_cache_size): Likewise.
6046 (__x86_64_raw_shared_cache_size_half): Likewise.
6047 (init_cacheinfo): Set __x86_64_raw_data_cache_size,
6048 __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
6049 and __x86_64_raw_shared_cache_size_half. Round
6050 __x86_64_data_cache_size_half, __x86_64_data_cache_size
6051 __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
6052 to multiple of 256 bytes.
6053
0e516e0e
MS
60542010-11-03 Ulrich Drepper <drepper@gmail.com>
6055
6056 [BZ #12167]
6057 * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
6058 of inacessible symlinks. Verify result of symlink before returning it.
6059 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
6060 Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
6061
0e012e87
ER
60622010-10-28 Erich Ritz <erichritz@gmail.com>
6063
6064 * math/math.h (isinf): Fix typo in comment.
6065
de0ff7bc
UD
60662010-11-01 Ulrich Drepper <drepper@gmail.com>
6067
6068 * po/da.po: Update from translation team.
6069
fa41c84d
UD
60702010-10-26 Ulrich Drepper <drepper@gmail.com>
6071
6072 * elf/rtld.c (dl_main): Move assertion after the point where rtld map
6073 is added to the list.
6074
f0967738
AK
60752010-10-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6076 Ulrich Drepper <drepper@gmail.com>
6077
6078 * elf/dl-object.c (_dl_new_object): Don't append the new object to
6079 the global list here. Move code to...
6080 (_dl_add_to_namespace_list): ...here. New function.
6081 * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
6082 * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
6083 * elf/dl-load.c (lose): Don't remove the element from the list.
6084 (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
6085 (_dl_map_object): Likewise.
6086
60872010-10-25 Ulrich Drepper <drepper@gmail.com>
dbf3a069
RL
6088
6089 [BZ #12159]
6090 * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
6091 into all bytes of SSE register.
6092 Patch by Richard Li <richardpku@gmail.com>.
6093
f0967738 60942010-10-24 Ulrich Drepper <drepper@gmail.com>
fdc0f374
UD
6095
6096 [BZ #12140]
6097 * malloc/malloc.c (_int_free): Fill correct number of bytes when
6098 perturbing.
6099
d0b9e94f
MB
61002010-10-20 Michael B. Brutman <brutman@us.ibm.com>
6101
6102 * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
6103 * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
6104 * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
6105 * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
6106 * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
6107 submachine.
6108 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
6109
8e9f92e9
AS
61102010-10-22 Andreas Schwab <schwab@redhat.com>
6111
6112 * include/dlfcn.h (__RTLD_SECURE): Define.
6113 * elf/dl-load.c (_dl_map_object): Remove preloaded parameter. Use
6114 mode & __RTLD_SECURE instead.
6115 (open_path): Rename preloaded parameter to secure.
6116 * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
6117 * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
6118 * elf/dl-deps.c (openaux): Likewise.
6119 * elf/rtld.c (struct map_args): Remove is_preloaded.
6120 (map_doit): Don't use it.
6121 (dl_main): Likewise.
6122 (do_preload): Use __RTLD_SECURE instead of is_preloaded.
6123 (dlmopen_doit): Add __RTLD_SECURE to mode bits.
6124
bc96fbda
AS
61252010-09-09 Andreas Schwab <schwab@redhat.com>
6126
6127 * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
6128 (sysd-rules-targets): Remove duplicates.
6129 * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
6130 rtld-%.$o dependency.
6131
22cd1c9b
AS
61322010-10-18 Andreas Schwab <schwab@redhat.com>
6133
6134 * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
6135 _dl_map_object do it.
6136
18edac48
UD
61372010-10-19 Ulrich Drepper <drepper@gmail.com>
6138
6139 * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
6140 fast fma builtins, define the macros in the C99 standard.
6141 (FP_FAST_FMAF): Likewise.
6142 (FP_FAST_FMAL): Likewise.
6143 * sysdeps/x86_64/bits/mathdef.h: Likewise.
6144
6145 * bits/mathdef.h: Update copyright year.
6146 * sysdeps/powerpc/bits/mathdef.h: Likewise.
6147
d2050124
MM
61482010-10-19 Michael Meissner <meissner@linux.vnet.ibm.com>
6149
6150 * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
6151 builtins, define the macros in the C99 standard.
6152 (FP_FAST_FMAF): Likewise.
6153 (FP_FAST_FMAL): Likewise.
6154 * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
6155 multiply/add.
6156 (FP_FAST_FMAF): Likewise.
6157
475facd1
JJ
61582010-10-15 Jakub Jelinek <jakub@redhat.com>
6159
6160 [BZ #3268]
6161 * math/libm-test.inc (fma_test): Some new testcases.
6162 * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
6163 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
6164 y and infinite z. Do multiplication by C already in long double.
6165 * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
6166 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
6167 y and infinite z. Do bitwise or of inexact bit into u.d.
6168 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
6169 * sysdeps/i386/fpu/s_fmaf.S: Removed.
6170 * sysdeps/i386/fpu/s_fma.S: Removed.
6171 * sysdeps/i386/fpu/s_fmal.S: Removed.
6172
7c08a05c
JJ
61732010-10-16 Jakub Jelinek <jakub@redhat.com>
6174
6175 [BZ #3268]
6176 * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
6177 * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
6178 computation is not scheduled after fetestexcept. Fix value
6179 of minimum denormal long double.
6180
f3f7372d
JJ
61812010-10-14 Jakub Jelinek <jakub@redhat.com>
6182
6183 [BZ #3268]
6184 * math/libm-test.inc (fma_test): Add some more tests.
6185 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
6186 correctly.
6187
14d43591
AS
61882010-10-15 Andreas Schwab <schwab@redhat.com>
6189
6190 * scripts/data/localplt-s390-linux-gnu.data: New file.
6191 * scripts/data/localplt-s390x-linux-gnu.data: New file.
6192
5e908464
JJ
61932010-10-13 Jakub Jelinek <jakub@redhat.com>
6194
6195 [BZ #3268]
6196 * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
6197 * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
6198 instead of dbl-64.
6199 * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
6200 inlines.
6201 * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
6202 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
6203 if one of x and y is very large and the other is subnormal.
6204 * sysdeps/s390/fpu/s_fmaf.c: New file.
6205 * sysdeps/s390/fpu/s_fma.c: New file.
6206 * sysdeps/powerpc/fpu/s_fmaf.S: New file.
6207 * sysdeps/powerpc/fpu/s_fma.S: New file.
6208 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
6209 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
6210 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
6211
62122010-10-12 Jakub Jelinek <jakub@redhat.com>
6213
6214 [BZ #3268]
6215 * math/libm-test.inc (fma_test): Add some more fmaf tests, add
6216 fma tests.
6217 * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
6218 * sysdeps/ieee754/dbl-64/s_fma.c: New file.
6219 * sysdeps/i386/i686/multiarch/s_fma.c: Include
6220 sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
6221 * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
6222 * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
6223 * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
6224
b833d51f
UD
62252010-10-12 Ulrich Drepper <drepper@redhat.com>
6226
6227 [BZ #12078]
6228 * posix/regcomp.c (parse_branch): One more memory leak plugged.
6229 * posix/bug-regex31.input: Add test case.
6230
1751705d
UD
62312010-10-11 Ulrich Drepper <drepper@gmail.com>
6232
e9b9cbf5
UD
6233 * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
6234 * posix/bug-regex31.input: New file.
6235
6236 [BZ #12078]
6237 * posix/regcomp.c (parse_branch): Free memory when allocation failed.
6238 (parse_sub_exp): Fix last change, use postorder.
6239
ef06edbe
UD
6240 * posix/bug-regex31.c: New file.
6241 * posix/Makefile: Add rules to build and run bug-regex31.
6242
a129c80d
UD
6243 * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
6244
6245 [BZ #12078]
6246 * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
6247
b76b818e
UD
6248 [BZ #12108]
6249 * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
6250 to have entries in sys_siglist.
6251
1751705d
UD
6252 [BZ #12093]
6253 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
6254 be NULL.
6255
9ff8d36f
JJ
62562010-10-07 Jakub Jelinek <jakub@redhat.com>
6257
6258 [BZ #3268]
6259 * math/libm-test.inc (fma_test): Add 2 fmaf tests.
6260 * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
6261 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
6262 sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
6263 * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
6264 * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
6265 * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
6266 * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
6267 * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
6268 * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
6269 * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
6270 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
6271 * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
6272 * math/ftestexcept.c (fetestexcept): Likewise.
6273 * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
6274 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
6275 * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
6276 * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
6277 * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
6278 * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
6279 * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6280
af325969
UD
62812010-10-11 Ulrich Drepper <drepper@gmail.com>
6282
c579b202 6283 [BZ #12107]
af325969
UD
6284 * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
6285 newline.
6286
67a67b95
UD
62872010-10-06 Ulrich Drepper <drepper@gmail.com>
6288
6289 * string/bug-strstr1.c: New file.
6290 * string/Makefile: Add rules to build and run bug-strstr1.
6291
5fb308bc
EB
62922010-10-05 Eric Blake <eblake@redhat.com>
6293
6294 [BZ #12092]
6295 * string/str-two-way.h (two_way_long_needle): Always clear memory
6296 when skipping input due to the shift table.
6297
45db99c7
UD
62982010-10-03 Ulrich Drepper <drepper@gmail.com>
6299
3b111893
UD
6300 [BZ #12005]
6301 * malloc/mcheck.c: Handle large requests.
6302
45db99c7
UD
6303 [BZ #12077]
6304 * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
6305 for strncmp and strncasecmp.
6306 * string/stratcliff.c: Add tests for strcmp and strncmp.
6307 * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
6308
cf7a1eb8
NI
63092010-09-28 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
6310
6311 * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
6312 __set_fpscr.
6313
6484ba5e
AJ
63142010-09-30 Andreas Jaeger <aj@suse.de>
6315
6316 * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
6317 (CGROUP_SUPER_MAGIC): Define.
6318 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
6319 Handle btrfs and cgroup file systems.
6320 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
6321 Likewise.
6322
91c42559
LM
63232010-09-27 Luis Machado <luisgpm@br.ibm.com>
6324
6325 * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
6326 * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
6327
87a97932
AK
63282010-09-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6329
6330 [BZ #12067]
6331 * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
6332 trying to locate the ELF header.
6333
c21cc9bc
AS
63342010-09-27 Andreas Schwab <schwab@redhat.com>
6335
6336 [BZ #11611]
6337 * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
6338 Mask out sign-bit copies when constructing f_fsid.
6339
315970f6
PB
63402010-09-24 Petr Baudis <pasky@suse.cz>
6341
6342 * debug/stack_chk_fail_local.c: Add missing licence exception.
6343 * debug/warning-nop.c: Likewise.
6344
1ac7a2c7
JM
63452010-09-15 Joseph Myers <joseph@codesourcery.com>
6346
6347 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
6348 implementing getdents64 using getdents syscall, set d_type if
6349 __ASSUME_GETDENTS32_D_TYPE.
6350
56801c50
AS
63512010-09-16 Andreas Schwab <schwab@redhat.com>
6352
6353 * elf/dl-close.c (free_slotinfo, free_mem): Move to...
6354 * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
6355
dda51327
UD
63562010-09-21 Ulrich Drepper <drepper@redhat.com>
6357
6358 [BZ #12037]
6359 * posix/unistd.h: Undo change of feature selection for ftruncate from
6360 2010-01-11.
6361
8ffcee4a
UD
63622010-09-20 Ulrich Drepper <drepper@redhat.com>
6363
a545ecd9 6364 * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
8ffcee4a
UD
6365 detection.
6366
e24f0a8b
AS
63672010-09-20 Andreas Schwab <schwab@redhat.com>
6368
6369 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
6370 fanotify_mark.
6371 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
6372
7291c56f
AS
63732010-09-14 Andreas Schwab <schwab@redhat.com>
6374
6375 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
6376 variables after CHECK_SP call.
6377 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
6378
bc5fb037
AS
63792010-09-13 Andreas Schwab <schwab@redhat.com>
6380 Ulrich Drepper <drepper@redhat.com>
6381
6382 * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
6383 re-relocationg ld.so.
6384 * elf/dl-support.c (_dl_non_dynamic_init): And here after the
6385 _dl_init_paths call.
6386 * elf/dl-load.c (_dl_init_paths). Don't set GLRO(dl_init_all_dirs)
6387 here anymore.
6388
e66e7419
UD
63892010-09-14 Ulrich Drepper <drepper@redhat.com>
6390
6391 * resolv/res_init.c (__res_vinit): Count the default server we added.
6392
c044aa75
CLT
63932010-09-08 Chung-Lin Tang <cltang@codesourcery.com>
6394 Ulrich Drepper <drepper@redhat.com>
6395
6396 [BZ #11968]
6397 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
6398 (____longjmp_chk): Use %ebx for saving value across system call.
6399 Add unwind info.
6400
32cf4069
AS
64012010-09-06 Andreas Schwab <schwab@redhat.com>
6402
6403 * manual/Makefile: Don't mix pattern rules with normal rules.
6404
817328ee
AS
64052010-09-05 Andreas Schwab <schwab@linux-m68k.org>
6406
6407 * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
6408 operation.
6409 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
6410 * libio/iofopncook.c (_IO_cookie_init): Likewise.
6411 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
6412 * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
6413 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
6414 Likewise.
6415
29fddf61
UD
64162010-09-04 Ulrich Drepper <drepper@redhat.com>
6417
6418 [BZ #11979]
6419 * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
6420 IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
6421
0959ffc9
UD
64222010-09-02 Ulrich Drepper <drepper@redhat.com>
6423
6424 * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
6425 * sysdeps/x86_64/addmul_1.S: Likewise.
6426 * sysdeps/x86_64/lshift.S: Likewise.
6427 * sysdeps/x86_64/mul_1.S: Likewise.
6428 * sysdeps/x86_64/rshift.S: Likewise.
6429 * sysdeps/x86_64/sub_n.S: Likewise.
6430 * sysdeps/x86_64/submul_1.S: Likewise.
6431
ece29840
ST
64322010-09-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6433
0959ffc9
UD
6434 This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
6435 Define __sched_param instead of SCHED_* and sched_param when
ece29840 6436 <bits/sched.h> is included with __need_schedparam defined.
0959ffc9 6437 * bits/sched.h [__need_schedparam]
ece29840 6438 (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
0959ffc9
UD
6439 [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
6440 (__defined_schedparam): Define to 1.
ece29840
ST
6441 (__sched_param): New structure, identical to sched_param.
6442 (__need_schedparam): Undefine.
6443
e53a31fe
MF
64442010-08-31 Mike Frysinger <vapier@gentoo.org>
6445
fdc0c10d
MF
6446 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
6447 (epoll_create1): Declare.
6448
e53a31fe
MF
6449 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
6450
a726d796
AS
64512010-08-31 Andreas Schwab <schwab@redhat.com>
6452
6453 [BZ #7066]
6454 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
6455 shifting retval into place.
6456
2f3e3dc7
UD
64572010-09-01 Ulrich Drepper <drepper@redhat.com>
6458
f2933da9
UD
6459 * nis/rpcsvc/nis.h: Update copyright notice.
6460 * nis/rpcsvc/nis.x: Likewise.
6461 * nis/rpcsvc/nis_callback.h: Likewise.
6462 * nis/rpcsvc/nis_callback.x: Likewise.
6463 * nis/rpcsvc/nis_object.x: Likewise.
6464 * nis/rpcsvc/nis_tags.h: Likewise.
6465 * nis/rpcsvc/yp.h: Likewise.
6466 * nis/rpcsvc/yp.x: Likewise.
6467 * nis/rpcsvc/ypupd.h: Likewise.
6468 * nis/yp_xdr.c: Likewise.
6469 * nis/ypupdate_xdr.c: Likewise.
6470
2f3e3dc7
UD
6471 * sunrpc/pm_getport.c (__libc_rpc_getport): New function. This is
6472 mainly the body of pmap_getport. Add parameters to specify timeouts.
6473 (pmap_getport): Use __libc_rpc_getport.
6474 * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
6475 * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
6476 * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
6477
f3dcc2f9
AS
64782010-08-31 Andreas Schwab <schwab@linux-m68k.org>
6479
6480 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
6481 fanotify_mark.
6482
6d34eb5b
RM
64832010-08-27 Roland McGrath <roland@redhat.com>
6484
6485 * sysdeps/i386/i686/multiarch/Makefile
6486 (CFLAGS-varshift.c): New variable.
6487
9ea3de11
UD
64882010-08-27 Ulrich Drepper <drepper@redhat.com>
6489
c96d23fc
UD
6490 * sysdeps/i386/i686/multiarch/varshift.S: File removed.
6491 * sysdeps/i386/i686/multiarch/varshift.c: New file.
6492
9ea3de11
UD
6493 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
6494
6495 * sysdeps/x86_64/strlen.S: Minimal code improvement.
6496
623aac7f
L
64972010-08-26 H.J. Lu <hongjiu.lu@intel.com>
6498
6499 * sysdeps/x86_64/strlen.S: Unroll the loop.
6500 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
6501 strlen-sse2 strlen-sse2-bsf.
6502 * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
6503 __strlen_no_bsf if bit_Slow_BSF is set.
6504 (__strlen_sse42): Removed.
6505 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
6506 * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
6507
8b2b7715
RM
65082010-08-25 Roland McGrath <roland@redhat.com>
6509
6510 * sysdeps/x86_64/multiarch/varshift.S: File removed.
6511 * sysdeps/x86_64/multiarch/varshift.c: New file.
6512 * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
6513 * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
6514 * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
6515 * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
6516
e73015f2
L
65172010-08-25 H.J. Lu <hongjiu.lu@intel.com>
6518
6519 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
6520 strlen-sse2 strlen-sse2-bsf.
6521 * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
6522 __strlen_sse2_bsf if bit_Slow_BSF is unset.
6523 (__strlen_sse2): Removed.
6524 * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
6525 * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
6526 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
6527 bit_Slow_BSF for Atom.
6528 * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
6529 (index_Slow_BSF): Define.
6530 (HAS_SLOW_BSF): Define.
6531
df24a73e
UD
65322010-08-25 Ulrich Drepper <drepper@redhat.com>
6533
6534 [BZ #10851]
6535 * resolv/res_init.c (__res_vinit): When no server address at all
6536 is given default to loopback.
6537
f2ac4868
RM
65382010-08-24 Roland McGrath <roland@redhat.com>
6539
09055553
RM
6540 * configure.in: Remove config-name.h generation.
6541 * configure: Regenerated.
6542 * config-name.in: File removed.
6543 * scripts/config-uname.sh: New file.
6544 * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
6545 ($(objdir)config-name.h): New target.
6546
f2ac4868
RM
6547 * sunrpc/rpc_parse.h: Avoid nested comment.
6548
73f27d5e
RH
65492010-08-24 Richard Henderson <rth@redhat.com>
6550 Ulrich Drepper <drepper@redhat.com>
6551 H.J. Lu <hongjiu.lu@intel.com>
6552
6553 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
6554 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
6555 * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
6556 Replace _mm_srli_si128 with __m128i_shift_right. Replace
6557 _mm_alignr_epi8 with _mm_loadu_si128.
6558 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
6559 * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
6560 (__m128i_shift_right): Removed.
6561 * sysdeps/i386/i686/multiarch/varshift.h: New file.
6562 * sysdeps/i386/i686/multiarch/varshift.S: New file.
6563 * sysdeps/x86_64/multiarch/varshift.h: New file.
6564 * sysdeps/x86_64/multiarch/varshift.S: New file.
6565
84b9230c
MF
65662010-08-21 Mike Frysinger <vapier@gentoo.org>
6567
6568 * configure.in: Move assembler checks to before sysdep dir checking.
6569
9bbd0ddc
PB
65702010-08-20 Petr Baudis <pasky@suse.cz>
6571
6572 * LICENSES: Sync the sunrpc license.
6573
9da4bb31
UD
65742010-08-19 Ulrich Drepper <drepper@redhat.com>
6575
a7ab6ec8
UD
6576 * sunrpc/auth_des.c: Update copyright notice once again.
6577 * sunrpc/auth_none.c: Likewise.
6578 * sunrpc/auth_unix.c: Likewise.
6579 * sunrpc/authdes_prot.c: Likewise.
6580 * sunrpc/authuxprot.c: Likewise.
6581 * sunrpc/bindrsvprt.c: Likewise.
6582 * sunrpc/clnt_gen.c: Likewise.
6583 * sunrpc/clnt_perr.c: Likewise.
6584 * sunrpc/clnt_raw.c: Likewise.
6585 * sunrpc/clnt_simp.c: Likewise.
6586 * sunrpc/clnt_tcp.c: Likewise.
6587 * sunrpc/clnt_udp.c: Likewise.
6588 * sunrpc/clnt_unix.c: Likewise.
6589 * sunrpc/des_crypt.c: Likewise.
6590 * sunrpc/des_soft.c: Likewise.
6591 * sunrpc/get_myaddr.c: Likewise.
6592 * sunrpc/getrpcport.c: Likewise.
6593 * sunrpc/key_call.c: Likewise.
6594 * sunrpc/key_prot.c: Likewise.
6595 * sunrpc/openchild.c: Likewise.
6596 * sunrpc/pm_getmaps.c: Likewise.
6597 * sunrpc/pm_getport.c: Likewise.
6598 * sunrpc/pmap_clnt.c: Likewise.
6599 * sunrpc/pmap_prot.c: Likewise.
6600 * sunrpc/pmap_prot2.c: Likewise.
6601 * sunrpc/pmap_rmt.c: Likewise.
6602 * sunrpc/rpc/auth.h: Likewise.
6603 * sunrpc/rpc/auth_unix.h: Likewise.
6604 * sunrpc/rpc/clnt.h: Likewise.
6605 * sunrpc/rpc/des_crypt.h: Likewise.
6606 * sunrpc/rpc/key_prot.h: Likewise.
6607 * sunrpc/rpc/netdb.h: Likewise.
6608 * sunrpc/rpc/pmap_clnt.h: Likewise.
6609 * sunrpc/rpc/pmap_prot.h: Likewise.
6610 * sunrpc/rpc/pmap_rmt.h: Likewise.
6611 * sunrpc/rpc/rpc.h: Likewise.
6612 * sunrpc/rpc/rpc_des.h: Likewise.
6613 * sunrpc/rpc/rpc_msg.h: Likewise.
6614 * sunrpc/rpc/svc.h: Likewise.
6615 * sunrpc/rpc/svc_auth.h: Likewise.
6616 * sunrpc/rpc/types.h: Likewise.
6617 * sunrpc/rpc/xdr.h: Likewise.
6618 * sunrpc/rpc_clntout.c: Likewise.
6619 * sunrpc/rpc_cmsg.c: Likewise.
6620 * sunrpc/rpc_common.c: Likewise.
6621 * sunrpc/rpc_cout.c: Likewise.
6622 * sunrpc/rpc_dtable.c: Likewise.
6623 * sunrpc/rpc_hout.c: Likewise.
6624 * sunrpc/rpc_main.c: Likewise.
6625 * sunrpc/rpc_parse.c: Likewise.
6626 * sunrpc/rpc_parse.h: Likewise.
6627 * sunrpc/rpc_prot.c: Likewise.
6628 * sunrpc/rpc_sample.c: Likewise.
6629 * sunrpc/rpc_scan.c: Likewise.
6630 * sunrpc/rpc_scan.h: Likewise.
6631 * sunrpc/rpc_svcout.c: Likewise.
6632 * sunrpc/rpc_tblout.c: Likewise.
6633 * sunrpc/rpc_util.c: Likewise.
6634 * sunrpc/rpc_util.h: Likewise.
6635 * sunrpc/rpcinfo.c: Likewise.
6636 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
6637 * sunrpc/rpcsvc/key_prot.x: Likewise.
6638 * sunrpc/rpcsvc/klm_prot.x: Likewise.
6639 * sunrpc/rpcsvc/mount.x: Likewise.
6640 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
6641 * sunrpc/rpcsvc/nlm_prot.x: Likewise.
6642 * sunrpc/rpcsvc/rex.x: Likewise.
6643 * sunrpc/rpcsvc/rstat.x: Likewise.
6644 * sunrpc/rpcsvc/rusers.x: Likewise.
6645 * sunrpc/rpcsvc/sm_inter.x: Likewise.
6646 * sunrpc/rpcsvc/spray.x: Likewise.
6647 * sunrpc/rpcsvc/yppasswd.x: Likewise.
6648 * sunrpc/rtime.c: Likewise.
6649 * sunrpc/svc.c: Likewise.
6650 * sunrpc/svc_auth.c: Likewise.
6651 * sunrpc/svc_authux.c: Likewise.
6652 * sunrpc/svc_raw.c: Likewise.
6653 * sunrpc/svc_run.c: Likewise.
6654 * sunrpc/svc_simple.c: Likewise.
6655 * sunrpc/svc_tcp.c: Likewise.
6656 * sunrpc/svc_udp.c: Likewise.
6657 * sunrpc/svc_unix.c: Likewise.
6658 * sunrpc/svcauth_des.c: Likewise.
6659 * sunrpc/xcrypt.c: Likewise.
6660 * sunrpc/xdr.c: Likewise.
6661 * sunrpc/xdr_array.c: Likewise.
6662 * sunrpc/xdr_float.c: Likewise.
6663 * sunrpc/xdr_mem.c: Likewise.
6664 * sunrpc/xdr_rec.c: Likewise.
6665 * sunrpc/xdr_ref.c: Likewise.
6666 * sunrpc/xdr_sizeof.c: Likewise.
6667 * sunrpc/xdr_stdio.c: Likewise.
6668
9da4bb31
UD
6669 * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
6670 handling.
6671
bdaa77bc
AS
66722010-08-19 Andreas Schwab <schwab@redhat.com>
6673
6674 * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
6675
fe2f79db
LM
66762010-08-19 Luis Machado <luisgpm@br.ibm.com>
6677
6678 * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
6679 * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
6680 * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
6681 * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
6682 * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
6683 * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
6684 * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
6685 * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
6686 * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
6687 * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
6688 * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
6689 * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
6690 * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
6691 * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
6692
b9b42ee0
AB
66932010-07-26 Anton Blanchard <anton@samba.org>
6694
6695 * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
6696 * malloc/arena.c (heap_trim): Likewise.
6697
1c06ba31
UD
66982010-08-16 Ulrich Drepper <drepper@redhat.com>
6699
6700 * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
6701 here. Not...
6702 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
6703 * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
6704
f8392f40
L
67052010-08-12 H.J. Lu <hongjiu.lu@intel.com>
6706
6707 * sysdeps/i386/elf/Makefile: New file.
6708
3162f12e
AS
67092010-08-14 Andreas Schwab <schwab@linux-m68k.org>
6710
6711 * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
6712 from fanotify_init.
6713 * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
6714 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
6715
28c90b2c
UD
67162010-08-15 Ulrich Drepper <drepper@redhat.com>
6717
6718 * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
6719 of strncasecmp_l.
1feccb6c 6720 * sysdeps/multiarch/strcmp.S: Likewise.
28c90b2c 6721
ca6bb004
UD
67222010-08-14 Ulrich Drepper <drepper@redhat.com>
6723
e9f82e0d
UD
6724 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6725 strncase_l-nonascii.
6726 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
6727 Add strncase_l-ssse3.
6728 * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
6729 * sysdeps/x86_64/strcmp.S: Likewise.
6730 * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
6731 * sysdeps/x86_64/multiarch/strncase_l.S: New file.
6732 * sysdeps/x86_64/strncase.S: New file.
6733 * sysdeps/x86_64/strncase_l-nonascii.c: New file.
6734 * sysdeps/x86_64/strncase_l.S: New file.
6735 * string/Makefile (strop-tests): Add strncasecmp.
6736 * string/test-strncasecmp.c: New file.
6737
6738 * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
6739 warning.
6740
ca6bb004
UD
6741 * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
6742 * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
6743
052fa7b3
AS
67442010-08-14 Andreas Schwab <schwab@linux-m68k.org>
6745
6746 * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
6747
962dba78
UD
67482010-08-12 Ulrich Drepper <drepper@redhat.com>
6749
6750 * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
6751 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
6752 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
6753
bebff237
AM
67542010-05-01 Alan Modra <amodra@gmail.com>
6755
6756 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
6757 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
6758 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
6759 * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
6760 * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
6761 tidying. Don't tail-call __sigjmp_save for static lib.
6762 * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
6763 save location.
6764 (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
6765 (CALL_MCOUNT): Add eh info, and nop after bl.
6766 (TAIL_CALL_SYSCALL_ERROR): New macro.
6767 (PSEUDO_RET): Use it.
6768 * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
6769 Correct save location of integer regs and cr.
6770 (_dl_profile_resolve): Correct cr save location. Delete nops
6771 after bl when SHARED. Reduce cfi size a little by better
6772 placement of cfi directives.
6773 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
6774 make a stack frame. Instead use parm save area as a temp.
6775 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
6776 make a stack frame. Use TAIL_CALL_SYSCALL_ERROR.
6777 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
6778 Don't make a stack frame for parent, use parm save area.
6779 Increase child stack frame to 112 bytes. Don't save unused reg,
6780 and adjust reg usage. Set up cfi on error recovery and
6781 epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
6782 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
6783 (__makecontext): Add dummy nop after jump to exit.
6784 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
6785 Use correct parm save area and cr save, reduce stack frame.
6786 Correct cfi for possible PSEUDO_RET frame setup.
6787 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
6788 Branch to local label emitted by PSEUDO_RET rather than
6789 __syscall_error.
6790
02637374
AS
67912010-08-12 Andreas Schwab <schwab@redhat.com>
6792
6793 [BZ #11904]
6794 * locale/programs/locale.c (print_assignment): New function.
6795 (show_locale_vars): Use it.
6796
c3e2f19b
UD
67972010-08-11 Ulrich Drepper <drepper@redhat.com>
6798
3cdaa6ad
UD
6799 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
6800 field.
6801 (struct statfs64): Likewise.
6802 (_STATFS_F_FLAGS): Define.
6803 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
6804 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
6805 Don't define if __ASSUME_STATFS_F_FLAGS is defined.
6806 (ST_VALID): Define locally.
6807 (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
6808 __statvfs_getflags, use the provided value.
6809 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6810 __ASSUME_STATFS_F_FLAGS.
6811
754f7da3
UD
6812 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
6813
10b3bedc
UD
6814 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6815 Add sys/fanotify.h.
6816 * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
6817 fanotify_mask for GLIBC_2.13.
6818 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
6819 fanotify_init and fanotify_mark.
6820 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
6821 * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
6822
c08fb0d7
UD
6823 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
6824 Add prlimit.
6825 * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
6826 prlimit64 for GLIBC_2.13.
6827 * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
6828 prlimit64.
6829 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
6830 syscall.
6831 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
6832 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
6833 * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
6834 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
6835 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise. Also
6836 add prlimit alias.
6837 * sysdeps/unix/sysv/linux/prlimit.c: New file.
6838
15bac72b
UD
6839 [BZ #11903]
6840 * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
6841 Patch by Evgeni Bikov <bikovevg@iitp.ru>.
6842
c3e2f19b
UD
6843 * nss/Makefile: Add rules to build and run tst-nss-test1.
6844 * shlib-versions: Add entry for libnss_test1.
6845 * nss/nss_test1.c: New file.
6846 * nss/tst-nss-test1.c: New file.
6847
6848 * nss/nsswitch.c (__nss_database_custom): Define new variable.
6849 (__nss_configure_lookup): Set appropriate entry in
6850 __nss_configure_lookup to true.
6851 * nss/nsswitch.h: Define enum with indeces of databases in
6852 databases and __nss_database_custom arrays. Declare
6853 __nss_database_custom.
6854 * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
6855 to avoid using nscd when custom rules are installed.
6856 * nss/getXXbyYY_r.c: Likewise.
6857 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
6858
6859 * nss/nss_files/files-parse.c: Whitespace fixes.
6860
f15ce4d8
UD
68612010-08-09 Ulrich Drepper <drepper@redhat.com>
6862
6863 [BZ #11883]
6864 * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
6865 * posix/fnmatch_loop.c: Likewise.
6866
d22e4cc9
AK
68672010-07-17 Andi Kleen <ak@linux.intel.com>
6868
6869 * sysdeps/i386/i386-mcount.S (__fentry__): Define.
6870 * sysdeps/x86_64/_mcount.S (__fentry__): Define.
6871 * stdlib/Versions (__fentry__): Add for GLIBC 2.13
6872 * Versions.def [GLIBC_2.13]: Add.
6873
805bc17d
UD
68742010-08-06 Ulrich Drepper <drepper@redhat.com>
6875
6876 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
6877 Also fail if tpwd after pwuid call is NULL.
6878
5a42321d
ST
68792010-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
6880
6881 * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
6882 when converting to ms.
6883
fd3ebeda
ST
68842010-06-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
6885
6886 * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
6887 EOPNOTSUPP errors with ENOTTY.
6888 * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
6889 EOPNOTSUPP errors with ENOTTY.
6890
73507d3a
UD
68912010-07-31 Ulrich Drepper <drepper@redhat.com>
6892
6893 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
6894 Add strcasecmp_l-ssse3.
6895 * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
6896 strcasecmp.
6897 * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
6898 * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
6899 * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
6900
fe36dd02
UD
69012010-07-30 Ulrich Drepper <drepper@redhat.com>
6902
66f6765a
UD
6903 * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
6904
42e08a54
UD
6905 * string/Makefile (strop-tests): Add strcasecmp.
6906 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6907 strcasecmp_l-nonascii.
6908 (gen-as-const-headers): Add locale-defines.sym.
6909 * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
6910 * sysdeps/x86_64/strcasecmp.S: New file.
6911 * sysdeps/x86_64/strcasecmp_l.S: New file.
6912 * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
6913 * sysdeps/x86_64/locale-defines.sym: New file.
6914 * string/test-strcasecmp.c: New file.
6915
fe36dd02
UD
6916 * string/test-strcasestr.c: Test both ends of the range of characters.
6917 * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
6918
48cbc0d6
RM
69192010-07-29 Roland McGrath <roland@redhat.com>
6920
76e6d6bc 6921 [BZ #11856]
48cbc0d6
RM
6922 * manual/locale.texi (Yes-or-No Questions): Fix example code.
6923
880113d9
UD
69242010-07-27 Ulrich Drepper <drepper@redhat.com>
6925
6926 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
6927 for ld.so.
6928
deb9cabb
AS
69292010-07-27 Andreas Schwab <schwab@redhat.com>
6930
6931 * manual/memory.texi (Malloc Tunable Parameters): Document
6932 M_PERTURB.
6933
1c7570ff
RM
69342010-07-26 Roland McGrath <roland@redhat.com>
6935
6936 [BZ #11840]
6937 * configure.in (-fgnu89-inline check): Set and substitute
6938 gnu89_inline, not libc_cv_gnu89_inline.
6939 * configure: Regenerated.
6940 * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
6941
24fb0f88
UD
69422010-07-26 Ulrich Drepper <drepper@redhat.com>
6943
6944 * string/test-strnlen.c: New file.
6945 * string/Makefile (strop-tests): Add strnlen.
6946 * string/tester.c (test_strnlen): Add a few more test cases.
6947 * string/tst-strlen.c: Better error reporting.
6948
6949 * sysdeps/x86_64/strnlen.S: New file.
6950
8e96b93a
UD
69512010-07-24 Ulrich Drepper <drepper@redhat.com>
6952
6953 * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
6954 lower-latency instructions.
6955
dbc676d4
UD
69562010-07-23 Ulrich Drepper <drepper@redhat.com>
6957
6958 * string/test-strcasestr.c: New file.
6959 * string/test-strstr.c: New file.
6960 * string/Makefile (strop-tests): Add strstr and strcasestr.
6961 * string/str-two-way.h: Don't undefine MAX.
6962 * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
6963
f6a31e0e
AS
69642010-07-21 Andreas Schwab <schwab@redhat.com>
6965
6966 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
6967 strcasestr-nonascii.
6968 (CFLAGS-strcasestr-nonascii.c): Define.
6969 * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
6970 * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
6971 Remove unused attribute.
6972
5dbc3b6c
RM
69732010-07-20 Roland McGrath <roland@redhat.com>
6974
6975 * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
6976 dl_hwcap_mask as well as dl_hwcap. Without this, dsocaps matching in
6977 ld.so.cache was broken. With it, there is no way to disable dsocaps
6978 like LD_HWCAP_MASK can disable hwcaps.
6979
23d101d8
EPM
69802010-06-02 Emilio Pozuelo Monfort <pochu27@gmail.com>
6981
6982 * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
6983
cc9f2e47
UD
69842010-07-16 Ulrich Drepper <drepper@redhat.com>
6985
6986 * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
6987 call in strcasestr.
6988 * sysdeps/x86_64/multiarch/strcasestr.c: Declare
6989 __strcasestr_sse42_nonascii.
6990 * sysdeps/x86_64/multiarch/Makefile: Add rules to build
6991 strcasestr-nonascii.c.
6992 * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
6993
77c1b069
LM
69942010-06-15 Luis Machado <luisgpm@br.ibm.com>
6995
6996 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
6997 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
6998 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
6999 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
7000
440566c3
UD
70012010-07-09 Ulrich Drepper <drepper@redhat.com>
7002
7003 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
7004 fcntl.
7005
5be9d05d
AS
70062010-07-06 Andreas Schwab <schwab@redhat.com>
7007
c30b7ee2 7008 [BZ #11577]
5be9d05d
AS
7009 * elf/dl-version.c (match_symbol): Don't pass NULL occation to
7010 dl_signal_cerror.
7011
8a492a67
UD
70122010-07-06 Ulrich Drepper <drepper@redhat.com>
7013
7014 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
7015 _PC_PIPE_BUF using F_GETPIPE_SZ.
7016
713df3d5
RM
70172010-07-05 Roland McGrath <roland@redhat.com>
7018
7019 * manual/arith.texi (Rounding Functions): Fix rint description
7020 implicit in round description.
7021
702e8f14
UD
70222010-07-02 Ulrich Drepper <drepper@redhat.com>
7023
7024 * elf/Makefile: Fix linking for a few tests to make recent linker
7025 happy.
7026
52ed8be9
AS
70272010-06-30 Andreas Schwab <schwab@redhat.com>
7028
7029 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
7030 $(common-objpfx)libc_nonshared.a.
7031
f47c9a11
LM
70322010-06-21 Luis Machado <luisgpm@br.ibm.com>
7033
7034 * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
7035 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
7036 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
7037 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
7038 * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
7039 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
7040 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
7041 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
7042 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
7043 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
7044 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
7045 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
7046 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
7047 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
7048 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
7049 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
7050 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
7051 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
7052 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
7053 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
7054 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
7055 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
7056 * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
7057 * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
7058 * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
7059 * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
7060 * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
7061 * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
7062 * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
7063 * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
7064 * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
7065 * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
7066 * sysdeps/powerpc/powerpc32/power7/Implies: New file.
7067 * sysdeps/powerpc/powerpc64/power7/Implies: New file.
7068 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
7069 * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
7070 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
7071 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
7072 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
7073 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
7074 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
7075 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
7076 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
7077 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
7078 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
7079 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
7080 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
7081 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
7082
6fb8cbcb
L
70832010-06-25 H.J. Lu <hongjiu.lu@intel.com>
7084
7085 * debug/memmove_chk.c (__memmove_chk): Renamed to ...
7086 (MEMMOVE_CHK): ...this. Default to __memmove_chk.
7087 * string/memmove.c (memmove): Renamed to ...
7088 (MEMMOVE): ...this. Default to memmove.
7089 * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
7090 * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
7091 (END_CHK): Define.
7092 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7093 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
7094 mempcpy-ssse3-back memmove-ssse3-back.
7095 * sysdeps/x86_64/multiarch/bcopy.S: New file .
7096 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
7097 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
7098 * sysdeps/x86_64/multiarch/memcpy.S: New file.
7099 * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
7100 * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
7101 * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
7102 * sysdeps/x86_64/multiarch/memmove.c: New file.
7103 * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
7104 * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
7105 * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
7106 * sysdeps/x86_64/multiarch/mempcpy.S: New file.
7107 * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
7108 * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
7109 Define.
7110 (index_Fast_Copy_Backward): Define.
7111 (HAS_ARCH_FEATURE): Define.
7112 (HAS_FAST_REP_STRING): Define.
7113 (HAS_FAST_COPY_BACKWARD): Define.
7114
4e733bac 71152010-06-21 Andreas Schwab <schwab@redhat.com>
e35fcef8
AS
7116
7117 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
7118 Restore proper fallback handling.
7119
63c4ed22
UD
71202010-06-19 Ulrich Drepper <drepper@redhat.com>
7121
ac2b484c
UD
7122 [BZ #11701]
7123 * posix/group_member.c (__group_member): Correct checking loop.
7124
63c4ed22
UD
7125 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
7126 OOM in getpwuid_r correctly. Return error number when the caller
7127 should return, otherwise -1.
7128 (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
7129 call returning > 0 value.
7130 * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
7131
765ade4b
AS
71322010-06-07 Andreas Schwab <schwab@redhat.com>
7133
7134 * dlfcn/Makefile: Remove explicit dependencies on libc.so and
7135 libc_nonshared.a from targets in modules-names.
7136
80da2e09
KS
71372010-06-02 Kirill A. Shutemov <kirill@shutemov.name>
7138
7139 * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
7140 requires it.
7141
158db122
LM
71422010-06-10 Luis Machado <luisgpm@br.ibm.com>
7143
7144 * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
7145 * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
7146 * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
7147 * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
7148
caa78cf8
AS
71492010-06-02 Andreas Schwab <schwab@redhat.com>
7150
7151 * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
7152
b2ef2c01
UD
71532010-06-14 Ulrich Drepper <drepper@redhat.com>
7154
7155 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
7156 and F_GETPIPE_SZ.
7157 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
7158 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7159 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7160 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7161 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7162 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
7163
fbd643b6
RM
71642010-06-14 Roland McGrath <roland@redhat.com>
7165
7166 * manual/libc.texinfo (@copying): Change to GFDL v1.3.
7167
f32f2869
JJ
71682010-06-07 Jakub Jelinek <jakub@redhat.com>
7169
7170 * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
7171 __REDIRECT followed by __THROW.
7172 * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
7173 * posix/getopt.h (getopt): Likewise.
7174
2a50c078
EPM
71752010-06-02 Emilio Pozuelo Monfort <pochu27@gmail.com>
7176
7177 * hurd/lookup-at.c (__file_name_lookup_at): Accept
7178 AT_SYMLINK_FOLLOW in AT_FLAGS. Fail with EINVAL if both
7179 AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
7180 in AT_FLAGS.
7181 * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
7182 * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
7183
eb5ad2eb
LM
71842010-05-28 Luis Machado <luisgpm@br.ibm.com>
7185
7186 * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
7187
3c88fe1e
L
71882010-05-26 H.J. Lu <hongjiu.lu@intel.com>
7189
7190 [BZ #11640]
7191 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7192 Properly check family and model.
7193
d2f73151
TY
71942010-05-26 Takashi Yoshii <takashi.yoshii.zj@renesas.com>
7195
7196 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
7197
ebd2e13d
LM
71982010-05-24 Luis Machado <luisgpm@br.ibm.com>
7199
7200 * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
7201
b32b8b45
UD
72022010-05-21 Ulrich Drepper <drepper@redhat.com>
7203
7204 * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
7205 symbol reference.
7206
9acbe24d
AS
72072010-05-19 Andreas Schwab <schwab@redhat.com>
7208
7209 * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
7210 symbol reference.
7211
f0ccf6ea
AS
72122010-05-21 Andreas Schwab <schwab@redhat.com>
7213
3d04ff3a
AS
7214 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
7215 and internal_recvmmsg.
7216 * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
7217 * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
7218 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
7219 * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
7220
f0ccf6ea
AS
7221 * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
7222 * sunrpc/clnt_udp.c (clntudp_control): Likewise.
7223 * sunrpc/clnt_unix.c (clntunix_control): Likewise.
7224
5b08ac57
AS
72252010-05-20 Andreas Schwab <schwab@redhat.com>
7226
7227 * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
7228
4828935d
LM
72292010-05-17 Luis Machado <luisgpm@br.ibm.com>
7230
7231 POWER7 optimizations.
7232 * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
7233 * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
7234
373d545e
UD
72352010-05-19 Ulrich Drepper <drepper@redhat.com>
7236
7237 * version.h: Update for 2.13 development version.
7238
21a2b1ae
AS
72392010-05-12 Andrew Stubbs <ams@codesourcery.com>
7240
7241 * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
7242 exceptions. Return 0.
7243
3f7dcb2b
RM
72442010-05-07 Roland McGrath <roland@redhat.com>
7245
7246 * elf/ldconfig.c (main): Add a const.
7247
5f24d53a 72482010-05-06 Ulrich Drepper <drepper@redhat.com>
70c9476e 7249
a160f8d8
UD
7250 * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
7251 (args_options): Add no-idn option.
7252 (ahosts_keys_int): Add idn_flags to ai_flags.
7253 (parse_option): Handle 'i' option to clear idn_flags.
7254
5f24d53a
UD
7255 * malloc/malloc.c (_int_free): Possible race in the most recently
7256 added check. Only act on the data if no current modification
7257 happened.
265bb1ce
UD
7258
7259See ChangeLog.17 for earlier changes.