]> git.ipfire.org Git - thirdparty/glibc.git/blame - ChangeLog
Fix a few error cases in *name4_r lookup handling.
[thirdparty/glibc.git] / ChangeLog
CommitLineData
a682a1bf
UD
12009-12-10 Ulrich Drepper <drepper@redhat.com>
2
3 [BZ #11000]
4 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
5 *herrnop before returning.
6 * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
7 Likewise.
8 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
9 TRYAGAIN errors separately.
10 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
11 *name4_r after functions.
12
633bbc1d
UD
132009-12-09 Ulrich Drepper <drepper@redhat.com>
14
15 [BZ #11046]
16 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
17 version check.
18
4940d71b
BH
192009-11-05 Bruno Haible <bruno@clisp.org>
20
21 [BZ #11056]
22 * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
23 argv argument as non-NULL.
24 (execle, execl, execlp): Mark the first ARG argument as non-NULL.
25
26-2009-12-08 Ulrich Drepper <drepper@redhat.com>
ee1a7fab
UD
27
28 * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
29 recvmmsg.
30 * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
31 * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
32
406300d2
AK
332009-12-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34
35 * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
36 registers.
37 * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
38 * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
39 * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
40
02a52de0
UD
412009-11-30 Ulrich Drepper <drepper@redhat.com>
42
43 * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
44 SCHED_RESET_ON_FORK.
45
e2c59de6
UD
462009-11-26 Ulrich Drepper <drepper@redhat.com>
47
48 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
49 only used on truly ancient kernel if configuration requires a more
50 recent kernel.
51
1c3c269b
UD
522009-11-24 Ulrich Drepper <drepper@redhat.com>
53
c53f6228
UD
54 [BZ #3662]
55 * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
56 Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
57
aa989023
UD
58 * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
59 pass it on to __ptsname_internal.
60 (grantpt): Pass stat64 pointer to pts_name. Remove stat call here.
61 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
62 All the code from __ptsname_r but take additional parameter. Use that
63 instead of pointer to local stat64 variable.
64 (__ptsname_r): Call __ptsname_internal with pointer to local stat64
65 variable.
66 * include/stdlib.h: Declare __ptsname_internal.
67
139ee080
UD
68 * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
69 before the exec.
70 * sysdeps/unix/sysv/linux/grantpt.c: New file.
71 * login/programs/pt_chown.c (main): Don't print message on errors
72 when doing real work.
73
21f2c223
UD
74 * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
75 once.
76
1c3c269b
UD
77 * csu/elf-init.c (__libc_csu_irel): New function. Code to perform
78 irel relocations split out from...
79 (__libc_csu_init): ...here.
80 * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
81
e3611aef
AS
822009-11-23 Andreas Schwab <schwab@redhat.com>
83
84 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
85 for timestamps also if __USE_XOPEN2K8.
86 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
87 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
88 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
89 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
90
89b432d7
UD
912009-11-22 Ulrich Drepper <drepper@redhat.com>
92
351fe947
UD
93 * nscd/connections.c (restart): Try harder to re-exec.
94
c5a8b997
UD
95 * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
96
eb415739
UD
97 * sysdeps/unix/sysv/linux/ntp_gettimex.c: New file.
98 * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
99 * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
100 * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
101 some placeholders. Redirect ntp_gettime to ntp_gettimex.
102 * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
103
89b432d7
UD
104 * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
105 Define.
106 (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
107
66221417
L
1082009-11-18 H.J. Lu <hongjiu.lu@intel.com>
109
110 [BZ #10162]
111 * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
112 than software pipeline. Properly recover from shorter read.
113
c6e7f16c
UD
1142009-11-19 Ulrich Drepper <drepper@redhat.com>
115
df1934da
UD
116 [BZ #10958]
117 * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
118 initialized before using it.
119 (_IO_putwc_unlocked): Likewise.
120
03ebadd9
UD
121 [BZ #10918]
122 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
123 in cast to not throw away const-ness of parameters.
124 (__CPU_EQUAL_S): Likewise.
125 (__CPU_OP_S): Likewise.
126
c6e7f16c
UD
127 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
128 F_OWNER_PGRP and mark F_OWNER_GID obsolete. The kernel people made
129 this gratuitous change and we have to keep compatibility.
130 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
131 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
132 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
133 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
134 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
135 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
136
424bea69
UD
1372009-11-17 Ulrich Drepper <drepper@redhat.com>
138
139 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
140 of parameters of sync_file_range.
141 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
142 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
143 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
144 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
145 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
146 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
147
8ad81b31
JJ
1482009-11-16 Jakub Jelinek <jakub@redhat.com>
149
150 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
151 Implement using sync_file_range2 syscall if __NR_sync_file_range2
152 is defined.
153 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
154 file.
155
815d8147
PB
1562009-11-17 Paolo Bonzini <bonzini@gnu.org>
157
158 * posix/bug-regex30.c: New file.
159 * posix/Makefile: Add rules to build and run bug-regex30.
160 * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
161 character lead bytes when there is a range in a COMPLEX_BRACKET.
162 Reported by Oleg Bylatov.
163
2866eeb1
UD
1642009-11-17 Ulrich Drepper <drepper@redhat.com>
165
74432447
UD
166 [BZ #10969]
167 * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
168 * locale/tst-duplocale.c: New file.
169 * locale/Makefile (tests): Add tst-duplocale.
170
4fb9241e
UD
171 [BZ #10968]
172 * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
173 Patch by Bruno Haible <bruno@clisp.org>.
174 * locale/tst-locname.c: New file.
175 * locale/Makefile (tests): Add tst-locname.
176
2866eeb1
UD
177 [BZ #10972]
178 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
179 constants from recent kernels.
180 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
181 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
182 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
183 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
184 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
185 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
186
65a1148b
L
1872009-11-09 H.J. Lu <hongjiu.lu@intel.com>
188
189 [BZ #10162]
190 * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
191 software pipeline.
192
fabe43ab
MF
1932009-11-09 Mike Frysinger <vapier@gentoo.org>
194
195 * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
196 (fallocate): Return ENOSYS if __NR_fallocate is not defined.
197 * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
198
2866eeb1 1992009-11-06 Mike Frysinger <vapier@gentoo.org>
5ec794b4
MF
200
201 * posix/bug-regex29.c: Include stdio.h.
202
89646810
UD
2032009-11-14 Ulrich Drepper <drepper@redhat.com>
204
0079dd23
UD
205 [BZ #10939]
206 * Versions.def: Define GLIBC_2.12 for libc.
207 * manual/errno.texi: Add ERFKILL entry.
208 * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
209 for 2.12.
210 * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
211 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
212
89646810
UD
213 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
214 F_GETOWN_EX definitions according to corrected kernel definitions.
215 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
216 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
217 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
218 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
219 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
220 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
221
24c0bf7a
UD
2222009-11-12 Ulrich Drepper <drepper@redhat.com>
223
224 * version.h: Bump for 2.12 development.
225
51e4196f
AS
2262009-11-10 Andreas Schwab <schwab@redhat.com>
227
228 * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
229 out of buffer space.
230 * resolv/nss_dns/dns-host.c (getanswer_r): Check for
231 map_v4v6_hostent running out of space.
232
6515a01f
CM
2332009-11-10 Ulrich Drepper <drepper@redhat.com>
234
235 * string/bits/string3.h (memset): If the second parameter is constant
236 and zero there is likely no transposition.
51e4196f 237 Patch by Caolan McNamara <caolanm@redhat.com.
6515a01f 238
868f7a40
PDM
2392009-11-04 Philippe De Muyter <phdm@macqel.be>
240
241 * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
242 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
243
685cb083
HHPF
2442009-10-30 Holger Hans Peter Freyther <zecke@selfish.org>
245
246 * malloc/memusagestat.c (main): Fix spelling in an error message.
247
8608ae1f
L
2482009-11-01 H.J. Lu <hongjiu.lu@intel.com>
249
250 * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
251 * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
252
5b55d236
AS
2532009-11-03 Andreas Schwab <schwab@redhat.com>
254
255 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
256 readahead.
257
872873d4
JJ
2582009-11-03 Jakub Jelinek <jakub@redhat.com>
259
260 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
261 relocate opd entry when resolving prelink conflicts.
262
34df851b
JJ
2632009-11-04 Jakub Jelinek <jakub@redhat.com>
264
265 * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
266 when -D_FILE_OFFSET_BITS=64.
267
268 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
269 of last two arguments when -D_FILE_OFFSET_BITS=64.
270 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
271 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
272 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
273 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
274 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
275 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
276
13f6812f
AS
2772009-11-03 Andreas Schwab <schwab@linux-m68k.org>
278
279 [BZ #4457]
280 * sysdeps/generic/libgcc_s.h: New file.
281 * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
282
cc49a5a8
UD
2832009-11-01 Ulrich Drepper <drepper@redhat.com>
284
285 * malloc/hooks.c (free_check): Restore locking and call _int_free
286 appropriately.
287
3a83202d
UD
2882009-10-30 Ulrich Drepper <drepper@redhat.com>
289
7f9cd6ed
UD
290 * version.h (VERSION): Bump for 2.11 release.
291 * include/features.h (__GLIBC_MINOR__): Bump to 11.
292
3005703b
UD
293 * elf/tst-execstack.c (do_test): Add cast to avoid warning.
294
1c52a97a
UD
295 * stdio-common/scanf13.c (main): Remove unused variable wbuf.
296
08c7ad97
UD
297 * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
298 to avoid warning.
299 * stdlib/tst-strtoll.c (tests): Likewise.
300
3c2c4bf6
KS
301 [BZ #9986]
302 * time/strftime_l.c (__strftime_internal): Allow %OC.
303
3a83202d
UD
304 * misc/mkostemps.c: New file.
305 * misc/mkostemps64.c: New file.
306
de2cc809
AS
3072009-10-30 Andreas Schwab <schwab@redhat.com>
308
2c5c07f5
AS
309 * locale/programs/locale-spec.c: Include <error.h> and
310 <libintl.h>.
311
de2cc809
AS
312 * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
313
6cfe8609
RM
3142009-10-28 Roland McGrath <roland@redhat.com>
315
316 * Makefile (dist-prepare): New target.
317 (tag-for-dist): Target removed.
318 (glibc-%.tar): Pattern rule removed.
319 (%.tar): New pattern rule, does simple use of git archive.
320 (dist-version): Remove variable definition.
321 (dist): Just depend on that. Add .tar.xz dependency.
322 If dist-version variable not set on command line, depend on
323 dist-prepare, re-invoke with dist-version set via git describe.
324
325 * Makerules (%.xz): New pattern rule.
326
31c759bf
AM
3272009-10-28 Alan Modra <amodra@bigpond.net.au>
328
329 * elf/ifuncdep2.c: Include ifunc-sel.h.
330 (global): Delete.
331 (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
332 * elf/ifuncmain1.c (global): Delete.
333 * elf/ifuncmain1vis.c: Likewise.
334 * elf/ifuncmain2.c: Likewise.
335 * elf/ifuncmain5.c: Likewise.
336 * elf/ifuncmod3.c: Likewise.
337 * elf/ifuncmain6pie.c: Include ifunc-sel.h.
338 (foo_ifunc): Use ifunc_one.
339 * elf/ifuncmain7.c: Likewise.
340 * elf/ifuncmod1.c: Include ifunc-sel.h.
341 (global): Define protected var.
342 (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
343 * elf/ifuncmod5.c: Likewise.
344 * sysdeps/generic/elf/ifunc-sel.h: New file.
345 * sysdeps/powerpc/elf/ifunc-sel.h: New file.
346
77799d9d
AM
3472009-07-30 Alan Modra <amodra@bigpond.net.au>
348
349 * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
350 (R_PPC_REL16*): Correct comments.
351 (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
352 (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
353 R_PPC64_REL16_HA): Define.
354 * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
355 * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
356 * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
357 Delete unused "reloc" param.
358 (__process_machine_rela): Handle R_PPC_IRELATIVE.
359 * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
360 Delete "reloc" param.
361 (elf_machine_rela): Handle STT_GNU_IFUNC functions and
362 R_PPC_IRELATIVE.
363 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
364 (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
365 relocations.
366
367d2009-10-30 Ulrich Drepper <drepper@redhat.com>
7f3146e7 368
0d2f180d
UD
369 [BZ #10315]
370 * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
371 UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
372 UDP_ENCAP_L2TPINUDP.
373
7f3146e7
UD
374 [BZ #10349]
375 * sysdeps/posix/tempname.c (__gen_tempname): Take new second
376 parameter, specifying length of prefix.
377 * stdio-common/tempname.c: Likewise.
378 * include/stdio.h: Adjust prototypes.
379 * libio/oldtmpfile.c: Adjust caller.
380 * misc/mkdtemp.c: Likewise.
381 * misc/mkostemp.c: Likewise.
382 * misc/mkostemp64.c: Likewise.
383 * misc/mkstemp.c: Likewise.
384 * misc/mkstemp64.c: Likewise.
385 * misc/mktemp.c: Likewise.
386 * stdio-common/tempnam.c: Likewise.
387 * stdio-common/tmpfile.c: Likewise.
388 * stdio-common/tmpnam.c: Likewise.
389 * stdio-common/tmpnam_r.c: Likewise.
390 * misc/mkstemps.c: New file.
391 * misc/mkstemps64.c: New file.
392 * stdlib/stdlib.h: Add prototypes.
393 * misc/Makefile (routines): Add mkstemps and mkstemps64.
394 * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
395
204fcca2
UD
3962009-10-29 Ulrich Drepper <drepper@redhat.com>
397
471d4931
UD
398 * locale/iso-639.def: Add sml entry.
399
75ded9bc
UD
400 [BZ #10391]
401 * resolv/res_send.c (send_dg): Initialize resplen.
402
204fcca2
UD
403 [BZ #10446]
404 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
405 definition to the kernel's.
406 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
407
ea547a1a
AJ
4082009-08-18 Anders Johansson <ajohansson@novell.com>
409
410 * nscd/aicache.c: Fix mixing up dataset and dataset->resp
411 offsets and record sizes in assert()s and response sending.
412 * nscd/grpcache.c: Likewise.
413 * nscd/hstcache.c: Likewise.
414 * nscd/initgrcache.c: Likewise.
415 * nscd/pwdcache.c: Likewise.
416
e0f471a1
UD
4172009-10-29 Ulrich Drepper <drepper@redhat.com>
418
5c53736b
SL
419 [BZ #10540]
420 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
421 /etc/hosts does not exist set errnop and herrnop appropriately.
422 Patch by Steve Langasek <vorlon@debian.org>.
423
ee6f3538
JS
424 [BZ #10553]
425 * malloc/malloc.c (malloc_info): Fix typos in format strings.
426 Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
427
5debe363
UD
428 [BZ #10564]
429 * login/utmp_file.c (TIMEOUT): Increase to 10.
430
801720e6
UD
431 [BZ #10609]
432 * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
433 for file names in case the syscall is not available.
434 * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
435 * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
436 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
437 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
438 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
439 * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
440 * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
441 * sysdeps/unix/sysv/linux/linkat.c: Likewise.
442 * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
443 * sysdeps/unix/sysv/linux/openat.c: Likewise.
444 * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
445 * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
446 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
447 * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
448 * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
449 * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
450 * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
451
584715c3
UD
452 [BZ #10643]
453 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
454 creation filed, remove the request from the 'requests' list and signal
455 the caller that the request is finished.
456
c240c3a5
JL
457 [BZ #10692]
458 * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
459 in error if batch_read. Patch by Joe Landers <jlanders@vmware.com>.
460
1a9e411e
JL
461 [BZ #10713]
462 * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
463 from intern.start. Patch by Joe Landers <jlanders@vmware.com>.
464
cc88b371
UD
465 [BZ #10780]
466 * libio/ioputs.c (_IO_puts): Make sure to not return a number which
467 overflows the int return type.
468
67854c13
UD
469 [BZ #10717]
470 * malloc/memusagestat.c (main): Fix repairing of trace files. We also
471 have to compute maxsize_total, we have to update the variables, and
472 the also_total handling must happen after the repair.
473
e0f471a1
UD
474 [BZ #10742]
475 * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
476 Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
477
d79eccd6
AS
4782009-10-27 Andreas Schwab <schwab@redhat.com>
479
480 * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
481 errno is always set when returning unsuccessfully.
482
22bc5239
AS
4832009-10-29 Andreas Schwab <schwab@redhat.com>
484
485 * malloc/memusage.c (update_data): Fix index wraparound handling
486 so that buffer_cnt is actually reset.
487
3a85895f
PB
4882009-10-29 Ulrich Drepper <drepper@redhat.com>
489
d94760f9
UD
490 [BZ #10784]
491 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
492 of the directory we look at into the static buffer if there is one
493 at the start of the loop.
494
8d556281
PP
495 [BZ #10789]
496 * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
d94760f9 497 macros. Patch by Philip Prindeville <philipp@redfish-solutions.com>.
8d556281 498
81c84bd9
UD
499 [BZ #10840]
500 * sysdeps/unix/sysv/linux/kernel-features.h: Define
501 __ASSUME_F_GETOWN_EX.
502 * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
503 if possible.
504 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
505
d9e8f9ec
UD
506 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
507 and f_owner_ex.
508 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
509 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
510 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
511 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
512 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
513 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
514
92934e8b
UD
515 [BZ #10847]
516 * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
517 getutmpx symbol.
518
519 [BZ #10823]
3a85895f
PB
520 * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
521 addresses. Patch by Petar Bogdanovic <petar@smokva.net>.
522
3ad3a4d0
JM
5232009-10-24 Joseph Myers <joseph@codesourcery.com>
524
525 * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
526
98363ded
JJ
5272009-10-27 Jakub Jelinek <jakub@redhat.com>
528
529 [BZ #10817]
530 * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
531 Reported by Ray Chason.
532
001659f4
L
5332009-10-21 H.J. Lu <hongjiu.lu@intel.com>
534
535 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
536 strend-sse4.
537 * sysdeps/x86_64/multiarch/strchr.S: New file.
538 * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
539 * sysdeps/x86_64/multiarch/strrchr.S: New file.
540
bc5e8462
AS
5412009-10-21 Andreas Schwab <schwab@redhat.com>
542
543 * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
544
b7805d0b
AS
5452009-10-19 Andreas Schwab <schwab@redhat.com>
546
547 * include/math.h: Add hidden protos for __exp/__expf/__expl.
548 * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
549 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
550 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
551 * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
552 * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
553 * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
554 __ieee751_expl to handle overflow.
555
a0902db9
DM
5562009-10-14 David S. Miller <davem@davemloft.net>
557
558 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
559 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
560
4bb04b1f
AS
5612009-10-13 Andreas Schwab <schwab@redhat.com>
562
563 * csu/elf-init.c (__libc_csu_init): Run preinit array even if
564 !USE_MULTIARCH.
565
b68053cf
UD
5662009-10-08 Ulrich Drepper <drepper@redhat.com>
567
1abedcda
UD
568 [BZ #10730]
569 * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
570 Patch in part by Steve Ward <planet36@gmail.com>.
571
1219ddfe
UD
572 [BZ #10731]
573 * stdlib/rand_r.c: Fix typo.
574
b68053cf
UD
575 * po/cs.po: Update from translation team.
576
96961bf7
AS
5772009-10-06 Andreas Schwab <schwab@redhat.com>
578
579 * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
580 returning if RTLD_NOLOAD.
581
9d6982d5
RM
5822009-10-06 Roland McGrath <roland@redhat.com>
583
b0f3a2e4
RM
584 * sysdeps/x86_64/multiarch/strstr-c.c
585 [! SHARED]: Omit libc_hidden_builtin_def fiddling.
586
587 * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
588 libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
589
9d6982d5
RM
590 * sysdeps/x86_64/multiarch/init-arch.h
591 [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
592 (HAS_CPU_FEATURE): New macro.
593 (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
594 * sysdeps/x86_64/multiarch/init-arch.c
595 (__get_cpu_features): #undef it before definition.
596
930799d5
AS
5972009-10-05 Andreas Schwab <schwab@redhat.com>
598
599 * locale/C-time.c: Revert week-1stday back to 19971130 and set
600 first_weekday to 1 and first_workday to 2.
601
78aa3979
UD
6022009-10-01 Ulrich Drepper <drepper@redhat.com>
603
604 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
605 F_GETOWN_EX.
606 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
607 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
608 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
609 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
610 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
611 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
612
199eb0de
AS
6132009-09-28 Andreas Schwab <schwab@redhat.com>
614
615 * stdio-common/printf_fp.c: Check for and avoid integer overflows.
616 * stdio-common/vfprintf.c: Likewise.
617
ff283531
ST
6182009-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
619
620 * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
f8d7c1ea
UD
621 (mkdirat): Call __directory_name_split_at instead of
622 __directory_name_split.
ff283531 623
9d076f21
UD
6242009-09-28 Ulrich Drepper <drepper@redhat.com>
625
626 * locale/programs/locale-spec.c (locale_special): If nothing matches
627 fail with an appropriate message.
628
f450806e
L
6292009-09-10 H.J. Lu <hongjiu.lu@intel.com>
630
631 * configure.in: Exclude binutils 2.X. Support binutils 2.100
632 and XX.
633
4fd89462
UD
6342009-09-25 Andreas Schwab <schwab@redhat.com>
635
636 * elf/dl-reloc.c (RESOLVE_MAP): Always pass
637 DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
638
0d180406
ST
6392009-09-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
640
641 * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
642
ae0f0dbd
AS
6432009-09-20 Andreas Schwab <schwab@linux-m68k.org>
644
645 * iconvdata/iso646.c (gconv_init): Correctly initialize the
646 character size elements in step data.
647
fc0c556c
UD
6482009-09-20 Ulrich Drepper <drepper@redhat.com>
649
650 * po/hu.po: Update from translation team.
651 * po/vi.po: Likewise.
652
487a6d77
RM
6532009-09-19 Roland McGrath <roland@redhat.com>
654
655 * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
656
7967983f
RM
6572009-09-15 Roland McGrath <roland@redhat.com>
658
659 * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
660 * nptl/sysdeps/pthread/configure: Regenerated.
661 * nptl/sysdeps/x86_64/configure: Regenerated.
662 * sysdeps/unix/sysv/linux/configure: Regenerated.
663 * sysdeps/x86_64/elf/configure: Regenerated.
664
665 * Makefile (autoconf-it): Set execute bit only on top-level configure.
666
667 * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
668 the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
669 * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
670 * configure: Regenerated.
671
02bf610c
UD
6722009-09-09 Ulrich Drepper <drepper@redhat.com>
673
674 * posix/getconf.c (main): Handle -- on command line.
675
0549ce8e
L
6762009-09-05 H.J. Lu <hongjiu.lu@intel.com>
677
678 * configure.in: Support binutils 2.100 and 3.0.
679
6dfeb524
JJ
6802009-09-08 Jakub Jelinek <jakub@redhat.com>
681
682 * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
683 * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
684 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
685 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
686
d76da20f
UD
6872009-09-07 Ulrich Drepper <drepper@redhat.com>
688
7a7e49c0
UD
689 * locale/programs/ld-collate.c (struct locale_collate_t): Add
690 unnamed_section_defined field.
691 (collate_read): Test and set unnamed_section_defined.
692
d76da20f
UD
693 * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
694 _POSIX2_LINE_MAX.
695
4c14c8c3
L
6962009-09-04 H.J. Lu <hongjiu.lu@intel.com>
697
698 * configure.in: Support binutils 2.20.
699
04ef416a
UD
7002009-09-03 Ulrich Drepper <drepper@redhat.com>
701
702 * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
703 __strstr_ia32): Add attribute_hidden.
704
2eeb9a5d
AS
7052009-09-01 Andreas Schwab <schwab@redhat.com>
706
707 * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
708 parsing of group entry.
709
5d2e6976
AS
7102009-09-02 Andreas Schwab <schwab@redhat.com>
711
712 * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
713 external buffer. Always discard readahead in internal buffer.
714 * libio/Makefile (tests): Add bug-wsetpos.
715 * libio/bug-wsetpos.c: New file.
716
22bb992d
JJ
7172009-09-02 Jakub Jelinek <jakub@redhat.com>
718
719 * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
720 Add attribute_hidden.
721 * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
722 __strcasestr_sse2): Likewise.
723 * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
724 (__fma_fma): Make static.
725 * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
726 (__fmaf_fma): Make static.
727
d840539e
AS
7282009-08-31 Andreas Schwab <schwab@redhat.com>
729
730 * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
731 reformulate in-buffer optimisation check to match code in
732 _IO_new_file_seekoff.
733
a050d2a5
JB
7342009-08-31 Joshua W. Boyer <jwboyer@linux.vnet.ibm.com>
735
736 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
737 to srwi in 32-bit memcpy for power6.
738
5182cbc5
AS
7392009-09-01 Andreas Schwab <schwab@redhat.com>
740
741 * include/stdio.h: Declare hidden proto for fflush.
742 * libio/iofflush.c: Add hidden weak alias for fflush.
743
24044103
JJ
7442009-09-01 Jakub Jelinek <jakub@redhat.com>
745
746 * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
747 (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
5182cbc5 748
c2735e95
AS
7492009-08-31 Andreas Schwab <schwab@redhat.com>
750
751 * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
752
b5c03e10
UD
7532009-08-31 Ulrich Drepper <drepper@redhat.com>
754
755 [BZ #10560]
756 * malloc/malloc.c: Add local assert definition to avoid problems with
757 memory allocation in the real one.
758
5a4eb728
L
7592009-08-27 H.J. Lu <hongjiu.lu@intel.com>
760
761 * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
762 Removed.
763 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
764 turn off SSSE3 on Atom.
765
d444ac57
UD
7662009-08-28 Ulrich Drepper <drepper@redhat.com>
767
768 * stdlib/tst-strtol.c (tests): More tests.
769 * stdlib/tst-strtoll.c (tests): Likewise.
770
15e7f0a4
UD
7712009-08-26 Ulrich Drepper <drepper@redhat.com>
772
2df4be8c
UD
773 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
774
15e7f0a4
UD
775 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
776
84057895
UD
7772009-08-25 Ulrich Drepper <drepper@redhat.com>
778
deb13bcd
UD
779 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
780 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
781
77a1e087
UD
782 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
783
e6fd9b24
UD
784 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
785
84057895
UD
786 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
787
e9f145cb
JM
7882009-08-25 Joseph Myers <joseph@codesourcery.com>
789
790 * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
791
84088310
UD
7922009-08-25 Ulrich Drepper <drepper@redhat.com>
793
65b14bce
UD
794 * sysdeps/x86_64/fpu/s_scalbln.c: New file.
795 * sysdeps/x86_64/fpu/s_scalbn.c: New file.
796
797 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
5001998a 798
7423a345
UD
799 * sysdeps/x86_64/fpu/s_signbit.S: New file.
800 * sysdeps/x86_64/fpu/s_signbitf.S: New file.
801
d5cb714b 802 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
8392ff2d
UD
803 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
804
84088310
UD
805 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
806 leftover YMM_SIZE definition.
807
9a1ea152
UD
8082009-08-24 Ulrich Drepper <drepper@redhat.com>
809
cf00cc00
UD
810 * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
811 union.
812 (EXTRACT_WORDS64, INSERT_WORDS64): Define.
813 * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
814 Redefine.
815 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
816
9a1ea152
UD
817 * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
818 and SET_FLOAT_WORD definitions.
819
036e46b6
RM
8202009-08-24 Roland McGrath <roland@redhat.com>
821
822 * sysdeps/unix/syscall-template.S: New file.
823 * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
824 * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
825 (compile-syscall): Pass mkdep and -g options as normal.
826 (s-proto.d, s-proto-cancel.d): Don't "-include" these.
827 (common-generated): Don't add them here.
828
ef72d5f1
UD
8292009-08-24 Ulrich Drepper <drepper@redhat.com>
830
f0c281e0
UD
831 * math/s_fdim.c: In case of overflows set errno.
832 * math/s_fdimf.c: Likewise.
833 * math/s_fdiml.c: Likewise.
834
7b943af6
UD
835 * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
836 * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
837 are using the inline optimizations.
838
ef72d5f1
UD
839 * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
840 (__signbitf): Likewise.
841
659a63fb
UD
8422009-08-23 Ulrich Drepper <drepper@redhat.com>
843
52db8039
UD
844 * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
845 terminated.
8a7cea01
UD
846 * posix/Makefile (tests): Add bug-regex29.
847 * posix/bug-regex29.c: New file.
52db8039 848
bdc7f5d7
UD
849 * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
850 older POSIX versions are selected.
c6b6723e 851
003c9895
UD
852 * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
853 as well.
854 * stdio-common/printf_fphex.c: Likewise.
855 * stdio-common/tstdiomisc.c: Add more tests.
856
659a63fb
UD
857 * locale/locale.h: Include xlocale.h and the thread-local locale
858 declarations for XPG7, not XPG6.
859
15efafdf
AS
8602009-08-21 Andreas Schwab <schwab@redhat.com>
861
862 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
863 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
864 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
865 * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
866 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
867 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
868
464dc022
RM
8692009-08-20 Roland McGrath <roland@redhat.com>
870
871 * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
872 Use l_addr instead of l_map_start (dli_fbase).
873 Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
874 address when there is no proximate symbol.
875 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
876 Likewise.
877
677760a3
UD
8782009-08-16 Ulrich Drepper <drepper@redhat.com>
879
880 * scripts/gen-as-const.awk: Fix test for 64-bit platform.
881
85fda49b
UD
8822009-08-14 Ulrich Drepper <drepper@redhat.com>
883
884 * test-skeleton.c (signal_handler): Renamed from timeout_handler.
885 Also handle SIGINT. In that case only do the cleanup and then
886 re-raise the signal.
887 (main): Install handler for SIGINT.
888
78fd882a
ST
8892009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
890
891 * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
892 clobber list.
893
4e1e2f42
L
8942009-08-01 H.J. Lu <hongjiu.lu@intel.com>
895
896 * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
897 tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
898 tst-auditmod7b.c.
899 (tests): Add tst-audit6 tst-audit7.
900 (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
901 tst-auditmod7a tst-auditmod7b.
902 ($(objpfx)tst-audit6): New.
903 ($(objpfx)tst-audit6.out): Likewise.
904 ($(objpfx)tst-audit7): Likewise.
905 ($(objpfx)tst-audit7.out): Likewise.
906 (tst-audit6-ENV): Likewise.
907 (tst-audit7-ENV): Likewise.
908 (CFLAGS-tst-auditmod6b.c): Likewise.
909 (CFLAGS-tst-auditmod6c.c): Likewise.
910 (CFLAGS-tst-auditmod7b.c): Likewise.
911 * elf/tst-audit6.c: New file.
912 * elf/tst-audit7.c: New file.
913 * elf/tst-auditmod6a.c: New file.
914 * elf/tst-auditmod6b.c: New file.
915 * elf/tst-auditmod6c.c: New file.
916 * elf/tst-auditmod7a.c: New file.
917 * elf/tst-auditmod7b.c: New file.
918 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
919 saving and restoring SSE/AVX registers to ...
920 * sysdeps/x86_64/dl-trampoline.h: This. New file.
921
fc1870e6
L
9222009-08-07 H.J. Lu <hongjiu.lu@intel.com>
923
924 * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
925 only if SHARED is defined.
926 * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
927
a3d4298d
JM
9282009-08-03 Jim Meyering <meyering@redhat.com>
929
930 * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
931
8e436522
UD
9322009-08-08 Ulrich Drepper <drepper@redhat.com>
933
934 * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
935 section as the other functions for this architecture.
936 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
937
57b378ac
UD
9382009-08-07 Ulrich Drepper <drepper@redhat.com>
939
0fda545d
UD
940 * sysdeps/x86_64/strcmp.S: Add support to compile with
941 USE_SSSE3. In this case palignr is used.
677760a3 942 * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
0fda545d
UD
943 available but SSSE3 is, pick __str{,n}cmp_ssse3.
944 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
945 Add strcmp-ssse3 and strncmp-ssse3.
946 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
947 * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
948
57b378ac
UD
949 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
950 warning through fake initialization.
951
0eca608d
L
9522009-08-07 H.J. Lu <hongjiu.lu@intel.com>
953
954 * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
955
7bc513cf
AS
9562009-08-07 Andreas Schwab <schwab@redhat.com>
957
958 * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
959 unique symbols.
960
a546baa9
L
9612009-08-05 H.J. Lu <hongjiu.lu@intel.com>
962
963 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
964 EBX from EAX = 1. Handle EAX = 11.
965
77c84aeb
AS
9662009-08-07 Andreas Schwab <schwab@redhat.com>
967
968 * Makefile (TAGS): Use separate sed -e expressions to avoid \
969 inside ''.
970
02cea471
L
9712009-08-03 H.J. Lu <hongjiu.lu@intel.com>
972
2c709c6f
UD
973 * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
974 hidden IFUNC functions.
975 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
976
977 * sysdeps/i386/i686/multiarch/strlen.S: New file.
978
02cea471
L
979 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
980 (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
981 strcasestr-c.
982 (CFLAGS-strcspn-c.c): Define.
983 (CFLAGS-strpbrk-c.c): Define.
984 (CFLAGS-strspn-c.c): Define.
985 (CFLAGS-strstr.c): Define.
986 (CFLAGS-strcasestr.c): Define.
987 * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
988 * sysdeps/i386/i686/multiarch/strcspn.S: New file.
989 * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
990 * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
991 * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
992 * sysdeps/i386/i686/multiarch/strspn.S: New file.
993 * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
994 * sysdeps/i386/i686/multiarch/strstr.c: New file.
995 * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
996 * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
997 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
998 -16L instead of 0xfffffffffffffff0L.
999 * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1000
51921047
UD
10012009-08-02 Ulrich Drepper <drepper@redhat.com>
1002
1003 * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1004
66ae9e50
UD
10052009-07-31 Ulrich Drepper <drepper@redhat.com>
1006
e4143e7a
UD
1007 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1008 another rewrite. Much smaller and faster.
1009 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1010
66ae9e50
UD
1011 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1012 ss_flags from the correct location.
1013
6f6f1215
L
10142009-07-31 H.J. Lu <hongjiu.lu@intel.com>
1015
1016 * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1017 * sysdeps/i386/i686/cacheinfo.c: New file.
1018 * sysdeps/i386/i686/multiarch/Makefile: New file.
1019 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1020 * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1021 * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1022 * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1023 * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1024 * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1025 (__cpuid_count): New. Provide the default.
1026 (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1027 (__x86_64_preferred_memory_instruction): Define only if
1028 DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1029 (intel_check_word): Use __cpuid.
1030 (handle_intel): Likewise.
1031 (handle_amd): Likewise.
1032 (__cache_sysconf): Likewise.
1033 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
1034 (__cache_sysconf): Likewise.
1035 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
1036 * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1037 (get_common_indeces): Use __cpuid.
1038 (__init_cpu_features): Likewise. Disable SSSE3 on Atom only
1039 if ENABLE_SSSE3_ON_ATOM is not defined.
1040 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1041 * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1042 popcnt instead of popcntq.
1043
1877ea16
JJ
10442009-07-31 Jakub Jelinek <jakub@redhat.com>
1045
1046 * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1047
2dec6007
UD
10482009-07-30 Ulrich Drepper <drepper@redhat.com>
1049
da97dfdc
UD
1050 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1051 * sysdeps/i386/____longjmp_chk.S: Remove all code. This is now a file
1052 which always causes a compile error.
1053
1054 * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1055
98b1e6c8
UD
1056 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file. Content
1057 comes from...
1058 * sysdeps/x86_64/____longjmp_chk.S: ...here. This is now a file
1059 which always causes a compile error.
1060
a9a04420
UD
1061 * debug/Makefile (tests): Add tst-longjmp_chk2.
1062 * debug/tst-longjmp_chk2.c: New file.
1063
5ead9ce5
UD
1064 * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling. Fix CFI.
1065 Remove incorrect use of BP_SYM.
1066 * sysdeps/x86_64/____longjmp_chk.S: Rewrite. Complete implementation
1067 here now since it is more complex than just a simple check.
1068
2dec6007
UD
1069 * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1070 we make no more progress.
1071
649bf133
UD
10722009-07-29 Ulrich Drepper <drepper@redhat.com>
1073
78c4ef47
UD
1074 * math/s_fma.c: Don't define alias if __fma is a macro.
1075 * math/s_fmaf.c: Likewise.
1076 * sysdeps/x86_64/multiarch/s_fma.c: New file.
1077 * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1078 Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1079
1080 * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1081 (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1082 New macro HAS_FMA.
1083 * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1084 function.
1085 * include/libc-symbols.h (libm_ifunc): Define.
1086 * sysdeps/x86_64/multiarch/Versions: New file.
1087
586fa886 1088 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
649bf133 1089
09e0389e
L
10902009-07-28 H.J. Lu <hongjiu.lu@intel.com>
1091
1092 * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1093
b48a267b
UD
10942009-07-29 Ulrich Drepper <drepper@redhat.com>
1095
1096 * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1097 call that registers used in calling conventions need to be preserved.
1098 * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1099 to preserve register content if necessary.
1100 * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1101 (_dl_x86_64_restore_sse): New function.
1102 * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1103 is allowed to modify xmm/ymm registers.
1104
1105 * stdio-common/scanf15.c: Undefine _LIBC. We want to test from an
1106 application's perspective.
1107 * stdio-common/scanf17.c: Likewise.
1108
96553893
UD
11092009-07-28 Ulrich Drepper <drepper@redhat.com>
1110
1111 * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1112 size to memsz.
1113 (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1114 here.
1115 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1116 two steps to catch bugs.
1117
2d0671cb
AT
11182009-07-27 Ulrich Drepper <drepper@redhat.com>
1119
e83c1a8a
UD
1120 * sysdeps/x86_64/tst-xmmymm.sh: Refine testing. The script now
1121 determines which files are used in runtime lookups and only checks
1122 those for SSE use.
1123 * sysdeps/x86_64/rtld-memchr.c: Removed. Not needed with refined
1124 testing.
1125 * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
1126 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
1127 * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
1128 take a while.
1129
1130 * elf/dl-open.c: Move _dl_scope_free to...
1131 * elf/dl-scope.c: ...here. New file.
1132 * elf/Makefile (dl-routines): Add scope.
1133
2d0671cb
AT
1134 * resolv/resolv.h (RES_USE_DNSSEC): Define.
1135 * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1136 RES_USE_DNSSEC.
1137 * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1138 * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1139 all the places we handled RES_USE_EDNS0 only before.
1140 Patch by Adam Tkac <atkac@redhat.com>.
1141
09cd1f57
JJ
11422009-07-27 Jakub Jelinek <jakub@redhat.com>
1143
1144 * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1145 3/4 full. Pass size + 1 rather than size to _dl_higher_prime_number.
1146 Update size when reallocating.
1147
16d2ea4c
UD
11482009-07-26 Ulrich Drepper <drepper@redhat.com>
1149
1150 * sysdeps/x86_64/tst-xmmymm.sh: New file. Check whether any of the
1151 functions used in ld.so modify xmm/ymm registers.
1152 * sysdeps/x86_64/Makefile: Hook new test up.
1153 * sysdeps/x86_64/rtld-memchr.c: New file.
1154 * sysdeps/x86_64/rtld-memcmp.c: New file.
1155 * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1156 * sysdeps/x86_64/rtld-strchr.S: New file.
16d2ea4c
UD
1157 * sysdeps/x86_64/rtld-strlen.S: New file.
1158 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1159 * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1160
dc8e5eb6
UD
11612009-07-26 H.J. Lu <hongjiu.lu@intel.com>
1162
1163 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1164 strncmp-c.
1165 * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1166 (exit): Likewise.
1167 (Byte1): Likewise.
1168 (Byte2): Likewise.
1169 (Byte3): Likewise.
1170 (Byte4): Likewise.
1171 (Byte5): Likewise.
1172 (Byte6): Likewise.
1173 (next_8_bytes): Likewise.
1174 (Byte0): Remove commented out codes.
1175 (unaligned_table): Align jump table at 8 bytes.
1176 Add _sse4_2 to all labels. Always include "../strcmp.S".
1177 * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1178 * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1179 * sysdeps/x86_64/strncmp.S: New file.
1180
889f847e
UD
11812009-07-26 Ulrich Drepper <drepper@redhat.com>
1182
aa7492d2
UD
1183 [BZ #10422]
1184 * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1185 kernels, dropped when eventfd2 support was added.
1186 * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1187 kernels, dropped when signalfd4 support was added.
1188 * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1189 added, name them.
1190
e28b969b
UD
1191 [BZ #10452]
1192 * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1193 replies up.
1194
889f847e
UD
1195 * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1196
29e92fa5
UD
11972009-07-25 Ulrich Drepper <drepper@redhat.com>
1198
4e5b5821
L
1199 * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1200 modern processor versions. Patch by H.J. Lu <hongjiu.lu@intel.com>.
1201
65731753
UD
1202 [BZ #10448]
1203 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
1204 callback we must touch the status to avoid using stale value.
1205
29e92fa5
UD
1206 * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
1207 compiled in.
1208
da331e8e
UD
12092009-07-24 Ulrich Drepper <drepper@redhat.com>
1210
1211 * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
1212 /lib/modules/* headers anymore. We have sane headers in the standard
1213 place now.
1214
f957edde
AK
12152009-06-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1216
1217 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
1218 "etf3enh" and "highgprs" added.
1219 (_dl_s390_platforms): "z10" added.
1220 * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
1221 Increased for the new entries.
1222 (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
1223 HWCAP_S390_HIGH_GPRS added.
1224
1225 * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
1226 * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
1227 * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
1228 * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
1229 * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
1230
802fe9a1
UD
12312009-07-23 Ulrich Drepper <drepper@redhat.com>
1232
b2509a1e
UD
1233 * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
1234 avoid additional cpuid instructions. Most of the information is
1235 stored somewhere.
1236
3e9099b4
UD
1237 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
1238 cache descriptors.
1239 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
1240
d28797e4
UD
1241 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
1242 SSSE3 bit for Atoms.
1243 * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
1244 here anymore.
1245
666a9871
UD
1246 * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
1247 structure before copying it to avoid warning.
1248 * posix/tst-rfc3484-2.c (do_test): Likewise.
1249 * posix/tst-rfc3484-3.c (do_test): Likewise.
1250
30a2dfd5
DS
1251 [BZ #10416]
1252 * include/unistd.h: Make header file suitable for C++ test cases.
1253 Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
1254
9b6bf8a3
UD
1255 * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
1256 stack alignment in the exit code.
1257
077e7700
UD
1258 * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
1259 potentially be zero.
1260
802fe9a1
UD
1261 * elf/tst-unique1.c: Extend test to check for unloading DSO with
1262 unique symbol definition.
1263 Patch by Jakub Jelinek.
1264 * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
1265 make sure the object with the definition cannot be unloaded. Adjust
1266 a few types.
1267 * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
1268 the unique symbol hash table should not be const.
1269
ae612b04
UD
12702009-07-21 Ulrich Drepper <drepper@redhat.com>
1271
1272 * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups. Remove
1273 unnecesary variables. Comment fixes.
1274
a8f895eb
UD
12752009-07-20 Ulrich Drepper <drepper@redhat.com>
1276
1277 * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
1278 Use NONASCII_CASE information provided by the locale to determine
1279 whether optimized string load function can be used. Minor cleanups.
1280
2b7a8664
L
12812009-07-20 H.J. Lu <hongjiu.lu@intel.com>
1282
1283 * string/strcasestr.c (STRCASESTR): New macro.
1284 (__strcasestr): Renamed to ..
1285 (STRCASESTR): ...this.
1286 * string/strstr.c (STRSTR): New macro.
1287 (strstr): Renamed to ..
1288 (STRSTR): ...this.
1289 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1290 strstr-c strcasestr-c
1291 (CFLAGS-strstr.c): New.
1292 (CFLAGS-strcasestr.c): Likewise.
1293 * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
1294 * sysdeps/x86_64/multiarch/strcasestr.c: New file.
1295 * sysdeps/x86_64/multiarch/strstr-c.c: New file.
1296 * sysdeps/x86_64/multiarch/strstr.c: New file.
1297
8a449450
UD
12982009-07-20 Ulrich Drepper <drepper@redhat.com>
1299
1300 * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
1301 * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
1302 * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
1303 _NL_CTYPE_NONASCII_CASE.
1304 * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
1305 field.
1306 (ctype_finish): Check whether there are any 8-bit characters outside
1307 the range ASCII has or whether the mapping isn't the same as for
1308 ASCII (±0x20). Set nonascii_case appropriately.
1309 (ctype_output): Add output handler for nonascii_case.
1310
63601ccd
UD
13112009-07-17 Ulrich Drepper <drepper@redhat.com>
1312
1313 * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
1314 CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
1315
1c0ab5bd
UD
13162009-07-16 Ulrich Drepper <drepper@redhat.com>
1317
1318 [BZ #10360]
1319 * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
1320 0xffff in the EDNS0 record.
1321
bec466d9 13222009-07-16 Ulrich Drepper <drepper@redhat.com>
50158f95
AS
1323
1324 * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
1325 instead of atomic_compare_and_exchange_bool_acq to ensure pointer
1326 is written before the list head update.
1327 Patch by Andreas Schwab <aschwab@redhat.com>.
1328
137028b4 13292009-07-16 Ulrich Drepper <drepper@redhat.com>
bec466d9
UD
1330 Jakub Jelinek <jakub@redhat.com>
1331
1332 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
1333 corruption thread-safe.
1334
bea0ac1d
JJ
13352009-07-13 Jakub Jelinek <jakub@redhat.com>
1336
1337 * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
1338 overrides atomic_compare_and_exchange_val_rel, define to
1339 atomic_compare_and_exchange_val_rel by default, otherwise default
1340 to catomic_compare_and_exchange_val_acq.
1341 (catomic_compare_and_exchange_bool_rel): If arch overrides
1342 atomic_compare_and_exchange_bool_rel, define to
1343 atomic_compare_and_exchange_bool_rel by default.
1344 * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
1345 Use catomic_compare_and_exchange_val_rel instead of
1346 catomic_compare_and_exchange_val_acq.
1347
c8027cce
UD
13482009-07-16 Ulrich Drepper <drepper@redhat.com>
1349
55c4ce68
UD
1350 * sysdeps/generic/ldsodefs.h: Add prototype for
1351 _dl_higher_prime_number.
1352 * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
1353
c8027cce
UD
1354 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
1355 restoring of ymm registers a bit.
1356
e26c9b84
L
13572009-07-15 H.J. Lu <hongjiu.lu@intel.com>
1358
1359 * sysdeps/x86_64/memcmp.S: New file.
1360
d7bd7a8a 13612009-07-15 Ulrich Drepper <drepper@redhat.com>
59cbcac0 1362
d7bd7a8a
UD
1363 * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
1364 * sysdeps/x86-64/dl-trampoline.S: ...here. Rewrite to avoid function
1365 pointers in writable memory.
59cbcac0 1366
b0ecde3a
L
13672009-07-07 H.J. Lu <hongjiu.lu@intel.com>
1368
1369 * config.h.in: Add HAVE_AVX_SUPPORT entry.
1370 * config.make.in: Add config-cflags-avx entry.
1371 * configure.in: Substitute libc_cv_cc_avx.
1372 * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
1373 * elf/tst-audit4.c: New file.
1374 * elf/tst-audit5.c: New file.
1375 * elf/tst-auditmod4a.c: New file.
1376 * elf/tst-auditmod4b.c: New file.
1377 * elf/tst-auditmod5a.c: New file.
1378 * elf/tst-auditmod5b.c: New file.
1379 * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
1380 link-defines.sym.
1381 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
1382 (La_x86_64_vector): Likewise.
1383 (La_x86_64_regs): Append lr_vector.
1384 (La_x86_64_retval): Append lr_vector0/lrv_vector1.
1385 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1386 saving and restoring SSE registers to ...
1387 * sysdeps/x86_64/dl-trampoline.h: This. New file.
1388 * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
1389 <link-defines.h>.
1390 (_dl_runtime_profile): Use LR_SIZE to allocate space for
1391 La_x86_64_regs. Allocate extra space and jump to memory at
1392 save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
1393 (save_and_restore_vector_sse): New.
1394 (save_and_restore_vector_avx): Likewise.
1395 (check_avx): Likewise.
1396 (save_and_restore_vector): Likewise.
1397 * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
1398 HAVE_AVX_SUPPORT.
1399 * sysdeps/x86_64/link-defines.sym: New file.
1400
339717d5
UD
14012009-07-10 Ulrich Drepper <drepper@redhat.com>
1402
786b74f4
UD
1403 * elf/do-lookup.h: Removed after folding content into...
1404 * elf/dl-lookup.c: ...here.
1405
339717d5
UD
1406 * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
1407
415ac3df
UD
14082009-07-09 Ulrich Drepper <drepper@redhat.com>
1409
1410 * configure.in: Check for gnu_unique_symbol symbol type.
1411 * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
1412 * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
1413 the undefined symbol. Handle STB_GNU_UNIQUE binding of found symbol.
1414 * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
1415 change.
1416 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
1417 unique symbol table.
1418 * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
1419 for first namespace.
1420 * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
1421 unique symbol hash table.
1422 * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
1423 * elf/tst-unique1.c: New file.
1424 * elf/tst-unique1mod1.c: New file.
1425 * elf/tst-unique1mod2.c: New file.
1426 * elf/tst-unique2.c: New file.
1427 * elf/tst-unique2mod1.c: New file.
1428 * elf/tst-unique2mod2.c: New file.
1429
eba0994e
UD
14302009-07-07 Ulrich Drepper <drepper@redhat.com>
1431
b4f55afd
UD
1432 * elf/elf.h (STB_GNU_UNIQUE): Define.
1433
eba0994e
UD
1434 * elf/dl-misc.c (_dl_higher_prime_number): New function. Moved here
1435 from...
1436 * include/inline-hashtab.h: ...here.
1437 (htab_expand): Adjust for renamed function. Correct memory handling.
1438
a38862a5
UD
14392009-07-06 Ulrich Drepper <drepper@redhat.com>
1440
415ac3df 1441 * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
a38862a5 1442
2123d581
AS
14432009-07-03 Andreas Schwab <aschwab@redhat.com>
1444
1445 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
1446 (PPC_FEATURE_HAS_VSX): Likewise.
1447
d6485c98
UD
14482009-07-03 Ulrich Drepper <drepper@redhat.com>
1449
cea43295
UD
1450 * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
1451 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
1452
d6485c98
UD
1453 * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
1454 aligned to 16 byte boundaries.
1455 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1456 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1457 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1458
06e51c8f
L
14592009-07-02 H.J. Lu <hongjiu.lu@intel.com>
1460
1461 * config.h.in (HAVE_SSE4_SUPPORT): New macro.
1462 * config.make.in (config-cflags-sse4): New variable.
1463 * configure.in: Substitute libc_cv_cc_sse4.
1464 * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
1465 HAVE_SSE4_SUPPORT.
1466 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1467 strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
1468 * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
1469 * sysdeps/x86_64/multiarch/strcspn.S: New file.
1470 * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
1471 * sysdeps/x86_64/multiarch/strpbrk.S: New file.
1472 * sysdeps/x86_64/multiarch/strspn-c.c: New file.
1473 * sysdeps/x86_64/multiarch/strspn.S: New file.
1474
ab6a873f
L
14752009-06-30 H.J. Lu <hongjiu.lu@intel.com>
1476
167d5ed5
L
1477 * elf/Makefile (distribute): Remove tst-audit.sh. Add
1478 tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
1479 (tests): Add tst-audit3 for x86_64.
1480 (modules-names): Add tst-auditmod3a, tst-auditmod3b.
1481 ($(objpfx)tst-audit3): Define.
1482 ($(objpfx)tst-audit3.out): Define.
1483 (tst-audit3-ENV): Define.
1484 * elf/tst-audit3.c: New file.
1485 * elf/tst-auditmod3a.c: New file.
1486 * elf/tst-auditmod3b.c: New file.
1487 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
1488 and restore xmm6.
1489
ab6a873f
L
1490 * string/stpncpy.c (STPNCPY): New. Defined if not defined.
1491 (__stpncpy): Renamed to ...
1492 (STPNCPY): This.
1493 (stpncpy): Create alias only if STPNCPY is not defined.
1494 * string/strncpy.c (STRNCPY): New. Defined to strncpy if not
1495 defined.
1496 (strncpy): Renamed to ...
1497 (STRNCPY): This.
1498 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1499 stpncpy-c strncpy-c for string.
1500 * sysdeps/x86_64/multiarch/stpcpy.S: New file.
1501 * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
1502 * sysdeps/x86_64/multiarch/stpncpy.S: New file.
1503 * sysdeps/x86_64/multiarch/strcpy.S: New file.
1504 * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
1505 * sysdeps/x86_64/multiarch/strncpy.S: New file.
1506
6cbbaa50
UD
15072009-07-02 Ulrich Drepper <drepper@redhat.com>
1508
1509 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
1510 adding to fast bin list.
1511
29ba9812
UD
15122009-07-01 Ulrich Drepper <drepper@redhat.com>
1513
2fd0cd8b
UD
1514 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
1515 inet_makeaddr. This worked only with class-based networks.
1516 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
1517 Likewise.
1518
29ba9812 1519 * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
5cd1f906 1520 recognize all types.
29ba9812 1521 * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
5cd1f906
UD
1522 to getnetbyaddr. Fix network parameter to getnetbyaddr. It must
1523 be in host byte order.
29ba9812 1524
01812913
L
15252009-06-26 H.J. Lu <hongjiu.lu@intel.com>
1526
1527 * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
1528 (MODEL_OFFSET): Define.
1529 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
1530 family and model.
1531 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
1532 out common code into new function get_common_indeces. Determine
1533 extended family and model for Intel processors.
1534
44d20bca
UD
15352009-06-26 Ulrich Drepper <drepper@redhat.com>
1536
1537 * resolv/resolv.h: Define RES_SNGLKUPREOP.
1538 * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
1539 option.
1540 * resolv/res_send.c (reopen): New function. Broken out of...
1541 (send_dg): ... here. Recognize RES_SNGLKUPREOP. Implement second
1542 fallback mechanism. If single-request fails switch to
1543 single-request-reopen mode which opens a new socket for the second
1544 request.
1545
80a98966
AS
15462009-06-25 Andreas Schwab <aschwab@redhat.com>
1547
1548 * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
1549 (CHECK_SP): Use it.
54c99aab 1550
3f241d75
AS
15512009-06-24 Andreas Schwab <aschwab@redhat.com>
1552
1553 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
1554 for saved registers.
1555 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
1556 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
1557 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
1558
7a7c2c24
AS
15592009-06-23 Andreas Schwab <aschwab@redhat.com>
1560
1561 * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
1562
20a3ce85
UD
15632009-06-22 Ulrich Drepper <drepper@redhat.com>
1564
58d60030
UD
1565 * po/id.po: Update from translation team.
1566
20a3ce85
UD
1567 * po/bg.po: Update from translation team.
1568
772f4e6a
L
15692009-06-22 H.J. Lu <hongjiu.lu@intel.com>
1570
1571 * string/strncmp.c (STRNCMP): New. Defined to strncmp if not
1572 defined.
1573 (strncmp): Renamed to STRNCMP.
1574 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1575 strncmp-c for string.
1576 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
1577 * sysdeps/x86_64/multiarch/strcmp.S: New file.
1578 * sysdeps/x86_64/multiarch/strncmp.S: New file.
1579 * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
1580
3c30afc8
L
15812009-06-19 H.J. Lu <hongjiu.lu@intel.com>
1582
1583 * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
1584 ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
1585 ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
1586 ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
1587 ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
1588 ifuncmain7static.c.
1589 (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
1590 ifuncmain7static, and ifuncmain7picstatic.
1591 (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
1592 $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
1593 $(objpfx)ifuncmain7pie.out.
1594 (modules-names): Add ifuncmod5 ifuncmod6
1595 (ifuncmod5.so-no-z-defs): Define.
1596 (ifuncmod6.so-no-z-defs): Define.
1597 (CFLAGS-ifuncmain5pic.c): Define.
1598 (CFLAGS-ifuncmain5picstatic.c): Define.
1599 (CFLAGS-ifuncmain5staticpic.c): Define.
1600 (CFLAGS-ifuncdep5pic.c): Define.
1601 (CFLAGS-ifuncmain7pic.c): Define.
1602 (CFLAGS-ifuncmain7picstatic.c): Define.
1603 (CFLAGS-ifuncmain1staticpie.c): Define.
1604 (CFLAGS-ifuncmain5pie.c): Define.
1605 (CFLAGS-ifuncmain6pie.c): Define.
1606 (CFLAGS-ifuncmain7pie.c): Define.
1607 ($(objpfx)ifuncmain1staticpie.out): Define.
1608 ($(objpfx)ifuncmain1staticpie): Define.
1609 ($(objpfx)ifuncmain5pie.out): Define.
1610 ($(objpfx)ifuncmain5pie): Define.
1611 ($(objpfx)ifuncmain6pie.out): Define.
1612 ($(objpfx)ifuncmain6pie): Define.
1613 ($(objpfx)ifuncmain5): Define.
1614 ($(objpfx)ifuncmain5pic): Define.
1615 ($(objpfx)ifuncmain5static): Define.
1616 ($(objpfx)ifuncmain5staticpic): Define.
1617 ($(objpfx)ifuncmain5picstatic): Define.
1618 (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
1619 ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
1620 ifuncmain6pie.out.
1621 * elf/b/elf/ifuncmain1staticpie.c: New file.
1622 * elf/ifuncdep5.c: New file.
1623 * elf/ifuncdep5pic.c: New file.
1624 * elf/ifuncmain5.c: New file.
1625 * elf/ifuncmain5pic.c: New file.
1626 * elf/ifuncmain5picstatic.c: New file.
1627 * elf/ifuncmain5pie.c: New file.
1628 * elf/ifuncmain5static.c: New file.
1629 * elf/ifuncmain5staticpic.c: New file.
1630 * elf/ifuncmain6pie.c: New file.
1631 * elf/ifuncmain7.c: New file.
1632 * elf/ifuncmain7pic.c: New file.
1633 * elf/ifuncmain7picstatic.c: New file.
1634 * elf/ifuncmain7pie.c: New file.
1635 * elf/ifuncmain7static.c: New file.
1636 * elf/ifuncmod5.c: New file.
1637 * elf/ifuncmod6.c: New file.
1638
ccab6d8f
UD
16392009-06-20 Ulrich Drepper <drepper@redhat.com>
1640
1641 [BZ #10085]
1642 * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
1643 (nss_endgrent): New variable.
1644 (struct ent_t): Add need_endgrent and skip_initgroups_dyn
1645 fields. Change type of files to bool and adjust all users.
1646 (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
1647 (internal_endgrent): Call nss_endgrent if necessary.
1648 (add_group): New function. Broken out of...
1649 (check_and_add_group): ...here.
1650 (getgrent_next_nss): Remove test that any callback is available.
1651 Use skip_initgroups_dyn to determine whether to use initgroups_dyn
1652 callback. If there is no blacklist we can trust the results returned
1653 by the initgroups_dyn callback. In case there is a callback and we
1654 find a group entry for the group ID but it doesn't contain the
1655 correct member, switch to the slow mode and use getgrent_r.
1656 (internal_getgrent_r): When we see a +: entry, determine whether
1657 there is any callback and which we can use the initgroups_dyn
1658 callback.
1659
d0a2af71
UD
16602009-06-18 Ulrich Drepper <drepper@redhat.com>
1661
f6887a0d
UD
1662 * malloc/malloc.c (_int_malloc): Add some consistency checks.
1663 (_int_free): Likewise.
1664
d0a2af71
UD
1665 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
1666 AF_IEEE802154.
1667 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1668 * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
1669 and ARPHRD_IEEE802154_PHY.
1670
1671 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
1672 relative to generic Linux version.
1673
d8366b09
L
16742009-06-17 H.J. Lu <hongjiu.lu@intel.com>
1675
1676 * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
1677 ($(objpfx)ifuncmain1vispie): Likewise.
1678
f051ddfe
UD
16792009-06-16 Ulrich Drepper <drepper@redhat.com>
1680
1681 * login/Makefile: Build pt_chown as PIE.
1682
f60ddf9b
AS
16832009-06-15 Andreas Schwab <aschwab@redhat.com>
1684
1685 * debug/xtrace.sh (do_help): Don't treat bug reporting message as
1686 a format string.
1687 * elf/sln.c (usage): Likewise.
1688 * malloc/memusage.sh (do_help): Likewise.
1689 * nss/getent.c (more_help): Likewise.
1690 * posix/getconf.c (main): Likewise.
1691 * sunrpc/rpcinfo.c (usage): Likewise.
1692 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1693
f793b624
UD
16942009-06-16 Ulrich Drepper <drepper@redhat.com>
1695
8a909c64
UD
1696 * login/programs/pt_chown.c: Use libcap to drop privileges other than
1697 those needed.
f793b624 1698 * login/Makefile: If necessary link pt_chown with -lcap.
8a909c64
UD
1699 * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
1700 * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
f793b624 1701
fab8238d
JJ
17022009-06-16 Jakub Jelinek <jakub@redhat.com>
1703
1704 * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
1705 comparisons.
1706 * string/test-memchr.c (do_random_tests): Test very large lengths
1707 as well.
1708
435aa54b
L
17092009-06-02 H.J. Lu <hongjiu.lu@intel.com>
1710
1711 * Makeconfig (+link-pie): Define.
1712 (+prectorS): Define.
1713 (+postctorS): Define.
1714 * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
1715 * nscd/Makefile ($(objpfx)nscd): Likewise.
1716
25bfbb9e
RA
17172009-04-22 Ryan S. Arnold <rsa@us.ibm.com>
1718
1719 [BZ #10107]
1720 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
1721 with cmplwi.
1722 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
1723
b34de9ea
UD
17242009-06-16 Ulrich Drepper <drepper@redhat.com>
1725
1726 * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
1727 into ...
1728 * sysdeps/unix/grantpt.c: ...here.
1729
a468a1d4
UD
17302009-06-15 Ulrich Drepper <drepper@redhat.com>
1731
837dea7c
UD
1732 * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
1733 chmod if it is necessary.
1734
292e3abe 1735 [BZ #10166]
eae3208e
UD
1736 * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
1737 when the slave device is in devpts or devfs.
292e3abe 1738
395a37e3
UD
1739 [BZ #10183]
1740 * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
1741
7ed520bd
AE
1742 [BZ #10195]
1743 * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
1744 of nd_opt_home_agent_info_preference to uint16_t.
1745 Patch by Arnaud Ebalard <arno@natisbad.org>.
1746
c518f9a4 1747 [BZ #10207]
f6887a0d 1748 * nss/getent.c: Add support for printing gshadow data.
c518f9a4 1749
233a182b
JL
1750 [BZ #10203]
1751 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
1752 not just the currently used one and those which follow.
1753 Patch by Joe Landers <jlanders@vmware.com>.
1754
4155d926
BD
1755 [BZ #10196]
1756 * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
eae3208e 1757 * libio/Makefile: Run tst-fgetwc with necessary envvar.
4155d926
BD
1758 Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
1759
48dcd0ba
UD
1760 [BZ #10217]
1761 * stdlib/abort.c: Define variable __abort_msg.
1762 * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
1763 * include/stdlib.h: Declare __abort_msg.
1764 * assert/assert-perr.c: Don't free buffer for message immediately.
1765 Store atomically in __abort_msg and free old buffer if necessary.
1766 * assert/assert.c: Likewise.
1767 * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
1768 store pointer in __abort_msg, and possibly free old string.
1769 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
1770
6355c997
UD
1771 * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
1772
29143408
AH
1773 [BZ #10211]
1774 * time/tzfile.c (__tzfile_compute): If we use the envvar format still
1775 handle leap seconds if they are available.
1776 Patch by Akinori Hattori <hattya@gentoo.org>.
1777
5fb55a68
UD
1778 * timezone/tzselect.ksh: Update from tzcode2009i.
1779 * timezone/zdump.c: Likewise.
1780 * timezone/zic.c: Likewise.
1781
a468a1d4
UD
1782 * timezone/africa: Update from tzdata2009i.
1783 * timezone/antarctica: Likewise.
1784 * timezone/asia: Likewise.
1785 * timezone/australasia: Likewise.
1786 * timezone/backward: Likewise.
1787 * timezone/etcetera: Likewise.
1788 * timezone/europe: Likewise.
1789 * timezone/factory: Likewise.
1790 * timezone/iso3166.tab: Likewise.
1791 * timezone/leapseconds: Likewise.
1792 * timezone/northamerica: Likewise.
1793 * timezone/pacificnew: Likewise.
1794 * timezone/solar87: Likewise.
1795 * timezone/solar88: Likewise.
1796 * timezone/solar89: Likewise.
1797 * timezone/southamerica: Likewise.
1798 * timezone/systemv: Likewise.
1799 * timezone/yearistype: Likewise.
1800 * timezone/zone.tab: Likewise.
1801
02125962
JJ
18022009-06-15 Jakub Jelinek <jakub@redhat.com>
1803
1804 * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
1805 STT_GNU_IFUNC symbol or in 8 into type_class.
1806
1807 * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
1808 instead of Elf64_Addr.
1809
eb0b6cb6
UD
18102009-06-14 Ulrich Drepper <drepper@redhat.com>
1811
53c06891
UD
1812 * po/sv.po: Update from translation team.
1813
eb0b6cb6
UD
1814 [BZ #10229]
1815 * misc/sys/select.h (__NFDBITS): Expression should have type int.
1816 * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
1817 __FD_CLR, and __FD_ISSET. gcc nowadays generates better code from
1818 the C version.
1819
bfdb73e1
UD
18202009-06-12 Ulrich Drepper <drepper@redhat.com>
1821
1822 * Versions.def: Add GLIBC_2.11 for libpthread.
1823
310647e9
UD
18242009-06-11 Ulrich Drepper <drepper@redhat.com>
1825
1826 * resolv/res_send.c (send_dg): Remember we switched to
1827 single-request mode.
1828
d360a0da
UD
18292009-06-09 Ulrich Drepper <drepper@redhat.com>
1830
88ea382f
D
1831 * dlfcn/dlfcn.h: Remove comma at end of enum.
1832 Patch by J.H.M. Dassen <rdassen@redhat.com>.
1833
d360a0da
UD
1834 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
1835 parsing mode string.
1836
443caceb
UD
18372009-06-05 Ulrich Drepper <drepper@redhat.com>
1838
b77c9323
UD
1839 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
1840
1841 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
1842
3ab2d57a
UD
1843 * sysdeps/x86_64/multiarch/strlen.S: New file.
1844 * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
1845 * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
1846 * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
1847 content.
1848
443caceb
UD
1849 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
1850 is defined.
1851
747785f2
UD
18522009-06-04 Ulrich Drepper <drepper@redhat.com>
1853
2f3f7b9d 1854 * sysdeps/x86_64/strlen.S: Minor optimizations.
747785f2 1855
2f083d75
L
18562009-06-02 H.J. Lu <hongjiu.lu@intel.com>
1857
1858 * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
1859 ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
1860 ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
1861 ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
1862 ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
1863 funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
1864 ifuncmain3.c, ifuncmod3.c,.
1865 ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
1866 (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
1867 ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
1868 ifuncmain4picstatic.
1869 (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
1870 ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
1871 ifuncmain3, ifuncmain4.
1872 (tests): Depend on $(objpfx)ifuncmain1pie.out and
1873 $(objpfx)ifuncmain1vispie.out.
1874 (modules-names): Add ifuncmod1 ifuncmod3.
1875 (generated): Add ifuncmain1pie ifuncmain1pie.out
1876 ifuncmain1vispie ifuncmain1vispie.out.
1877 Define rules to build and run the tests.
1878 * elf/ifuncdep1.c: New file.
1879 * elf/ifuncdep1pic.c: New file.
1880 * elf/ifuncdep2.c: New file.
1881 * elf/ifuncdep2pic.c: New file.
1882 * elf/ifuncmain1.c: New file.
1883 * elf/ifuncmain1pic.c: New file.
1884 * elf/ifuncmain1picstatic.c: New file.
1885 * elf/ifuncmain1pie.c: New file.
1886 * elf/ifuncmain1static.c: New file.
1887 * elf/ifuncmain1staticpic.c: New file.
1888 * elf/ifuncmain1vis.c: New file..
1889 * elf/ifuncmain1vispic.c: New file..
1890 * elf/ifuncmain1vispie.c: New file.
1891 * elf/ifuncmain2.c: New file.
1892 * elf/ifuncmain2pic.c: New file.
1893 * elf/ifuncmain2picstatic.c: New file.
1894 * elf/ifuncmain2static.c: New file.
1895 * elf/ifuncmain3.c: New file.
1896 * elf/ifuncmain4.c: New file.
1897 * elf/ifuncmain4picstatic.c: New file.
1898 * elf/ifuncmain4static.c: New file.
1899 * elf/ifuncmod1.c: New file.
1900 * elf/ifuncmod3.c: New file.
1901
fbb04b35
UD
19022009-06-03 Ulrich Drepper <drepper@redhat.com>
1903
1904 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
1905
3d5243d4
UD
19062009-06-02 Ulrich Drepper <drepper@redhat.com>
1907
1908 [BZ #10221]
1909 * posix/Makefile (routines): Add execvpe.
1910 * posix/Versions: Export execvpe for GLIBC_2.11.
1911 * posix/execvp.c: Now only a wrapper. Move code to...
1912 * posix/execvpe.c: ...here. New file.
1913 * posix/unistd.h: Declare execvpe.
1914
b7629ee3
UD
19152009-06-01 Ulrich Drepper <drepper@redhat.com>
1916
fd96f062
UD
1917 * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
1918 for STT_GNU_IFUNC handling for efficiency.
1919 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1920
b7629ee3
UD
1921 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
1922 _exit.
1923 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
1924
8ea23729
UD
19252009-05-31 Ulrich Drepper <drepper@redhat.com>
1926
1927 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
1928 for !SHARED.
1929
74414708
UD
19302009-05-29 H.J. Lu <hongjiu.lu@intel.com>
1931
1932 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
1933 is not defined.
1934 (__rela_iplt_start): New declaration.
1935 (__rela_iplt_end): Likewise.
1936 (__rel_iplt_start): Likewise.
1937 (__rel_iplt_end): Likewise.
1938 (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
1939 * elf/elf.h (R_386_IRELATIVE): New macro.
1940 (R_X86_64_IRELATIVE): New macro.
1941 (R_386_NUM): Updated.
1942 (R_X86_64_NUM): Likewise.
1943 * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
1944 (libc_ifunc_hidden_def): New macro.
1945 * sysdeps/generic/dl-irel.h: New file.
1946 * sysdeps/i386/dl-irel.h: New file.
1947 * sysdeps/x86_64/dl-irel.h: New file.
1948 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
1949 (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
1950 Handle R_386_IRELATIVE.
1951 (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
1952 (elf_machine_lazy_rela): Likewise.
1953 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1954 R_X86_64_IRELATIVE.
1955 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
1956
963cb6fc
UD
19572009-05-31 Ulrich Drepper <drepper@redhat.com>
1958
1959 * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
1960 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. So far there
1961 are no differences. If an architecture has bits in CPUID index 1
1962 meaning different things the values for the COMMON_CPUID_INDEX_1
1963 index must not be set.
1964 (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
1965 (HAS_POPCOUNT): ...this. New macro.
1966 * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
1967 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. Unify code
1968 to set the value for Intel and AMD architectures.
1969 * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
1970 INTEL_CPUID_INDEX_1.
1971 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
1972 change.
1973
c16a054d
AS
19742009-05-30 Andreas Schwab <schwab@linux-m68k.org>
1975
1976 * configure.in: Move AC_CANONICAL_HOST before first use of $host
1977 and $build.
c16a054d 1978
7f3394bd
UD
19792009-05-29 Jakub Jelinek <jakub@redhat.com>
1980
1981 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
1982 (__expm1l): Set errno to ERANGE on overflow.
1983 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
1984 (__tanl): Set errno to EDOM for ±Inf.
1985 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
1986 (__cosl): Set errno to EDOM for ±Inf.
1987 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
1988 (__sinl): Set errno to EDOM for ±Inf.
1989
b8bb339f
UD
1990 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
1991 defined, use it.
1992 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
1993 * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
1994 * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
1995
1de0c161
UD
19962009-05-29 Ulrich Drepper <drepper@redhat.com>
1997
1998 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
1999 code accessing it.
2000 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2001
0323b051
AS
20022009-05-22 Andreas Schwab <schwab@linux-m68k.org>
2003
38ae768d
AS
2004 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
2005 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2006 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2007 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2008
0323b051
AS
2009 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2010 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2011 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2012 defined.
2013 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2014 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2015
1e1dc4e8
JJ
20162009-05-22 Jakub Jelinek <jakub@redhat.com>
2017
2018 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2019 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2020 is, either do nothing at all if __ASSUME_ACCEPT4, or
2021 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2022 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2023 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2024 define.
2025 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2026 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2027 internal_accept4 in socket directory.
2028
10495c0b
UD
20292009-05-20 H.J. Lu <hongjiu.lu@intel.com>
2030
2031 * sysdeps/ia64/configure.in: New file.
2032
fa64b7f7
UD
20332009-05-21 H.J. Lu <hongjiu.lu@intel.com>
2034
2035 [BZ #10162]
2036 * sysdeps/ia64/memchr.S: Use speculative load.
2037
d2812fc6
L
2038 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2039 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2040 use it.
2041
e7535de7
L
2042 * sysdeps/i386/__longjmp.S: Add .text.
2043 * sysdeps/x86_64/__longjmp.S: Likewise.
2044
3533b1a6
UD
20452009-05-21 Ulrich Drepper <drepper@redhat.com>
2046
2047 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2048 __ASSUME_ACCEPT4 for IA-64.
2049
a2292378
JJ
20502009-05-21 Jakub Jelinek <jakub@redhat.com>
2051
d14eda93
JJ
2052 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2053
a2292378
JJ
2054 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2055 (SOCKOP_accept4): Define.
2056
d4ab2f2a
UD
20572009-05-20 Ulrich Drepper <drepper@redhat.com>
2058
ab09b221
UD
2059 Sun approved the change of the license.
2060 * sunrpc/auth_des.c: Replace license text.
2061 * sunrpc/auth_none.c: Likewise.
2062 * sunrpc/auth_unix.c: Likewise.
2063 * sunrpc/authdes_prot.c: Likewise.
2064 * sunrpc/authuxprot.c: Likewise.
2065 * sunrpc/bindrsvprt.c: Likewise.
2066 * sunrpc/clnt_gen.c: Likewise.
2067 * sunrpc/clnt_perr.c: Likewise.
2068 * sunrpc/clnt_raw.c: Likewise.
2069 * sunrpc/clnt_simp.c: Likewise.
2070 * sunrpc/clnt_tcp.c: Likewise.
2071 * sunrpc/clnt_udp.c: Likewise.
2072 * sunrpc/clnt_unix.c: Likewise.
2073 * sunrpc/des_crypt.c: Likewise.
2074 * sunrpc/des_soft.c: Likewise.
2075 * sunrpc/get_myaddr.c: Likewise.
2076 * sunrpc/getrpcport.c: Likewise.
2077 * sunrpc/key_call.c: Likewise.
2078 * sunrpc/key_prot.c: Likewise.
2079 * sunrpc/openchild.c: Likewise.
2080 * sunrpc/pm_getmaps.c: Likewise.
2081 * sunrpc/pm_getport.c: Likewise.
2082 * sunrpc/pmap_clnt.c: Likewise.
2083 * sunrpc/pmap_prot.c: Likewise.
2084 * sunrpc/pmap_prot2.c: Likewise.
2085 * sunrpc/pmap_rmt.c: Likewise.
2086 * sunrpc/rpc/auth.h: Likewise.
2087 * sunrpc/rpc/auth_unix.h: Likewise.
2088 * sunrpc/rpc/clnt.h: Likewise.
2089 * sunrpc/rpc/des_crypt.h: Likewise.
2090 * sunrpc/rpc/key_prot.h: Likewise.
2091 * sunrpc/rpc/netdb.h: Likewise.
2092 * sunrpc/rpc/pmap_clnt.h: Likewise.
2093 * sunrpc/rpc/pmap_prot.h: Likewise.
2094 * sunrpc/rpc/pmap_rmt.h: Likewise.
2095 * sunrpc/rpc/rpc.h: Likewise.
2096 * sunrpc/rpc/rpc_des.h: Likewise.
2097 * sunrpc/rpc/rpc_msg.h: Likewise.
2098 * sunrpc/rpc/svc.h: Likewise.
2099 * sunrpc/rpc/svc_auth.h: Likewise.
2100 * sunrpc/rpc/types.h: Likewise.
2101 * sunrpc/rpc/xdr.h: Likewise.
2102 * sunrpc/rpc_clntout.c: Likewise.
2103 * sunrpc/rpc_cmsg.c: Likewise.
2104 * sunrpc/rpc_common.c: Likewise.
2105 * sunrpc/rpc_cout.c: Likewise.
2106 * sunrpc/rpc_dtable.c: Likewise.
2107 * sunrpc/rpc_hout.c: Likewise.
2108 * sunrpc/rpc_main.c: Likewise.
2109 * sunrpc/rpc_parse.c: Likewise.
2110 * sunrpc/rpc_parse.h: Likewise.
2111 * sunrpc/rpc_prot.c: Likewise.
2112 * sunrpc/rpc_sample.c: Likewise.
2113 * sunrpc/rpc_scan.c: Likewise.
2114 * sunrpc/rpc_scan.h: Likewise.
2115 * sunrpc/rpc_svcout.c: Likewise.
2116 * sunrpc/rpc_tblout.c: Likewise.
2117 * sunrpc/rpc_util.c: Likewise.
2118 * sunrpc/rpc_util.h: Likewise.
2119 * sunrpc/rpcinfo.c: Likewise.
2120 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2121 * sunrpc/rpcsvc/key_prot.x: Likewise.
2122 * sunrpc/rpcsvc/klm_prot.x: Likewise.
2123 * sunrpc/rpcsvc/mount.x: Likewise.
2124 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2125 * sunrpc/rpcsvc/rex.x: Likewise.
2126 * sunrpc/rpcsvc/rstat.x: Likewise.
2127 * sunrpc/rpcsvc/rusers.x: Likewise.
2128 * sunrpc/rpcsvc/sm_inter.x: Likewise.
2129 * sunrpc/rpcsvc/spray.x: Likewise.
2130 * sunrpc/rpcsvc/yppasswd.x: Likewise.
2131 * sunrpc/rtime.c: Likewise.
2132 * sunrpc/svc.c: Likewise.
2133 * sunrpc/svc_auth.c: Likewise.
2134 * sunrpc/svc_authux.c: Likewise.
2135 * sunrpc/svc_raw.c: Likewise.
2136 * sunrpc/svc_run.c: Likewise.
2137 * sunrpc/svc_simple.c: Likewise.
2138 * sunrpc/svc_tcp.c: Likewise.
2139 * sunrpc/svc_udp.c: Likewise.
2140 * sunrpc/svc_unix.c: Likewise.
2141 * sunrpc/svcauth_des.c: Likewise.
2142 * sunrpc/xcrypt.c: Likewise.
2143 * sunrpc/xdr.c: Likewise.
2144 * sunrpc/xdr_array.c: Likewise.
2145 * sunrpc/xdr_float.c: Likewise.
2146 * sunrpc/xdr_mem.c: Likewise.
2147 * sunrpc/xdr_rec.c: Likewise.
2148 * sunrpc/xdr_ref.c: Likewise.
2149 * sunrpc/xdr_sizeof.c: Likewise.
2150 * sunrpc/xdr_stdio.c: Likewise.
2151
d4ab2f2a
UD
2152 * po/da.po: Update from translation team.
2153
04733592
KK
21542009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2155
2156 * sysdeps/sh/____longjmp_chk.S: New file.
2157 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2158 * sysdeps/sh/sh4/__longjmp.S: Likewise.
a2292378 2159
5078fff6
JJ
21602009-05-18 Jakub Jelinek <jakub@redhat.com>
2161 Ulrich Drepper <drepper@redhat.com>
2162
2163 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2164 (__nscd_cache_search): Assume each entry in the
2165 hash chain needs one hashentry and half of datahead. Use
2166 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2167
95410b7b
UD
21682009-05-16 Ulrich Drepper <drepper@redhat.com>
2169
c457bc13
UD
2170 * posix/sys/wait.h: Fix typos. Pretty printing.
2171 * stdlib/stdlib.h: Likewise. Correct comments.
8f0d3f49 2172
a64039b0
UD
2173 [BZ #10159]
2174 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2175
95410b7b
UD
2176 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2177 patch.
2178
831a4049
UD
21792009-05-15 Ulrich Drepper <drepper@redhat.com>
2180
831a4049
UD
2181 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2182 Use it if we absolutely cannot reach any more correct list elements
2183 because that many do not fit into the currently mapped database.
2184
6dd78596
UD
21852009-05-14 Jakub Jelinek <jakub@redhat.com>
2186
cfe1fc10
JJ
2187 * nscd/nscd_helper.c: Include stddef.h.
2188 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
2189 in a couple of places. Return NULL if trail is not less than
2190 datasize, don't consider dataheads with length smaller than
2191 offsetof (struct datahead, data) + datalen.
2192 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2193 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2194 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2195 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2196 * nscd/nscd_getai.c (__nscd_getai): Likewise.
2197 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2198 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2199
6dd78596
UD
2200 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2201 Rename ...
2202 (fallocate64): ... to this.
2203 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
2204 Rename ...
2205 (fallocate64): ... to this.
2206 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
2207 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
2208 fallocate64@@GLIBC_2.10.
2209 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
2210 fallocate64@@GLIBC_2.11.
2211 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2212 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
2213 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2214 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
2215
6dd78596
UD
2216 * nscd/selinux.c (nscd_avc_destroy): Removed.
2217 * nscd/selinux.h (nscd_avc_destroy): Likewise.
2218 * nscd/nscd.c (termination_handler): Don't call
2219 nscd_avc_destroy.
2220
cfe1fc10
JJ
22212009-05-12 Jakub Jelinek <jakub@redhat.com>
2222
2223 * include/atomic.h: Formatting.
2224 (catomic_compare_and_exchange_val_acq): Don't define if already
2225 defined by bits/atomic.h.
2226
774f5a30
UD
22272009-05-15 Ulrich Drepper <drepper@redhat.com>
2228
bbc5d74d
UD
2229 * math/libm-test.inc (expm1_test): Add test for range error.
2230
b50f8e42
UD
2231 * Versions.def: Add GLIBC_2.11 for libc.
2232 * debug/Makefile (routines): Add longjmp_chk.
2233 Add rules to build and run tst-longjmp_chk.
2234 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
2235 * debug/longjmp_chk.c: New file.
2236 * debug/tst-longjmp_chk.c: New file.
2237 * include/bits/setjmp2.: New file.
2238 * include/stdio.h: Mark __fortify_fail as internal_function.
2239 * setjmp/Makefile (headers): Add bits/setjmp2.h.
2240 * setjmp/bits/setjmp2.h: New file.
2241 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
2242 of the aliases.
2243 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
2244 defined.
2245 * sysdeps/i386/____longjmp_chk.S: New file.
2246 * sysdeps/x86_64/____longjmp_chk.S: New file.
2247 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
2248 * sysdeps/x86_64/__longjmp.S: Likewise.
2249
dc50b613
UD
2250 * version.h: Bump for 2.11 development.
2251
774f5a30
UD
2252 * elf/check-execstack.c: New file.
2253 * elf/Makefile: Add rules to build and run check-execstack.
2254
deb84c43
UD
22552009-05-10 Ulrich Drepper <drepper@redhat.com>
2256
2257 * version.h (VERSION): Bump to 2.10.1.
2258
2259 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
2260 compatibility functions.
2261 * nss/getXXent_r.c: Likewise.
2262 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
2263 * gshadow/getsgnam_r.c: Likewise.
2264 * gshadow/Version: Remove duplicate entries.
2265
2266 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
2267 for recent processor.
2268 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
2269 Likewise.
2270
deb318c2
UD
22712009-05-09 Ulrich Drepper <drepper@redhat.com>
2272
2273 * version.h (VERSION): Bump for 2.10 release.
2274 * include/features.h (__GLIBC_MINOR__): Bump to 10.
2275
eb29449a
UD
2276 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
2277 same place we add ASFLAGS-config.
2278
cf4f16cc
UD
22792009-05-05 Aurelien Jarno <aurelien@aurel32.net>
2280
2281 [BZ #10128]
2282 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
2283 or FORMERR and the other NOERROR, don't raise an error.
2284
23b6b466
UD
22852009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
2286
2287 [BZ #10118]
2288 * Makeconfig (+asflags): New variable based upon ASFLAG or
2289 asflags-cpu.
2290 (ASFLAGS): Add override to set ASFLAGS to +asflags.
2291 * config.make.in (asflags-cpu): Add variable based upon
2292 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
2293 the assembler.
2294 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2295 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
2296 recognizes power6 instruction set due to passing -mcpu=power6 from
2297 --with-cpu=power6 when compiling .S files.
2298 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2299 Likewise.
2300 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2301 Likewise.
2302 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2303 Likewise.
2304
15417de3
UD
23052009-05-09 Jakub Jelinek <jakub@redhat.com>
2306
2307 * string/stratcliff.c (do_test): Test for zero length
2308 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
2309 at the end of the page.
2310
b5f7c4ca
UD
23112009-05-08 Ulrich Drepper <drepper@redhat.com>
2312
4300afc1
UD
2313 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
2314
2221e33e
UD
2315 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
2316 count is zero.
2317
b5f7c4ca
UD
2318 * po/da.po: Update from translation team.
2319
1765abb3
UD
23202009-05-05 Jakub Jelinek <jakub@redhat.com>
2321
2322 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
2323 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2221e33e 2324
b5f7c4ca
UD
23252009-05-05 Ulrich Drepper <drepper@redhat.com>
2326
2327 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
2328 and READ_IMPLIES_EXEC.
2329
23302009-05-04 Ulrich Drepper <drepper@redhat.com>
2331
2332 * po/da.po: Update from translation team.
2333
667712b8
JJ
23342009-04-29 Jakub Jelinek <jakub@redhat.com>
2335
2336 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
2337 comment change.
2338
6284c9f6
UD
23392009-04-27 Jakub Jelinek <jakub@redhat.com>
2340
2341 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
2342 to MAP_ANON in PROT_NONE mmap64 call.
2343 (open_archive): Likewise.
2344 (file_data_available_p): Use mmap64 instead of mremap.
2345 (enlarge_archive): Likewise. Update head if ah->addr changed.
2346 Attempt to reserve address space after mmap64 region.
2347
4ec77f72
UD
23482009-04-26 Ulrich Drepper <drepper@redhat.com>
2349
f0e3c47f
UD
2350 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
2351 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2352 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2353
49768bb9
UD
2354 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
2355 atanh should set ERANGE.
2356
e49dc847
UD
2357 [BZ #10087]
2358 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
2359 result of lookup to make call to implement STT_GNU_IFUNC.
2360 (_dl_profile_fixup): Likewise.
2361 Patch by H.J. Lu <hjl.tools@gmail.com>.
2362
1ac03a1e
UD
2363 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
2364 warning.
2365
6cc8844f
UD
2366 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
2367 from definition.
2368
2369 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
2370 label if it is not used.
2371
2372 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
2373 of gmon_hist_hdr and gmon_hdr structures and use them.
1ac03a1e 2374 * elf/sprof.c: Likewise.
6cc8844f
UD
2375
2376 * elf/dl-load.c (open_verify): Add temporary variable to avoid
2377 warning.
2378
2379 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
2380
2381 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
2382 to avoid cast.
2383
2384 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
2385 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
2386 to avoid warnings.
2387 (iruserok_af): Use ss_family instead of casts.
2388
2389 * gmon/gmon.c (write_hist): Define real-type variant of
2390 gmon_hist_hdr structure and use it.
2391 (write_gmon): Likewise for gmon_hdr.
2392
2393 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
2394 function if we are not going to define it.
2395 * sysdeps/unix/sysv/linux/writev.c: Likewise.
2396
218555e9 2397 * inet/inet6_option.c (option_alloc): Add temporary variable to
6cc8844f
UD
2398 avoid warning.
2399
2400 * libio/strfile.h (struct _IO_streambuf): Use correct type and
2401 name of VTable element.
2402 * libio/iovsprintf.c: Avoid casts to avoid warnings.
2403 * libio/iovsscanf.c: Likewise.
2404 * libio/vasprintf.c: Likewise.
2405 * libio/vsnprintf.c: Likewise.
2406 * stdio-common/isoc99_vsscanf.c: Likewise.
2407 * stdlib/strfmon_l.c: Likewise.
2408 * debug/vasprintf_chk.c: Likewise.
2409 * debug/vsnprintf_chk.c: Likewise.
2410 * debug/vsprintf_chk.c: Likewise.
2411
4ec77f72
UD
2412 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
2413 function pointers.
2414
82a1a4da
UD
24152009-04-26 Jakub Jelinek <jakub@redhat.com>
2416
2417 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
2418
db6edfb3
UD
24192009-04-25 Ulrich Drepper <drepper@redhat.com>
2420
27be9b92
UD
2421 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
2422
337c2708
UD
2423 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
2424 * sysdeps/i386/fpu/s_tanf.S: Likewise.
2425 * sysdeps/i386/fpu/s_tanl.S: Likewise.
2426 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2427 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2428 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
2429 * math/libm-test.inc: Add tests for errno after tan calls with
2430 ±Inf.
2431
002a604f
UD
2432 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
2433 errno value vor pow(+-0,neg).
2434 * math/libm-test.inc (pow_test): Add tests for errno value for
2435 pole errors.
2436
7095366d
UD
2437 * math/w_fmod.c: Also handle x=±Inf as error.
2438 * math/w_fmodf.c: Likewise.
2439 * math/w_fmodl.c: Likewise.
2440 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
2441 x=±Inf or y=0.
2442
0c59a196
UD
2443 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
2444 * sysdeps/i386/fpu/s_cosf.S: Likewise.
2445 * sysdeps/i386/fpu/s_cosl.S: Likewise.
2446 * sysdeps/i386/fpu/s_sin.S: Likewise.
2447 * sysdeps/i386/fpu/s_sinf.S: Likewise.
2448 * sysdeps/i386/fpu/s_sinl.S: Likewise.
2449 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2450 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2451 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2452 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2453 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2454 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
2455 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
2456 * math/libm-test.inc: Add tests for errno after sin/cos calls with
2457 ±Inf.
2458
4bbf8999
UD
2459 * stdlib/strtod_l.c (round_and_return): We have to set errno to
2460 ERANGE for underflows.
2461 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
2462
af9f1c48
UD
2463 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
2464 the 2001 revision.
2465
13327042
UD
2466 * libio/tst-widetext.input: Remove surrogates.
2467
c163ee23
UD
2468 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
2469
e971e76d 2470 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
81068e35 2471 for lgamma should set errno to ERANGE, not EDOM.
e971e76d
UD
2472 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
2473
c2d5bd5b
UD
24742009-04-24 Ulrich Drepper <drepper@redhat.com>
2475
9c32c895
UD
2476 [BZ #10093]
2477 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
2478 UTF-16 surrogates.
2479
c9edc889
UD
2480 * locale/programs/locarchive.c (enlarge_archive): Conserve address
2481 space when temporarily mapping the whole content of the old file.
2482
c2d5bd5b
UD
2483 [BZ #10100]
2484 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
2485 not zero.
2486
f397be12
UD
24872009-04-24 Jakub Jelinek <jakub@redhat.com>
2488
2489 * iconvdata/sjis.c (BODY): Don't advance inptr before
2490 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
2491 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
2492 two byte chars.
2493
705341a9
UD
24942009-04-24 Ulrich Drepper <drepper@redhat.com>
2495
2496 * locale/locarchive.h (struct locarhandle): Rename len field to
2497 mmaped and add new reserved field.
2498 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
2499 (create_archive): Reserve address space and then map file into it.
2500 (open_archive): Likewise.
2501 (file_data_available_p): New function.
2502 (compare_from_file): New function.
2503 (close_archive): Adjust to member name changes.
2504 (add_locale): Before comparing locale data, check it is mapped.
2505 Otherwise fall back to reading from the file.
2506
57d2da1c
UD
25072009-04-23 H.J. Lu <hongjiu.lu@intel.com>
2508
2509 * stdio-common/psiginfo.c: Include <errno.h>.
2510
3d855f75
UD
25112009-04-23 Ulrich Drepper <drepper@redhat.com>
2512
fe12c798
UD
2513 [BZ #9920]
2514 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
2515 to get consistency between 32 and 64 bit architectures.
2516
3d855f75
UD
2517 [BZ #10052]
2518 * sysdeps/unix/make-syscalls.sh: Add rule to create target
2519 directory for dummy syscall rules.
2520 Patch by Chris Steinbroner <hesh@pobox.com>.
2521
95bf537f
UD
25222009-04-23 Aurelien Jarno <aurelien@aurel32.net>
2523
2524 [BZ #10092]
2525 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
2526 MNT_EXPIRE.
2527
7f8a28ef
UD
25282009-04-23 Ulrich Drepper <drepper@redhat.com>
2529
2530 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
2531 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2532
25332009-04-23 Jakub Jelinek <jakub@redhat.com>
2534
2535 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
2536 data from vector to temporary buffer and call PWRITEV after it
2537 instead of vice versa.
2538 * sysdeps/posix/preadv.c: Fix up comment.
2539 * misc/preadv.c: Likewise.
2540 * misc/preadv64.c: Likewise.
2541 * misc/pwritev.c: Likewise.
2542 * misc/pwritev64.c: Likewise.
2543 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
2544
829fea46
UD
25452009-04-23 Ulrich Drepper <drepper@redhat.com>
2546
c7e74e59
UD
2547 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
2548
3b055b47
UD
2549 * shadow/Makefile (tests): Add tst-shadow.
2550 * shadow/tst-shadow.c: New file.
2551
829fea46
UD
2552 [BZ #9955]
2553 * gshadow/Makefile: New file.
2554 * gshadow/Versions: New file.
2555 * gshadow/fgetsgent.c: New file.
2556 * gshadow/fgetsgent_r.c: New file.
2557 * gshadow/getsgent.c: New file.
2558 * gshadow/getsgent_r.c: New file.
2559 * gshadow/getsgnam.c: New file.
2560 * gshadow/getsgnam_r.c: New file.
2561 * gshadow/gshadow.h: New file.
2562 * gshadow/putsgent.c: New file.
2563 * gshadow/sgetsgent.c: New file.
2564 * gshadow/sgetsgent_r.c: New file.
2565 * gshadow/tst-gshadow.c: New file.
2566 * include/gshadow.h: New file.
2567 * Makeconfig (all-subdirs): Add gshadow.
2568 * Makefile (installed-headers): Add gshadow/gshadow.h.
2569 * nss/Makefile (databases): Add sgrp.
2570 * nss/Versions: Add gshadow functions as private exports.
2571 * nss/nsswitch.conf: Add gshadow entry.
2572 * nss/sgrp-lookup.c: New file.
2573 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
2574 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
2575 * nss/nss_files/files-sgrp.c: New file.
2576 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
2577 * sysdeps/unix/sysv/linux/paths.h: Likewise.
2578
debafa10
UD
25792009-04-22 Ulrich Drepper <drepper@redhat.com>
2580
2581 * stdio-common/printf.h: Add missing const to register_printf_modifier.
2582 * stdio-common/reg-modifier.c: Likewise.
2583
25842009-04-22 Andrew Stubbs <ams@codesourcery.com>
2585
2586 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
2587 is no FPU.
2588
0e04c0b5
UD
25892009-04-20 Ulrich Drepper <drepper@redhat.com>
2590
d43f10e7 2591 [BZ #10086]
1c376f5b
UD
2592 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
2593 headers up to 2.6.30.
2594
0e04c0b5
UD
2595 * po/ca.po: Update from translation team.
2596
a245eafd
UD
25972009-04-19 Ulrich Drepper <drepper@redhat.com>
2598
2599 [BZ #10069]
2600 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
2601 an object that uses static TLS if the TLS modid is higher than the
2602 reserve we always allocate. At least for multi-threaded code.
2603
0588a9cb
UD
26042009-04-18 Ulrich Drepper <drepper@redhat.com>
2605
153aa31b
UD
2606 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
2607 Numerically stable check for valid width.
2608
59a7162b
UD
2609 * locale/programs/locarchive.c (open_archive): Map the entire file
2610 and not just the administrative data.
2611 (add_locale): When we find a hash sum match compare the content
2612 to be sure.
2613
0588a9cb
UD
2614 * malloc/malloc.c (malloc_info): Output address space information.
2615
17a5b24e
UD
26162009-04-17 Ulrich Drepper <drepper@redhat.com>
2617
da2d2fb6
UD
2618 * malloc/malloc.c (malloc_info): Also output system memory information.
2619
11cad88c
UD
2620 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
2621 architectures have preadv/pwritev in 2.6.30.
2622
571ac26f
UD
2623 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
2624 * sysdeps/posix/readv.c: Likewise.
2625 Reported by Markus Armbruster <armbru@redhat.com>.
2626
17a5b24e
UD
2627 * malloc/hooks.c (top_check): Force hook value into register.
2628
57ec6442
RM
26292009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2630
2631 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
2632 calls to _dl_relocate_object.
2633
df77455c
UD
26342009-04-16 Ulrich Drepper <drepper@redhat.com>
2635
2636 [BZ #9957]
2637 * malloc/malloc.c (force_reg): Define.
2638 (sYSMALLOc): Load hook variable into variable
2639 before test and force into register.
2640 (sYSTRIm): Likewise.
2641 (public_mALLOc): Force hook value into register.
2642 (public_fREe): Likewise.
2643 (public_rEALLOc): Likewise.
2644 (public_mEMALIGn): Likewise.
2645 (public_vALLOc): Likewise.
2646 (public_pVALLOc): Likewise.
2647 (public_cALLOc): Likewise.
2648 (__posix_memalign): Likewise.
2649 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
2650 before test and force into register.
2651 * malloc/hooks.c (top_check): Likewise.
3b055b47 2652 (public_sET_STATe): Pretty printing.
df77455c
UD
2653
2654 * resolv/res_send.c (send_dg): Don't just ignore the result we got
2655 in case we only receive one reply in single-request mode.
2656
733ca93a
JJ
26572009-04-16 Jakub Jelinek <jakub@redhat.com>
2658
2659 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
2660 are dlopened in statically linked program even for __LM_ID_CALLER.
2661
d0e81f10
UD
26622009-04-16 Ulrich Drepper <drepper@redhat.com>
2663
2664 * resolv/res_send.c (send_dg): Don't switch into single-request
2665 mode if we already are in it.
2666
6a3d03ff
UD
26672009-04-15 Ulrich Drepper <drepper@redhat.com>
2668
2669 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
2670 are always at least 4 bytes in the returned line.
2671
26722009-04-15 Jakub Jelinek <jakub@redhat.com>
2673
2674 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
2675 __libc_use_alloca (8192), if the stack is too small use 512 bytes
2676 instead of 8K. Stop searching in /proc/stat after hitting first
2677 line not starting with cpu.
2678 (next_line): Truncate too long
2679 lines at buffer size * 3/4 instead of pretending there were line
2680 breaks inside of large lines.
2681
ae650a41
UD
26822009-04-14 Ulrich Drepper <drepper@redhat.com>
2683
2684 * sysdeps/x86_64/mp_clz_tab.c: New file.
2685
353f2107 26862009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
677760a3 2687 Ulrich Drepper <drepper@redhat.com>
353f2107
UD
2688
2689 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
2690 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
e775ec11 2691 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
353f2107 2692
fc0c5705
UD
26932009-03-25 Andrew Stubbs <ams@codesourcery.com>
2694
2695 * sysdeps/sh/libc-tls.c: New file.
2696
2697 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
2698
237a8867
RM
26992009-04-14 Roland McGrath <roland@redhat.com>
2700
2701 * elf/elf.h: Add various missing ARM constants, to match binutils.
2702
893a5fd4
UD
27032009-04-14 Ulrich Drepper <drepper@redhat.com>
2704
2705 Optimizations from GMP.
2706 * sysdeps/x86_64/add_n.S: New file.
2707 * sysdeps/x86_64/addmul_1.S: New file.
2708 * sysdeps/x86_64/lshift.S: New file.
2709 * sysdeps/x86_64/mul_1.S: New file.
2710 * sysdeps/x86_64/rshift.S: New file.
2711 * sysdeps/x86_64/sub_n.S: New file.
2712 * sysdeps/x86_64/submul_1.S: New file.
2713
e42e88ab
JJ
27142009-04-14 Jakub Jelinek <jakub@redhat.com>
2715
2716 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
2717 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
2718 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2719 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2720
b8a3bd82
UD
27212009-04-14 Ulrich Drepper <drepper@redhat.com>
2722
2723 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
2724 preadv/pwritev.
2725
84aa52d7
UD
27262009-04-13 Ulrich Drepper <drepper@redhat.com>
2727
2728 * sysdeps/x86-64/strrchr.S: New file.
2729
9d26efa9
UD
27302009-04-10 Ulrich Drepper <drepper@redhat.com>
2731
2732 * stdio-common/printf.h (struct printf_info): Add user element.
2733 New types printf_arginfo_size_function, printf_va_arg_function.
2734 Declare register_printf_specifier, register_printf_modifier,
2735 register_printf_type.
2736 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
2737 (union printf_arg): Add pa_user element.
2738 Adjust __printf_arginfo_table type.
2739 Add __printf_va_arg_table, __printf_modifier_table,
2740 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
2741 declarations.
2742 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
2743 If registered arginfo call failed try normal specifier.
2744 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
2745 function.
2746 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
2747 * stdio-common/Versions: Export register_printf_modifier,
2748 register_printf_type, and register_printf_specifier for GLIBC_2.10.
2749 * stdio-common/reg-modifier.c: New file.
2750 * stdio-common/reg-type.c: New file.
2751 * stdio-common/reg-printf.c (__register_printf_specifier): New
2752 function. Mostly the old __register_printf_function function but
2753 uses locking and type of third parameter changed.
2754 (__register_printf_function): Implement using
2755 __register_printf_specifier.
2756 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
2757 calls to arginfo functions. Allocate enough memory for user-defined
2758 types. Call new va_arg functions to get user-defined types.
2759 Try installed handlers even for existing format specifiers first.
2760
28b2771a
UD
27612009-04-09 Ulrich Drepper <drepper@redhat.com>
2762
f140a0d5
UD
2763 * sysdeps/x86_64/rawmemchr.S: New file.
2764
e9b4d069 2765 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
1d498daa 2766 Simplified code and possible copy problem fixed.
e9b4d069 2767
f9fe75e9 2768 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
24030b0f 2769 function if it is not defined. Add some necessary casts.
f9fe75e9
UD
2770 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2771
28b2771a
UD
2772 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
2773 have preadv/pwritev in 2.6.30.
2774
4c8b8cc3
UD
27752009-04-08 Ulrich Drepper <drepper@redhat.com>
2776
bb066545
UD
2777 * malloc/malloc.c (malloc_info): New function.
2778 * malloc/malloc.h: Declare it.
2779 * malloc/Versions: Export malloc_info for GLIBC_2.10.
2780
0f9c8b48
UD
2781 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
2782 to avoid PLT slot.
2783
4c8b8cc3
UD
2784 * malloc/malloc.c (_int_realloc): Add parameter with old block
2785 size. Remove duplicated test. Don't handle mmap'ed blocks here.
2786 Adjust all callers.
2787 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
2788
ddba0f17
UD
27892009-04-07 Ulrich Drepper <drepper@redhat.com>
2790
cd57745b
UD
2791 * sysdeps/x86_64/strchrnul.S: New file.
2792
3db6c9a8 2793 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
cd57745b 2794 depending libcrypt on -lfreebl3.
3db6c9a8 2795
1a2ec17b
UD
2796 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
2797 preadv/pwritev in 2.6.30.
2798
bb066545 2799 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
c6807d38 2800 instead of __strcasecmp.
c6807d38 2801
ddba0f17 2802 * string/stratcliff.c (do_test): Add memchr tests..
481f9eca 2803 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
ddba0f17
UD
2804 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
2805 first read quad word.
2806
ae061910
UD
28072009-04-06 Ulrich Drepper <drepper@redhat.com>
2808
4bcb2658
UD
2809 * string/strverscmp.c (__strverscmp): Fix last cleanups.
2810 * string/tst-svc.input: Add new test case.
2811 * string/tst-svc.expect: Adjust.
2812 * string/Makefile: Don't ignore tst-svc error.
2813
322e23db
UD
2814 * sysdeps/x86_64/memchr.S: New file.
2815
ae061910
UD
2816 * resolv/resolv.h (RES_SNGLKUP): Define.
2817 * resolv/res_init.c (res_setoptions): Recognize single-request option.
2818 * resolv/res_send.c (send_dg): If we sent two requests at once and
2819 only get one reply before timeout switch to mode where we send the
2820 second request only after the first answer has been received.
2821
a152f366
UD
28222009-04-05 Ulrich Drepper <drepper@redhat.com>
2823
2824 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
1df6f9d8 2825 * sysdeps/x86_64/strchr.S: Likewise.
a152f366 2826
2dbe6afe
UD
28272009-04-03 Ulrich Drepper <drepper@redhat.com>
2828
c0bac8b0
UD
2829 * configure.in: We need to test for the compiler earlier.
2830
e109c612
UD
2831 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
2832 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
2833 GLIBC_2.10.
2834 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
2835 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
2836 and pwritev.
2837 * misc/preadv.c: New file.
2838 * misc/preadv64.c: New file.
2839 * misc/pwritev.c: New file.
2840 * misc/pwritev64.c: New file.
2841 * sysdeps/posx/preadv.c: New file.
2842 * sysdeps/posx/preadv64.c: New file.
2843 * sysdeps/posx/pwritev.c: New file.
2844 * sysdeps/posx/pwritev64.c: New file.
2845 * sysdeps/unix/sysv/linux/preadv.c: New file.
2846 * sysdeps/unix/sysv/linux/preadv64.c: New file.
2847 * sysdeps/unix/sysv/linux/pwritev.c: New file.
2848 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
2849 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
2850 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
2851
7166c77a
UD
2852 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
2853 compatibility code.
2854 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
2855
2dbe6afe
UD
2856 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2857 __ASSUME_COMPLETE_READV_WRITEV.
2858 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
2859 with modern kernels.
2860 * sysdeps/unix/sysv/linux/writev.c: Likewise.
2861
2862 * sysdeps/posix/readv.c: Since read is a cancellation point we have
2863 to free a possible malloced buffer in case of cancellation.
2864 * sysdeps/posix/writev.c: Likewise for write.
2865
ff886b82
UD
28662009-04-02 Ulrich Drepper <drepper@redhat.com>
2867
a065c007
UD
2868 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
2869
ff886b82
UD
2870 * configure.in: Recognize --enable-nss-crypt.
2871 * config.make.in: Add nss-crypt entry.
2872 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
2873 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
2874 and include path for NSS directory to compiler for md5-crypt,
2875 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
2876 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
2877 function implementation, use NSS. Introduce wrappers around the
2878 hash function calls. Little code size optimization.
2879 * crypt/sha256-crypt.c: Likewise.
2880 * crypt/sha512-crypt.c: Likewise.
2881 * scripts/check-local-headers.sh: Ignore nss3 directory.
2882
2883 * configure.in: Rename pic_default to libc_cv_pic_default.
2884 * config.make.in: Likewise.
2885
1800de36
RM
28862009-04-01 Roland McGrath <roland@redhat.com>
2887
2888 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
2889 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
2890 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
2891 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
2892 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
2893 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
2894 (R_SPARC_NUM): Update.
2895 From Dave Miller <davem@davemloft.net>.
2896
7166c77a 28972009-04-01 Ulrich Drepper <drepper@redhat.com>
3ce976cd
UD
2898
2899 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
2900
20739e54
UD
29012009-03-31 Ulrich Drepper <drepper@redhat.com>
2902
22c83193
UD
2903 * elf/dl-open.c: Keep track of used name spaces and only iterate over
2904 those which are used.
2905 * elf/dl-addr.c: Likewise.
2906 * elf/dl-caller.c: Likewise.
2907 * elf/dl-fini.c: Likewise.
2908 * elf/dl-iteratephdr.c: Likewise.
2909 * elf/dl-libc.c: Likewise.
2910 * elf/dl-load.c: Likewise.
2911 * elf/dl-support.c: Likewise.
2912 * elf/dl-sym.c: Likewise.
2913 * elf/rtld.c: Likewise.
2914 * sysdeps/generic/ldsodefs.h: Likewise.
2915
20739e54
UD
2916 * elf/dl-load.c: Remove support for systems without MAP_ANON.
2917 * elf/dl-minimal.c: Likewise.
2918 * elf/dl-misc.c: Likewise.
2919 * elf/rtld.c: Likewise.
2920 * sysdeps/generic/ldsodefs.h: Likewise.
2921
db486995
UD
29222009-03-30 Ulrich Drepper <drepper@redhat.com>
2923
cb14424e
UD
2924 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
2925 Avoid reuse of complex expression.
2926
db486995
UD
2927 * po/fr.po: Update from translation team.
2928
ae8d7b44
UD
29292009-03-16 Ulrich Drepper <drepper@redhat.com>
2930
2931 * include/dirent.h: Yet more changes to match sort function type
2932 change.
2933 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
2934 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
2935 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
2936
8efb2f1c
UD
29372009-03-16 Thomas Schwinge <tschwinge@gnu.org>
2938
2939 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
2940
d9822dbe
UD
29412009-03-16 Ulrich Drepper <drepper@redhat.com>
2942
2943 * nscd/connections.c (restart): Try to preserve the process name
2944 by reading the /proc/self/exe symlink and using the return name.
2945 Patch by Jeff Bastian <jbastian@redhat.com>.
2946
71a5bd3e
UD
29472009-03-15 Ulrich Drepper <drepper@redhat.com>
2948
2ca285b0
UD
2949 [BZ #9733]
2950 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
2951 if we are not loading a new audit library.
2952 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
2953 Only use profiling trampoline for auditing if we are not relocating
2954 an audit library.
2955 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
2956 * elf/rtld.c: Likewise.
2957 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
2958
7e342603
UD
2959 * elf/rtld.c (dl_main): Extend help message for --audit option.
2960
eee6b143
UD
2961 [BZ #9759]
2962 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
2963 alphasort64, versionsort, and versionsort64 to POSIX 2008.
2964 * dirent/alphasort.c: Adjust implementation to type change.
2965 * dirent/alphasort64.c: Likewise.
2966 * dirent/scandir.c: Likewise.
2967 * dirent/versionsort.c: Likewise.
2968 * dirent/versionsort64.c: Likewise.
2969 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
2970 declaration.
2971 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
2972 declaration.
2973
cd2d01fa
UD
2974 [BZ #9880]
2975 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
2976 correctly. Set segleft member in output as required.
2977 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2978 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
2979
906dd40d
UD
2980 [BZ #9881]
2981 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
2982 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2983 * inet/Makefile (tests): Add tst-inet6_rth.
2984 * inet/tst-inet6_rth.c: New file.
2985
71a5bd3e
UD
2986 [BZ #5807]
2987 * string/strlen.c (strlen): Fix omission in the expression to test
2988 for NUL bytes.
2989
878b72c5
UD
29902009-03-14 Ulrich Drepper <drepper@redhat.com>
2991
fad070ab
UD
2992 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
2993
a42ad61b
UD
2994 * elf/dl-runtime.c (reloc_offset): Define.
2995 (reloc_index): Define.
2996 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
2997 (_dl_fixup_profile): Likewise. Use reloc_index instead of
2998 computing index from reloc_offset.
2999 (_dl_call_pltexit): Likewise.
3000 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3001 the relocation index to _dl_fixup.
3002 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3003 _dl_call_pltexit.
3004 * sysdeps/x86_64/dl-runtime.c: New file.
3005
1f7c90a7
UD
3006 [BZ #9893]
3007 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
906dd40d 3008 alignment of La_x86_64_regs. Store xmm parameters.
1f7c90a7
UD
3009 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3010
45466462
UD
3011 [BZ #9913]
3012 * string/strverscmp.c (__strverscmp): Fix case of different digits
3013 in fractional part of string.
3014 Patch by Jingyu Liu <jyliu@fortinet.com>.
3015 * string/Makefile (tests): Add tst-svc2.
3016 * string/tst-svc2.c: New file.
3017
3018 * string/strverscmp.c (__strverscmp): Optimize size of tables.
3019
878b72c5
UD
3020 * locale/iso-639.def: Add Min Nan.
3021
f53713a8
UD
30222009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3023
878b72c5 3024 [BZ #9948]
f53713a8
UD
3025 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3026
f81ce288
UD
30272009-03-14 Ulrich Drepper <drepper@redhat.com>
3028
f53713a8
UD
3029 * elf/dl-sysdep.c (auxvars): Compress data structure.
3030
f81ce288
UD
3031 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3032 STT_GNU_IFUNC handling.
3033 (elf_machine_rela): Likewise.
3034
425ce2ed
UD
30352009-03-13 Ulrich Drepper <drepper@redhat.com>
3036
3037 * config.h.in (USE_MULTIARCH): Define.
3038 * configure.in: Handle --enable-multi-arch.
3039 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3040 (_dl_fixup_profile): Likewise.
3041 * elf/do-lookup.c (dl_lookup_x): Likewise.
3042 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3043 * elf/elf.h (STT_GNU_IFUNC): Define.
3044 * include/libc-symbols.h (libc_ifunc): Define.
3045 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3046 framework in init-arch.h to get CPUID values.
3047 * sysdeps/x86_64/multiarch/Makefile: New file.
3048 * sysdeps/x86_64/multiarch/init-arch.c: New file.
3049 * sysdeps/x86_64/multiarch/init-arch.h: New file.
3050 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3051
3052 * config.make.in (experimental-malloc): Define.
3053 * configure.in: Handle --enable-experimental-malloc.
3054 * malloc/Makefile: Handle experimental-malloc flag.
3055 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3056 * malloc/arena.c: Likewise.
3057 * malloc/hooks.c: Likewise.
3058 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3059
e7f110cd
UD
30602009-03-11 Ulrich Drepper <drepper@redhat.com>
3061
3062 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3063 prediction. A few size optimizations.
3064
bd82a247
UD
30652009-03-10 Ulrich Drepper <drepper@redhat.com>
3066
3067 * time/tzset.c: Optimize a bit for size.
3068
a99e59d7
UD
30692009-03-10 Jakub Jelinek <jakub@redhat.com>
3070
3071 * include/stdio.h (fmemopen): Add libc_hidden_proto.
3072 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3073
3074 * elf/sprof.c: Avoid warning about multi-line comment.
3075
686f8c9d
UD
30762009-03-10 Ulrich Drepper <drepper@redhat.com>
3077
3078 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3079 DST name.
3080 * time/tst-posixtz.c: Add tests for quoted timezone names.
3081
7db0cc42
UD
30822009-03-10 Jakub Jelinek <jakub@redhat.com>
3083
3084 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3085 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3086 200809L instead of 200112L.
3087 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3088 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3089
eec4b454
UD
3090 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3091 instead of __quick_exit_funcs to __run_exit_handlers.
3092 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3093 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3094 (__cxa_at_quick_exit): Remove attribute_hidden.
3095 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3096 to __run_exit_handlers.
3097 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3098 attribute_hidden.
3099
d7276cee
UD
31002009-03-10 Ulrich Drepper <drepper@redhat.com>
3101
3102 * po/id.po: Update from translation team.
3103
1454da21
UD
31042009-02-18 Jakub Jelinek <jakub@redhat.com>
3105
3106 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3107 .machine push; .machine "power6" and .machine pop around mtfsf
3108 insns outside of _ARCH_PWR6 define.
3109 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3110 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3111 Likewise.
3112 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3113 Likewise.
3114 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3115 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3116 relax_fenv_state): Likewise.
3117
130ca12e
UD
31182009-03-08 Ulrich Drepper <drepper@redhat.com>
3119
610e67ed
UD
3120 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
3121 cxa_at_quick_exit.
3122 (static-only-routines): Add at_quick_exit.
3123 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
3124 GLIBC_2.10.
3125 * stdlib/quick_exit.c: New file.
3126 * stdlib/at_quick_exit.c: New file.
3127 * stdlib/cxa_at_quick_exit.c: New file.
3128 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
3129 it appropriately.
3130 (__internal_atexit): New function.
3131 (__new_exitfn): Now takes parameter to point to the list to use.
3132 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
3133 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
3134 (exit): ...here. Just call __run_exit_handlers appropriately.
3135 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3136 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
3137 * stdlib/on_exit.c: Adjust call to __new_exitfn.
3138 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3139
130ca12e
UD
3140 * po/id.po: Update from translation team.
3141
9a4f9d1f
UD
31422009-03-07 Ulrich Drepper <drepper@redhat.com>
3143
3144 * po/ru.po: Update from translation team.
3145
6d781c94
UD
31462009-03-04 Ulrich Drepper <drepper@redhat.com>
3147
3148 * po/nl.po: Update from translation team.
3149
e00c5ece
UD
31502009-03-03 Ulrich Drepper <drepper@redhat.com>
3151
99eb932f
UD
3152 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3153 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3154 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3155 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3156 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3157 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3158 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3159
e00c5ece
UD
3160 * po/pl.po: Update from translation team.
3161
749f5cc9
UD
31622009-03-02 Ulrich Drepper <drepper@redhat.com>
3163
1b994772 3164 [BZ #7083]
749f5cc9
UD
3165 * sysdeps/unix/sysv/linux/fallocate.c: New file.
3166 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3167 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3168 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3169 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3170 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3171 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3172 for GLIBC_2.10.
3173 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3174 Add fallocate and fallocate64.
3175
3176 * io/fcntl.h: Pretty printing.
3177
6219e3cc
JJ
31782009-03-02 Richard Guenther <rguenther@suse.de>
3179
3180 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3181 attribute also for non-C99 inline semantics variant.
3182
134a9766
UD
31832009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3184
3185 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3186 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3187 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3188 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3189 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3190 Likewise.
3191 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3192 Likewise.
3193
95bc1633
UD
31942009-03-02 Ulrich Drepper <drepper@redhat.com>
3195
3196 * po/cs.po: Update from translation team.
3197
43ea48a5
UD
31982009-02-28 Ulrich Drepper <drepper@redhat.com>
3199
3200 * po/bg.po: Update from translation team.
3201 * po/sv.po: Likewise.
f5faa3b6 3202 * po/fi.po: Likewise.
45572c23 3203 * po/vi.po: Likewise.
43ea48a5 3204
e965d514
RM
32052009-02-27 Roland McGrath <roland@redhat.com>
3206
3207 * Makeconfig (%.v.i): Depend on Makeconfig.
3208 Exclude % lines from initial #-comment removal.
3209
56a9651f
UD
32102009-02-27 Ulrich Drepper <drepper@redhat.com>
3211
3212 * po/ko.po: Update from translation team.
3213
682825ce
RM
32142009-02-26 Roland McGrath <roland@redhat.com>
3215
3216 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
3217 avoids unused warning.
3218
a3c37506
UD
32192009-02-26 Andrew Stubbs <ams@codesourcery.com>
3220 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
3221
3222 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
3223 sys/ucontext.h and asm/elf.h. Include sys/user.h.
3224 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
3225 and asm/user.h. Include asm/ptrace.h.
3226 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
3227 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3228 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
3229 Undefine.
3230 (start_thread): Don't undefine.
3231 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
3232 Define.
3233
f503060b
UD
32342009-02-26 Ulrich Drepper <drepper@redhat.com>
3235
6cbe890a
UD
3236 * wctype/wctype.h: The *_l functions are in POSIX 2008.
3237 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
3238 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
3239 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
3240 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
3241 200112L to 200809L.
3242 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
3243 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3244 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
3245 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3246 _SC_THREAD_ROBUST_PRIO_PROTECT.
3247 * posix/unistd.h: fexecve is in POSIX 2008.
3248 * time/time.h: strftime_l is in POSIX 2008.
3249 * io/sys/stat.h: futimens is in POSIX 2008.
3250 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
3251 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
3252 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
3253 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
f503060b
UD
3254 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
3255 open_memstream, and vdprintf are in POSIX 2008.
3256
2e6d6bac
UD
32572009-02-25 Ulrich Drepper <drepper@redhat.com>
3258
3e6b0a28 3259 * include/features.h: Define macros for XPG7/POSIX 2008.
77db439e
UD
3260 * ctype/ctype.h: The *_l functions are in POSIX 2008.
3261 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
3262 POSIX 2008.
1f04d005
UD
3263 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
3264 * locale/xlocale.h: Define locale_t type.
3265 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
3266 in POSIX 2008. Don't define locale_t here.
3267 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3e6b0a28
UD
3268 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
3269 UTIME_OMIT only with __USE_ATFILE.
1f04d005
UD
3270 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
3271 * stdio-common/psiginfo.c: New file.
3272 * stdio-common/psiginfo-data.h: New file.
3273 * stdio-common/psiginfo-define.h: New file.
3274 * stdio-common/Makefile (routines): Add psiginfo.
3275 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3e6b0a28
UD
3276 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3277 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3278 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3279 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3280 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3281 * io/sys/stat.h: Move mknodat definition into same conditional as
3282 mknod.
3283 * time/sys/time.h: futimesat is not among the functions accepted
3284 into the POSIX standard.
3285
2e6d6bac
UD
3286 * include/features.h: If no feature selection given and we select
3287 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
3288 * posix/Versions: Export __posix_getopt.
3289 * posix/getopt.c (_getopt_initialize): Take additional parameter.
3290 Use it to alternatively initialize __posixly_correct.
3291 (_getopt_internal_r): Take addition parameter. Pass on to
3292 _getopt_initialize.
3293 (_getopt_internal): Take addition parameter. Pass on to
3294 _getopt_internal_r.
3295 (getopt): Pass additional zero to _getopt_internal.
3296 (__posix_getopt): New function.
3297 * posix/getopt.h: Add redirection for getopt.
3298 * posix/getopt1.c (getopt_long): Pass additional zero to
3299 _getopt_internal.
3300 (getopt_long_only): Likewise.
3301 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
3302 (_getopt_long_only_r): Likewise.
3303 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
3304 _getopt_internal_r.
3305
67108e40
UD
33062009-02-24 Ulrich Drepper <drepper@redhat.com>
3307
3308 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
3309 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3310 * sysdeps/posix/sysconf.c (__sysconf): Handle
3311 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
3312 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3313
1cccb96f
RM
33142009-02-24 Roland McGrath <roland@redhat.com>
3315
3316 [BZ #9895]
3317 * README.template: Reworded not to use substituted version number.
3318 Renamed to ...
3319 * README: ... here (no longer generated).
3320 * Makefile (README): Target removed.
3321
82780cbe
UD
33222009-02-24 Ulrich Drepper <drepper@redhat.com>
3323
5be0a688 3324 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
77db439e 3325 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
5be0a688
UD
3326 instead.
3327
8c4a5f42
UD
3328 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
3329
82780cbe
UD
3330 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
3331
77c571dd
UD
33322009-02-22 Ulrich Drepper <drepper@redhat.com>
3333
3334 * po/bg.po: Update from translation team.
3335
d82a27f8
JJ
33362009-02-16 Jakub Jelinek <jakub@redhat.com>
3337
3338 * stdlib/monetary.h: Uglify function parameter names.
3339 * sunrpc/rpc/pmap_clnt.h: Likewise.
3340 * sunrpc/rpc/svc.h: Likewise.
3341 * sunrpc/rpc/xdr.h: Likewise.
3342 * sunrpc/rpc/clnt.h: Likewise.
3343 * resolv/netdb.h: Likewise.
3344 * resolv/arpa/nameser.h: Likewise.
3345 * resolv/resolv.h: Likewise.
3346 * argp/argp.h: Likewise.
3347 * locale/langinfo.h: Likewise.
3348 * io/sys/stat.h: Likewise.
3349 * posix/spawn.h: Likewise.
3350 * nis/rpcsvc/nislib.h: Likewise.
3351 * malloc/obstack.h: Likewise.
3352 * sysdeps/ia64/bits/link.h: Likewise.
3353 * sysdeps/i386/bits/link.h: Likewise.
3354 * sysdeps/s390/bits/link.h: Likewise.
3355 * sysdeps/powerpc/bits/link.h: Likewise.
3356 * sysdeps/x86_64/bits/link.h: Likewise.
3357 * sysdeps/sparc/bits/link.h: Likewise.
3358 * sysdeps/sh/bits/link.h: Likewise.
3359 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
3360 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
3361 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
3362 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3363
58a7457e
JJ
33642008-12-01 Fredrik Unger <fred@tree.se>
3365
3366 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
3367 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
3368 _FP_UNPACK_RAW_2, fix up first argument.
3369
f43b4be6
UD
33702009-02-15 Ulrich Drepper <drepper@redhat.com>
3371
3372 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
3373 (GET_NPROCS_PARSER): Change parameters and use next_line.
3374 (__get_nprocs): Rewrite to not use stdio routines.
3375 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
3376 Change parameters and use next_line.
3377
20e498bd
UD
33782009-02-13 Ulrich Drepper <drepper@redhat.com>
3379
3380 [BZ #5381]
3381 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
3382 Change mempool_alloc prototype.
3383 * nscd/mem.c (gc): Don't handle mem_in_flight.
3384 (mempool_alloc): Third parameter now only indicates whether this is the
3385 first call (to allocate data) or not. If it is, get db rdlock.
3386 Release it on error. Don't handle mem_in_flight.
3387 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
3388 Adjust third parameter of mempool_alloc calls.
3389 Nothing to do here in case mempool_alloc fails.
3390 Avoid local variable shadowing parameter. No need to get db rdlock
3391 before calling cache_add.
3392 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
3393 no mem_in_flight array anymore.
3394 * nscd/connections.c: Remove definition and handling of mem_in_flight.
3395 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
3396 mempool_alloc calls. Mark he parameter as const. Nothing to do here
3397 in case mempool_alloc fails. No need to get db rdlock before calling
3398 cache_add.
3399 * nscd/hstcache.c (cache_addhst): Likewise.
3400 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3401 * nscd/servicescache.c (cache_addserv): Likewise.
3402 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
3403
d8111eac
UD
34042009-02-11 Ulrich Drepper <drepper@redhat.com>
3405
3406 * po/lt.po: Update from translation team.
3407
40e2fc8b
UD
34082009-02-10 Ulrich Drepper <drepper@redhat.com>
3409
3410 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
3411 defined, allow additional data to be added using the optional
3412 MORE_ELF_HEADER_DATA macro.
3413 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
3414 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
3415
6c03cd11
UD
34162009-02-08 Ulrich Drepper <drepper@redhat.com>
3417
3418 * include/atomic.h: Define catomic_and if not already defined.
3419 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
3420 * sysdeps/i386/i486/bits/atomic.h: Likewise.
3421
bc16e0c4
UD
34222009-02-07 Ulrich Drepper <drepper@redhat.com>
3423
78ac92ad
UD
3424 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
3425 Change all callers.
6dd6a580 3426 (_int_realloc): Likewise. Third argument is now padded size
78ac92ad 3427 All _int_* functions are now static.
6dd6a580 3428
78ac92ad
UD
3429 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
3430 * malloc/arena.c: Likewise.
3431 * include/malloc.h: Remove now unnecessary declarations of the _int_*
3432 functions.
3433
7dddb4bd
UD
3434 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
3435 easily.
3436
bfacf1af
UD
3437 * malloc/malloc.c: Add branch prediction for use of the hooks.
3438
bc16e0c4
UD
3439 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
3440
26b62243
UD
34412009-02-06 Ulrich Drepper <drepper@redhat.com>
3442
3443 [BZ #7095]
3444 * bits/confname.h: Add SUSv7 macros for getconf environments.
3445 * bits/environments.h: Likewise.
3446 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
3447 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
3448 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
3449 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
3450 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
3451 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
3452 * posix/getconf.c: Likewise.
3453 * posix/sysconf.c: Likewise.
3454 * sysdeps/posix/sysconf.c: Likewise.
3455 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
3456 environments.
3457
3fe4c5b3
UD
34582009-01-16 Petr Baudis <pasky@suse.cz>
3459
3460 [BZ #9753]
3461 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
3462 even if we currently have zero nscount.
3463
cbbcaf23
UD
34642009-02-06 Ulrich Drepper <drepper@redhat.com>
3465
1a9dd4e4
UD
3466 [BZ #9781]
3467 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
3468 the input line is too long.
3469
51f8846e
UD
3470 * po/Makefile (libc.pot): Add f_print as function taking c-format
3471 parameter.
3472
cbbcaf23
UD
3473 * debug/xtrace.sh: Unify translatable messages.
3474 * elf/ldd.bash.in: Likewise.
3475 * elf/sprof.c: Likewise.
3476 * locale/programs/locale.c: Likewise.
3477 * malloc/memusage.sh: Likewise.
3478 * nss/getent.c: Likewise.
3479
34802009-02-06 Joseph Myers <joseph@codesourcery.com>
3481
3482 * debug/pcprofiledump.c (print_version,
3483 argp_program_version_hook): New function.
3484 * elf/ldconfig.c (more_help): New function.
3485 (argp): Use it.
3486 * elf/sln.c (usage): New function.
3487 (main): Support --help and --version.
3488 * malloc/memusagestat.c (print_version): New function.
3489 (argp_program_version_hook): New variable.
3490 * nscd/nscd.c (more_help): New function.
3491 (argp): Use it.
3492 * posix/getconf.c (main): Send --version output to stdout.
3493 Support --help.
3494 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
3495 arguments. All callers changed.
3496 (print_version): New function.
3497 (parseargs): Support --help and --version.
3498 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
3499 changed.
3500 (print_version): New function.
3501 (main): Use getopt_long. Support --help and --version.
3502 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
3503 --version.
3504
88a3b8f9
UD
35052009-02-06 Ulrich Drepper <drepper@redhat.com>
3506
e2e390fa
UD
3507 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
3508 (update_data): Fix handling of wrapping back
c3ab42a8
UD
3509 to the beginning of the buffer.
3510
88a3b8f9
UD
3511 [BZ #9823]
3512 * stdio-common/psignal.c (psignal): Fix test for empty string.
3513
62f63c47
UD
35142009-02-05 Ulrich Drepper <drepper@redhat.com>
3515
4f7408c7
UD
3516 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
3517 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
3518 move _null_auth to .rodata.
3519
970aa10f
UD
3520 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
3521 value of 24.
3522
52de761a
UD
3523 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
3524
62f63c47
UD
3525 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
3526 today than when the original code was written. Use larger
3527 buffers. This also makes it unnecessary to have stat information,
3528 if this causes extra efforts.
3529 (__opendir): In case O_DIRECTORY works, don't call fstat just for
3530 __alloc_dir.
3531
0899b889
UD
35322009-02-03 Andrew Stubbs <ams@codesourcery.com>
3533
3534 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
3535 is set.
3536 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
3537 * sysdeps/sh/sh4/__longjmp.S: Likewise.
3538 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
3539 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
3540 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
3541 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
3542
22cc3f75
UD
35432009-02-04 Ulrich Drepper <drepper@redhat.com>
3544
3545 * po/ru.po: Update from translation team.
3546
a71433e7
UD
35472008-11-17 Nathan Sidwell <nathan@codesourcery.com>
3548
3549 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
3550 Add _tid slot to maintain consistency with kernel.
3551
82f2e9c6 35522009-02-04 Ulrich Drepper <drepper@redhat.com>
3a2e9947 3553
82f2e9c6
UD
3554 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
3555 incomplete characters at end of input buffer.
3556 * libio/Makefile (tests): Add tst-fgetwc.
3557 * libio/tst-fgetwc.c: New file.
3558 * libio/tst-fgetwc.input: New file.
3a2e9947 3559
ba022c06
UD
35602009-02-02 Andrew Stubbs <ams@codesourcery.com>
3561
3562 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
3563
1b14353e
UD
35642009-02-02 Ulrich Drepper <drepper@redhat.com>
3565
3566 [BZ #9793]
3567 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
3568 *OUTBUFSTART unless the whole output fit into the buffer.
3569 * iconv/Makefile (tests): Add tst-iconv4.
3570 * iconv/tst-iconv4.c: New file.
3571
ebc22416
UD
35722009-02-01 Ulrich Drepper <drepper@redhat.com>
3573
3574 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
3575 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3576
7c8a6732
UD
35772009-01-29 Andrew Stubbs <ams@codesourcery.com>
3578
3579 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
3580 newer linker scripts.
3581
43149780
UD
35822009-01-30 Ulrich Drepper <drepper@redhat.com>
3583
3584 [BZ #7040]
3585 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
3586 inotify_rm_watch should have type int.
3587
bd4ace0b
UD
35882009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
3589
3590 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
3591 Make aligned_restore_vmx a local symbol.
3592 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
3593 Likewise.
3594
430902da
AJ
35952009-01-30 Andreas Jaeger <aj@suse.de>
3596
3597 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
3598 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
3599 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
3600 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
3601 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
3602 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
3603 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
3604
b7219e53
UD
36052009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
3606
3607 [BZ #9726]
3608 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
3609 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
3610
36112009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
3612
3613 [BZ #9726]
3614 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3615 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3616 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3617 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3618
a3bd2846
UD
36192009-01-11 Thomas Schwinge <tschwinge@gnu.org>
3620
3621 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
3622 memcpy instead of memcmp.
3623 (_dl_setup_pointer_guard): Likewise.
3624
1fdd89a7
UD
36252009-01-30 Ulrich Drepper <drepper@redhat.com>
3626
3627 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
3628 manipulated brk, use malloc_printerr.
3629 * misc/sbrk.c (__sbrk): Better error handling for nonsense
3630 requests.
3631
8585cb74
UD
36322009-01-30 Jakub Jelinek <jakub@redhat.com>
3633
3634 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
3635 rindex): For C++ add inlines so that they can be recognized as
3636 builtins.
3637 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
3638
d8387c7b
UD
36392009-01-29 Ulrich Drepper <drepper@redhat.com>
3640 Jakub Jelinek <jakub@redhat.com>
3641
cdf77dd8
UD
3642 * string/string.h: Define correct C++ prototypes for gcc 4.4.
3643 * wcsmbs/wchar.h: Likewise.
d8387c7b 3644
647925b2
UD
36452009-01-29 Ulrich Drepper <drepper@redhat.com>
3646
3647 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
3648 (stackinfo_sub_sp): Define.
3649
5627534a
UD
36502009-01-28 Ulrich Drepper <drepper@redhat.com>
3651
fd537e53
UD
3652 [BZ #9750]
3653 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
3654 * include/alloca.h (alloca_account): Define.
3655 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
3656 (stackinfo_sub_sp): Define.
3657
00f5df0e
UD
3658 * nscd/connections.c (nscd_init): If database file access fails
3659 check whether this is due to permission problems and bail in that
3660 case.
31d322a2 3661
5627534a
UD
3662 [BZ #9741]
3663 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
3664 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
3665
a7bd183f
UD
36662009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3667
3668 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
3669 Add "t" to clobber list.
3670 (INTERNAL_SYSCALL_NCS): Likewise.
3671
1dd75769
UD
36722009-01-28 Ulrich Drepper <drepper@redhat.com>
3673
3674 * nss/getent.c (print_networks): Don't print comma between aliases.
3675
25e84177
UD
36762009-01-23 Ulrich Drepper <drepper@redhat.com>
3677
3678 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
3679
3680 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
3681 the hash table.
3682 * misc/Makefile (tests): Add bug-hsearch1.
3683 * misc/bug-hsearch1.c: New file.
3684
0699a0ca
RM
36852009-01-22 Roland McGrath <roland@redhat.com>
3686
3687 * Makeconfig (%.v.i): Strip trailing # comments,
3688 not only whole-line comments.
3689
965cb60a
UD
36902009-01-10 Ulrich Drepper <drepper@redhat.com>
3691
3692 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
3693 one parameter. If non-NULL use it to initialize return value.
3694 (_dl_setup_pointer_guard): New function.
3695 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
3696 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
3697 * elf/rtld.c (security_init): Pass _dl_random to
3698 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
3699 pointer_chk_guard.
3700 * elf/dl-sysdep.c (_dl_random): New variable.
3701 (_dl_sysdep_start): Handle AT_RANDOM.
3702 (_dl_show_auxv): Likewise.
3703 * elf/dl-support.c (_dl_random): New variable.
3704 (_dl_aux_init): Handle AT_RANDOM.
3705 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
3706 to _dl_setup_stack_chk_guard.
3707
3708 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
3709
8be96dd1
RM
37102009-01-10 Roland McGrath <roland@redhat.com>
3711
3712 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
3713
157cd5ac
UD
37142009-01-08 Ulrich Drepper <drepper@redhat.com>
3715
9b1c750e
UD
3716 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
3717
157cd5ac
UD
3718 [BZ #9706]
3719 * nss/nss_files/files-parse.c (strtou32): New function.
3720 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
3721 across 32-bit and 64-bit platforms.
3722 (INT_FIELD_MAYBE_NULL): Likewise.
3723
960af8c2
JJ
37242009-01-08 Jakub Jelinek <jakub@redhat.com>
3725
3726 [BZ #9720]
3727 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
3728 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
3729 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
3730 Likewise.
3731
76c7f2cd
UD
37322009-01-05 Paolo Bonzini <bonzini@gnu.org>
3733
16c124f7 3734 [BZ #697]
76c7f2cd
UD
3735 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3736 being NULL also if there are no backreferences.
3737 * posix/rxspencer/tests: Add testcases.
3738
bdb56bac
UD
37392009-01-04 Paolo Bonzini <bonzini@gnu.org>
3740
16c124f7 3741 [BZ #9697]
bdb56bac
UD
3742 * posix/bug-regex17.c: Add testcases.
3743 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3744 handling.
3745
0480c901
UD
37462009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
3747
3748 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
3749 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
3750 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
3751 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
3752 for elf subdir.
3753 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
3754 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
3755 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
3756 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
3757 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3758 * sysdeps/unix/sysv/linux/s390/Versions: New file.
3759
b3918c7d
UD
37602008-12-31 Paolo Bonzini <bonzini@gnu.org>
3761
3762 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3763 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3764 re_string_skip_chars, re_string_reconstruct): Likewise.
3765 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3766
df9293cb
UD
37672008-12-31 Rafael Avila de Espindola <espindola@google.com>
3768
3769 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
3770 adjust the buffer alignment.
3771
c90c1e1c
RM
37722009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3773
3774 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
3775 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
3776 net/route.h.
3777
3778 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
3779 flavor to description only when flavor is not NULL.
3780
3781 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
3782 mutex after SIGIO/SIGURG lookup loop.
3783
5aff6fdf
RM
37842009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3785
3786 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
3787
b2bcd249
UD
37882009-01-03 Ulrich Drepper <drepper@redhat.com>
3789
3790 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
3791 handling.
3792
d36ad871
UD
37932009-01-02 Ulrich Drepper <drepper@redhat.com>
3794
ebb2788e
UD
3795 * sysdeps/unix/sysv/linux/kernel-features.h
3796 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
3797
72098116
UD
3798 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
3799 if no output is written.
3800
623d0bf5
UD
3801 * version.h: Bump to 2.10 development.
3802
d36ad871
UD
3803 * posix/getconf.c: Update copyright year.
3804 * nss/getent.c: Likewise.
3805 * iconv/iconvconfig.c: Likewise.
3806 * iconv/iconv_prog.c: Likewise.
3807 * elf/ldconfig.c: Likewise.
3808 * catgets/gencat.c: Likewise.
3809 * csu/version.c: Likewise.
3810 * elf/ldd.bash.in: Likewise.
3811 * elf/sprof.c (print_version): Likewise.
3812 * locale/programs/locale.c: Likewise.
3813 * locale/programs/localedef.c: Likewise.
3814 * nscd/nscd.c (print_version): Likewise.
3815 * debug/xtrace.sh: Likewise.
3816 * malloc/memusage.sh: Likewise.
3817 * malloc/mtrace.pl: Likewise.
3818 * debug/catchsegv.sh: Likewise.
3819
25df09ab
UD
38202008-12-29 Mike Frysinger <vapier@gentoo.org>
3821
3822 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
3823 script.
3824
16b7dc27
UD
38252008-12-29 Ulrich Drepper <drepper@redhat.com>
3826
bfbbc63f
UD
3827 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
3828 gethostbyname4_r function call succeeded, just leave the loop.
3829
0f2ae55c
UD
3830 [BZ #9694]
3831 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
3832 very end.
5703f472
UD
3833 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
3834 * wctype/Makefile (tests): Add bug-wctypeh.
3835 * wctype/bug-wctypeh.c: New file.
0f2ae55c 3836
50e481ce
UD
3837 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
3838 LOCALDOMAIN is defined.
3839 * nscd/nscd_getai.c (__nscd_getai): Likewise.
3840
217d45cd
UD
3841 * sysdeps/x86_64/bits/select.h: New file.
3842
16b7dc27
UD
3843 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
3844
bf93cd3b
UD
38452008-12-21 Bruno Haible <bruno@clisp.org>
3846
3847 [BZ #9677]
3848 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
3849 if no output is written.
3850
49159e12
UD
38512008-12-13 Klaus Dittrich <kladit@arcor.de>
3852
3853 * login/utmp_file.c (pututline_file): Replace call to dup2 with
3854 libc internal symbol __dup2 to avoid access through the PLT.
3855
d4f0720b
UD
38562008-12-08 Ulrich Drepper <drepper@redhat.com>
3857
135460f4
UD
3858 [BZ #6545]
3859 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
3860 available only for __USE_GNU.
3861
ed0da352
UD
3862 * inet/Makefile (tests): Add tst-getni2.
3863 * inet/tst-getni2.c: New file.
3864
d4f0720b
UD
3865 [BZ #7080]
3866 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
3867 NULL when NI_NAMEREQD is set.
3868 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3869 * inet/Makefile (tests): Add tst-getni1.
3870 * inet/tst-getni1.c: New file.
3871
cd72adeb
UD
38722008-12-03 Petr Baudis <pasky@suse.cz>
3873
3874 [BZ #7067]
3875 * nscd/connections.c (invalidate_cache): Use prune_run_lock
3876 instead of prune_lock.
3877 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
3878 * nscd/nscd.h (database_dyn): Add prune_run_cache.
3879
e87946cc
UD
38802008-12-07 Ulrich Drepper <drepper@redhat.com>
3881
200da00a
UD
3882 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
3883 use.
3884
3885 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
3886 handling.
3887
905ef0da
UD
3888 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
3889 after reading name server list.
3890
71053765 3891 [BZ #7058]
e87946cc
UD
3892 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
3893 handling for host name aliases.
3894
d43b8bdd
JJ
38952008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
3896
3897 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
3898 instead of doing things manually.
3899
39002008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
3901
3902 * posix/regex_internal.h (build_wcs_upper_buffer):
3903 Return type is reg_error_t.
3904
25a34eb7
UD
39052008-12-05 Ulrich Drepper <drepper@redhat.com>
3906
f3721ab2
UD
3907 * posix/globtest.sh: Use mktemp to create temporary file and
3908 directory.
3909
25a34eb7
UD
3910 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
3911 sets correctly.
3912 (__CPU_CLR_S): Likewise.
3913 (__CPU_ISSET_S): Likewise.
3914
8680179f
UD
39152008-12-05 Joseph Myers <joseph@codesourcery.com>
3916 Ulrich Drepper <drepper@redhat.com>
3917
3918 * scripts/firstversion.awk: Use custom comparison function to compare
3919 version numbers.
3920 * scripts/versions.awk: Use sort invocation which can handle
3921 multi-digit sub-version numbers.
3922
72d50908
UD
39232008-12-04 Ulrich Drepper <drepper@redhat.com>
3924
3925 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
3926 * locale/iso-639.def: Add Chhattisgarhi entry.
3927
f93fc0b7
UD
39282008-12-02 Ulrich Drepper <drepper@redhat.com>
3929
da5ac135
UD
3930 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
3931 ESRCH return value.
3932 (_nss_dns_gethostbyname4_r): Likewise.
3933 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
3934 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
3935 gethostbyname4_r, we don't have a separate IPv6 status, so copy
3936 the no_data variable.
3937
6f5c3117
UD
3938 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
3939 information at the correct index.
3940
f93fc0b7
UD
3941 * socket/sys/socket.h: Declare accept4.
3942 * socket/accept4.c: New file.
3943 * sysdeps/unix/sysv/linux/accept4.c: New file.
3944 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
3945 * socket/Makefile (routines): Add accept4.
3946 * socket/Versions: Export accept4 with version GLIBC_2.10.
3947 * socket/paccept.c: Removed.
3948 * sysdeps/unix/sysv/linux/paccept.c: Removed.
3949 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
3950 * Versions.def: Define GLIBC_2.10 for libc.
3951 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
3952
3953 * nscd/connections.c: Use accept4.
3954
3955 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
3956
1fa7ae05
UD
39572008-12-01 Ulrich Drepper <drepper@redhat.com>
3958
9744268c
UD
3959 * resolv/res_send.c (send_dg): Create sockets with non-blocking
3960 flag already set.
3961
1fa7ae05
UD
3962 * stdlib/setenv.c (unsetenv): Don't search environment if it does
3963 not exist.
30c06371
UD
3964 * stdlib/Makefile (tests): Add tst-unsetenv1.
3965 * stdlib/tst-unsetenv1.c: New file.
1fa7ae05 3966
37a6a271
UD
39672008-11-29 Ulrich Drepper <drepper@redhat.com>
3968
3969 * login/utmp_file.c (file_writable): New variable.
3970 (setutent_file): Don't try to open file for writing.
3971 (pututline_file): Before writing, make descriptor writable if
3972 necessary.
3973
ca4dc0fe
UD
39742008-11-26 Ulrich Drepper <drepper@redhat.com>
3975
be4607eb
UD
3976 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
3977 to IPv4 or IPv6 if an interface has been found.
ca4dc0fe 3978
01a74645
RM
39792008-11-26 Roland McGrath <roland@redhat.com>
3980
24fd0a5b
RM
3981 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
3982 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
3983
3984 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
3985 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
3986 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
3987
01a74645
RM
3988 * elf/elf.h (NT_386_IOPERM): New macro.
3989 (NT_PPC_VSX): New macro.
3990
c0439b95
RM
39912008-11-25 Roland McGrath <roland@redhat.com>
3992
3993 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
3994 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
3995 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
3996 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
3997 Subdirectories moved to ports repository.
3998 * configure.in (base_machine): Remove alpha case.
3999
d3dc523b
RM
40002008-11-25 Thomas Schwinge <tschwinge@gnu.org>
4001
4002 * sysdeps/mach/strerror_l.c: New file.
4003
edba7a54
UD
40042008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
4005
4006 [BZ #6411]
4007 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4008 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4009 magic numbers.
4010 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4011 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4012 (relax_fenv_state): Same as above.
4013 (FPSCR_29): Reserve bit in ISA 2.05.
4014 (FPSCR_NI): Provide define for compat.
4015 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4016 magic numbers.
4017 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4018 magic numbers.
4019 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
4020 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4021 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4022 access to hwcap to account for hwcap size increase to uint64_t.
4023 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4024 Likewise.
4025 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4026 (*setcontext): Likewise.
4027 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4028 New file.
4029 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4030 New file.
4031 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4032 (*setcontext): dynamically select mtfsf insn based on
4033 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4034 increase to uint64_t.
4035 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4036 (*swapcontext): dynamically select mtfsf insn based on
4037 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4038 increase to uint64_t.
4039 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4040 New file.
4041 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4042 New file.
4043 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4044 (*setcontext): dynamically select mtfsf insn based on
4045 PPC_FEATURE_HAS_DFP.
4046 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4047 (*swapcontext): dynamically select mtfsf insn based on
4048 PPC_FEATURE_HAS_DFP.
4049
ec297962
UD
40502008-11-13 Ulrich Drepper <drepper@redhat.com>
4051
b5449f8a 4052 * version.h: Bump for 2.9 release.
f52bb4d7 4053 * include/features.h (__GLIBC_MINOR__): Bump to 9.
b5449f8a 4054
ec297962
UD
4055 [BZ #7029]
4056 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4057 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4058 all the rounding.
4059
3cac8b75
UD
40602008-11-11 Ulrich Drepper <drepper@redhat.com>
4061
0e54a725 4062 [BZ #7009]
3cac8b75
UD
4063 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4064 unknown request types for now.
4065
58a4b51a
RM
40662008-11-11 Roland McGrath <roland@redhat.com>
4067
4068 * sysdeps/x86_64/configure: New file.
4069
4070 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4071 * configure: Regenerated.
4072
01bd5e96
JJ
40732008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
4074
4075 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4076 correct instruction to remove the stack frame.
4077
a9069550
JJ
40782008-11-03 Michael Matz <matz@suse.de>
4079
4080 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4081 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4082
4b23f9bd
JJ
40832008-11-07 Jakub Jelinek <jakub@redhat.com>
4084
09f66a4f
JJ
4085 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4086 Remove.
4087
4b23f9bd
JJ
4088 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4089 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4090 of the thread variable instead of void *.
4091 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4092 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4093 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4094 __libc_tsd_define arguments.
4095 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4096 __libc_tsd_address arguments. Remove union hack.
4097 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4098 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4099 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4100 Adjust __libc_tsd_{set,get} arguments.
4101 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4102 __libc_tsd_define arguments.
4103 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4104 arguments.
4105 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4106 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4107 (LOCALE): Adjust __libc_tsd_define arguments.
4108 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4109 arguments.
4110 (LOCALE): Adjust __libc_tsd_define arguments.
4111 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4112 arguments.
4113 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4114 arguments.
4115
486bdb88
UD
41162008-11-02 Ulrich Drepper <drepper@redhat.com>
4117
4118 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
4119 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4120
64647f9a
UD
41212008-11-01 Ulrich Drepper <drepper@redhat.com>
4122
4123 [BZ #6966]
4124 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
4125
acd44dbc
UD
41262008-10-24 Joseph Myers <joseph@codesourcery.com>
4127 Ulrich Drepper <drepper@redhat.com>
4128
4129 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
4130 definition for GCC 3.1 and later.
64647f9a 4131
41e25904
UD
41322008-10-31 Jakub Jelinek <jakub@redhat.com>
4133
4134 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
4135 refetch dtv, as it might have changed.
4136 * elf/Makefile: Add rules to build and run tst-tls18.
4137 * elf/tst-tls18.c: New test.
4138 * elf/tst-tlsmod18a.c: New file.
4139
e148a644 41402008-09-09 Aurelien Jarno <aurelien@aurel32.net>
97f12390 4141
da9c2314 4142 [BZ #6875]
e148a644
UD
4143 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4144
41452008-10-31 Ulrich Drepper <drepper@redhat.com>
97f12390 4146
6daf1a2f
UD
4147 [BZ #6867]
4148 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4149
6f576bf6
UD
4150 [BZ #6919]
4151 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4152 Fix length of copy operation.
4153
45a8beb5
UD
41542008-10-02 Pierre Habouzit <madcoder@debian.org>
4155
4156 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4157 and fix its calling convention.
4158
ad12e635
UD
41592008-10-07 Andreas Schwab <schwab@suse.de>
4160
4161 [BZ #6942]
4162 * resolv/res_send.c (send_vc): Fix last change.
4163 (send_dg): Align here as well.
4164
3cf44918
UD
41652008-10-31 Ulrich Drepper <drepper@redhat.com>
4166
dbb6ab3e
UD
4167 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4168 return value in case rlimit is RLIM_INFINITY.
4169
4170 [BZ #6947]
4171 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4172 for UL_SETFSIZE.
1828d6b0
UD
4173 * resource/Makefile (tests): Add bug-ulimit1.
4174 * resource/bug-ulimit1.c: New file.
dbb6ab3e 4175
a5ff533e
UD
4176 [BZ #6974]
4177 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4178 without dot. Properly terminate the string with a null byte.
4179 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4180
4bed549a
UD
4181 [BZ #6980]
4182 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4183 negative sizees.
4184 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4185 negative __size.
4186
3cf44918
UD
4187 [BZ #6995]
4188 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4189
21b07d8b
UD
41902008-10-30 Ulrich Drepper <drepper@redhat.com>
4191
332c4465
UD
4192 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4193 abort if there is no initgroups_dyn function.
4194
21b07d8b
UD
4195 * resolv/res_send.c (send_dg): On timeout, only return nonzero
4196 result if any of the queries really provided an answer.
4197
4caa3fb7
UD
41982008-10-28 Ulrich Drepper <drepper@redhat.com>
4199
4200 * po/lt.po: Update from translation team.
4201
a22c3a0d
UD
42022008-10-26 Ulrich Drepper <drepper@redhat.com>
4203
4204 * po/id.po: Update from translation team.
4205
49685151
UD
42062008-10-24 Ulrich Drepper <drepper@redhat.com>
4207
4208 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
660675de 4209 Fix tests for existence of second reply.
49685151 4210
8d9d5d35
UD
42112008-10-23 Ulrich Drepper <drepper@redhat.com>
4212
4213 * po/id.po: New file.
4214 Contributed by the Indonesian translation team.
4215
208bc836
UD
42162008-10-22 Dmitry V. Levin <ldv@altlinux.org>
4217
4218 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
4219 initialization.
4220
60a23f5a
UD
42212008-10-17 Jakub Jelinek <jakub@redhat.com>
4222
4223 * elf/Makefile: Add rules to build and run tst-tls17.
4224 * elf/tst-tls17.c: New test.
4225 * elf/tst-tlsmod17a.c: New file.
4226 * elf/tst-tlsmod17b.c: Likewise.
4227
292eb817
UD
42282008-10-17 Ulrich Drepper <drepper@redhat.com>
4229
4230 * stdlib/divmod_1.c: Use correct type for dummy variable.
4231 * stdlib/mod_1.c: Likewise.
4232
5df2a427
UD
42332008-10-16 Ulrich Drepper <drepper@redhat.com>
4234
4235 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
4236
472e5e08
JJ
42372008-10-16 Jakub Jelinek <jakub@redhat.com>
4238
4239 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
4240 __nonnull order for C++.
4241 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
4242 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
4243
86900abd
RM
42442008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
4245
4246 * stdlib/longlong.h: Update from GCC.
4247
19c10a47
JJ
42482008-10-09 Jakub Jelinek <jakub@redhat.com>
4249 David S. Miller <davem@davemloft.net>
4250
4251 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
4252 make sure any registers used with 64-bit 'branch-on-register'
4253 instructions have their top 32-bits clear.
4254 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
4255 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
4256
2fdde3b9
UD
42572008-09-18 Andreas Schwab <schwab@suse.de>
4258
4259 [BZ #6942]
4260 * resolv/res_send.c (send_vc): Fix use of unaligned address.
f00d47a3 4261 Properly handle partial reads.
2fdde3b9 4262
6ba25fcb
RM
42632008-10-01 Mark Shinwell <shinwell@codesourcery.com>
4264
4265 * elf/elf.h (STO_MIPS_PLT): New.
4266 (R_MIPS_COPY): New.
4267 (R_MIPS_JUMP_SLOT): New.
4268 (R_MIPS_NUM): Redefine to 128.
4269 (DT_MIPS_PLTGOT): New.
4270 (DT_MIPS_RWPLT): New.
4271 (DT_MIPS_NUM): Redefine to 0x35.
4272
97898201
UD
42732008-10-01 Ulrich Drepper <drepper@redhat.com>
4274
4275 * timezone/africa: Update from tzdata2008f.
4276 * timezone/asia: Likewise.
4277 * timezone/australasia: Likewise.
4278 * timezone/europe: Likewise.
4279 * timezone/leapseconds: Likewise.
4280 * timezone/northamerica: Likewise.
4281 * timezone/southamerica: Likewise.
4282 * timezone/zone.tab: Likewise.
4283
3452ded5
UD
42842008-09-30 Ulrich Drepper <drepper@redhat.com>
4285
4286 * nscd/connections.c: Disable use of paccept for now.
4287
54ad9327
UD
42882008-09-29 Ulrich Drepper <drepper@redhat.com>
4289
8ec2550e
UD
4290 * socket/Versions: Remove paccept export for GLIBC_2.9.
4291 * socket/Makefile (routines): Remove paccept.
4292 * socket/sys/socket.h: Remove paccept declaration.
4293
54ad9327
UD
4294 * po/sv.po: Update from translation team.
4295
1c5eba39
UD
42962008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
4297
4298 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
4299 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4300
0a26fc4d
UD
43012008-09-16 Ulrich Drepper <drepper@redhat.com>
4302
4303 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
4304 Patch by Olivier Fourdan <ofourdan@redhat.com>.
4305
2bcaff08
UD
43062008-09-15 Ulrich Drepper <drepper@redhat.com>
4307
4308 * sunrpc/rpc/svc.h: Declare svcfd_create.
4309 Patch by Michael Solberg <msolberg@redhat.com>.
4310
caa60cb9 43112008-09-12 Flavio Leitner <fleitner@redhat.com>
f00d47a3 4312 Ulrich Drepper <drepper@redhat.com>
caa60cb9
UD
4313
4314 * malloc/malloc.c (public_vALLOc): Try other arenas in case
4315 _int_valloc fails.
4316 (public_pVALLOc): Likewise.
4317
6c161112
AJ
43182008-09-02 Andreas Jaeger <aj@suse.de>
4319
4320 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
4321 commit.
4322
0cb269d7
RM
43232008-08-26 Aurelien Jarno <aurelien@aurel32.net>
4324
452034cc 4325 [BZ #6860]
2bcaff08 4326 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
0cb269d7 4327
13074b5b
RM
43282008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
4329
4330 * Makefile (check-data): Check data directory in add-ons.
4331 * elf/Makefile (check-data): Likewise.
4332
58801a0e
RM
43332008-08-18 Roland McGrath <roland@redhat.com>
4334
4335 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
4336 * configure: Regenerated.
4337 * config.make.in (cflags-cpu): New substituted variable.
4338 (with-cpu): Variable removed.
4339 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
4340
7df49c5d
UD
43412008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
4342
4343 [BZ #6845]
4344 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
4345 __signbitl definition and __LONG_DOUBLE_128__ guard from:
4346 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
4347 redundant. Functions which call floating point assembler operations
4348 should go into a sysdeps powerpc/fpu directory.
4349
965805e8
UD
43502008-08-15 Ulrich Drepper <drepper@redhat.com>
4351
4352 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
4353 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4354
9cf73ab0
UD
43552008-08-14 Ulrich Drepper <drepper@redhat.com>
4356
62a1ffc6
UD
4357 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
4358
9cf73ab0
UD
4359 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
4360 change related to AT_EXECFN. We cannot use that string.
4361 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
4362 _dl_execfn member.
4363 * elf/dl-support.c: Remove _dl_execfn variable.
4364 (_dl_aux_init): Remove handling of AT_EXECFN.
4365 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
4366 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
4367
1bfa05cf
UD
43682008-08-13 Ulrich Drepper <drepper@redhat.com>
4369
7b3ba2c4
UD
4370 [BZ #6544]
4371 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
4372 byte gets added to writes and seeks from the end use the length of
4373 the buffer and not the currently terminating NUL byte.
4374
1bfa05cf
UD
4375 [BZ #6634]
4376 * login/utmp_file.c (getutent_r_file): Take additional parameter.
4377 Set to true if locking failed.
4378 (getutid_r_file): Adjust caller.
4379 (pututline_file): Likewise. Return NULL in this case.
4380 Patch mostly by halesh.s@gmail.com.
4381
c5671698
UD
43822008-08-12 Ulrich Drepper <drepper@redhat.com>
4383
4384 [BZ #6589]
4385 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
4386 Define.
4387 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
4388
4497384e
UD
43892008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
4390
4391 [BZ #6839]
4392 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
4393 macro since it is now available in elf/dynamic-link.h.
4394
675d7111
RM
43952008-08-12 Roland McGrath <roland@frob.com>
4396
4397 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
4398 in case used outside of libc.
4399 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
4400
8b254432
UD
44012008-08-11 Ulrich Drepper <drepper@redhat.com>
4402
4403 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
4404 directly instead of going through dn_comp.
4405
ac84eeca
RM
44062008-08-11 Aurelien Jarno <aurel32@debian.org>
4407
4408 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4409 Fix asm constraints.
4410
f081b451
UD
44112008-08-07 Ulrich Drepper <drepper@redhat.com>
4412
4413 [BZ #6790]
4414 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
4415 (IPV6_PMTUDISC_PROBE): Likewise.
4416
30a4429e
UD
44172008-08-07 Pete Eberlein <eberlein@us.ibm.com>
4418
4419 [BZ #6791]
4420 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
4421
1642331d 44222008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
626f68ff 4423 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1642331d
UD
4424
4425 [BZ #6817]
4426 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
4427 Added the members 'vsx' and 'arch_2_06'.
4428 (_dl_powerpc_platforms): Add the member 'power7'.
4429 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
4430 to reflect the changes required by VSX and ISA 2.06.
4431 Modify _DL_PLATFORMS_COUNT to reflect the addition of
4432 'power7'.
4433 Defined PPC_PLATFORM_POWER7.
4434 (_dl_string_platform): Add support for POWER7.
4435 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
4436 capability and ISA 2.06.
4437
48b94661
UD
44382008-08-07 Ulrich Drepper <drepper@redhat.com>
4439
4440 [BZ #6824]
4441 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
4442 macro to detect use of 128 bit long double.
4443 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
4444
9523fd28
UD
44452008-08-05 Ulrich Drepper <drepper@redhat.com>
4446
9c0cb150
UD
4447 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
4448
46aea5cb 4449 [BZ #5794]
9523fd28
UD
4450 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
4451 parameters.
4452 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
4453 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4454
c400c931
UD
44552008-08-03 Ulrich Drepper <drepper@redhat.com>
4456
4457 * nscd/connections.c (main_loop_poll): Pass a buffer which is
4458 guaranteed to be large enough to read inotify event. Ignore
4459 EAGAIN error. Better error message. Add branch predicition.
4460 (main_loop_epoll): Likewise.
4461
3f39adac
RM
44622008-08-02 Roland McGrath <roland@frob.com>
4463
4464 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4465 Add memory clobbers.
4466
3501542f
UD
44672008-08-02 Ulrich Drepper <drepper@redhat.com>
4468
48b22986
UD
4469 * manual/arith.texi: Avoid @strong{Note:}.
4470 * manual/creature.texi: Likewise.
4471 * manual/filesys.texi: Likewise.
4472 * manual/math.texi: Likewise.
4473 * manual/memory.texi: Likewise.
4474 * manual/resource.texi: Likewise.
4475 * manual/syslog.texi: Likewise.
4476 * manual/time.texi: Likewise.
4477
3501542f
UD
4478 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
4479 to prevent warning.
4480
17756df3
UD
44812008-08-01 Ulrich Drepper <drepper@redhat.com>
4482
ebcc1f4d
UD
4483 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
4484 new epoll_create1 interface.
4485 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4486 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
4487 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4488
144bfa86
UD
4489 * include/arpa/nameser.h (NS_GET16): Use const pointer.
4490 (NS_GET32): Likewise.
4491
7e1b29c6
UD
4492 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
4493 syscalls, too.
4494
42fa1f67
UD
4495 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
4496 use the AT_EXECFN value if it is no absolute path.
4497 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
4498 __ASSUME_AT_EXECFN.
4499
cd5743fd
UD
4500 * Versions.def: Add GLIBC_2.9 to libresolv.
4501 * include/resolv.h: Remove hidden proto declarations for __ns_*
4502 functions. Add them for __dn_count_labels and __p_secstodate.
4503 * include/arpa/nameser.h: Add a number of hidden proto declarations.
4504 Define ns_msg_getflags macro here.
4505 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
4506 and __p_secstodate.
4507 * resolv/Versions: Export functions from <arpa/nameser.h> from
4508 libresolv in version GLIBC_2.9.
4509 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
4510 hidden definitions.
4511 * resolv/ns_netint.c: Likewise.
4512 * resolv/ns_parse.c: Likewise.
4513 * resolv/ns_print.c: Likewise.
4514 * resolv/ns_samedomain.c: Likewise.
4515 * resolv/ns_ttl.c: Likewise.
4516 * resolv/arpa/nameser_compat.h: Likewise.
4517 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
4518 function calls.
4519 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
4520 instead of ns_get16.
4521 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
4522 __ns_get32 instead of ns_get16 and ns_get32 respectively.
4523 (gaih_getanswer_slice): Likewise.
4524 * resolv/Makefile (libresolv-routines): Add ns_date.
4525 * resolv/ns_date.c: New file.
4526
17756df3
UD
4527 * elf/Makefile (check-localplt.out): Also check libresolv and
4528 libcrypt.
4529
46bc5d43
UD
45302008-07-31 Ulrich Drepper <drepper@redhat.com>
4531
4532 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4533 __ASSUME_O_CLOEXEC.
4534
a707cff6
UD
45352008-07-30 Ulrich Drepper <drepper@redhat.com>
4536
3c227386
UD
4537 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
4538 buffer passed to NSS functions.
4539
9523fd28 4540 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
bd7f4857
UD
4541
4542 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
4543 Define.
4544
a707cff6
UD
4545 * misc/syslog.c (openlog_internal): Fix compile problem.
4546
0424d007
RM
45472008-07-28 Roland McGrath <roland@redhat.com>
4548
4549 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
4550
b7da31a1
UD
45512008-07-28 Ulrich Drepper <drepper@redhat.com>
4552
300ea0ad
UD
4553 * io/ftw.c (add_object): Remove inline to avoid warning.
4554
d6173baa
UD
4555 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
4556
b7da31a1
UD
4557 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
4558 Use it instead of locally defined resplen2 variable.
4559 (res_nsend): Adjust for __libc_res_nsend interface change.
4560 (send_vc): Initialize *resplen2 if necessary. Read length of
4561 package into an appropriately aligned variable. Store converted length
4562 in new variable and use it appropriately.
4563 Add branch prediction help.
4564 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
4565 and pass it on to __libc_res_nsend. Adjust all callers.
4566 (__libc_res_nsearch): Likewise.
4567 (__libc_res_nqeurydomain): Likewise.
4568 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
4569 change.
4570 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
4571 Define resplen2 variable and pass it to __libc_res_nsearch and then
4572 to gaih_getanswer.
4573 (getanswer_r): In case of incorrect DNS data don't overread buffer.
4574 Add branch prediction.
4575 (gaih_getanswer_slice): Likewise. Check for invalid data types.
4576 (gaih_getanswer): Don't decode second slice if first one failed due
4577 to a too small buffer. Don't let not found status of second
4578 decoder shadow results of the first.
4579 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
4580 and __libc_res_nquery interface changes
4581 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
4582 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
4583 __libc_res_nsearch, and __libc_res_nsend.
4584 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
4585 change.
4586 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
4587 __libc_res_nsearch interface changes.
4588
11ed3eae
UD
45892008-07-27 Ulrich Drepper <drepper@redhat.com>
4590
372aece0
UD
4591 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
4592
e038616f
UD
4593 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
4594 file descriptors with close-on-exec set.
4595 (exec_comm_child): Fix the case where the write end of the pipe is
4596 STDOUT_FILENO already. In case it is, clear close-on-exec.
4597
d6e0c2a6
UD
4598 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
4599 * io/pipe2.c: Likewise.
4600 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
4601 instead of __ASSUME_PACCEPT.
4602 * include/unistd.h: Declare __have_pipe2.
4603 * libio/iopopen.c: Implement "e" flag.
4604 * libio/Makefile (tests): Add tst-popen1.
4605 * libio/tst-popen1.c: New file.
4606
11ed3eae
UD
4607 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
4608 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4609
7438a80d
UD
46102008-07-26 Ulrich Drepper <drepper@redhat.com>
4611
c4a710b6
UD
4612 [BZ #6771]
4613 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
4614 success call of _IO_SEEKOFF or calls which failed because the
4615 descriptor is for a pipe.
4616
31f3b159
UD
4617 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
4618 magic number.
4619
c0216dfc
UD
4620 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
4621
72112b0c
UD
4622 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
4623 F_SETFD use if we know fopen set the flag.
4624
7438a80d
UD
4625 * login/utmp_file.c (setutent_file): Minor optimization in case
4626 O_CLOEXEC is available.
4627
7b91359b
UD
46282008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
4629
4630 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
4631 * elf/Makefile: Use pie-ccflag variable.
4632 * nscd/Makefile: Likewise.
4633 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
4634
4057dc45
UD
46352008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
4636
e7135e24 4637 [BZ #6724]
4057dc45
UD
4638 * Versions.def: Add GLIBC_2.9 version tag for libutil.
4639 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
4640 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
4641 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
4642 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
4643 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
4644 utmp32, utmpx32 and login32.
4645 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
4646 versions of struct utmp functions to libc and libutil.
4647 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
4648 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
4649 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
4650 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
4651 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
4652 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
4653 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
4654 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
4655 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
4656 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
4657 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
4658 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
4659 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
4660 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
4661 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
4662 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
4663 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
4664 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
4665 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
4666 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
4667 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
4668 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
4669
ff0bf753
UD
46702008-07-26 Ulrich Drepper <drepper@redhat.com>
4671
619cc2f6
UD
4672 * scripts/gen-as-const.awk: Generate more widely usable code by
4673 using 64-bit arithmetic.
4674
1311b164 4675 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3f414923 4676 the same treatment as narrow output code in last patch.
1311b164 4677
ff0bf753
UD
4678 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
4679
3f414923 4680 [BZ #6763]
ff0bf753
UD
4681 * elf/dl-load.c (local_strdup): Remove inline.
4682 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
4683 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
4684 part of the object.
4685
4686 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
4687
8ccf22f9
UD
46882008-07-25 Ulrich Drepper <drepper@redhat.com>
4689
bdd24a30
UD
4690 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
4691 the new syscalls, too.
b5c0b5e4 4692
b41f1d14
UD
4693 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
4694 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
4695
3703468e
UD
4696 [BZ #6698]
4697 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
4698 parameter for end of buffer. If temporary copy is too large use
4699 malloc.
4700 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
4701 interface change.
4702 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
4703 string rewrite when allocating buffer.
4704
bb0277bf
UD
4705 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
4706 syscalls, too.
4707
9dd84772
UD
4708 * nscd/connections.c (nscd_init): Clean up fcntl call.
4709
c418b1ba
UD
4710 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
4711 SOCK_NONBLOCK if possible.
4712
b206d8b1
UD
4713 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
4714 SOCK_CLOEXEC if available.
4715
8ccf22f9
UD
4716 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
4717 __libc_clntudp_bufcreate_internal.
4718 * include/sys/socket.h: Declare __have_sock_cloexec.
4719 * socket/Makefile (aux): Add have_sock_cloexec.
4720 * socket/have_sock_cloexec.c: New file.
4721 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
4722 __libc_clntudp_bufcreate.
4723 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
4724 which takes an additional parameter. Create socket with non-blocking
4725 mode and close-on-exec flag set, if wanted.
4726 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
4727 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
4728 instead of clntudp_create. The socket has already the close-on-exec
4729 flag set if SOCK_CLOEXEC is defined.
4730
579cdf5a
UD
47312008-07-24 Ulrich Drepper <drepper@redhat.com>
4732
3ff2c948
UD
4733 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4734 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
4735 appropriate.
4736 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
4737 non-blocking mode by using socket, paccept, and inotify_init1.
4738
bdcebfc4
UD
4739 * Versions.def (glibc): Add GLIBC_2.9.
4740 * io/Makefile (routines): Add dup3 and pipe2.
4741 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
4742 * io/dup3.c: New file.
4743 * io/pipe2.c: New file.
4744 * posix/unistd.h: Declare dup3 and pipe2.
4745 * socket/Makefile (routines): Add paccept.
4746 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
4747 * socket/paccept.c: New file.
4748 * socket/sys/socket.h: Declare paccept.
4749 * sysdeps/unix/syscalls.list: Add entry for dup3.
4750 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
4751 epoll_create2 and inotify_init1.
4752 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
4753 * sysdeps/unix/sysv/linux/paccept.c: New file.
4754 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
4755 possible.
4756 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
4757 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
4758 inotify_init1, and pipe2 entries.
4759 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
4760 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
4761 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
4762 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
4763 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
4764 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
4765 SOCK_NONBLOCK.
4766 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
4767 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
4768 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
4769 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
4770 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
4771 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
4772 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
4773 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
4774 EPOLL_NONBLOCK. Declare epoll_create2.
4775 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
4776 EFD_NONBLOCK.
4777 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
4778 IN_NONBLOCK. Declare inotify_init1.
4779 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
4780 SFD_NONBLOCK.
4781 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
4782 TFD_NONBLOCK.
4783
0e077a7e
UD
4784 * elf/elf.h: Define AT_EXECFN.
4785 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
4786 LD_ORIGIN_PATH.
4787 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
4788 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
4789 if __ASSUME_AT_EXECFN is defined.
4790 (_dl_aux_init): Handle AT_EXECFN.
4791 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
4792 for 2.6.27 and up.
4793 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
4794 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
4795 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
4796 _dl_execfn if available and avoid compatibility code if
4797 __ASSUME_AT_EXECFN is defined.
4798
579cdf5a
UD
4799 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
4800 _dl_discover_osversion only for older kernels.
4801
7385c04c
RM
48022008-07-22 Roland McGrath <roland@frob.com>
4803
4804 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
4805
8a26088d
RM
48062008-07-21 Roland McGrath <roland@frob.com>
4807
4808 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
4809 returned too much data out of line.
4810
9f558b80
UD
48112008-07-20 Ulrich Drepper <drepper@redhat.com>
4812
2e79213a
UD
4813 * locale/setlocale.c (setname): Remove inline to avoid compiler
4814 warning.
4815
579cdf5a 4816 [BZ #6712]
9f558b80
UD
4817 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
4818
9667f97d
UD
48192008-07-15 Ulrich Drepper <drepper@redhat.com>
4820
2486b496
UD
4821 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
4822 doesn't manage to write anything, fail.
4823
9667f97d
UD
4824 * malloc/hooks.c (__malloc_check_init): Remove printf.
4825
6d4c073b
RM
48262008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4827
4828 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
4829
b7432416
UD
48302008-07-12 Ulrich Drepper <drepper@redhat.com>
4831
4832 * nscd/connections.c (main_loop_poll): Fix handling of read errors
4833 from inotify.
4834 (main_loop_epoll): Likewise.
4835
44abc397
UD
48362008-07-09 Ulrich Drepper <drepper@redhat.com>
4837
835113c6
UD
4838 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
4839
fdc769f6
UD
4840 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
4841 if DEBUG is defined.
4842
44abc397
UD
4843 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
4844 query. Adjust buffer size computation for padding.
4845
38dc8fad
UD
48462008-07-08 Ulrich Drepper <drepper@redhat.com>
4847
75684bd7
UD
4848 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
4849 * stdio-common/tst-setvbuf1.c: New file.
4850 * stdio-common/tst-setvbuf1.expect: New file.
4851
38dc8fad
UD
4852 [BZ #6719]
4853 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
4854 when selecting fully-buffered stream.
4855 Patch by Wang Xin <wxinee@gmail.com>.
4856
107f4ac2
RM
48572008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
4858
4859 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
4860 (__open_2): New function.
4861 (__open64_2): New alias to __open_2.
4862 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
4863 (__openat_2): New function.
4864 (__openat64_2): New alias to __openat_2.
4865
45ec3e79
UD
48662008-07-06 Ulrich Drepper <drepper@redhat.com>
4867
4868 [BZ #6723]
4869 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
4870
0a583b54
RM
48712008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4872
4873 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
4874 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
4875 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
4876 __hurd_dfail.
4877 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4878 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4879 * sysdeps/mach/hurd/send.c (__send): Likewise.
4880 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
4881 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
4882
d5a0160b
RM
48832008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4884
4885 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
4886 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4887 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4888 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
4889 * hurd/get-host.c (_hurd_get_host_config): Likewise.
4890 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
4891
80922a99
UD
48922008-06-27 Ulrich Drepper <drepper@redhat.com>
4893
4894 [BZ #6657]
4895 * time/strptime_l.c: Don't clear s.era_cnt after successful match
4896 of %EY.
4897 Patch by Petr Baudis.
4898
34ca2ff7
UD
48992008-06-26 Ulrich Drepper <drepper@redhat.com>
4900
5ee0f5e2 4901 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
34ca2ff7
UD
4902 Patch by Peter Jones <pjones@redhat.com>.
4903
104426b6
UD
49042008-06-25 Ulrich Drepper <drepper@redhat.com>
4905
4906 [BZ #6654]
4907 * stdlib/canonicalize.c (__realpath): readlink can write too much
4908 into the buffer on platforms without PATH_MAX.
4909
7166d23f
UD
49102008-06-17 Carlos O'Donell <carlos@codesourcery.com>
4911
4cb8e687 4912 [BZ #6653]
7166d23f
UD
4913 * posix/tst-regex.c (main): Rename to...
4914 (do_test): ... this. Remove cmdline option processing.
4915 (TIMEOUT): Define.
4916 (TEST_FUNCTION): Define.
4917 (CMDLINE_OPTIONS): Define.
4918
974069d8
UD
49192008-06-25 Ulrich Drepper <drepper@redhat.com>
4920
4921 [BZ #5210]
4922 * configure.in: Add -Werror to -fstack-protector test to catch
4923 unsupported architectures.
4924 Patch by Gilles Esponasse <g.esp@free.fr>.
4925
cefa2dd3
UD
49262008-06-17 Joseph Myers <joseph@codesourcery.com>
4927
4928 * stdlib/tst-setcontext.c: Set back_in_main before exit if
4929 getcontext returns ENOSYS.
4930
c00d1128
UD
49312008-06-18 Ulrich Drepper <drepper@redhat.com>
4932
4933 * nscd/connections.c (main_loop_poll): Fix test for read error.
4934 (main_loop_epoll): Likewise.
4935
a0edbb48
UD
49362008-06-13 Ulrich Drepper <drepper@redhat.com>
4937
d0a1ae94
UD
4938 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
4939 better place so it is not called when nscd is used.
4940
a0edbb48
UD
4941 * nscd/connections.c: Also recognize and handle changes to the
4942 resolver configuration file.
4943
46f70b3c
UD
49442008-06-12 Ulrich Drepper <drepper@redhat.com>
4945
5bcc6c0f
UD
4946 * time/strftime.c: Pass reference to tzset_called around to handle
4947 recursive calls.
4948
4949 [BZ #6612]
4950 * time/strftime.c (__strftime_internal): Call tzset() only
4951 when printing timezone-dependent values.
4952 Based on a patch by Petr Baudis <pasky@suse.cz>.
4953
f854efd7
UD
4954 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
4955 unconditionally use second gaih_getanswer_slice result.
4956
46f70b3c
UD
4957 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
4958 (getaddrinfo): RES must always be non-NULL.
4959
9ea8bfec
UD
49602008-06-12 Jakub Jelinek <jakub@redhat.com>
4961
4962 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
4963 cr[34] registers.
4964 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4965 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4966 Likewise.
4967 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
4968 register.
4969
5a337776
UD
49702008-06-12 Ulrich Drepper <drepper@redhat.com>
4971
5228ba2f
UD
4972 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
4973 fields.
4974 * nscd/connections.c (inotify_fd): New variable.
4975 (nscd_init): Try to open an inotify descriptor.
4976 If successful, watch files for databases using inotify instead of
4977 having prune threads stat the files.
4978 (nscd_run_prune): Recognize clear_cache flag being set and call
4979 prune_cache appropriately.
4980 (main_loop_poll): Add inotify descriptor to wait set and handle the
4981 reported changes.
4982 (main_loop_epoll): Likewise.
4983 * nscd/cache.c (prune_cache): Don't stat files for databases if
4984 inotify is used.
4985 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
4986 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
4987
5a337776
UD
4988 * nscd/grpcache.c (cache_addgr): Correctly compute size of
4989 fixed-size portion of the record.
4990 * nscd/servicescache.c (cache_addserv): Likewise.
4991 * nscd/pwdcache.c (cache_addpw): Likewise.
4992 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4993
9ad58cc3
UD
49942008-06-11 Ulrich Drepper <drepper@redhat.com>
4995
4996 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
4997 out we don't use uninitialized memory.
4998
4999 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
5000 the client.
5001
c1283552
UD
50022008-06-10 Ulrich Drepper <drepper@redhat.com>
5003
5004 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5005 ignore T_DNAME messages.
5006 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5007
eef8a803
JJ
50082008-06-05 Jakub Jelinek <jakub@redhat.com>
5009
5010 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5011 Avoid segfault if first GETC returns eof/'\0'/'\n'.
5012
ee78670e
JJ
50132008-06-03 Jakub Jelinek <jakub@redhat.com>
5014
5015 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5016 instead of portstr to nscd_getserv_r. Patch by
5017 Roman Kagan <rkagan@mail.ru>.
5018
62605cbf
UD
50192008-05-26 Jim Meyering <meyering@redhat.com>
5020
10966640 5021 Remove more useless "if" tests before "free".
62605cbf
UD
5022 * include/inline-hashtab.h (htab_delete): Likewise.
5023 * libio/freopen.c (freopen): Likewise.
5024 * libio/freopen64.c (freopen64): Likewise.
5025 * locale/programs/ld-collate.c (collate_read): Likewise.
5026 * misc/fstab.c (libc_freeres_fn): Likewise.
5027 * posix/glob.c (globfree): Likewise.
5028
f63abf58
UD
50292008-05-24 Ulrich Drepper <drepper@redhat.com>
5030
5031 * string/Makefile (strop-tests): Add memmem.
5032 * string/test-memmem.c: New file.
5033 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5034 (test_init): Size buf1 according to BUF1PAGES.
5035
ad8a5511
JJ
50362008-05-24 Jakub Jelinek <jakub@redhat.com>
5037
5038 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5039 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5040 (CFLAGS-scanf17.c): New.
5041 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5042 * stdio-common/scanf15.c (main): Likewise.
f63abf58
UD
5043 * stdio-common/scanf16.c: New file.
5044 * stdio-common/scanf17.c: New file.
ad8a5511 5045
e2003883
UD
50462008-05-24 Ulrich Drepper <drepper@redhat.com>
5047
5048 * resolv/res_send.c (send_dg): If we already have one of two
b5ba2c79 5049 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
e2003883
UD
5050 use the one answer insted of failing.
5051
acbb9873
UD
50522008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
5053
5054 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5055 being executed on PowerPC as the expected result exceeds IBM
5056 long double 128 __LDBL_MAX__.
5057
e85f1d6a
RM
50582008-05-21 Roland McGrath <roland@redhat.com>
5059
5060 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5061
5062 * Makefile (check-data): Use $(abi-name) before other guesses.
5063 Look in $(add-ons) dirs before scripts/data/.
5064 * elf/Makefile (check-data): Likewise.
5065
5066 * scripts/soversions.awk: Grok ABI line.
5067 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5068 Emit definition for abi-name variable.
5069
d8e763c6
UD
50702008-05-21 Ulrich Drepper <drepper@redhat.com>
5071
e92799fc 5072 * string/endian.h: Define new fixed-size hto* and *toh macros only
e85f1d6a 5073 if [__USE_BSD].
e92799fc 5074
d8e763c6
UD
5075 * iconvdata/Depend: Add localedata.
5076
009ef333
RM
50772008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
5078
5079 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5080
86746abb
JJ
50812008-05-08 David S. Miller <davem@davemloft.net>
5082
5083 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5084 HIDDEN_JUMPTARGET.
5085 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5086 (__SYSCALL_CLOBBERS): Remove %g* registers.
5087 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5088 (__SYSCALL_CLOBBERS): Likewise.
5089 * scripts/data/localplt-sparc-linux-gnu.data: New file.
f63abf58 5090 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
86746abb 5091
5e6f34c2
JJ
50922008-05-21 Jakub Jelinek <jakub@redhat.com>
5093
5094 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5095 (CALL_ERRNO_LOCATION): Define.
5096 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5097 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5098 (CALL_ERRNO_LOCATION): Define.
5099 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5100 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
5101 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
5102
4beb4532
UD
51032008-05-20 Ulrich Drepper <drepper@redhat.com>
5104
5105 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
5106 variable.
5107
ed8f38ba
JJ
51082008-05-20 Jakub Jelinek <jakub@redhat.com>
5109
5110 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
5111 (FIRST_FRAME_POINTER): Define.
5112
51132008-05-09 David S. Miller <davem@davemloft.net>
5114
5115 * sysdeps/sparc/sparc64/backtrace.c: New file.
5116
c1b8190a
JJ
51172008-05-14 David S. Miller <davem@davemloft.net>
5118
5119 * sysdeps/sparc/machine-gmon.h: New file.
5120 * sysdeps/sparc/sparc-mcount.S: Likewise.
5121 * sysdeps/sparc/Makefile: Add sparc-mcount target to
5122 sysdep_routines in gmon directory.
5123
84aacd93
JJ
51242008-05-19 Jakub Jelinek <jakub@redhat.com>
5125
5126 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
5127
5908f779
UD
51282008-05-19 Ulrich Drepper <drepper@redhat.com>
5129
5130 * resolv/res_query.c (__libc_res_nquery): In case one of two
5131 answer was too short don't try to read that answer's header.
5132
5133 * resolv/res_send.c (send_dg): In case of timeout and there are
5134 two queries and one has been answered, return value indicating
5135 success.
5136
528741cb
UD
51372008-05-18 Ulrich Drepper <drepper@redhat.com>
5138
5139 * nscd/cache.c (cache_add): Take additional parameter specifying
5140 whether this is in response of a cache refill. Check alignment
5141 of package data. Revamp waking of pruning thread.
5142 (prune_cache): Small optimization.
5143 * nscd/nscd.h: Adjust cache_add prototypes.
5144 * nscd/aicache.c: Adjust cache_add calls.
5145 * nscd/grpcache.c: Likewise.
5146 * nscd/hstcache.c: Likewise.
5147 * nscd/initgrcache.c: Likewise.
5148 * nscd/pwdcache.c: Likewise.
5149 * nscd/servicescache.c: Likewise.
5150 * nscd/connections.c (restart): Really disable cache use before
5151 exec attempt. If it fails, reenable cache.
5152 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
5153 time to max to be able to notice concurrent cache additions. Unlock
5154 prune_lock while performing gc. Afterwards compute wakeup time with
5155 current wakeup_time value in mind.
5156
343996c4
UD
51572008-05-17 Ulrich Drepper <drepper@redhat.com>
5158
5811d72b
UD
5159 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
5160
fa526148
UD
5161 * nscd/mem.c (gc): Correctly determine highest used array element
5162 in mark.
5163
77d40f10
UD
5164 * nscd/mem.c (markrange): Add assert to check entries are all
5165 aligned. Small cleanup in bitmap use.
5166
8884028c
UD
5167 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5168 blockoff of type nscd_ssize_t.
5169 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5170 (mempoll_alloc): Record block offset and not address.
5171
b2159575
UD
5172 * nscd/mem.c (gc): Fix test for stack overuse.
5173
5c9629d2
UD
5174 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5175 more asserts.
5176
66d90496
UD
5177 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5178 entry is available, believe it.
5179
343996c4
UD
5180 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5181 no answers return NSS_STATUS_NOTFOUND.
5182 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5183 buffer does not have any content.
5184
91c8a74b
UD
51852008-05-16 Ulrich Drepper <drepper@redhat.com>
5186
74e13385
UD
5187 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
5188
91c8a74b
UD
5189 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
5190 lookup, don't assign canon unconditionally.
5191
0caca71a
UD
51922008-05-14 Ulrich Drepper <drepper@redhat.com>
5193
5194 * string/Makefile (distribute): Add str-two-way.h.
5195
51962008-03-29 Eric Blake <ebb9@byu.net>
5197
5198 Rewrite string searches to O(n) rather than O(n^2).
5199 * string/str-two-way.h: New file. For linear fixed-allocation
5200 string searching.
5201 * string/memmem.c: New implementation.
5202 * string/strstr.c: New implementation.
5203 * string/strcasestr.c: New implementation.
5204
b194db79
UD
52052008-04-11 Paolo Bonzini <bonzini@gnu.org>
5206
5207 * posix/regcomp.c (optimize_utf8): Add a note on why we test
5208 opr.ctx_type.
5209 (calc_first): Initialize constraint field.
5210 (duplicate_node_closure): Use it instead of special casing ANCHORS.
5211 Use search_duplicated_node to avoid loops. Fix grammar.
5212 (duplicate_node): Merge constraint field for all node types.
5213 (calc_eclosure_iter): Look at constraint field for all node types.
5214 * posix/regex_internal.c (create_cd_newstate): Don't look at
5215 create_cd_newstate.
5216
c8d49f05
UD
52172008-05-14 Ulrich Drepper <drepper@redhat.com>
5218
215a8745
UD
5219 [BZ #6428]
5220 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
5221
2f9a1be8
UD
5222 [BZ #6442]
5223 * string/endian.h: Add macros for fixed-size endian conversion.
5224 * bits/byteswap.h: Allow inclusion from <endian.h>.
5225 * sysdeps/i386/bits/byteswap.h: Likewise.
5226 * sysdeps/ia64/bits/byteswap.h: Likewise.
5227 * sysdeps/s390/bits/byteswap.h: Likewise.
5228 * sysdeps/x86_64/bits/byteswap.h: Likewise.
5229 * string/Makefile (tests): Add tst-endian.
5230 * string/tst-endian.c: New file.
5231
c8d49f05
UD
5232 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
5233 Patch by Reuben Thomas.
5234
a754f018
UD
52352008-05-14 Joseph Myers <joseph@codesourcery.com>
5236
5237 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
5238
372bfcac
UD
52392008-05-14 Ulrich Drepper <drepper@redhat.com>
5240
a754f018
UD
5241 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
5242
5deca9bb
UD
5243 [BZ #6461]
5244 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
5245 Add missing braces.
5246 (BODY for __gconv_transform_internal_ascii): Likewise.
5247
af77c9b7 5248 [BZ #6472]
5fab5544
UD
5249 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
5250 to be treated like link-local addresses.
5846c4e2
UD
5251 (match_prefix): Don't treat IPv4 loopback address special when
5252 converting to v4 mapped addressed.
5fab5544 5253
0caca71a 5254 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1f039824 5255 if necessary.
b194db79
UD
5256 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
5257 * posix/tst-rfc3484-2.c: Likewise.
5258 * posix/tst-rfc3484-3.c: Likewise.
1f039824 5259
18a74157
UD
5260 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
5261 and SCTP.
372bfcac
UD
5262
5263 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
5264
5265 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
5266
5267 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
5268
f05ac8f5
UD
52692008-05-13 Ulrich Drepper <drepper@redhat.com>
5270
5271 * po/lt.po: New file. From Lituanian translation team.
5272
c9ff0187
UD
52732008-01-30 Alexandre Oliva <aoliva@redhat.com>
5274
5275 Introduce TLS descriptors for i386 and x86_64.
5276 * include/inline-hashtab.h: New file, copied from 2005's
5277 libiberty, with fix for memory leak imported afterwards by
5278 Glauber de Oliveira Costa.
5279 * elf/tlsdeschtab.h: New file.
5280 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
5281 (_dl_allocate_static_tls): ... here. Rearrange failure path.
5282 (CHECK_STATIC_TLS): Move to...
5283 * elf/dynamic-link.h: ... this file.
5284 (TRY_STATIC_TLS): New macro.
5285 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
5286 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
5287 R_386_TLS_DESC): Define.
5288 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
5289 binutils.
5290 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
5291 R_X86_64_TLSDESC): Define.
5292 (R_386_NUM, R_X86_64_NUM): Adjust.
5293 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 5294 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
5295 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5296 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
5297 release tlsdesc_table.
5298 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
5299 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
5300 (elf_machine_rel): Handle R_386_TLS_DESC.
5301 (elf_machine_rela): Likewise.
5302 (elf_machine_lazy_rel): Likewise.
5303 (elf_machine_lazy_rela): Likewise.
5304 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
5305 * sysdeps/i386/dl-tlsdesc.S: New file.
5306 * sysdeps/i386/dl-tlsdesc.h: New file.
5307 * sysdeps/i386/tlsdesc.c: New file.
5308 * sysdeps/i386/tlsdesc.sym: New file.
5309 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
5310 tlsdesc_table.
5311 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 5312 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
5313 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5314 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
5315 release tlsdesc_table.
5316 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
5317 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
5318 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
5319 (elf_machine_rel): Handle R_X86_64_TLSDESC.
5320 (elf_machine_rela): Likewise.
5321 (elf_machine_lazy_rel): Likewise.
5322 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
5323 (__tls_get_addr): Do not declare for non-shared compiles.
5324 * sysdeps/x86_64/dl-tlsdesc.S: New file.
5325 * sysdeps/x86_64/dl-tlsdesc.h: New file.
5326 * sysdeps/x86_64/tlsdesc.c: New file.
5327 * sysdeps/x86_64/tlsdesc.sym: New file.
5328 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
5329 tlsdesc_table for both 32- and 64-bit structs.
5330
a3636e8b
UD
53312008-05-11 Ulrich Drepper <drepper@redhat.com>
5332
5333 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
5334 its own function. This reduces the frame setup costs and more.
5335
a7eb802f
UD
53362008-02-11 Joseph Myers <joseph@codesourcery.com>
5337
5338 [BZ #3406]
5339 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
5340 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
5341
3490f01d
UD
53422008-05-11 Ulrich Drepper <drepper@redhat.com>
5343
3d7eeebe
UD
5344 * io/openat.c (__openat_2): Also pass fd to __openat.
5345 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
5346 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
5347
3490f01d
UD
5348 * string/tester.c (test_memcmp): Add a few more tests.
5349 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
5350
7e71e55f
UD
53512008-05-10 Ulrich Drepper <drepper@redhat.com>
5352
5353 * nscd/cache.c (cache_add): Before returning with failure and this
5354 is the first use of the record, mark it as unusable.
5355 * nscd/aicache.c: Don't touch the dataset after cache_add returns
5356 reporting a failure.
5357 * nscd/grpcache.c: Likewise
5358 * nscd/hstcache.c: Likewise.
5359 * nscd/initgrcache.c: Likewise.
5360 * nscd/pwdcache.c: Likewise.
343996c4 5361 * nscd/servicescache.c: Likewise.
7e71e55f 5362
7396d0a9
RM
53632008-05-10 Roland McGrath <roland@redhat.com>
5364
5365 [BZ #6505]
5366 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
5367
c5ee217f
UD
53682008-05-08 David S. Miller <davem@davemloft.net>
5369
b29899ae
UD
5370 * misc/truncate64.c (truncate64): Use __truncate not truncate.
5371
c5ee217f
UD
5372 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
5373 (__ieee754_y0l): Likewise.
5374 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5375 (__ieee754_y1l): Likewise.
5376 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
5377 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
5378 frexpl and ldexpl. math_private.h provides them and the latter
5379 is not even used.
5380 (__log1pl): Use __frexpl.
5381
1eb946b9
UD
53822008-05-10 Ulrich Drepper <drepper@redhat.com>
5383
5384 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
5385 prototypes.
5386 * include/arpa/nameser_compat.h: Define T_UNSPEC.
5387 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
5388 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
5389 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
5390 af==AF_UNSPEC.
5391 (_nss_nis_gethostbyname4_r): New function.
5392 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
5393 Change to also handle af==AF_UNSPEC.
5394 (get_tablename): New function. Use it to avoid duplication.
5395 (_nss_nisplus_gethostbyname4_r): New function.
5396 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
5397 available.
5398 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
5399 * nss/nss.h: Define struct gaih_addrtuple.
5400 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
5401 af==AF_UNSPEC.
5402 (_nss_files_gethostbyname4_r): New function.
5403 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
5404 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
5405 calls.
5406 * resolv/res_query.c (__libc_res_nquery): Take two additional
5407 parameters for second answer buffer. Handle type=T_UNSPEC to mean
5408 look up IPv4 and IPv6.
5409 Change all callers.
5410 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
5411 for an additional query and answer buffer. Pass to send_vc and
5412 send_dg.
5413 (send_vc): Send possibly two requests and receive two answers.
5414 (send_dg): Likewise.
5415 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
5416 __libc_res_nquery.
5417 (_nss_dns_gethostbyname4_r): New function.
5418 (gaih_getanswer_slice): Likewise.
5419 (gaih_getanswer): Likewise.
5420 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
5421 __libc_res_nquery call.
5422 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5423 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
5424 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
5425 available.
5426
b7fb703a
JJ
54272008-05-05 David S. Miller <davem@davemloft.net>
5428
5429 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
5430 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
5431
2256e43d
RM
54322007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5433
5434 Fix termios bit macros.
5435 Move *DLY definitions where they belong, in termios.h.
5436 Add *[0-3] definitions.
5437 Fixes confusion between VT and FF.
8bb52dbf
RM
5438 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
5439 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
5440 are already defined to avoid collision with termios.h.
2256e43d
RM
5441 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
5442 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
5443 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
5444 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
5445 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
5446 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
5447 VTDLY, VT0, VT1): New macros.
5448 [__USE_GNU] (OLCUC): Change value of macro.
5449 [__USE_XOPEN] (OFILL): New macro.
5450 [__USE_BSD] (CRTSCTS): Change value.
5451 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
5452 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
5453 (B7200, B14400, B28800, B76800): New macros.
5454
4ce349e5
JJ
54552008-05-01 David S. Miller <davem@davemloft.net>
5456
a86a7a39
JJ
5457 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
5458 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
5459 (gen-as-const-headers): Add it.
5460 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
5461 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
5462 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
5463 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2256e43d 5464
4ce349e5
JJ
5465 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
5466 six system call parameters.
5467 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
5468
89a8963d
UD
54692008-04-30 Ulrich Drepper <drepper@redhat.com>
5470
5471 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
5472 RUSAGE_LWP.
5473 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
5474 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
5475
b5ec5fce
JJ
54762008-04-30 Jakub Jelinek <jakub@redhat.com>
5477
5478 * stdlib/tst-setcontext.c: Include unistd.h.
5479
d4e92d9e
JJ
54802008-04-25 David S. Miller <davem@davemloft.net>
5481
5482 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
5483 Pass "union semun" properly in to sys_ipc, it must be passed
5484 by value, not by reference.
5485
7eb5e6c9
UD
54862008-04-22 Jakub Jelinek <jakub@redhat.com>
5487
5488 * nscd/Makefile (nscd-cflags): Set back to -fpie.
5489 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
5490 * nscd/connections.c (mem_in_flight): Likewise.
5491
5492 * nscd/nscd.h (dbs): Make hidden.
5493
5494 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
5495 Avoid returning -1, return 0 instead.
5496
0073dd2d
UD
54972008-04-19 Ulrich Drepper <drepper@redhat.com>
5498
5499 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
5500
c52137d3
UD
55012008-04-15 Ulrich Drepper <drepper@redhat.com>
5502
5503 [BZ #5209]
5504 * sysdeps/unix/sysv/linux/times.c: New file.
5505
5506 [BZ #5381]
5507 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
5508 mem_in_flight_list variables. Add new parameter to mempool_alloc
5509 prototype.
5510 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
5511 appropriate mem_in_flight element.
5512 (gc): Take allocations which have not yet been committed to the
5513 database into account.
5514 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
5515 Reset mem_in_flight before returning.
5516 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
5517 cue it up in mem_in_flight_list.
5518 * nscd/aicache.c: Adjust mempool_alloc call.
5519 * nscd/grpcache.c: Likewise.
5520 * nscd/hstcache.c: Likewise.
5521 * nscd/initgrcache.c: Likewise.
5522 * nscd/pwdcache.c: Likewise.
5523 * nscd/servicescache.c: Likewise.
5524 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
5525 of -fpie.
5526
5527 * nscd/connections.c (handle_request): Provide better error message
5528 in case SELinux forbids the service.
5529
5530 * version.h (VERSION): Bump to 2.8.90.
5531
39546e34
JJ
55322008-04-17 Jakub Jelinek <jakub@redhat.com>
5533
5534 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
5535
cf3a8c7f
UD
55362008-04-11 Ulrich Drepper <drepper@redhat.com>
5537
9e113ecd
UD
5538 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
5539 Also use for 32-bit.
3b6d574e
UD
5540 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
5541 __nextafter instead of nextafter to avoid local PLT.
c3a0ead4
UD
5542 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
5543 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5544
3781ec29
UD
5545 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
5546
246ec411
UD
5547 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
5548 __fe_nomask_env.
3cc56f92
UD
5549 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
5550 <fenv_libc.h> instead of <fenv.h>.
246ec411
UD
5551 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
5552 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
5553
5554 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
5555
5556 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
5557 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
5558 function from fegetexcept and make old name weak alias.
5559 * include/fenv.h: Declare __fegetexcept.
5560 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
5561 fegetexcept.
5562 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
5563 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
5564 to fetestexcept.
5565 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
5566 instead of frexpl to avoid local PLT.
5567 * math/s_significandl.c (__significandl): Use __ilogbl instead of
5568 ilogbl to avoid local PLT.
5569 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
5570 instead of ldexpl to avoid local PLT.
5571 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
5572 __roundl not roundl to avoid local PLT.
5573 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
5574 local PLTs. Use __sincosl instead of separate sinl and cosl
5575 calls.
5576 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5577
2dc4a2fd
UD
5578 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
5579 version for ppc64 to 2.4.21 since without it makecontext will fail.
5580
fe3350ee
UD
5581 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
5582 to the ABI in use.
5583 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
5584 .__tls_get_addr.
5585 [__powerpc64__] (TLS_GD): Likewise.
cf3a8c7f 5586
c1e6b459
UD
55872007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
5588
7763d4f1 5589 [BZ #4997]
c1e6b459
UD
5590 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
5591 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
5592 mantissa.
5593 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5594 Likewise. Also account for when x is an odd number between 2^52
5595 and 2^53-1.
5596 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
5597 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5598 * math/libm-test.inc (lround_test, llround_test): Added test cases to
5599 detect aforementioned erroneous conditions.
5600
22dca1ea
UD
56012008-04-11 Jakub Jelinek <jakub@redhat.com>
5602
5603 * configure.in: Check for -fno-section-anchors in addition to
5604 -fno-toplevel-reorder.
5605
5d59f4a5
UD
56062008-04-11 Ulrich Drepper <drepper@redhat.com>
5607
5608 * include/features.h (__GLIBC_MINOR__): Bump to 8.
5609
5610 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
5611 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
5612 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
5613 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
5614 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
5615 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
5616
91e32540
UD
56172008-04-11 Jakub Jelinek <jakub@redhat.com>
5618
5619 [BZ #5443]
5620 * time/era.c: Transform __libc_setlocale_lock into rwlock.
5621 * time/alt_digit.c: Likewise.
5622 * wcsmbs/wcsmbsload.c: Likewise.
5623
fd490ac8
UD
56242008-04-10 Ulrich Drepper <drepper@redhat.com>
5625
1db5b6f4
UD
5626 * version.h (VERSION): Bump to 2.8.
5627
fd490ac8
UD
5628 * timzeone/asia: Update from tzdata2008b.
5629 * timezone/backward: Likewise.
5630 * timezone/europe: Likewise.
5631 * timezone/northamerica: Likewise.
5632 * timezone/southamerica: Likewise.
5633 * timezone/iso3166.tab: Likewise.
5634 * timezone/leapseconds: Likewise.
5635 * timezone/zone.tab: Likewise.
5636 * timezone/private.h: Update from tzcode2008a.
5637 * timezone/zdump.c: Likewise.
5638 * timezone/zic.c: Likewise.
5639
153cf972
UD
56402008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
5641
5642 [BZ #5741]
5643 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
5644 Define additonal Data Cache Block instruction macros.
5645 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
5646 Replace dcbst with dcbf and sync with sync/isync.
5647
d2207f32
UD
56482008-02-21 Alan Modra <amodra@bigpond.net.au>
5649
5650 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
5651 Always set ELF_RTYPE_CLASS_PLT.
5652 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
5653
13d83320
UD
56542008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
5655
5656 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
5657 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
5658 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
5659 For ISA 2.01 and later replace mftb with mfspr 268.
5660
5f7aead5
UD
56612008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
5662
5663 [BZ #5768]
5664 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
5665 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
5666
56672008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
5668
5669 [BZ #5768]
5670 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
5671 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
5672 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
5673 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
5674
117df5d9
JJ
56752008-04-10 Jakub Jelinek <jakub@redhat.com>
5676
5677 * stdlib/tst-makecontext.c (othervar): New variable.
5678 (cf): Test sign extending the argument to long.
5679
3b32d8a2
UD
56802008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
5681
5682 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
5683 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
5684 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
5685 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
5686 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
5687 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
5688 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
5689
9fb11d4c
UD
56902008-02-22 Alan Modra <amodra@bigpond.net.au>
5691
5692 * elf/Makefile (tests): Substitute tests-vis-yes here.
5693 (tests-vis-yes): Delete.
5694 (modules-name, modules-vis-yes): Similarly.
5695
facd1d8e
UD
56962008-02-12 Pete Eberlein <eberlein@us.ibm.com>
5697
5698 [BZ #4407]
5699 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5700 Preserve sign in signgamp when x is zero.
5701
aece054b
UD
57022007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
5703
5704 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
5705 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
5706 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
5707 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
5708 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
5709 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
5710
6c30d38f
UD
57112008-04-09 Ulrich Drepper <drepper@redhat.com>
5712
21208604 5713 [BZ #4314]
13d83320
UD
5714 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
5715 buffers.
21208604 5716
2f611ada 5717 [BZ #5209]
d1235fdf
UD
5718 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
5719 a reserved error value.
2f611ada 5720
6c30d38f
UD
5721 * stdlib/tst-makecontext.c: Change parameter to cf to negative
5722 value to check for correct sign extension.
5723
5724 [BZ #5436]
5725 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
5726 Copy 64-bit parameter values even though this is not required in
5727 the standard.
5728
5729 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
5730 PC save.
5731
de1bbf68
UD
57322008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
5733
5734 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
5735 PC save.
5736
9aef35a5
UD
57372008-04-09 Jakub Jelinek <jakub@redhat.com>
5738
5739 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
5740
a7925a24
UD
57412008-04-09 Ulrich Drepper <drepper@redhat.com>
5742
5743 [BZ #5998]
5744 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
5745 in line-buffered stream failed.
5746 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
5747
7b61ef24
UD
57482008-04-08 Ulrich Drepper <drepper@redhat.com>
5749
c2a684a4
UD
5750 [BZ #6024]
5751 * scripts/abi-versions.awk: If the version specified by
5752 --enable-oldest-abi is older than the first version for this
5753 architecture, use the default version.
5754
7b61ef24
UD
5755 * locale/programs/ld-collate.c (collate_read): Ignore script lines
5756 as well when ignoring the whole category.
5757
f6d749f0
UD
57582008-04-07 Ulrich Drepper <drepper@redhat.com>
5759
5760 [BZ #6042]
5761 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
5762 ETHERTYPE_* definitions.
5763 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
5764
1e99aede
JJ
57652008-04-07 Jakub Jelinek <jakub@redhat.com>
5766
5767 * stdlib/mbtowc.c (__no_r_state): Remove.
5768 (mbtowc): New static state variable. Use it instead of
5769 __no_r_state.
5770 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
5771 (__wctomb_state): New hidden variable.
5772 (wctomb): Use __wctomb_state instead of __no_r_state.
5773 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
5774 (__wctomb_state): New extern decl.
5775 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
5776
fcf90e0a
UD
57772008-04-07 Ulrich Drepper <drepper@redhat.com>
5778
5779 [BZ #5475]
5780 * resolv/res_init.c: Handle scope IDs in resolv.conf.
5781
ae39e102
JJ
57822008-04-07 Jakub Jelinek <jakub@redhat.com>
5783
5784 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
5785
2503dd30
UD
57862008-04-06 Ulrich Drepper <drepper@redhat.com>
5787
5788 * po/nl.po: Update from translation team.
5789
3eb9c809
UD
57902008-03-31 Ulrich Drepper <drepper@redhat.com>
5791
5792 [BZ #6007]
5793 * string/strfry.c: Handle empty strings again.
5794
9a69db29
UD
57952008-03-30 Ulrich Drepper <drepper@redhat.com>
5796
5797 [BZ #5443]
5798 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
5799 before looking for translation.
5800 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
5801 * locale/freelocale.c: Likewise.
5802 * locale/newlocale.c: Likewise.
5803 * locale/setlocale.c: Likewise.
5804 Based partially on a patch by ryo@np.css.fujitsu.com.
5805
2ecc7d93
UD
58062008-03-30 Jakub Jelinek <jakub@redhat.com>
5807
5808 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
5809 acquiring wrlock. Do conv_tab allocation while holding lock.
5810 * intl/Makefile: Add rules to build and run tst-gettext6.
5811 * intl/tst-gettext6.c: New test.
5812 * intl/tst-gettext6.sh: New file.
5813
221e5230
UD
58142008-03-30 Ulrich Drepper <drepper@redhat.com>
5815
faa091c6
UD
5816 * po/nl.po: Update from translation team.
5817
221e5230
UD
5818 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
5819 provided through st_blksize, try the default size before giving up.
5820
1c272665
UD
58212008-03-29 Ulrich Drepper <drepper@redhat.com>
5822
43f6bec1
UD
5823 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
5824
e8a32126
UD
5825 [BZ #5939]
5826 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
5827
1e489af9
UD
5828 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
5829 error message. POSIX today does not require the messages to be in
5830 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
5831
1d20f7f8
UD
5832 [BZ #5979]
5833 * sunrpc/auth_unix.c: Unify printed strings.
5834 * sunrpc/clnt_tcp.c: Likewise.
5835 * sunrpc/clnt_udp.c: Likewise.
5836 * sunrpc/clnt_unix.c: Likewise.
5837 * sunrpc/svc_tcp.c: Likewise.
5838 * sunrpc/svc_udp.c: Likewise.
5839 * sunrpc/svc_unix.c: Likewise.
5840 * sunrpc/xdr.c: Likewise.
5841 * sunrpc/xdr_array.c: Likewise.
5842 * sunrpc/xdr_rec.c: Likewise.
5843 * sunrpc/xdr_ref.c: Likewise.
5844 * locale/programs/ld-time.c (time_finish): Unify messages.
5845 * locale/programs/locfile.c (handle_copy): Fix typo.
5846 * nscd/nscd.c (options): Fix typo.
5847
1c272665
UD
5848 [BZ #5995]
5849 * stdlib/strtod_l.c: Use correct sign for result in one more
5850 underflow case.
5851 Patch by Eric Blake <ebb9@byu.net>.
5852
48cc060e
UD
58532008-03-27 Jakub Jelinek <jakub@redhat.com>
5854
5855 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
5856 and creat system calls.
5857 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
5858 call.
5859 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
5860 system calls.
5861 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
5862 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5863 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5864
f96853be
UD
58652008-03-27 Ulrich Drepper <drepper@redhat.com>
5866
5867 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
5868 <linux/limits.h> has defined it.
5869 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
5870 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
5871 headers.
5872 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
5873 it instead of ARG_MAX.
5874
fde15fdc
UD
58752008-03-25 Jakub Jelinek <jakub@redhat.com>
5876
5877 * posix/gai.conf: Fix comment for scope nullbits.
5878 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
5879 default to 128 bits for v4 mapped addresses.
5880
87b9b50f
UD
58812008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
5882
5883 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
5884 ptrace call to get the ieee_instruction_pointer from the kernel.
5885 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
5886 ptrace call to set the ieee_instructtion_pointer.
5887 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
5888 Add comment that ieee_instruction_pointer is always 0.
5889
af0498dc
UD
58902008-03-09 Andreas Jaeger <aj@suse.de>
5891
5892 [BZ #5857]
5893 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
5894 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
5895 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
5896
5897 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
5898 (rint_test): Likewise.
5899
0ab7632d
UD
59002008-03-24 Ulrich Drepper <drepper@redhat.com>
5901
0facd3df
UD
5902 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
5903 call.
5904 (__nisfind_server): Similar for open readColdStartFile call.
5905 Patch partially by Jim Meyering.
5906 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
5907 around internal_setent call.
5908
7e570c55
UD
5909 * po/vi.po: New Vietnamese translation.
5910
e093c247
UD
5911 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
5912 ADJ_OFFSET_SS_READ.
5913
0ab7632d
UD
5914 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
5915 remove CLONE_STOPPED.
5916
0726cdf7
UD
59172008-02-10 Jim Meyering <meyering@redhat.com>
5918
5919 Remove useless "if" before "free":
5920 * elf/ldconfig.c (parse_conf_include): Likewise.
5921 * gmon/gmon.c (weak_alias): Likewise.
5922 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
5923 * inet/rcmd.c (__validuser2_sa): Likewise.
5924 * intl/bindtextdom.c (set_binding_values): Likewise.
5925 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
5926 * libio/genops.c (save_for_backup): Likewise.
5927 * libio/wgenops.c (save_for_wbackup): Likewise.
5928 * locale/programs/ld-collate.c (collate_read): Likewise.
5929 * locale/programs/linereader.c (get_string): Likewise.
5930 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
5931 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
5932 * resolv/res_debug.c (do_section): Likewise.
5933 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
5934 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
5935 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
5936 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
5937 * time/tzset.c (tzset_internal): Likewise.
5938
354b7527
JJ
59392008-03-18 Jakub Jelinek <jakub@redhat.com>
5940
5941 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
5942 of ASSEMBLER.
5943
ca668b29
UD
59442008-03-11 Ulrich Drepper <drepper@redhat.com>
5945
5946 [BZ #5903]
5947 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
5948 not stream for output file. Open output file here.
5949 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
5950 and output file name.
5951 (process_fd): Likewise.
5952 (process_file): Likewise.
5953 (main): Adjust callers of changed functions.
5954 * iconv/iconv_prog.h: Adjust prototype.
5955
f3dc3415
AJ
59562008-03-09 Andreas Jaeger <aj@suse.de>
5957
5958 [BZ #5753]
5959 * sysdeps/ia64/ieee754.h: Use protected namespace
5960 __BIG_ENDIAN/__LITTLE_ENDIAN.
5961 * sysdeps/ieee754/ieee754.h: Likewise.
5962 Patch by Aurelien Jarno <aurelien@aurel32.net>.
5963
a8fd84d4
RM
59642008-03-08 Roland McGrath <roland@frob.com>
5965
2b965f1b
RM
5966 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
5967 ignore a signal that came from a machine exception, treat it as a
5968 fatal core-dump signal instead.
5969 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5970
a8fd84d4
RM
5971 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5972 Clear DF bit in thread state's eflags.
5973 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5974
368a8dec
UD
59752008-03-08 Ulrich Drepper <drepper@redhat.com>
5976
b3278554
UD
5977 [BZ #5774]
5978 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
c6c00e0d 5979 of NAN(...) sequence.
b3278554
UD
5980 * stdlib/Makefile (tests): Add tst-strtod6.
5981 * stdlib/tst-strtod6.c: New file.
5982
5983 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
5984
2127a186
UD
5985 [BZ #5762]
5986 * posix/getopt.c (_getopt_internal_r): Clarify error message by
5987 putting offending option character in quotes. Clean up error
5988 messages.
5989 * po/be.po: Adjust msgstr in translation file.
5990 * po/bg.po: Likewise.
5991 * po/ca.po: Likewise.
5992 * po/cs.po: Likewise.
5993 * po/da.po: Likewise.
5994 * po/de.po: Likewise.
5995 * po/es.po: Likewise.
5996 * po/fr.po: Likewise.
5997 * po/hr.po: Likewise.
5998 * po/ko.po: Likewise.
5999 * po/nl.po: Likewise.
6000 * po/rw.po: Likewise.
6001 * po/sk.po: Likewise.
6002 * po/sv.po: Likewise.
6003 * po/tr.po: Likewise.
6004 * po/zh_CN.po: Likewise.
6005 * po/zh_TW.po: Likewise.
6006
725c0c87
UD
6007 [BZ #5760]
6008 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6009 Patch by Roland Bless <roland@bless.de>.
6010
368a8dec
UD
6011 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6012 .o file.
6013 * elf/Makefile (routines): Add dl-sysdep.
6014 (elide-routines.os): Likewise.
6015
78c2bf0e
UD
60162008-03-07 Ulrich Drepper <drepper@redhat.com>
6017
7c22c7ec
UD
6018 [BZ #5786]
6019 * elf/dl-sysdep.c: Undefine ROUND after use.
6020 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6021 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6022 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6023 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6024 to ...
6025 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6026 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6027 if necessary.
6028 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6029
93025f93
UD
6030 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6031 _dl_tls_get_addr_soft element.
6032 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6033 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6034 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6035 GLRO.
6036 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6037 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6038 of internal_function.
6039
72f10127
UD
6040 * stdlib/Makefile (aux): Add tens_in_limb.
6041 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6042 * stdlib/tens_in_limb.c: ...here. New file.
6043
443db178
UD
6044 [BZ #5778]
6045 * sysdeps/unix/sysv/linux/pathconf.h: Declare
6046 __statfs_chown_restricted.
6047 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6048 for _PC_CHOWN_RESTRICTED.
6049 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6050 Implement __statfs_chown_restricted.
6051 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6052 _POSIX_CHOWN_RESTRICTED value to zero.
c71665ad
UD
6053 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6054 defined to zero.
443db178 6055
78c2bf0e
UD
6056 * sysdeps/x86_64/rtld-memset.c: New file.
6057
443db178 60582008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
78c2bf0e
UD
6059
6060 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6061
6062 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6063 Barcelona machine. Make default fall through branch of
6064 __x86_64_preferred_memory_instruction check as the integer code path.
6065
60662007-10-15 H.J. Lu <hongjiu.lu@intel.com>
6067
6068 * sysdeps/x86_64/cacheinfo.c
6069 (__x86_64_preferred_memory_instruction): New variable.
6070 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6071
6072 * sysdeps/x86_64/memset.S: Rewrite.
6073
dff37515
UD
60742008-03-04 Jakub Jelinek <jakub@redhat.com>
6075
6076 * include/stdio.h (__asprintf_chk, __dprintf_chk,
6077 __obstack_printf_chk): New prototypes.
6078 (__vasprintf_chk, __vdprintf_chk,
6079 __obstack_vprintf_chk): Likewise.
6080 Add libc_hidden_proto.
6081 * libio/obprintf.c
6082 (_IO_obstack_jumps): No longer static, add attribute_hidden.
6083 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6084 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6085 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6086 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6087 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6088 __obstack_vprintf_chk): New prototypes.
6089 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
6090 obstack_vprintf): New inlines.
6091 * debug/dprintf_chk.c: New file.
6092 * debug/vdprintf_chk.c: New file.
6093 * debug/asprintf_chk.c: New file.
6094 * debug/vasprintf_chk.c: New file.
6095 * debug/obprintf_chk.c: New file.
6096 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
6097 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
6098 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
6099 @@GLIBC_2.8.
6100 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
6101 vdprintf_chk and obprintf_chk, set CFLAGS for them.
6102 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
6103 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
6104 libc_hidden_proto.
6105 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
6106 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
6107 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
6108 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
6109 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
6110 @@GLIBC_2.8.
6111 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
6112 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
6113 obstack_vprintf_chk.
6114 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
6115 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
6116 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
6117 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
6118 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
6119 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
6120
d835f136
UD
61212008-03-04 Ulrich Drepper <drepper@redhat.com>
6122
a4bb445a
UD
6123 [BZ #5779]
6124 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
6125 Patch by Roy Marples <roy@marples.name>.
6126
c958a6a4
UD
6127 [BZ #5736]
6128 * malloc/malloc.c: Fix typo in comment.
6129
d835f136
UD
6130 [BZ #5627]
6131 * locale/iso-639.def: Add Shuswap.
6132
65b4743a
UD
61332008-02-25 Jakub Jelinek <jakub@redhat.com>
6134
6135 [BZ #5790]
6136 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
6137 overwrite *h_errnop/*errnop values from getanswer_r in case of
6138 failure.
6139
3868fb6e
UD
61402008-03-03 Ulrich Drepper <drepper@redhat.com>
6141
27c377dd
UD
6142 [BZ #5818]
6143 * nscd/connections.c (dbs): Add initializers for .suggested_module.
6144 (verify_persistent_db): Remove one unnecessary test and add a new one
6145 for bad configuration.
6146 (nscd_init): Improve error reported when persistent database cannot
6147 be reused.
6148 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
6149 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
6150 .suggested_module and .max_db_size and case config file says the
6151 values are zero.
6152 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
6153
0f749099
UD
6154 [BZ #5854]
6155 * nis/ypclnt.c (yp_order): Fix handling of return value of
6156 do_ypcall_tr call.
6157 Patch by Jeff Moyer <jmoyer@redhat.com>.
6158
3868fb6e
UD
6159 * po/fr.po: Update from translation team.
6160
268dbf25
AJ
61612008-02-22 Andreas Jaeger <aj@suse.de>,
6162 Carlos O'Donell <carlos@systemhalted.org>
6163
6164 [BZ #5012]
6165 * FAQ.in: Describe why glibc needs to be compiled with
6166 optimization.
6167
73b82641
RM
61682008-02-19 Roland McGrath <roland@redhat.com>
6169
6170 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6171
c9136393
UD
61722008-02-15 Ulrich Drepper <drepper@redhat.com>
6173
6174 [BZ #5737]
6175 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6176 __USE_MISC is defined.
6177
2e3e9ff1
UD
61782008-02-10 Ulrich Drepper <drepper@redhat.com>
6179
6180 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6181 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6182 sys/timerfd.h.
6183 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6184 timerfd_gettime, timerfd_settime.
6185 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6186 timerfd_gettime, timerfd_settime for GLIBC_2.8.
6187
85202a2b
RM
61882008-02-08 Roland McGrath <roland@redhat.com>
6189
6190 * elf/elf.h (NT_PPC_SPE): New macro.
6191
708ef8a4
RM
61922008-02-06 Roland McGrath <roland@redhat.com>
6193
6194 * Makerules ($(common-objpfx)sysd-rules):
6195 Depend on $(sysdep-makeconfigs).
6196
363a641b
RM
61972008-01-31 Roland McGrath <roland@redhat.com>
6198
67fbfa5c
RM
6199 [BZ #5442]
6200 * configure.in: Use -print-file-name if it yields a directory,
6201 for each of include and include-fixed.
6202 * configure: Regenerated.
6203
363a641b
RM
6204 * Makeconfig (sysd-rules-targets): New variable.
6205 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
6206 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
6207
0f0f9610
RM
62082008-01-30 Roland McGrath <roland@redhat.com>
6209
7bd00dbf
RM
6210 * manual/libc.texinfo: Update back-cover text.
6211
0f0f9610
RM
6212 * elf/elf.h (NT_386_TLS): New macro.
6213
16cd816f
RM
62142008-01-29 Roland McGrath <roland@redhat.com>
6215
6216 * Makeconfig (sysd-rules-patterns): New variable.
6217 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
6218 (check-inhibit-asm): New canned sequence, replaces ...
6219 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
6220 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
6221 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
6222 (CFLAGS-rtld): Variable removed.
6223
f641ffcc
RM
62242008-01-24 Roland McGrath <roland@redhat.com>
6225
6226 * configure.in: Let configure fragments set base_os.
6227 * configure: Regenerated.
6228
b7e26885
UD
62292008-01-22 Ulrich Drepper <drepper@redhat.com>
6230
6231 * po/ko.po: Update from translation team.
6232
b4b166af
UD
62332008-01-12 H.J. Lu <hongjiu.lu@intel.com>
6234
6235 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
6236
f66def9d
AJ
62372008-01-12 Andreas Jaeger <aj@suse.de>
6238
6239 [BZ #5040]
6240 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
6241 Add EPOLLRDHUP.
6242
d3bc5e77
RM
62432008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
6244
6245 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
6246 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
6247 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
6248
4c533566
UD
62492007-10-23 Alexandre Oliva <aoliva@redhat.com>
6250
6251 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
6252 * elf/dl-close.c (_dl_close): Check for it.
6253 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
6254 (_dl_allocate_static_tls): Likewise.
6255 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
6256 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
6257 to it.
6258 * elf/tst-tls16.c: New file.
6259 * elf/tst-tlsmod16a.c: New file.
6260 * elf/tst-tlsmod16b.c: New file.
6261 * elf/Makefile: Add rules to build and run tst-tls16.
6262
a53d3f82
UD
62632008-01-16 Ulrich Drepper <drepper@redhat.com>
6264
a0f6c236
UD
6265 [BZ #5628]
6266 * bits/shm.h: Fix comment describing shmid_ds.
6267 * sysdeps/gnu/bits/shm.h: Likewise.
6268 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
6269 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
6270 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6271 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6272 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6273 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6274 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6275 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
6276 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
6277
a53d3f82
UD
6278 [BZ #5607]
6279 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
6280 prototypes.
6281 * conform/data/limits.h-data: Adjust limits changed in v6 and add
6282 additional suffixes.
6283 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
6284 Add optional functions mq_timedreceive and mq_timedsend.
6285 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
6286 * conform/data/pthread.h-data: Fix prototype of
6287 pthread_condattr_setclock. pthread_sigmask is not required in v6.
6288 * conform/data/semaphore.h-data: Allow time.h definitions.
6289 * conform/data/signal.h-data: Likewise.
6290 * conform/data/stdio.h-data: getw and putw are not required in v6.
6291 * conform/data/stdlib.h-data: Change setstate prototype.
6292 * conform/data/string.h-data: Fix strerror_r prototype.
6293 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
6294 * conform/data/unistd.h-data: pthread_atfork not required in v6.
6295 Fix readlink prototype.
6296 * conform/data/netinet/in.h-data: Add const to in6addr_any and
6297 in6addr_loopback.
6298 * inet/netinet/in.h: Cleanup namespace.
6299 * posix/regex.h: Likewise.
6300 * resolv/netdb.h: Likewise.
6301 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
6302 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6303 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6107639e
UD
6304 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
6305 of names of in in6_addr.
6306 (default_precedence): Likewise.
6307 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
6308 NULL definition.
a53d3f82 6309
ebca8f73
UD
63102008-01-15 Ulrich Drepper <drepper@redhat.com>
6311
fbe90cd5
UD
6312 * conform/data/fmtmsg.h-data: Add missing allows.
6313 * conform/data/ftw.h-data: Likewise.
6314 * conform/data/inttypes.h-data: Likewise.
6315 * conform/data/math.h-data: Likewise.
6316 * conform/data/signal.h-data: Likewise.
6317 * conform/data/net/if.h-data: Likewise.
6318 * conform/data/netinet/in.h-data: Likewise.
6319 * conform/data/sys/socket.h-data: Likewise.
6320
ebca8f73
UD
6321 [BZ #5614]
6322 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
6323 (__strtok_r): Simplify.
6324 * string/tester.c (test_strtok_r): Add test case for futile search
6325 with single-character seach string.
6326
7c33ca8b
UD
63272008-01-12 Ulrich Drepper <drepper@redhat.com>
6328
6329 * po/ko.po: Update from translation team.
6330
b8cc0848
AJ
63312008-01-11 Andreas Jaeger <aj@suse.de>
6332
6333 [BZ #5600]
6334 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
6335 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
6336 kernel header.
6337
49029a66
UD
63382008-01-10 Ulrich Drepper <drepper@redhat.com>
6339
6340 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
6341 native interface lookup in all the relevant places.
6342
99f05798
UD
63432008-01-10 Jakub Jelinek <jakub@redhat.com>
6344 Ulrich Drepper <drepper@redhat.com>
0efd1956
UD
6345
6346 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
6347 field. Use sockaddr_in6 for source_addr.
6348 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
6349 (match_prefix): Likewise.
6350 (get_label): Likewise.
6351 (get_precedence): Likewise.
6352 (rfc3484_sort): Change to use indirect access to results array.
6353 Adjust to use of sockaddr_in6. Replace service_order test with
6354 simple index comparison.
6355 (getaddrinfo): Define order array. Initialize it. Don't initialize
6356 service_order field. Adjust qsort_t calls. Access sorted result
6357 array indirectly through order array.
6358 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
6359 * posix/tst-rfc3484-2.c: Likewise.
6360 * posix/tst-rfc3484-3.c: Likewise.
6361
b3443701
UD
63622008-01-09 Ulrich Drepper <drepper@redhat.com>
6363
f6bacb8e
UD
6364 [BZ #5541]
6365 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
6366 pollfd structures.
6367 Patch by André Cruz.
6368
aa693c68
UD
6369 [BZ #5545]
6370 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
6371 (clnt_spcreateerror): Likewise.
6372
b3443701
UD
6373 [BZ #5553]
6374 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
6375 (public_mEMALIGn): Likewise.
6376 Patch mostly by Daniel Jacobowitz.
6377
148e12ed
UD
63782008-01-09 Jakub Jelinek <jakub@redhat.com>
6379
6380 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
6381 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
6382 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
6383 * stdlib/tst-makecontext2.c: New test.
6384
78c2bf0e 63852008-01-08 Jakub Jelinek <jakub@redhat.com>
4b1b449d
UD
6386
6387 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
6388 defined.
6389 (REINIT_PARAMS): Likewise. Undefine before end of file.
6390 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
6391 transliteration hooks and REINIT_PARAMS afterwards.
6392 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
6393 status.
6394 (REINIT_PARAMS): Define.
6395 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
6396 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
6397 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
6398 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
6399 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
6400 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
6401 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
6402 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
6403 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
6404 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
6405 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
6406 * iconvdata/tst-iconv7.c: New test.
6407
71edcafa
UD
64082008-01-07 Ulrich Drepper <drepper@redhat.com>
6409
6410 * libio/stdio.h (vscanf): Fix definition for loser compilers.
6411
0fbfe2f7
JJ
64122008-01-05 Jakub Jelinek <jakub@redhat.com>
6413
6414 [BZ #5112]
6415 * nscd/connections.c (restart): Fix condition.
6416
8726a12e
UD
64172008-01-03 Jakub Jelinek <jakub@redhat.com>
6418
6419 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
6420 __ctype_toupper_loc): Add __THROW.
6421
f4a1363e
UD
64222008-01-02 Ulrich Drepper <drepper@redhat.com>
6423
ad586879
UD
6424 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
6425 recognition of interface family.
6426
f4a1363e
UD
6427 * posix/getconf.c: Update copyright year.
6428 * nss/getent.c: Likewise.
6429 * iconv/iconvconfig.c: Likewise.
6430 * iconv/iconv_prog.c: Likewise.
6431 * elf/ldconfig.c: Likewise.
6432 * catgets/gencat.c: Likewise.
6433 * csu/version.c: Likewise.
6434 * elf/ldd.bash.in: Likewise.
6435 * elf/sprof.c (print_version): Likewise.
6436 * locale/programs/locale.c: Likewise.
6437 * locale/programs/localedef.c: Likewise.
6438 * nscd/nscd.c (print_version): Likewise.
6439 * debug/xtrace.sh: Likewise.
6440 * malloc/memusage.sh: Likewise.
6441 * malloc/mtrace.pl: Likewise.
6442 * debug/catchsegv.sh: Likewise.
6443
0dc6c5e4
UD
64442007-12-26 Ulrich Drepper <drepper@redhat.com>
6445
6446 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
6447 second lookup.
6448
80af8b82
UD
64492007-12-23 Ulrich Drepper <drepper@redhat.com>
6450
6451 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
6452 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6453
4bcecfb7
RM
64542007-12-17 Roland McGrath <roland@redhat.com>
6455
6456 * inet/ether_line.c (ether_line): Remove unused variable.
6457
64582007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
6459
6460 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
6461 and winp.
6462 * login/openpty.c (openpty): Likewise.
6463 * login/pty.h (openpty, forkpty): Likewise.
6464 * manual/terminal.texi (openpty, forkpty): Likewise.
6465
4cd4c5d6
UD
64662007-12-17 Ulrich Drepper <drepper@redhat.com>
6467
78c2bf0e 6468 * malloc/malloc.c (public_cALLOc): For arenas other than
4cd4c5d6
UD
6469 main_arena, count all bytes inside the mprotect_size range of the
6470 heap as uninitialized.
6471
68631c8e
UD
64722007-12-16 Ulrich Drepper <drepper@redhat.com>
6473
d9961b6a
UD
6474 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
6475 executable stacks.
6476
68631c8e
UD
6477 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
6478 mTRIm for all of them.
6479 (mTRIm): Additionally iterate over all free blocks and use madvise
6480 to free memory for all those blocks which contain at least one
6481 memory page.
be8c1500
UD
6482 * malloc/tst-trim1.c: New file.
6483 * malloc/Makefile (tests): Add tst-trim1.
68631c8e
UD
6484
6485 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
6486
78b767a0
UD
64872007-12-14 Ulrich Drepper <drepper@redhat.com>
6488
6489 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
6490 First cast argument to long
52386be7
UD
6491 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
6492 Return long.
6493 (__vdso_clock_gettime): Likewise.
78b767a0
UD
6494 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
6495 return long.
6496
bc3e1c12
UD
64972007-12-13 Ulrich Drepper <drepper@redhat.com>
6498
6499 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
6500 * locale/nl_langinfo_l.c: Real implementation, copied from
6501 nl_langinfo.c.
6502 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
6503
77751669
UD
65042007-12-01 Jim Meyering <meyering@redhat.com>
6505
6506 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6507 that would inhibit utf8-optimization of a regexp containing line-
6508 or buffer-anchors, e.g., `^', `$'.
6509
f63e5063
UD
65102007-12-12 Ulrich Drepper <drepper@redhat.com>
6511
6512 * time/bug-getdate1.c (do_test): Don't use century values which
6513 aren't valid on 32-bit systems.
6514
a78814a9
UD
65152007-12-12 Jakub Jelinek <jakub@redhat.com>
6516
6517 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
6518 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
6519 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
6520 __strcat_g, __strncat_g): Add __asm__.
6521
65222007-12-12 Ulrich Drepper <drepper@redhat.com>
6523
6524 [BZ #5477]
6525 * io/fchmodat.c: Fix typo in stub_warning use.
6526 Patch by Petr Salinger.
6527
17edb30c
UD
65282007-12-11 Ulrich Drepper <drepper@redhat.com>
6529
58d11795
UD
6530 * iconvdata/hp-thai8.c: New file.
6531 * iconvdata/Makefile: Add rules for hp-thai8.c.
6532 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
6533 * iconvdata/gconv-modules: Likewise.
6534
6535 [BZ #5464]
6536 * iconvdata/hp-greek8.c: New file.
6537 * iconvdata/Makefile: Add rules for hp-greek8.c.
6538 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
6539 * iconvdata/gconv-modules: Likewise.
6540
6541 [BZ #5463]
6542 * iconvdata/hp-turkish8.c: New file.
6543 * iconvdata/Makefile: Add rules for hp-turkish8.c.
6544 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
6545 * iconvdata/gconv-modules: Likewise.
6546
cbf5760e
UD
6547 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
6548 (shrink_heap): ... this new function.
6549 (heap_trim): Call shrink_heap instead of grow_heap.
6550
17edb30c
UD
6551 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
6552 case don't call alloc_perturb.
6553
ae18718f
UD
65542007-12-10 Ulrich Drepper <drepper@redhat.com>
6555
6556 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
6557 possible.
6558 * sysdeps/unix/sysv/linux/kernel-features.h
6559 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
6560 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
6561
b4354cf4
UD
65622007-12-08 Ulrich Drepper <drepper@redhat.com>
6563
6564 [BZ #5424]
6565 * stdio-common/vfprintf.c: Do not overflow when adding to done.
6566 * stdio-common/Makefile (tests): Add bug22.
6567 * stdio-common/bug22.c: New file.
6568
6569 [BZ #5451]
6570 * time/getdate.c: Fix filling in default values.
6571 * time/bug-getdate1.c: New file.
6572 * time/Makefile: Add rules to build and run bug-getdate1.
6573
6574 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
6575 * iconvdata/ebcdic-es.c: Likewise.
6576 * iconvdata/ebcdic-es-a.c: Likewise.
6577 * iconvdata/ebcdic-uk.c: Likewise.
6578 * iconvdata/iso8859-16.c: Likewise.
6579 * iconvdata/viscii.c: Likewise.
6580 * iconvdata/iso8859-9e.c: Likewise.
6581 * iconvdata/Makefile: Adjust appropriately.
6582
6583 [BZ #5428]
6584 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
6585 __need_wint_t.
6586
26e21e75
UD
65872007-12-07 Ulrich Drepper <drepper@redhat.com>
6588
87520ccc
UD
6589 [BZ #5427]
6590 * iconvdata/hp-roman9.c: New file.
6591 * iconvdata/Makefile: Add rules for hp-roman9.c.
6592 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
b4354cf4 6593 * iconvdata/gconv-modules: Likewise.
87520ccc
UD
6594
6595 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
6596 * iconvdata/Makefile: Adjust appropriately.
6597
26e21e75
UD
6598 [BZ #5441]
6599 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
6600 structure, it's allocated with alloca.
6601 * stdio-common/Makefile (tests): Add bug21.
6602 * stdio-common/bug21.c: New file.
6603
66042007-12-06 Aurelien Jarno <aurelien@aurel32.net>
6605
6606 [BZ #5452]
6607 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
87520ccc 6608 keyword for gcc's braced-groups.
26e21e75
UD
6609
66102007-12-07 Ulrich Drepper <drepper@redhat.com>
6611
6612 [BZ #5454]
6613 * inet/ether_line.c: Strip hostname of whitespaces.
6614 * inet/Makefile (tests): Add tst-ether_line.
6615 * inet/tst-ether_line.c: New file.
6616
9e80c123
UD
66172007-12-03 Ulrich Drepper <drepper@redhat.com>
6618
da0ff4ae
UD
6619 [BZ #5439]
6620 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
6621
51bd20d9
UD
6622 [BZ #5435]
6623 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
6624
d90d0256
UD
6625 * stdlib/tst-setcontext.c: Catch the case where the links gets
6626 messed up and we do not reach main again.
6627
9e80c123
UD
6628 * po/ca.po: Update from translation team.
6629
ae4287f8
UD
66302007-11-26 Ulrich Drepper <drepper@redhat.com>
6631
6701afc7 6632 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
79fb2e02 6633 * posix/regex.h (REG_ENOSYS): Likewise.
a912a4f8 6634 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
ae4287f8 6635
30294ea4
UD
66362007-11-25 Ulrich Drepper <drepper@redhat.com>
6637
6638 * nscd/nscd.h (MAX_STACK_USE): Define.
6639 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
6640 (gc): Initialize stack_used based on allocation in prune_cache.
6641 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
e8667ddc 6642 Clear array before use.
30294ea4
UD
6643
6644 * nscd/aicache.c (addhstaiX): Update statistics counter in case
10a4c1e9 6645 memory allocation failed.
e8667ddc
UD
6646 * nscd/hstcache.c (cache_addhst): Likewise.
6647 * nscd/grpcache.c (cache_addgr): Likewise.
6648 * nscd/servicescache.c (cache_addserv): Likewise.
6649 * nscd/pwdcache.c (cache_addpw): Likewise.
6650 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30294ea4 6651
715db78b
UD
66522007-11-23 Ulrich Drepper <drepper@redhat.com>
6653
609bb071
UD
6654 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
6655 and creat system calls.
6656
715db78b
UD
6657 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
6658
ea2c47b6
UD
66592007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
6660
6661 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
6662 Add netiucv/iucv.h.
6663 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
6664 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
6665 protocol.
6666 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
6667 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
6668 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
6669
dcdcf4b9
UD
66702007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
6671
37143323
UD
6672 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
6673 strncat): Define as macros to avoid compile errors.
6674
dcdcf4b9
UD
6675 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
6676 creat entries.
6677
3a632674
UD
66782007-11-22 Ulrich Drepper <drepper@redhat.com>
6679
7ea8eb02
UD
6680 [BZ #5382]
6681 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
6682 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
715db78b 6683 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7ea8eb02 6684 overflow it.
70d5b6ef 6685 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7ea8eb02
UD
6686
6687 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
715db78b 6688 Return zero in case the thread library is not NPTL.
7ea8eb02 6689
5c3a3dba
UD
6690 [BZ #5375]
6691 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
6692 initializing interface list.
6693
85883123
UD
6694 [BZ #5378]
6695 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
6696 use result of nss_getgrgid_r if nothing was found. For other
6697 error return with a failure.
6698 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6699
3a632674
UD
6700 * locale/programs/ld-collate.c (collate_read): Fix loop to match
6701 macro name.
6702
b73f9135
UD
67032007-11-19 Ulrich Drepper <drepper@redhat.com>
6704
ee72b971
UD
6705 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
6706 (get_scope): For IPv4 scope, use scopes table.
6707 (fini): Free scopes table if necessary.
6708 (free_scopelist): New function.
6709 (scopecmp): New function.
6710 (gaiconf_init): Also handle scopev4 entries.
6711 * posix/tst-rfc3484.c (do_test): Initialize scopes.
6712 * posix/tst-rfc3484-2.c (do_test): Likewise.
6713 * posix/gai.conf: Document scopev4 defaults.
6714 * posix/Makefile (tests): Add tst-rfc3484-3.
6715 * posix/tst-rfc3484-3.c: New file.
6716
f4a79765
UD
6717 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
6718 Teredo tunnels.
b73f9135
UD
6719 * posix/gai.conf: Update for current default tables.
6720
429bd64d
UD
67212007-11-19 Ulrich Drepper <drepper@redhat.com>
6722
6723 * po/tr.po: Update from translation team.
6724
3c9af259
RM
67252007-11-18 Roland McGrath <roland@frob.com>
6726
76cf9889
RM
6727 * manual/arith.texi (Remainder Functions): Spelling fix.
6728 From Shaun Silk <genix@mysoul.com.au>.
6729
3c9af259
RM
6730 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
6731
238346ab
UD
67322007-11-17 Ulrich Drepper <drepper@redhat.com>
6733
5879ad50
UD
6734 * po/zh_CN.po: Update from translation team.
6735
238346ab
UD
6736 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6737 Add sys/signalfd.h and sys/eventfd.h.
6738
b80b9c77
UD
67392007-11-15 Bruno Haible <bruno@clisp.org>
6740
6741 [BZ #5346]
6742 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
6743 union.
6744 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
6745 (DCIGETTEXT): Change the allocation of the 'search' variable so that
6746 it needs only fixed stack space. Delay the initialization of
6747 msgid_len until it is needed.
6748
2da2501c
AJ
67492007-11-15 Andreas Jaeger <aj@suse.de>
6750
6751 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
6752 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
6753
68a6dcf5
UD
67542007-11-15 Ulrich Drepper <drepper@redhat.com>
6755
6756 * po/ko.po: Update from translation team.
6757
43850227
UD
67582007-11-14 Ulrich Drepper <drepper@redhat.com>
6759
1e2692c9
UD
6760 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
6761 significantly. The device type is also part of the ifinfomsg data.
6762
84e6cc7c 6763 * po/sv.po: Update from translation team.
cbd52634 6764 * po/nl.po: Likewise.
84e6cc7c 6765
f9e2261b
UD
6766 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
6767 to wake up in 24 hours.
6768
43850227
UD
6769 * nscd/gai.c (__ioctl): Define. Include check_native.c.
6770
5742e960
UD
67712007-11-13 Ulrich Drepper <drepper@redhat.com>
6772
1a821d82
UD
6773 * po/cs.po: Update from translation team.
6774 * po/pl.po: Likewise.
6775
773e79b3
UD
6776 * include/ifaddrs.h: Remove in6ai_temporary.
6777 (struct in6addrinfo): Add index element.
6778 Declare __check_native.
6779 * inet/Makefile (aux): Add check_native.
6780 * sysdeps/unix/sysv/linux/check_native.c: New file.
6781 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
6782 IFA_F_TEMPORARY. Pass back ifa_index.
6783 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
6784 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
6785 call __check_native if necessary.
6786 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
6787 to sort addresses. Pass information about the results.
6788 * posix/tst-rfc3484.c: Adjust for addition of index field and change
6789 of rfc3484_sort interface.
6790 * posix/tst-rfc3484-2.c: Likewise.
6791
e458144c
UD
6792 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
6793 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
6794 for _quicksort.
6795 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
6796 (qsort_r): Renamed from qsort. Take additional parameter and pass it
6797 on as third parameter to compare function and _quicksort.
6798 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
6799 to the compare function.
6800 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
6801 * Versions.def: Add GLIBC_2.8 for libc.
6802
bd63f380
UD
6803 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
6804 * posix/tst-rfc3484-2.c: Likewise.
6805
5742e960
UD
6806 * include/kernel-features.h: Moved to...
6807 * sysdeps/mach/hurd/kernel-features.h: ...here.
6808
a6ac7fdb
RM
68092007-09-13 H.J. Lu <hongjiu.lu@intel.com>
6810
6811 * sysdeps/i386/i586/memcpy_chk.S: New file.
6812 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
6813 * sysdeps/i386/i586/memset_chk.S: Likewise.
6814
6f3914d5
UD
68152007-11-12 Ulrich Drepper <drepper@redhat.com>
6816
6817 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
6818 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
6819 list of interfaces. Also store prefix length.
6820 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
6821 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
6822 prefix if source and destination address are in the same subnet.
6823 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
6824 Always look for matching record in in6ai list.
6825 Correct source_addr_len value for IPv6->IPv4 converted records.
6826
78cf5f6a
RM
68272007-11-11 Roland McGrath <roland@frob.com>
6828
6829 * include/kernel-features.h: New file.
6830
7f745396
UD
68312007-11-10 Ulrich Drepper <drepper@redhat.com>
6832
01e7fdbb
UD
6833 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
6834 complications for 64-bit platforms.
6835
7f745396
UD
6836 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
6837 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
6838 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
6839 open64_2.
6840 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
6841 entries.
6842 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6843 * sysdeps/wordsize-64/alphasort.c: New file.
6844 * sysdeps/wordsize-64/alphasort64.c: New file.
6845 * sysdeps/wordsize-64/fseeko.c: New file.
6846 * sysdeps/wordsize-64/fseeko64.c: New file.
6847 * sysdeps/wordsize-64/ftello.c: New file.
6848 * sysdeps/wordsize-64/ftello64.c: New file.
6849 * sysdeps/wordsize-64/ftw.c: New file.
6850 * sysdeps/wordsize-64/ftw64.c: New file.
6851 * sysdeps/wordsize-64/iofgetpos.c: New file.
6852 * sysdeps/wordsize-64/iofgetpos64.c: New file.
6853 * sysdeps/wordsize-64/iofopen.c: New file.
6854 * sysdeps/wordsize-64/iofopen64.c: New file.
6855 * sysdeps/wordsize-64/iofsetpos.c: New file.
6856 * sysdeps/wordsize-64/iofsetpos64.c: New file.
6857 * sysdeps/wordsize-64/lockf.c: New file.
6858 * sysdeps/wordsize-64/lockf64.c: New file.
6859 * sysdeps/wordsize-64/mkostemp.c: New file.
6860 * sysdeps/wordsize-64/mkostemp64.c: New file.
6861 * sysdeps/wordsize-64/mkstemp.c: New file.
6862 * sysdeps/wordsize-64/mkstemp64.c: New file.
6863 * sysdeps/wordsize-64/scandir.c: New file.
6864 * sysdeps/wordsize-64/scandir64.c: New file.
6865 * sysdeps/wordsize-64/tmpfile.c: New file.
6866 * sysdeps/wordsize-64/tmpfile64.c: New file.
6867 * sysdeps/wordsize-64/versionsort.c: New file.
6868 * sysdeps/wordsize-64/versionsort64.c: New file.
6869 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
6870 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
6871 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
6872 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
6873 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
6874 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
6875 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
6876 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
6877 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
6878 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
6879 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
6880 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
6881
6882 * crypt/sha256-crypt.c: Fix a comment.
6883 * crypt/sha512-crypt.c: Likewise.
6884
f6ed654c
UD
68852007-11-07 H.J. Lu <hongjiu.lu@intel.com>
6886
6887 * sysdeps/x86_64/memset.S: Add sfence after movnti.
6888
f2a8406a
UD
68892007-11-07 Ulrich Drepper <drepper@redhat.com>
6890
6891 [BZ #5277]
6892 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
6893 because output buffer is too small break, don't loop.
6894 * iconvdata/Makefile (tests): Add bug-iconv6.
6895 * iconvdata/bug-iconv6.c: New file.
6896
7fe4e0e8
UD
68972007-11-06 Ulrich Drepper <drepper@redhat.com>
6898
9ca230d6
UD
6899 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
6900 with size_t type.
6901 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
6902 size_t. Add casts where needed.
6903
7fe4e0e8
UD
6904 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
6905 old headers, don't call avc_has_perm if we don't have the
6906 permission information.
6907
b92e3780
UD
69082007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
6909
6910 * elf/rtld.c (dl_main): Use the page size to find the map start.
6911
ffb1b882
UD
69122007-11-05 Ulrich Drepper <drepper@redhat.com>
6913
94a749f6
UD
6914 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
6915 Patch by Szymon Siwek <sls@poczta.wp.pl>.
6916
ffb1b882
UD
6917 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
6918 when the lookup call failed.
6919
6920 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
6921 Add prune_cond and wakeup_time.
6922 (CACHE_PRUNE_INTERNAL): Define.
6923 Update declarations of prune_cache and setup_thread.
6924 * nscd/connections.c (dbs): Update initializers.
6925 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
6926 (nscd_init): Default number of threads is now 4.
6927 (invalidate_cache): Take lock before calling prune_cache.
6928 (handle_request): If SELinux forbids the request, say so.
6929 (readylist_cond): Use static initializer.
6930 (nscd_run_prune): New function. Used only by pruning threads.
6931 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
6932 here.
6933 (fd_ready): Update nscd_run reference.
6934 (start_threads): No need to initialize readylist_cond.
6935 Start pruning threads separately.
6936 * nscd/nscd_setup_thread.c: Change return value type to int and always
6937 return 0.
6938 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
6939 to int and return nonzero value if we can use the TID address hack.
6940 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
6941 the database is later than the new entry's timeout, update the
6942 wakeup time and wake the cleanup thread.
6943 (prune_cache): Return seconds the next entry in the database is still
6944 valid. Remove locking for pruning here.
6945 * nscd/nscd.conf: Document default number of threads.
6946
4c48ef06
UD
69472007-10-31 Ulrich Drepper <drepper@redhat.com>
6948
41ff2a49
UD
6949 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
6950 stack is properly aligned for the target function.
6951 Correct unwind info.
ffb1b882 6952
4c48ef06
UD
6953 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
6954 when using auditing libraries.
6955
384ca551
UD
69562007-10-29 Ulrich Drepper <drepper@redhat.com>
6957
31e2791c
UD
6958 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
6959 _nss_dns_getnetbyaddr2_r.
6960 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
6961 extra parameter to getanswer_r.
6962 (_nss_dns_getnetbyaddr_r): Now a wrapper around
6963 _nss_dns_getnetbyaddr2_r.
6964
384ca551
UD
6965 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
6966 gethstbynm3_r.
6967 * nscd/gethstbynm2_r.c: Remove.
6968 * nscd/gethstbynm3_r.c: New file.
6969 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
6970 __gethostbyaddr_r.
6971 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
6972 __gethostbyaddr_r compatibility wrapper.
6973 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
6974 determining timeout of entry.
6975 (lookup): Take new parameter and pass it to __gethostbyname3_r and
6976 __gethostbyaddr2_r.
6977 (addhstbyX): Pass reference to variable for TTL to lookup and
6978 cache_addhst.
6979 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
6980 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
6981 and __nss_next2. Remove __nss_services_lookup.
6982 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
6983 Add compat wrapper.
6984 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
6985 __nss_next2.
6986 * nss/getXXent_r.c: Likewise.
6987 * nss/getnssent_r.c: Likewise.
6988 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
6989 does not exist in module, try the optional second name.
6990 (__nss_next2): New function.
6991 (__nss_next): Now wrapper around __nss_next2.
6992 * nss/nsswitch.h: Adjust __nss_lookup prototype.
6993 Declare __nss_next2.
6994 Adjust definition of db_lookup_function type.
6995 * nss/service-lookup.c: Define NO_COMPAT.
6996 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
6997 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
6998 * inet/ether_ntoh.c: Likewise.
6999 * sunrpc/netname.c: Likewise.
7000 * sunrpc/publickey.c: Likewise.
7001 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
7002 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
7003 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7004 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7005 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7006
7007 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7008
5e37840c 7009 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
384ca551 7010
88197030
UD
70112007-10-28 Ulrich Drepper <drepper@redhat.com>
7012
f160a450
UD
7013 [BZ #5204]
7014 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7015 * crypt/sha512c-test.c: Likewise.
7016
4c6b2202
UD
7017 [BZ #5225]
7018 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7019 to keep track of end of %[ format string element.
22c915ac
UD
7020 * stdio-common/Makefile (tests): Add bug20.
7021 * stdio-common/bug20.c: New file.
4c6b2202 7022
88197030
UD
7023 [BZ #5222]
7024 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7025 path elements in counting mode.
7026
05d69147
UD
70272007-10-27 Andreas Jaeger <aj@suse.de>
7028
94833f11
UD
7029 [BZ #5040]
7030 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7031
05d69147
UD
7032 [BZ #3112]
7033 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7034 (__cleanup): Free shared library when exiting.
7035 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7036 (__cleanup): Free shared library when exiting.
7037
e6b29af8
UD
70382006-04-14 H.J. Lu <hongjiu.lu@intel.com>
7039
7040 [BZ #2549]
7041 * math/libm-test.inc (check_float_internal): Support
7042 denormalized return.
7043
ad3371fb
UD
70442007-10-23 Andreas Jaeger <aj@suse.de>
7045
7046 [BZ #5208]
7047 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7048 __LONG_LONG_PAIR to handle little endian byte order.
7049 Suggested by abhishekrai@google.com
7050
666aa020
UD
70512007-10-27 Ulrich Drepper <drepper@redhat.com>
7052
7053 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7054
8ad343b3
UD
70552007-10-26 Ulrich Drepper <drepper@redhat.com>
7056
7057 * nscd/cache.c (prune_cache): Move test for modified file outside
7058 of locking.
7059
9251c568
AJ
70602007-10-21 Andreas Jaeger <aj@suse.de>
7061
7062 * manual/texinfo.tex: Update to latest version.
7063
7064 * manual/sysinfo.texi (System Parameters): Fix Formatting.
7065
7066 * manual/arith.texi (Status bit operations): Fix formatting.
7067
7068 * manual/errno.texi (Error Messages): Fix formatting.
7069
7070 * manual/sysinfo.texi (System Parameters): Fix formatting.
7071
7072 * manual/libc.texinfo: Update VERSION and UPDATED.
7073
260b2e06
RM
70742007-10-19 Roland McGrath <roland@redhat.com>
7075
7076 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7077
46ae8850
JJ
70782007-10-06 David S. Miller <davem@davemloft.net>
7079
7080 * configure.in: Add sparcv9v2 and sparc64v2.
7081 * scripts/config.sub: Likewise.
7082 * configure: Regenerate.
7083 * elf/elf.h (HWCAP_SPARC_N2): New.
7084 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7085 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7086 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7087 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
7088 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
7089 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
7090 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
7091
6fbfbd80
UD
70922007-10-18 Ulrich Drepper <drepper@redhat.com>
7093
7094 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
7095 even if the poll result indicates there is data to read.
7096 Patch by Jeff Moyer <jmoyer@redhat.com>.
7097
39cfc9fa
RM
70982007-10-18 Roland McGrath <roland@redhat.com>
7099
7100 * elf/elf.h (NT_PPC_VMX): New macro.
28919a77 7101
39cfc9fa 71022007-10-17 Ulrich Drepper <drepper@redhat.com>
28919a77
UD
7103
7104 * version.h (VERSION): Set to 2.7.90.
7105
ed13ccf1
JJ
71062007-10-17 Jakub Jelinek <jakub@redhat.com>
7107
7108 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
7109 weak_alias.
7110
ee9fd869
RM
71112007-10-17 Roland McGrath <roland@frob.com>
7112
7113 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
7114 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
7115
1aa5e4d7
UD
71162007-10-17 Ulrich Drepper <drepper@redhat.com>
7117
50c9fbbf 7118 * version.h (VERSION): Bump to 2.7.
777bc4bf 7119 * include/features.h (__GLIBC_MINOR__): Bump to 7.
50c9fbbf 7120
58423c7d
UD
7121 [BZ #5186]
7122 * time/tzset.c (__tz_convert): Don't force testing for a change of
7123 TZ if not called from localtime. But then also see whether the
7124 file changed, in case __use_tzfile is set.
7125
1aa5e4d7
UD
7126 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
7127 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7128 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7129 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7130 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7131 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7132 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7133 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7134
fc4837e5
UD
71352007-10-17 Jakub Jelinek <jakub@redhat.com>
7136
7137 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
7138 and admin selects to be able to replace the gai.conf file, lock
7139 data structures around the qsort call.
7140
62eaf7c8
UD
71412007-10-17 Ulrich Drepper <drepper@redhat.com>
7142
406f28db
UD
7143 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
7144 new memset.
ac1cb5da 7145 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
406f28db
UD
7146 too high for the improvements. Implement bzero unconditionally for
7147 use in libc.
ac1cb5da
UD
7148
71492007-10-17 Ulrich Drepper <drepper@redhat.com>
7150 Jakub Jelinek <jakub@redhat.com>
7151
62eaf7c8
UD
7152 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
7153 even when time_t is 32-bit.
7154 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
7155 timezone data read by __tzfile_default. Ensure __tzname[0] is
7156 always set after the search.
7157
6a649d25
UD
71582007-10-16 Ulrich Drepper <drepper@redhat.com>
7159
7160 * time/tzfile.c (__tzfile_read): Help the compiler recognize
7161 unreachable code on 32-bit machines.
7162
800d6f9e
UD
71632007-10-16 Jakub Jelinek <jakub@redhat.com>
7164
7165 [BZ #5184]
7166 * time/strftime_l.c: Include stdbool.h.
7167 (my_strftime): New wrapper, old function renamed to...
7168 (__strftime_internal): ... new function. Add tzset_called
7169 argument, pass it down to recursive calls, don't call tzset ()
7170 if already true, set to true after call to tzset ().
62eaf7c8 7171
69819d92
UD
71722007-10-16 Ulrich Drepper <drepper@redhat.com>
7173
7174 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7175 into account when copying TZ string.
7176
62eaf7c8
UD
71772007-10-16 Jakub Jelinek <jakub@redhat.com>
7178
7179 * time/tzfile.c (__tzfile_compute): For use_last case set i to
7180 num_transition rather than num_transitions - 1.
7181
0308ad66
JJ
71822007-10-16 Jakub Jelinek <jakub@redhat.com>
7183
8d137b60
JJ
7184 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7185 PIC indirect jump.
7186
0308ad66
JJ
7187 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
7188 a local label rather than HIDDEN_JUMPTARGET.
7189
e2b393bc
UD
71902007-10-15 Ulrich Drepper <drepper@redhat.com>
7191
7192 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
7193 (init_cacheinfo): Initialize it.
7194 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
7195 Always define bzero.
7196 Remove non-glibc code.
7197 * sysdeps/x86_64/bzero.S: Make an empty file.
7198
71992007-10-15 H.J. Lu <hongjiu.lu@intel.com>
7200
7201 * sysdeps/x86_64/cacheinfo.c
7202 (__x86_64_preferred_memory_instruction): New.
7203 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7204
7205 * sysdeps/x86_64/memset.S: Rewrite.
7206
0fbfcb7b
RM
72072007-10-15 Roland McGrath <roland@redhat.com>
7208
7209 * po/libc.pot: Regenerated.
7210
2884dad4
UD
72112007-10-15 Ulrich Drepper <drepper@redhat.com>
7212
e2b393bc 7213 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
d96a2216
UD
7214 pointers.
7215
2884dad4
UD
7216 [BZ #3425]
7217 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
7218 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
7219 address record to T_A/T_AAAA requests.
7220
89dc9d4c
UD
72212007-10-14 Ulrich Drepper <drepper@redhat.com>
7222
8d97ac13
UD
7223 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
7224
1b6aa63f
UD
7225 * posix/glob.c: Add some branch prediction throughout.
7226
895a08c0
UD
7227 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
7228 read from nscd.
7229
6f55ed88
UD
7230 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
7231 service_order.
8d62c8ab
UD
7232 (rfc3484_sort): Make sure that even if qsort doesn't support
7233 stable sorting out sorting here is stable by comparing service_order.
6f55ed88 7234 (getaddrinfo): Initialize service_order.
a94673e6
UD
7235 * posix/tst-rfc3484.c (do_test): Adjust for addition of
7236 service_order field to sorting structure.
dfcf64ce 7237 * posix/tst-rfc3484-2.c (do_test): Likewise.
6f55ed88 7238
fa76dde2
UD
7239 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
7240 * time/tzset.c (tzset_internal): Break TZ string parsing out into
7241 __tzset_parse_tz and updating of daylight, timezone, tzname into
7242 update_vars.
7243 (__tz_compute): Renamed from tz_compute. Take additional parameters.
7244 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
7245 happens in __tz_compute.
7246 * time/tzfile.c (__tzfile_read): Also read TZ string.
7247 (find_transition): Fold into __tzfile_compute.
7248 (__tzfile_compute): For times beyond the last transition try to
7249 use the TZ string.
7250 * timezone/tst-timezone.c: Information in daylight and tzname does
7251 change for Asia/Tokyo timezone with more concrete information.
7252 Remove the test.
7253
7254 * include/stdio.h: Add libc_hidden_proto for ftello.
7255 * libio/ftello.c: Add libc_hidden_def.
7256
89dc9d4c
UD
7257 [BZ #1140]
7258 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
7259 on the specified time and not the last entries in the file. Move
7260 code to determine tzname[] to...
7261 (find_transition): ...here. Add ugly guess for times before the
7262 first transition.
7263
f7140274
UD
72642007-10-13 Ulrich Drepper <drepper@redhat.com>
7265
cfca0aa3
UD
7266 [BZ #3195]
7267 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
7268 no entry.
7269 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
7270 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7271 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7272 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7273
43d3e6bd
UD
7274 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
7275 read mechanism when there are no group members and avoid no-op
7276 read syscall in this case.
7277
f7140274
UD
7278 [BZ #3242]
7279 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
7280 (__readall): If reading failed due to EAGAIN error wait a bit
7281 and possibly try again.
7282 (__readvall): Likewise.
7283
656f02ce
UD
72842007-10-13 Bruno Haible <bruno@clisp.org>
7285
7286 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
7287 when we cannot recode the message.
7288
0ea49677
UD
72892007-10-13 Ulrich Drepper <drepper@redhat.com>
7290
7291 [BZ #4359]
7292 * libio/__freading.c (__freading): Don't return true for
ed36f224
UD
7293 write-only streams. For read/write streams, check whether we
7294 performed a read operation already.
7e39d802
UD
7295 * libio/Makefile (tests): Add tst-ext2.
7296 * libio/tst-ext2.c: New file.
0ea49677 7297
78a9b2dc
UD
72982007-10-12 Ulrich Drepper <drepper@redhat.com>
7299
fab1a490
UD
7300 * locale/programs/repertoire.c (repertoire_read): Always free
7301 memory for repertoire file name [Coverity CID 270].
7302
78a9b2dc
UD
7303 * elf/cache.c (save_aux_cache): Free memory allocated for
7304 temporary file name [Coverity CID 267].
7305
29d49a1a
JJ
73062007-10-12 Jakub Jelinek <jakub@redhat.com>
7307
7308 * misc/Makefile (headers): Add bits/error.h.
7309
d074d36d
UD
73102007-10-12 Ulrich Drepper <drepper@redhat.com>
7311
b7d1c5fa
UD
7312 * posix/fnmatch_loop.c: Take rule index returned as part of
7313 findidx return value into account when accessing weights.
7314 * posix/regcomp.c: Likewise.
7315 * posix/regexec.c: Likewise.
7316
d074d36d
UD
7317 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
7318 (skip_to): Fix problems with parameter of elifdef/elifndef.
7319
26a51060
UD
73202007-10-11 Ulrich Drepper <drepper@redhat.com>
7321
7322 * iconv/gconv_simple.c: Add some branch prediction.
7323
6dd3748b
UD
73242007-10-12 Jakub Jelinek <jakub@redhat.com>
7325
7326 * locale/programs/ld-collate.c (collate_read): If ignore_content
7327 and nowtok is tok_define, eat any tok_eol tokens.
7328
d0b5557d
JJ
73292007-10-11 Jakub Jelinek <jakub@redhat.com>
7330
7331 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
7332 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
7333
7334 * inet/netinet/in.h: Don't include bits/socket.h.
7335 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
7336 macro.
7337 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7338
3a054d7a
UD
73392007-10-10 Ulrich Drepper <drepper@redhat.com>
7340
7341 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
7342 and tok_elifndef.
7343 * locale/programs/locfile-kw.gperf: Likewise.
7344 * locale/programs/ld-collate.c: Implement primitive preprocessor.
7345
c06b7169
UD
73462007-10-10 Jakub Jelinek <jakub@redhat.com>
7347
7348 * stdio-common/printf-parse.h: Include string.h and wchar.h.
7349 (__find_specwc): Change into __extern_always_inline function.
7350 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
7351 (__parse_one_specmb): Remove ps argument.
7352 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
7353 Adjust __find_specmb and __parse_one_specmb callers.
7354 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
7355 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
7356 Removed.
7357 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
7358 caller.
7359
5a01ab7b
UD
73602007-10-09 Ulrich Drepper <drepper@redhat.com>
7361
7362 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
7363 with some Pentium Ds.
7364
e3f8e049
UD
73652007-10-08 Ulrich Drepper <drepper@redhat.com>
7366
7367 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
7368 __read not read.
7369 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
7370 __write not write.
7371
a1a363d2
UD
73722007-10-07 Ulrich Drepper <drepper@redhat.com>
7373
a1160714
UD
7374 [BZ #181]
7375 * locale/C-time.c: Set week_1stday data to 19971201.
659a9013
UD
7376 * locale/programs/ld-time.c (time_finish): Default for
7377 first_workday is Monday.
a1160714 7378
bb27a6eb
UD
7379 [BZ #2633]
7380 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
7381
c8d48fae
UD
7382 [BZ #5103]
7383 * posix/glob.c (glob): Recognize patterns starting \/.
7384 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
7385 (main): Add test for pattern starting \/.
7386
a1a363d2
UD
7387 * misc/error.h: Use __const instead of const.
7388 * misc/bits/error.h: Likewise.
7389
73902007-10-07 Andreas Jaeger <aj@suse.de>
7391
7392 * include/bits/error.h: New file.
7393
7394 * misc/bits/error.h (error_at_line): Fix prototype.
7395
71894681
UD
73962007-10-06 Ulrich Drepper <drepper@redhat.com>
7397
a6fa5328
UD
7398 [BZ #3924]
7399 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
7400 more little bugs in creating the stack frame when pltexit has to
7401 be called.
7402
8c7661bc 7403 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
50607309 7404 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8c7661bc 7405
c039eedd
UD
7406 [BZ #4407]
7407 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
7408 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7409 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7410 * math/libm-test.inc: Add test for this case.
7411
71894681
UD
7412 [BZ #5010]
7413 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
7414 (svc_register): Initialize sc_mapped. Set to TRUE if call to
7415 map service succeeded.
7416 (svc_is_mapped): New function.
7417 (svc_unregister): Use it before trying to unmap service.
7418
34c2c092
UD
74192007-10-05 Ulrich Drepper <drepper@redhat.com>
7420
d10737e4
UD
7421 * timezone/zic.c: Update from tzcode2007h.
7422
7423 [BZ #5063]
7424 * timezone/africa: Update from tzdata2007h.
7425 * timezone/antarctica: Likewise.
7426 * timezone/asia: Likewise.
7427 * timezone/australasia: Likewise.
7428 * timezone/europe: Likewise.
7429 * timezone/leapseconds: Likewise.
7430 * timezone/northamerica: Likewise.
7431 * timezone/southamerica: Likewise.
7432 * timzeone/zone.tab: Likewise.
7433
0304f168
UD
7434 [BZ #5104]
7435 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
7436
a83b5649
UD
7437 [BZ #5113]
7438 * string/bits/string2.h (__strdup): Cast parameters to calloc to
7439 avoid warning with -Wconversion.
7440 (__strndup): Likewise.
c039eedd 7441 Half the patch by Christian Iseli <christian.iseli@licr.org>.
a83b5649 7442
3e6ce4d7
UD
7443 [BZ #5112]
7444 * nscd/connections.c (restart): Don't resync if database is
7445 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
7446
8e351378
UD
7447 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
7448 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
7449
7450 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
7451 evetnfd_read, eventfd_write.
7452 * sysdeps/unix/sysv/linux/eventfd.c: New file.
7453 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
7454 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
7455 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
d10737e4 7456 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8e351378
UD
7457 eventfd_write for GLIBC_2.7.
7458
34c2c092
UD
7459 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
7460 * sysdeps/unix/sysv/linux/signalfd.c: New file.
7461 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
7462 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
7463
6789aaaa 74642007-10-04 Jakub Jelinek <jakub@redhat.com>
375d9429
UD
7465
7466 * stdlib/msort.c: Include stdint.h.
7467 (struct msort_param): New type.
7468 (msort_with_tmp): Use struct msort_param pointer for unchanging
7469 parameters. Add optimized handling for several common sizes
7470 and indirect sorting mode.
7471 (qsort): Adjust msort_with_tmp callers. For big S use indirect
7472 sorting.
7473 Suggested by Belazougui Djamel .
7474
7475 * stdlib/Makefile (tests): Add tst-qsort2.
7476 * stdlib/tst-qsort2.c: New test.
7477
b80bfc8b
UD
74782007-10-04 Ulrich Drepper <drepper@redhat.com>
7479
174420d2
UD
7480 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
7481 for dup2 in case another thread races with the current one. Retry
7482 in this case.
7483
b80bfc8b
UD
7484 * misc/error.h: Remove support for use outside of libc. We have to
7485 include <features.h> now. Include <bits/error.h> if possible.
7486 * misc/bits/error.h: New file.
7487
6789aaaa 74882007-10-03 Jakub Jelinek <jakub@redhat.com>
ee868c89 7489
e5dd2178
UD
7490 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
7491 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
7492 __extern_always_inline functions unconditionally, drop macros.
7493
ac97dec1
UD
7494 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
7495 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
7496 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
7497
ee868c89
UD
7498 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
7499 add __artificial__ attribute.
7500
80e069e0
UD
75012007-10-02 Ulrich Drepper <drepper@redhat.com>
7502
6e682cf5
UD
7503 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
7504 backward to forward direction.
7505
90241a20
UD
7506 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
7507
80e069e0
UD
7508 [BZ #645]
7509 * locale/programs/ld-collate.c (collate_finish): Compare against last
7510 used section which is known to have rules defined.
7511 (collate_read): After order_start, correctly record order of sections
7512 and queue sections up.
7513
035ef8d7
UD
75142007-10-01 Ulrich Drepper <drepper@redhat.com>
7515
95bddc0c
UD
7516 [BZ #5071]
7517 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
7518 the same number of pages.
7519 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
7520
c8caf089
UD
7521 * locale/programs/ld-collate.c (collate_read): After initial copy
7522 statement, continue in state 0.
7523
035ef8d7
UD
7524 * include/stdio_ext.h (__fsetlocking): Define as macro.
7525
592a95ee
UD
75262007-09-30 Ulrich Drepper <drepper@redhat.com>
7527
56ebeb41
UD
7528 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
7529 of section order.
7530
592a95ee
UD
7531 * po/pt_BR.po: Fix typo.
7532
6c522e21
UD
75332007-09-29 Ulrich Drepper <drepper@redhat.com>
7534
8ad5c3cd
UD
7535 * iconvdata/Makefile (modules): Add ISO8859-9E.
7536 (distribute): Add iso8859-9e.c.
7537 (gen-8bit-gap-modules): Add iso8859-9e.
7538 * iconvdata/iso8859-9e.c: New file.
7539 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
7540 * iconvdata/TESTS: Likewise.
7541 * iconvdata/tst-tables.sh: Likewise.
7542
7543 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7544
6c522e21
UD
7545 * locale/iso-639.def: Add several new entries.
7546
385b4cf4
UD
75472007-09-24 Jakub Jelinek <jakub@redhat.com>
7548
7549 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
7550 void * pointers instead of struct link_map **.
7551 (_dl_scope_free): Change argument type to void *.
7552 * include/link.h (struct link_map): Change type of l_reldeps
7553 to struct link_map_reldeps, move l_reldepsact into that
7554 struct too.
7555 * elf/dl-deps.c: Include atomic.h.
7556 (_dl_map_object_deps): Only change l->l_initfini when it is
7557 fully populated, use _dl_scope_free for freeing it. Optimize
7558 removal of libs from reldeps by using l_reserved flag, when
7559 some removal is needed, allocate a new list instead of
7560 reallocating and free the old with _dl_scope_free. Adjust
7561 for l_reldeps and l_reldepsact changes.
7562 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
7563 searching in l_initfini and l_reldeps without holding dl_load_lock.
7564 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
7565 l_reldepsact changes.
7566 * elf/dl-close.c (_dl_close_worker): Likewise.
7567 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
7568
90bf831b
UD
75692007-09-28 Ulrich Drepper <drepper@redhat.com>
7570
7571 * iconvdata/Makefile (modules): Add KOI8-RU.
7572 (distribute): Add koi8-ru.c.
7573 (gen-8bit-gap-modules): Add koi8-ru.
7574 * iconvdata/koi8-ru.c: New file.
7575 * iconvdata/gconv-modules: Add entries for KOI8-RU.
7576 * iconvdata/TESTS: Likewise.
7577 * iconvdata/tst-tables.sh: Likewise.
7578
7579 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7580
d6cd6bf4
UD
75812007-09-26 Jakub Jelinek <jakub@redhat.com>
7582
7583 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
7584 with __warning__/__error__ attributes.
7585 (__warnattr): Define.
7586 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
7587 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
7588 __warnattr.
7589 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
7590 of __*_chk if compile time detectable overflow is found.
7591 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
7592 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
7593 with __warnattr.
7594 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
7595 instead of __*_chk if compile time detectable overflow is found.
7596 (__gets_alias): Rename to...
7597 (__gets_warn): ... this. Add __warnattr.
7598 (gets): Call __gets_warn instead of __gets_alias.
7599 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
7600 aliases with __warnattr.
7601 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
7602 time detectable overflow is found.
7603 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
7604 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
7605 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
7606 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
7607 __getdomainname_chk_warn): New aliases with __warnattr.
7608 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
7609 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
7610 __*_chk_warn instead of __*_chk if compile time detectable overflow
7611 is found.
7612 (__getgroups_chk): Rename argument to __listlen from listlen.
7613 (__getwd_alias): Rename to...
7614 (__getwd_warn): ... this. Add __warnattr.
7615 (getwd): Call __getwd_warn instead of __getwd_alias.
7616 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
7617 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
7618 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
7619 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
7620 __wcsnrtombs_chk_warn): New aliases with __warnattr.
7621 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
7622 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
7623 compile time detectable overflow is found.
7624 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
7625 to use __*_chk or not.
7626 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
7627 in comparisons which function should be called and in __*_chk*
7628 arguments. Call __*_chk_warn instead of __*_chk if compile time
7629 detectable overflow is found.
7630 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
7631 __*_chk argument.
7632 * debug/tst-chk1.c (do_test): Add a few more tests.
7633
408cfca0
UD
76342007-09-24 Ulrich Drepper <drepper@redhat.com>
7635
7636 [BZ #5058]
7637 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
7638 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
7639 (_nl_unload_domain): Finalize conversions_lock.
7640 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
7641 handling table of known conversions.
7642
e6eec9ce
JJ
76432007-09-24 Jakub Jelinek <jakub@redhat.com>
7644
7645 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
7646 close_not_cancel_no_status instead of close.
7647
a532a41d
UD
76482007-09-13 Aurelien Jarno <aurelien@aurel32.net>
7649
682268ef 7650 [BZ #5028]
408cfca0 7651 * posix/regcomp.c (lookup_collation_sequence_value): Check that
a532a41d
UD
7652 nrules != 0 for multibyte chars.
7653
dec9ed9e
UD
76542007-09-23 Ulrich Drepper <drepper@redhat.com>
7655
91633816
UD
7656 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
7657 Provide better error message in case the type is unknown.
7658
9cc198f6
UD
7659 [BZ #4963]
7660 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
7661 * string/stratcliff.c: Make usable to test wide char functions.
7662 * wcsmbs/wcsatcliff.c: New file.
7663 * wcsmbs/Makefiel (tests): Add wcsatcliff.
7664
27f3d446
UD
7665 [BZ #4972]
7666 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
7667 (distribute): Add mac-centraleurope.c.
7668 (gen-8bit-gap-modules): Add mac-centraleurope.
7669 * iconvdata/mac-centraleurope.c: New file.
7670 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
7671 * iconvdata/TESTS: Likewise.
7672 * iconvdata/tst-tables.sh: Likewise.
7673
dec9ed9e
UD
7674 [BZ #5043]
7675 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
7676
0435403c
UD
76772007-09-21 Ulrich Drepper <drepper@redhat.com>
7678
7679 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
7680 from __x86_64_core_cache_size_half.
7681 (init_cacheinfo): Compute shared cache size for AMD processors with
7682 shared L3 correctly.
7683 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
7684 name change.
7685 Patch in large parts by Evandro Menezes.
7686
c3266dc0
UD
76872007-09-19 Ulrich Drepper <drepper@redhat.com>
7688
715899d1
UD
7689 * elf/dl-lookup.c (add_dependency): Handle failing memory
7690 allocation for dependency list. Remove unnecessary check.
7691
e1db0493
UD
7692 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
7693 open/close when determining source addresses.
7694
c3266dc0
UD
7695 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
7696 sha512-crypt, and sha512.
7697 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
7698 (distribute): Add sha256.h and sha512.h.
7699 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
7700 and call the appropriate code.
7701 * crypt/sha256-crypt.c: New file.
7702 * crypt/sha256.c: New file.
7703 * crypt/sha256.h: New file.
7704 * crypt/sha256c-test.c: New file.
7705 * crypt/sha256test.c: New file.
7706 * crypt/sha512-crypt.c: New file.
7707 * crypt/sha512.c: New file.
7708 * crypt/sha512.h: New file.
7709 * crypt/sha512c-test.c: New file.
7710 * crypt/sha512test.c: New file.
7711
ddf51ecb
JJ
77122007-09-19 Jakub Jelinek <jakub@redhat.com>
7713
7714 * misc/bits/syslog.h (syslog): Remove extraneous argument from
7715 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
7716 __syslog_chk.
7717
b90395e6
UD
77182007-09-18 Jakub Jelinek <jakub@redhat.com>
7719
76c0bea7
JJ
7720 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
7721 %as in fscanf format strings.
7722
00680568
JJ
7723 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
7724 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
c3266dc0
UD
7725 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
7726 Likewise.
7727 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
7728 Likewise.
00680568 7729
b90395e6
UD
7730 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
7731 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
7732 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
7733 * elf/dl-sym.c (do_sym): Likewise.
7734 * include/link.h (struct link_map): Add l_serial field.
7735 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
7736 * elf/dl-lookup.c (add_dependency): Add flags argument.
7737 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
7738 flags, use THREAD_GSCOPE_RESET_FLAG before and
7739 THREAD_GSCOPE_SET_FLAG after
7740 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
7741 Don't dereference map until it has been found on some list.
7742 If map->l_serial changed, return -1.
7743
874aa523
UD
77442007-09-17 Jakub Jelinek <jakub@redhat.com>
7745
7746 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
7747 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
7748 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
7749 libc_hidden_proto.
7750 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
7751 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
7752 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
7753 add libc_hidden_proto.
7754 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7755 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7756 conformance requested.
7757 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
7758 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7759 conformance requested.
7760 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7761 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
7762 conformance requested.
7763 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
7764 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
7765 ISO C99 or POSIX conformance requested.
7766 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
7767 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
7768 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
7769 and __isoc99_vsscanf@@GLIBC_2.7.
7770 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
7771 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
7772 (tests): Add scanf14.
7773 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
7774 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
7775 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
7776 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
7777 CFLAGS-isoc99_scanf.c): Add $(exceptions).
7778 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
7779 from using internal headers.
7780 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
7781 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
7782 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
7783 and __isoc99_vswscanf@@GLIBC_2.7.
7784 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
7785 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
7786 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
7787 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
7788 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
7789 * stdio-common/isoc99_scanf.c: New file.
7790 * stdio-common/isoc99_vsscanf.c: New file.
7791 * stdio-common/isoc99_vscanf.c: New file.
7792 * stdio-common/isoc99_vfscanf.c: New file.
7793 * stdio-common/isoc99_fscanf.c: New file.
7794 * stdio-common/isoc99_sscanf.c: New file.
7795 * wcsmbs/isoc99_fwscanf.c: New file.
7796 * wcsmbs/isoc99_vswscanf.c: New file.
7797 * wcsmbs/isoc99_swscanf.c: New file.
7798 * wcsmbs/isoc99_wscanf.c: New file.
7799 * wcsmbs/isoc99_vwscanf.c: New file.
7800 * wcsmbs/isoc99_vfwscanf.c: New file.
7801 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
7802 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
7803 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
7804 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
7805 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
7806 * stdio-common/scanf14.c: New test.
7807 * stdio-common/scanf15.c: New test.
7808 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
7809 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
7810 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
7811 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
7812 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
7813 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
7814 __nldbl___isoc99_scanf@@GLIBC_2.7,
7815 __nldbl___isoc99_fscanf@@GLIBC_2.7,
7816 __nldbl___isoc99_sscanf@@GLIBC_2.7,
7817 __nldbl___isoc99_vscanf@@GLIBC_2.7,
7818 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
7819 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
7820 __nldbl___isoc99_wscanf@@GLIBC_2.7,
7821 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
7822 __nldbl___isoc99_swscanf@@GLIBC_2.7,
7823 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
7824 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
7825 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
7826 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
7827 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
7828 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
7829 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
7830 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
7831 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7832 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
7833 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
7834 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
7835 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
7836 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
7837 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
7838 functions.
7839 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
7840 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
7841 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
7842 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
7843 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
7844 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
7845 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
7846 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
7847 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
7848 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
7849 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
7850 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
7851
7852 * stdio-common/Makefile (tests): Add scanf13.
7853 (scanf13-ENV): New.
7854 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
7855 m modifier followed by l.
7856 (STRING_ARG): Add width argument.
7857 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
7858 <case L_('C')>: Handle %mlc and %mC.
7859 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
7860 arguments.
7861 * stdio-common/scanf13.c: New test.
7862
7863 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
7864 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
7865
883f7943
UD
78662007-09-18 Ulrich Drepper <drepper@redhat.com>
7867
7868 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
874aa523 7869 type and __THROW marker of splice, vmsplice, and tee.
883f7943
UD
7870 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7871 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7872 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7873 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7874 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7875 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7876 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7877 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
7878 as cancellation points.
7879
3524efe0
UD
78802003-11-01 Daniel Jacobowitz <dan@debian.org>
7881
7882 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
7883 parse more than three parts of the version number.
7884
267c54dc
UD
78852007-09-15 Ulrich Drepper <drepper@redhat.com>
7886
7887 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
7888 modifier. Patch by Jakub Jelinek.
7889
5e17d6b7
UD
78902007-08-26 Jakub Jelinek <jakub@redhat.com>
7891
7892 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
7893 call_fallocate in misc subdir.
7894 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
7895 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
7896 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
7897 instead of __fallocate64.
7898 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
7899
3a50811c
UD
79002007-09-15 Jakub Jelinek <jakub@redhat.com>
7901
7902 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
7903 * rt/Makefile (headers): Add bits/mqueue2.h.
7904 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
7905 optimizing with GCC and __va_arg_pack_len is defined.
7906 * rt/bits/mqueue2.h: New file.
7907 * rt/mq_open.c (__mq_open): Renamed from mq_open.
7908 (mq_open): New strong_alias.
7909 (__mq_open_2): New function.
7910 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
7911 (mq_open): New strong_alias.
7912 (__mq_open_2): New function.
7913 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
7914 * Versions.def (librt): Add GLIBC_2.7 version.
7915 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
7916 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
7917
7918 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
7919 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
7920 is defined rather than when not C++.
7921 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
7922 __openat64_alias): New redirects.
7923 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
7924 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
7925 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
7926 (open, open64, openat, openat64): Rewrite as __extern_always_inline
7927 functions instead of function-like macros.
7928
9bdfff60
UD
79292007-09-14 H.J. Lu <hongjiu.lu@intel.com>
7930
7931 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
7932 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
7933 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
7934
ab905672
UD
79352007-09-15 Mike Frysinger <vapier@gentoo.org>
7936
7937 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
7938 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
7939
9bd68902
RM
79402007-09-14 Mike Frysinger <vapier@gentoo.org>
7941
7942 * inet/tst-network.c: Increment ERRORS for failing tests.
7943
de1c3ebb
UD
79442007-09-07 Jakub Jelinek <jakub@redhat.com>
7945
7946 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
7947 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
7948 implement as __extern_always_inline function.
7949 (vsyslog): Define as __extern_always_inline function unconditionally.
7950 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
7951 When __va_arg_pack is defined, implement as __extern_always_inline
7952 functions.
7953 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7954 __extern_always_inline functions unconditionally.
7955 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
7956 bits/stdio2.h will be included.
7957 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
7958 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
7959 implement as __extern_always_inline functions.
7960 (vswprintf, vwprintf, vfwprintf): Define as
7961 __extern_always_inline functions unconditionally.
7962 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
7963
79642007-09-03 Jakub Jelinek <jakub@redhat.com>
7965
7966 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
7967 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
7968 attribute.
7969 * include/features.h (__USE_EXTERN_INLINES): Define only when
7970 __extern_inline is defined.
7971 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
7972 is defined instead of when not __cplusplus.
7973 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
7974 is defined instead of when not __cplusplus.
7975 * socket/sys/socket.h: Include bits/socket2.h when
7976 __extern_always_inline is defined instead of when not __cplusplus.
7977 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
7978 is defined instead of when not __cplusplus.
7979 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
7980 is defined instead of when not __cplusplus.
7981 * string/string.h: Include bits/string3.h when __extern_always_inline
7982 is defined instead of when not __cplusplus.
7983 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
7984 is defined instead of when not __cplusplus.
7985 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
7986 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
7987 is not defined.
7988 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
7989 defined __extern_always_inline instead of !defined __cplusplus.
7990 * libio/bits/stdio-ldbl.h: Likewise.
7991 * wcsmbs/bits/wchar-ldbl.h: Likewise.
7992 * misc/bits/syslog.h (syslog): Don't define for C++.
7993 (vsyslog): Use __extern_always_inline function for C++ instead of
7994 a macro.
7995 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
7996 whenever that macro is defined.
7997 (vprintf): Don't provide the inline for C++.
7998 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
7999 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
8000 define the macros for C++.
8001 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8002 __extern_always_inline functions for C++.
8003 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8004 stat64, lstat64, fstat64, fstatat64): Don't define if not
8005 __USE_EXTERN_INLINES.
8006 * wcsmbs/bits/wchar2.h: Fix #error message.
8007 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8008 (vswprintf, vwprintf, vfwprintf): Define using
8009 __extern_always_inline functions for C++.
8010 * string/bits/string3.h: Don't #undef macros if __cplusplus.
8011 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8012 strncpy, strcat, strncat): Define as __extern_always_inline
8013 functions instead of macros for C++.
8014 * math/bits/cmathcalls.h: Guard __extern_inline routines with
8015 defined __extern_inline.
8016 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8017 to __extern_inline whenever that macro is defined.
8018 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8019 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8020 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8021 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8022 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8023 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8024 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8025 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8026 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8027 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8028 prototypes. Only provide __extern_inline routines if
8029 __USE_EXTERN_INLINES.
8030 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8031 tests.
8032 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8033 For now avoid some *printf tests in C++. Skip all testing
8034 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8035 is not.
8036 * debug/tst-chk4.cc: New file.
8037 * debug/tst-chk5.cc: New file.
8038 * debug/tst-chk6.cc: New file.
8039 * debug/tst-lfschk4.cc: New file.
8040 * debug/tst-lfschk5.cc: New file.
8041 * debug/tst-lfschk6.cc: New file.
8042 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8043 prototypes in C++.
8044 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8045 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8046 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8047
b53eef9c
UD
80482007-09-13 Ulrich Drepper <drepper@redhat.com>
8049
8050 * po/cs.po: Update from translation team.
8051
af385590
RM
80522007-09-11 Roland McGrath <roland@redhat.com>
8053
8054 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8055 compiling.
8056
af2f25a1
RM
80572007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
8058
8059 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8060
94733ae0
RM
80612007-09-05 Roland McGrath <roland@redhat.com>
8062
8063 * manual/signal.texi (Signaling Another Process): Typo fix.
8064 From Karl Berry <karl@freefriends.org>.
8065
de4d8563
UD
80662007-08-29 Ulrich Drepper <drepper@redhat.com>
8067
8068 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8069 zero if not defined.
8070 (make_request): Recognize optimistic addresses and treat them like
8071 deprecated addresses.
8072 Reported by Neil Horman <nhorman@redhat.com>.
8073
0adfcc05
UD
80742007-08-28 Ulrich Drepper <drepper@redhat.com>
8075
f3c54060
UD
8076 * nscd/connections.c (send_ro_fd): Also transfer file size.
8077 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8078 file size don't call fstat.
8079
0adfcc05
UD
8080 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8081 ahead and map the file. This should always be correct and we can
8082 catch problems later.
8083
3586b2b6
UD
80842007-08-28 Jakub Jelinek <jakub@redhat.com>
8085
8086 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
8087 prototypes.
8088 (__fread_alias, __fread_unlocked_alias): New aliases.
8089 (fread): New extern inline.
8090 (fread_unlocked): Likewise. Undef macro before definition of
8091 the inline function.
8092 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
8093 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
8094 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
8095 and __fread_unlocked_chk@@GLIBC_2.7.
8096 * debug/fread_chk.c: New file.
8097 * debug/fread_u_chk.c: New file.
8098 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
8099
3704aa0b
RM
81002007-08-27 Jakub Jelinek <jakub@redhat.com>
8101
8102 * sysdeps/unix/sysv/linux/syscalls.list
8103 (personality): Change caller to EXTRA.
8104
80e7d6a6
UD
81052007-08-25 Ulrich Drepper <drepper@redhat.com>
8106
278bfa00
UD
8107 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
8108 to keep gcc quiet.
8109 * iconvdata/iso-2022-cn.c (BODY): Likewise.
8110
a45d733c
UD
8111 * locale/programs/ld-collate.c (collate_output): Avoid warning if
8112 NDEBUG is defined.
8113
5dfeae0e
UD
8114 * Makerules: Use -p option with mkdir.
8115
8f1fe057
UD
8116 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
8117 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
bd0dcd28
UD
8118 (_xdr_directory_obj): Likewise.
8119 (xdr_entry_obj): Likewise.
8120 (xdr_group_obj): Likewise.
8121 (xdr_link_obj): Likewise.
8122 (xdr_table_obj): Likewise.
8123 (_xdr_nis_result): Likewise.
8124 (_xdr_ns_request): Likewise.
8125 (_xdr_ib_request): Likewise.
8126 (_xdr_nis_taglist): Likewise.
8127 (xdr_cback_data): Likewise.
8f1fe057 8128 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
bd0dcd28
UD
8129 (xdr_ypresp_maplist): Likewise.
8130
01339a67
UD
8131 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
8132
3fa10468
UD
8133 * posix/regex_internal.h: Prevent some declarations and definitions
8134 to be seen when used in tests.
8135
ec1e04de
UD
8136 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
8137 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
8138
7a344d1d
UD
8139 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
8140
f8f6ff5d
UD
8141 * config.make.in (datarootdir): Add to shut up configure.
8142
76fca9f1
UD
8143 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
8144 associativity for fully-associative caches.
8145
80e7d6a6
UD
8146 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
8147 requests. Fill on more associativity values for L2.
8148 Patch mostly by Evandro Menezes.
8149
cb5ba304
UD
81502007-08-24 Ulrich Drepper <drepper@redhat.com>
8151
d250df8c
UD
8152 * sysdeps/unix/sysv/linux/x86_64/init-first.c
8153 (_libc_vdso_platform_setup): Avoid using exported variable by using
8154 alias.
8155
88f61aaf
UD
8156 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
8157
cb5ba304 8158 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
cb104bd7 8159 fallocate64 as EXTRA. It is not referenced if the symbol isn't
cb5ba304
UD
8160 defined.
8161
62e1b1f5
UD
81622007-08-23 Ulrich Drepper <drepper@redhat.com>
8163
44b2e581
UD
8164 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
8165 align stack for call if pltexit is to be used.
8166
73e3ff07
UD
8167 [BZ #3924]
8168 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8169 align for function call in case pltexit has to be called later.
8170
62e1b1f5
UD
8171 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8172 implicit atomic operation when storing function pointer.
8173 (_dl_runtime_profile): Likewise.
8174
0008163a
UD
81752007-08-17 Jakub Jelinek <jakub@redhat.com>
8176
8177 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8178 NIS_NOTFOUND.
8179
55ea8790
UD
81802007-08-21 Ulrich Drepper <drepper@redhat.com>
8181
2e0e1a05
UD
8182 [BZ #4566]
8183 * string/strtok.c: Fix typo in comment.
8184
682e4437
UD
8185 [BZ #4582]
8186 * debug/segfault.c: Fix typos in comments.
8187
7d55c9eb
UD
8188 [BZ #4588]
8189 * stdio-common/tempnam.c: Fix comment, it is not checked that
8190 TMPDIR points to a writable directory.
8191
0f8f993c
UD
8192 [BZ #4726]
8193 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
8194 memory allocated for the name server address.
8195
1465dd0f
UD
8196 [BZ #4946]
8197 * nscd/connections.c (handle_request): Using sendfile always
8198 requires that mmap is used for the database.
8199 Patch by Petr Baudis <pasky@suse.cz>.
8200
c44d3bdf
UD
8201 [BZ #4905]
8202 * nscd/hstcache.c (cache_addhst): When reloading an entry which
8203 suddenly has two or more addresses, ignore it and remove the old
8204 entry.
8205
1ce7d80d
UD
8206 [BZ #4814]
8207 * resolv/res_hconf.c: Prepare for compiling outside libc.
8208 * nscd/res_hconf.c: New file.
8209 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
8210 the new file.
8211 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
8212 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
8213
a30d41c1
UD
8214 * nscd/hstcache.c (cache_addhst): Minimal optimization.
8215
45dc3ad7
UD
8216 [BZ #4925]
8217 * debug/pcprofiledump.c: Turn on internationalization by calling
8218 setlocale. Patch mostly by Benno Schulenberg.
8219
55ea8790
UD
8220 [BZ #4936]
8221 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
8222 the state.
8223 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
8224 * iconvdata/bug-iconv5.c: New file.
8225
0b82ff74
UD
82262007-08-04 Carlos O'Donell <carlos@systemhalted.org>
8227
55ea8790 8228 [BZ #4896]
0b82ff74
UD
8229 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
8230 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
8231 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
8232 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
8233 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
8234 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
8235 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
8236 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
8237
ee16a55a
UD
82382007-08-21 Ulrich Drepper <drepper@redhat.com>
8239
8240 [BZ #4937]
8241 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
8242 lookup loop. Suggested by John Reiser.
8243
b211fe0f
JJ
82442007-08-21 Jakub Jelinek <jakub@redhat.com>
8245
8246 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
8247
fb84593c
UD
82482007-08-20 Ulrich Drepper <drepper@redhat.com>
8249
8250 * csu/libc-start.c: Don't handle VDSO_SETUP here.
8251 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
8252 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
8253 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
8254 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
8255 to...
8256 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
8257
b83fb35c
UD
82582007-08-18 Ulrich Drepper <drepper@redhat.com>
8259
8260 * po/nl.po: Update from translation team.
8261
20806a70
AJ
82622007-08-16 Andreas Jaeger <aj@suse.de>
8263
8264 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
f00d47a3 8265 Reported by Peter Festner <peter.festner@ewetel.net>.
20806a70 8266
42282d57
JJ
82672007-08-17 Jakub Jelinek <jakub@redhat.com>
8268
8269 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
8270
8a501135
JJ
82712007-08-16 Jakub Jelinek <jakub@redhat.com>
8272
cb84d1e4
JJ
8273 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
8274 to check for undefined symbols.
8275
91ddd9c4
JJ
8276 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
8277 If the syscall fails, set errno to the actual returned error number
8278 rather than EINVAL.
8279 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
8280 arguments are incorrect, set errno to EINVAL, if the syscall
8281 fails, set errno to the actual returned error number.
8282
18915760
JJ
8283 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
8284 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
8285
8a501135
JJ
8286 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
8287 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
8288 file.
8289 (ASI_PNF, ASI_BLK_P): Don't define.
8290 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
8291 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
8292 file.
8293 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
8294 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
8295 file.
8296
e4720b0e
JJ
82972007-08-15 Jakub Jelinek <jakub@redhat.com>
8298
8299 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
8300 FE_UNDERFLOW on Niagara CPUs.
8301
8302 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
8303 exceptions.
8304
702a9414
JJ
83052007-08-14 Jakub Jelinek <jakub@redhat.com>
8306
467d1345
JJ
8307 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
8308 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
8309 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
8310 flush should be used or not inside of the function.
8311 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
8312
8313 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
8314 __thread_start): Use HIDDEN_JUMPTARGET.
8315 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
8316 __thread_start): Likewise.
8317 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
8318
702a9414
JJ
8319 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
8320 Add libc_hidden_proto.
8321 (STRTOF): Add libc_hidden_proto.
8322 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
8323 (strtold_l, wcstold_l): Use them as second argument for
8324 long_double_symbol.
8325
c6c8f0ec
UD
83262007-08-14 Ulrich Drepper <drepper@redhat.com>
8327
8328 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
8329
5e88abf9
UD
83302007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8331
8332 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
8333
fc4819b0
UD
83342007-08-14 Ulrich Drepper <drepper@redhat.com>
8335
8336 * po/bg.po: New file. From the translation team.
8337
22502ea2
UD
83382007-08-13 Jakub Jelinek <jakub@redhat.com>
8339
8340 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
8341 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
8342 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
8343 when each feature was introduced.
8344
8345 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
8346 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
8347 (CHECK_HASH): New macro.
8348 (PREPARE_VERSION): Use it.
8349
8350 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
8351 prototype if not __ASSUME_PSELECT.
8352 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
8353 prototype if not __ASSUME_PPOLL.
8354
8355 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
8356
8357 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
8358 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
8359 is defined.
8360
9c6f6953
UD
83612007-08-13 Ulrich Drepper <drepper@redhat.com>
8362
8363 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8364 (_libc_vdso_platform_setup): If vDSO is not available point
8365 __vdso_gettimeofday to the vsyscall.
8366 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
8367 __vdso_gettimeofday instead of vsyscall.
8368
f8de5057
UD
83692007-08-13 Jakub Jelinek <jakub@redhat.com>
8370
8371 * nscd/servicescache.c: Include kernel-features.h.
8372 * nscd/gai.c: Likewise.
8373 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8374 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8375 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
8376 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
8377 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
8378 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
8379 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
8380 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
8381 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
8382
3c87d79d
UD
83832007-08-12 Ulrich Drepper <drepper@redhat.com>
8384
ea37207a
UD
8385 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
8386 and _dl_get_origin defines anymore.
8387
4eb375fe
UD
8388 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
8389 Build fix for systems which might lack POSIX timer support.
8390
3c87d79d
UD
8391 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8392 (_libc_vdso_platform_setup): Mangle function pointers before storing
8393 them.
8394 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
8395 Demangle vdso pointer before use.
8396 (INTERNAL_VSYSCALL): Likewise.
8397
8398 * elf/cache.c (primes): Mark as const.
8399 Noted by Roland McGrath.
8400
27d9ffda
UD
84012007-08-01 Andreas Jaeger <aj@suse.de>
8402 Jakub Jelinek <jakub@redhat.com>
8403
8404 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
8405 (options): Add option.
8406 (parse_opt): Handle option.
8407 (manual_link): Adjust process_file caller. Call implicit_soname.
8408 (search_dir): Formatting. Use and populate auxiliary cache.
8409 (main): Load and save auxiliary cache.
8410 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
8411 stat64 from fstat64 to caller.
8412 (implicit_soname): New function.
8413 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
8414 leave *soname as NULL.
8415 * elf/cache.c: Include libgen.h.
8416 (print_entry, print_cache, compare, save_cache, add_to_cache):
8417 Formatting and cleanups.
8418 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
8419 aux_cache_file): New structures.
8420 (AUX_CACHEMAGIC): Define.
8421 (primes): New array.
8422 (aux_hash_size, aux_hash): New variables.
8423 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
8424 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
8425 load_aux_cache, save_aux_cache): New functions.
8426 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
8427 (init_aux_cache, search_aux_cache, add_to_aux_cache,
8428 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
8429 (process_file): Adjust prototype.
8430
8d944b0f
UD
84312007-08-12 Jakub Jelinek <jakub@redhat.com>
8432
8433 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
8434 with __need_size_t.
8435
75fb247e
UD
84362007-08-12 Ulrich Drepper <drepper@redhat.com>
8437
fb86328a
UD
8438 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
8439 r_found_version structure as second parameter.
8440 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
8441 (_dl_vdso_vsym): Change type of second parameter accordingly.
8442 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
8443 (_libc_vdso_platform_setup): Adjust.
974a1f0f 8444 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
fb86328a
UD
8445 (_libc_vdso_platform_setup): Likewise.
8446
75fb247e
UD
8447 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
8448 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
8449 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
8450 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
8451 * csu/libc-start.c: Pretty printing.
8452 Use VDSO_SETUP if defined.
8453 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
8454 and let generic code call into _libc_vdso_platform_setup.
8455 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
8456 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
8457 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
8458 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
8459 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
8460 for GLIBC_PRIVATE.
8461 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
8462 (sysdep_rountines): Add dl-vdso.
8463
8464 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
8465 of routines.
8466
8467 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
8468 attribute_hidden to __vdso_gettimeofday prototype.
8469
9229b83e
RM
84702007-08-12 Roland McGrath <roland@redhat.com>
8471
8472 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
8473 From: Karl Berry <karl@freefriends.org>.
8474
4503061f
UD
84752007-08-11 Ulrich Drepper <drepper@redhat.com>
8476
8477 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
8478 an atime update for the files we read.
8479
d7e23b02
UD
84802007-08-10 Ulrich Drepper <drepper@redhat.com>
8481
7cf89e95
UD
8482 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
8483
9d169bb3 8484 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
d7e23b02
UD
8485 instead of mkstemp.
8486
8487 * misc/Makefile (routines): Add mkostemp and mkostemp64.
8488 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
8489 * misc/mkostemp.c: New file.
8490 * misc/mkostemp64.c: New file.
8491 * stdlib/stdlib.h: Declare the new functions.
8492 * sysdeps/posix/tempname.c: Add new parameter which is added to
8493 the flags for open. Remove __GT_BIGFILE handling.
8494 * stdio-common/tempname.c: Likewise.
8495 * include/stdio.h: Adjust __gen_tempname prototype.
8496 Renumber __GT_* constants.
8497 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
8498 * misc/mkdtemp.c: Likewise.
8499 * misc/mkstemp.c: Likewise.
8500 * misc/mkstemp64.c: Likewise.
8501 * misc/mktemp.c: Likewise.
8502 * stdio-common/tempnam.c: Likewise.
8503 * stdio-common/tmpfile.c: Likewise.
8504 * stdio-common/tmpfile64.c: Likewise.
8505 * stdio-common/tmpnam.c: Likewise.
8506 * stdio-common/tmpnam_r.c: Likewise.
8507
22532966
RM
85082007-08-10 Roland McGrath <roland@frob.com>
8509
8510 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
8511 New macros.
8512 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
8513 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8514
673876e6
UD
85152007-08-10 Ulrich Drepper <drepper@redhat.com>
8516
aa132749
UD
8517 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
8518 possible.
8519 * nss/nss_files/files-alias.c (internal_setent): Likewise.
8520 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
8521 * nss/nss_files/files-have_o_cloexec.c: New file.
8522
22532966 8523 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
673876e6
UD
8524 available.
8525
1e286653
JJ
85262007-08-10 Jakub Jelinek <jakub@redhat.com>
8527
8528 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
8529 ___new_wcstold_l): New weak aliases.
8530 (strtold_l, wcstold_l): Use them as second argument for
8531 long_double_symbol.
8532
f07f72f3
UD
85332007-08-09 Ulrich Drepper <drepper@redhat.com>
8534
6479496a
UD
8535 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
8536 register in test for error.
8537
c4adefbd
UD
8538 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
8539 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
8540
f07f72f3
UD
8541 * po/sv.po: Update from translation team.
8542
eef38c28
RM
85432007-08-06 Roland McGrath <roland@redhat.com>
8544
773e305e
RM
8545 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
8546 Remove __strto*_l inlines.
8547 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
8548 * stdlib/strtod.c: Add libc_hidden_def.
8549 * stdlib/strtod_l.c: Likewise.
8550 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
8551 for __new_strtold and __new_wcstold.
8552 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
8553 __STRTOF, STRTOF.
8554 * stdlib/strtol.c: Add libc_hidden_def.
8555 * stdlib/strtol_l.c: Likewise.
8556 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
8557 strtoq.
8558
8559 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
8560
8561 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
8562 * scripts/data/localplt-generic.data: ... here.
8563 * elf/Makefile (check-data): Get generic file if no other.
8564 ($(objpfx)check-localplt.out): Make target unconditional.
8565
eef38c28
RM
8566 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
8567 Use ElfW(Nhdr).
8568
742df3a4
UD
85692007-08-05 Ulrich Drepper <drepper@redhat.com>
8570
8571 * po/zh_CN.po: Updated translation from translation team.
8572
0470fa46
JJ
85732007-08-05 Jakub Jelinek <jakub@redhat.com>
8574
8575 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
8576 Don't use CGOTSETUP and CGOTRESTORE macros.
8577
b5075bdc
RM
85782007-08-04 Roland McGrath <roland@redhat.com>
8579
8580 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
8581
9accc268
JJ
85822007-08-04 Jakub Jelinek <jakub@redhat.com>
8583
8584 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
8585 __extension__ around the whole statement expression.
8586
220ae3ef
UD
85872007-08-04 Ulrich Drepper <drepper@redhat.com>
8588
c8ccd8e3
UD
8589 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
8590 elements during initialization.
8591
220ae3ef
UD
8592 * po/pl.po: Updated translation from translation team.
8593 * po/tr.po: Likewise.
11960f7f 8594 * po/nl.po: Likewise.
220ae3ef 8595
2fb20667
UD
85962007-08-03 Ulrich Drepper <drepper@redhat.com>
8597
8598 * rt/aio.h: Add __nonnull attributes.
8599
ce31a3b1
UD
86002007-08-03 Jakub Jelinek <jakub@redhat.com>
8601
64f6281c
UD
8602 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
8603 * stdlib/Makefile (tests): Add tst-strtod5.
8604 (tst-strtod5-ENV): New.
8605 * stdlib/tst-strtod5.c: New file.
8606
ce31a3b1
UD
8607 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
8608 failed.
8609 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
8610 on failure.
8611
8612 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
8613 allocated.
8614
754980e4
JJ
86152007-08-03 Jakub Jelinek <jakub@redhat.com>
8616
8617 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
8618 numbers.
8619
497af0cb
UD
86202007-08-02 Ulrich Drepper <drepper@redhat.com>
8621
cbf0489b
UD
8622 * io/Makefile (aux): Add have_o_cloexec.
8623 * include/fcntl.h: Declare __have_o_cloexec.
8624 * io/have_o_cloexec.c: New file.
8625 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
8626 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
8627 fcntl call if not necessary.
8628 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
8629 of local variable.
8630
fa39685d
UD
8631 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
8632 Avoid memset, add explicit initialization.
8633 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
8634 to the end and change into zero-sized array.
8635 Move lock member to fill a hole on 64-bit platforms.
9b2e9577
UD
8636
8637 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
8638 inline functions.
8639 * include/stdlib.h: Add __strto*_internal prototypes here.
8640 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
8641 inline functions.
8642 * include/wchar.h: Add __wcsto*_internal prototypes.
8643 * sysdeps/generic/inttypes.h: No need to protect the declaration
8644 of the __strto*_internal and __wcsto*_internal members here.
8645
497af0cb
UD
8646 * rt/mqueue.h: Change const to __const and add nonnull attributes.
8647
d17a8cf0
RM
86482007-08-02 Roland McGrath <roland@redhat.com>
8649
8650 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
8651 $(inst_bindir)/getconf if possible.
8652
8653 * posix/Makefile ($(objpfx)getconf.speclist): New target.
8654 (generated): Add it.
8655 ($(inst_libexecdir)/getconf): Use it.
8656
0abf17de
UD
86572007-08-01 Ulrich Drepper <drepper@redhat.com>
8658
8659 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
8660 /proc is faster and sufficient. /sys is still needed for
8661 __get_nprocs_conf.
8662
5e0923ab
UD
86632007-08-01 Jakub Jelinek <jakub@redhat.com>
8664
8665 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
8666 syscall as __fallocate64.
8667 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
8668 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
8669
1475e201
UD
86702007-07-30 Jakub Jelinek <jakub@redhat.com>
8671
8672 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
8673 value.
8674
8675 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
8676 if off_t is different rank from size_t.
8677
8678 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
8679 uw_frame_state_for): Avoid type punning warnings.
8680 * sysdeps/generic/unwind-dw2-fde-glibc.c
8681 (_Unwind_IteratePhdrCallback): Likewise.
8682 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
8683 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
8684 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
8685 pointers.
8686
e076bece
UD
86872007-07-31 Ulrich Drepper <drepper@redhat.com>
8688
9506149a
UD
8689 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
8690 total processors using sysfs.
8691 (__get_nprocs): Use sysfs to determine which processors are online.
e076bece 8692
bbeaaa84
JJ
86932007-07-31 Jakub Jelinek <jakub@redhat.com>
8694
09881398
JJ
8695 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
8696 syscall arguments count.
8697
bbeaaa84
JJ
8698 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
8699
087ef75f
RM
87002007-07-30 Roland McGrath <roland@redhat.com>
8701
8702 * manual/libc.texinfo: Update copyrights, formatting magic, and
8703 @dircategory. From Karl Berry <karl@freefriends.org>.
8704
44f08a6e
UD
87052007-07-29 Ulrich Drepper <drepper@redhat.com>
8706
eafaae72
UD
8707 [BZ #4860]
8708 * io/Makefile (headers): Add bits/fcntl2.h.
8709
c5705565
UD
8710 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
8711 using gcc builtin.
8712 (__CPU_EQUAL_S): Likewise.
8713
44f08a6e
UD
8714 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
8715 (tests): Add tst-cpuset.
8716 * posix/sched_cpualloc.c: New file.
8717 * posix/sched_cpufree.c: New file.
8718 * posix/tst-cpuset.c: New file.
8719 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
8720 GLIBC_2.7.
8721 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
8722 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
8723 macros. Define CPU_*_S macros.
8724
8f5e1400
UD
87252007-07-28 Ulrich Drepper <drepper@redhat.com>
8726
5b74caf6
UD
8727 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
8728 entry.
8729
a26d01bb 8730 [BZ #4858]
8f5e1400
UD
8731 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
8732 #.0g and value rounded to 1.0.
8733 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
8734
085a4412
UD
87352007-07-26 Jakub Jelinek <jakub@redhat.com>
8736
cedb4109
UD
8737 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
8738 for int_frac_digits and frac_digits.
8739
8740 * login/logout.c (logout): Avoid aliasing violation.
8741 * login/logwtmp.c (logwtmp): Likewise.
8742
8743 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
8744
9d9febc7
UD
8745 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
8746 to avoid warning.
8747 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
8748 warning.
8749 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
8750 warning.
8751 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
8752 to avoid warnings.
8753
701666b7
UD
8754 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
8755 void **.
8756 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
8757
8758 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
8759 char * to avoid warning.
8760 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
8761
8762 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
8763
8764 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
8765 allocate_arrays): Cast second argument to charmap_find_symbol
8766 to char * to avoid warnings.
8767
8768 * locale/programs/repertoire.c (repertoire_new_char): Change
8769 from_nr, to_nr and cnt to unsigned long, adjust printf format
8770 string.
8771
8772 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
8773 Cast second argument to new_element to char * to avoid warnings.
8774
8775 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
8776
8777 * intl/gettextP.h (struct loaded_domain): Change plural to const
8778 struct expression *.
8779 * intl/plural-eval.c (plural_eval): Change first argument to
8780 const struct expression *.
8781 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
8782 argument to const struct expression **.
8783 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
8784 prototypes.
8785 * intl/loadmsgcat (_nl_unload_domain): Cast away const
8786 in call to __gettext_free_exp.
8787
8788 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
8789 unitialized wstring/wpattern var warnings.
8790
8791 * posix/runtests.c (struct a_test): Make data field const char *.
8792
8793 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
8794 vars if not LDBL_MANT_DIG >= 106.
8795
8796 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
8797
8798 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
8799 __find_specmb to avoid warning.
8800
8801 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
8802
8803 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
8804 to avoid warnings.
8805
8806 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
8807 initializer.
8808
8809 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
8810 tv var when it will be actually used.
8811
8812 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
8813 to avoid warnings.
8814
085a4412
UD
8815 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
8816 char array resp. pointer.
8817 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
8818 char array.
8819 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
8820 to const unsigned char **.
8821 (ucs4_to_cns11643): Change second argument to unsigned char *.
8822 * iconvdata/euc-tw.c (BODY): Change endp type to
8823 const unsigned char *.
8824 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
8825 to unsigned char *.
8826 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
8827 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
8828 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
8829 types to unsigned char pointers/arrays instead of char.
8830 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
8831 to unsigned char *.
8832 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
8833 * iconvdata/jis0212.h: Include assert.h.
8834 (ucs4_to_jisx0212): Change second argument to unsigned char *.
8835 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
8836 of trying to handle that.
8837 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
8838 shut up a warning.
8839 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
8840 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
8841 two dimensional const unsigned char arrays.
8842 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
8843 Initialize endp to inptr to shut up a warning.
8844
fa69dc9c
UD
88452007-07-20 Jakub Jelinek <jakub@redhat.com>
8846
ae1ad762
UD
8847 [BZ #4772]
8848 * time/strptime_l.c (__strptime_internal): Silently ignore
8849 strftime modifiers and field width in recursive calls.
8850
fa69dc9c
UD
8851 * include/time.h (enum ptime_locale_status): Remove.
8852 (__strptime_internal): Remove decided and era_cnt arguments,
8853 add statep argument.
8854 * time/strptime_l.c (__strptime_internal): Remove decided
8855 and era_cnt arguments, add statep argument. Don't recompute
8856 any fields in recursive calls, only update caller's tm
8857 and state, if recursive call fails, don't change tm nor
8858 any state.
8859 (get_alt_number): Adjust.
8860 (recursive): Adjust caller.
8861 (strptime): Likewise.
8862 * time/strptime.c (strptime): Likewise.
8863
7b503bcc
UD
88642007-07-19 Jakub Jelinek <jakub@redhat.com>
8865
8866 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
8867 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
8868 if from and to charsets are the same.
8869 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
8870 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
8871 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
8872
88732007-07-17 Jakub Jelinek <jakub@redhat.com>
8874
8875 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
8876 Don't define wint_t when __need_mbstate_t unless it
8877 is necessary.
8878 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
8879 in the typedef if possible.
8880 * wctype/wctype.h (wint_t): Define by including
8881 wchar.h with __need_wint_t instead of including stddef.h
8882 with __need_wint_t and as fallback definining it ourselves.
8883 * iconv/gconv.h (__need_wint_t): Define before including
8884 wchar.h.
8885 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
8886 or _GLIBCPP_USE_WCHAR_T.
8887 (__need_wchar_t): Don't define
8888 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8889 (__need_wint_t): Don't define before including stddef.h,
8890 define before including wchar.h only if _LIBC or
8891 _GLIBCPP_USE_WCHAR_T.
8892 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8893 * sysdeps/mach/hurd/_G_config.h: Likewise.
8894 * sysdeps/generic/_G_config.h: Likewise.
8895 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
8896 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
8897 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
8898 if _LIBC or _GLIBCPP_USE_WCHAR_T.
8899
a95a608f
UD
89002007-07-28 Ulrich Drepper <drepper@redhat.com>
8901
8902 * sysdeps/posix/posix_fallocate64.c: Undefine
8903 __posix_fallocate64_l64 before alias handling.
8904 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
8905 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
8906 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
8907 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
8908
8909 * io/tst-posix_fallocate.c: Include <fcntl.h>.
8910
89112007-07-23 Jakub Jelinek <jakub@redhat.com>
8912
8913 * locale/programs/ld-collate.c (atwc): New variable.
8914 (add_to_tablewc): New toplevel function, moved from collate_output.
8915 (collate_output): Remove add_to_tablewc nested function.
8916
8917 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
8918 (name_insert): New function.
8919 (write_output): Remove hash_table and hash_size vars and name_insert
8920 nested function.
8921
80d4c3b0
RM
89222007-07-24 Roland McGrath <roland@redhat.com>
8923
8924 * Makerules (install-others-programs-nosubdir): New target.
8925 (install-no-libc.a-nosubdir): Depend on it.
8926
8927 * iconv/Makefile (install-others-programs): Set this instead of
8928 install-others.
8929 * login/Makefile (install-others-programs): Likewise.
8930 * posix/Makefile (install-others-programs): Likewise.
8931
8932 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
8933 dependencies.
8934
c1bf9f14
UD
89352007-07-23 Ulrich Drepper <drepper@redhat.com>
8936
8937 * io/Makefile (tests): Add tst-posix_fallocate.
8938 * io/tst-posix_fallocate.c: New file.
8939
8940 * sysdeps/unix/sysv/linux/kernel-features.h: Define
8941 __ASSUME_FALLOCATE.
8942
2320270c
RM
89432007-07-22 Roland McGrath <roland@frob.com>
8944
3dadfa7e
RM
8945 * hurd/getdport.c: Add missing copyright year update.
8946
2320270c
RM
8947 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
8948 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
8949
cc783763
UD
89502007-07-22 Ulrich Drepper <drepper@redhat.com>
8951
c942388d
UD
8952 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
8953
cc783763
UD
8954 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
8955 O_CLOEXEC is needed.
8956 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
8957 Avoid additional fcntl to set O_CLOEXEC if not needed.
8958 * nis/nss_compat/compat-initgroups.c: Likewise.
8959 * nis/nss_compat/compat-pwd.c: Likewise.
8960 * nis/nss_compat/compat-spwd.c: Likewise.
8961
610903b0
RM
89622007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
8963
3dadfa7e 8964 [BZ #3665]
5c3d7832
RM
8965 * manual/errno.texi: Change ECANCELED value to 119.
8966
3dadfa7e 8967 [BZ #4610]
610903b0
RM
8968 * mach/lock-intern.h: Include <sys/cdefs.h>.
8969
3dadfa7e 8970 [BZ #4178]
610903b0
RM
8971 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
8972 reading A.
8973
3dadfa7e
RM
8974 [BZ #4126]
8975 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
8976 to __sigsuspend.
610903b0
RM
8977
8978 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
8979
89802006-06-13 Thomas Schwinge <tschwinge@gnu.org>
8981
8982 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
8983 `__ASSEMBLER__'.
8984 * sysdeps/mach/hurd/i386/tls.h: Likewise.
8985
acf79996
UD
89862007-07-21 Ulrich Drepper <drepper@redhat.com>
8987
dde0763a
UD
8988 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
8989 descriptor received from nscd.
8990
acf79996
UD
8991 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
8992
8993 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
8994 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8995 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8996 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8997 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8998 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8999
00d26929
JJ
90002007-07-20 Jakub Jelinek <jakub@redhat.com>
9001
403445d7
JJ
9002 [BZ #4816]
9003 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9004
00d26929
JJ
9005 [BZ #4813]
9006 * login/forkpty.c (forkpty): Close master and slave fds on
9007 fork failure. Patch by
9008 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9009
087722b8
UD
90102007-07-18 Jakub Jelinek <jakub@redhat.com>
9011
9012 * include/features.h (__USE_ISOC95): New define.
9013 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9014 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9015 for -std=iso9899:199409.
9016 * CONFORMANCE: Remove comments about unsupported AMD1.
9017
b042b023
UD
90182007-07-17 Jakub Jelinek <jakub@redhat.com>
9019
9020 * sysdeps/ia64/sched_cpucount.c: New file.
9021 * sysdeps/powerpc/sched_cpucount.c: New file.
9022
8381e467
UD
9023 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9024 __BEGIN_DECLS/__END_DECLS around the prototype.
9025 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
9026 pointer to const cpu_set_t.
9027
50e16f85
UD
9028 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9029 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9030 __need_size_t and include stddef.h.
9031 * sysvipc/sys/msg.h: Likewise.
9032 * posix/sched.h: Likewise.
9033 * hurd/hurd/signal.h (__need_size_t): Define.
9034
9035 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9036 neither does signal.h in pedantic ISO C namespaces. stdio.h
9037 no longer defines wint_t or wchar_t.
9038
b257c726
UD
9039 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9040 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9041 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9042 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9043 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9044 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9045 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9046 * debug/printf_chk.c (__printf_chk): Likewise.
9047 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9048 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9049
9050 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9051 Define.
9052
d5078b9f
UD
9053 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9054 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9055
1c3e748e
UD
90562007-07-16 Jakub Jelinek <jakub@redhat.com>
9057
9058 [BZ #4792]
9059 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9060 * malloc/malloc.h (realloc): Likewise.
9061
4e425301
UD
9062 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9063 if one of proc_file_chain streams has that fileno.
9064 * stdio-common/Makefile (tests): Add tst-popen2.
9065 * stdio-common/tst-popen2.c: New test.
9066
2e2efe65
RM
90672007-07-14 Jakub Jelinek <jakub@redhat.com>
9068
9069 * elf/ldconfig.c: Allow GPLv2 or any later version.
9070 * elf/readlib.c: Likewise.
9071 * elf/chroot_canon.c: Likewise.
9072 * elf/cache.c: Likewise.
9073 * nscd/mem.c: Likewise.
9074 * nscd/getpwuid_r.c: Likewise.
9075 * nscd/grpcache.c: Likewise.
9076 * nscd/aicache.c: Likewise.
9077 * nscd/getsrvbynm_r.c: Likewise.
9078 * nscd/nscd.c: Likewise.
9079 * nscd/servicescache.c: Likewise.
9080 * nscd/getsrvbypt_r.c: Likewise.
9081 * nscd/initgrcache.c: Likewise.
9082 * nscd/gethstbyad_r.c: Likewise.
9083 * nscd/gethstbynm2_r.c: Likewise.
9084 * nscd/getgrnam_r.c: Likewise.
9085 * nscd/nscd_setup_thread.c: Likewise.
9086 * nscd/getpwnam_r.c: Likewise.
9087 * nscd/gai.c: Likewise.
9088 * nscd/connections.c: Likewise.
9089 * nscd/dbg_log.c: Likewise.
9090 * nscd/cache.c: Likewise.
9091 * nscd/hstcache.c: Likewise.
9092 * nscd/nscd_conf.c: Likewise.
9093 * nscd/getgrgid_r.c: Likewise.
9094 * nscd/pwdcache.c: Likewise.
9095 * catgets/gencat.c: Likewise.
9096 * locale/programs/linereader.h: Likewise.
9097 * locale/programs/locarchive.c: Likewise.
9098 * locale/programs/ld-paper.c: Likewise.
9099 * locale/programs/locfile-kw.h: Likewise.
9100 * locale/programs/ld-address.c: Likewise.
9101 * locale/programs/xmalloc.c: Likewise.
9102 * locale/programs/ld-time.c: Likewise.
9103 * locale/programs/localedef.c: Likewise.
9104 * locale/programs/simple-hash.c: Likewise.
9105 * locale/programs/xstrdup.c: Likewise.
9106 * locale/programs/ld-numeric.c: Likewise.
9107 * locale/programs/locfile-kw.gperf: Likewise.
9108 * locale/programs/ld-collate.c: Likewise.
9109 * locale/programs/charmap-kw.gperf: Likewise.
9110 * locale/programs/charmap.h: Likewise.
9111 * locale/programs/charmap-kw.h: Likewise.
9112 * locale/programs/config.h: Likewise.
9113 * locale/programs/locfile.c: Likewise.
9114 * locale/programs/ld-ctype.c: Likewise.
9115 * locale/programs/charmap.c: Likewise.
9116 * locale/programs/ld-messages.c: Likewise.
9117 * locale/programs/repertoire.h: Likewise.
9118 * locale/programs/locale.c: Likewise.
9119 * locale/programs/ld-name.c: Likewise.
9120 * locale/programs/linereader.c: Likewise.
9121 * locale/programs/locfile.h: Likewise.
9122 * locale/programs/3level.h: Likewise.
9123 * locale/programs/ld-monetary.c: Likewise.
9124 * locale/programs/ld-measurement.c: Likewise.
9125 * locale/programs/charmap-dir.c: Likewise.
9126 * locale/programs/ld-identification.c: Likewise.
9127 * locale/programs/localedef.h: Likewise.
9128 * locale/programs/charmap-dir.h: Likewise.
9129 * locale/programs/repertoire.c: Likewise.
9130 * locale/programs/simple-hash.h: Likewise.
9131 * locale/programs/ld-telephone.c: Likewise.
9132 * locale/programs/locale-spec.c: Likewise.
9133 * locale/programs/locfile-token.h: Likewise.
9134 * posix/getconf.c: Likewise.
9135 * iconv/dummy-repertoire.c: Likewise.
9136 * iconv/iconv_charmap.c: Likewise.
9137 * iconv/iconvconfig.c: Likewise.
9138 * iconv/iconv_prog.c: Likewise.
9139 * malloc/memusagestat.c: Likewise.
9140 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
9141
84c23a3d
RM
91422007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9143
9144 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
9145 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
9146 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
9147 check for the first argument.
9148
1c298d08
UD
91492007-07-12 Jakub Jelinek <jakub@redhat.com>
9150
9151 [BZ #4775]
9152 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
9153 (__tgmath_real_type): Fix if expr is const int or other const
9154 qualified integral type.
9155 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
9156 expressions and handle const qualified arguments.
9157 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
9158 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9159 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
9160 statement expressions.
9161 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
9162 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
9163 (__TGMATH_UNARY_IMAG): Define.
9164 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
9165 * math/Makefile (tests): Add test-tgmath2.
9166 (CFLAGS-test-tgmath2.c): Add.
9167 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9168 count_cfloat, count_cldouble): New variables.
9169 (NCCALLS): Define.
9170 (main): Check number of complex calls as well.
9171 (F(compile_test)): Add complex tests and tests with const qualified
9172 arguments.
9173 (y, z, ccount): Define.
9174 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9175 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9176 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9177 F(cproj)): New functions.
9178 * math/test-tgmath2.c: New test.
9179
91802007-07-11 Jakub Jelinek <jakub@redhat.com>
9181
9182 [BZ #4776]
9183 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9184 RPATH etc. as "/" rather than "", don't segfault on empty paths,
9185 instead output ".".
9186 * dlfcn/Makefile (distribute): Add glreflib3.c.
9187 (module-names): Add glreflib3.
9188 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
9189 glreflib1.so.
9190 (LDFLAGS_glreflib3.so): New.
9191 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
9192 glreflib1.so.
9193 * dlfcn/glreflib3.c: New file.
9194
9195 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
9196 returned -1, return NULL.
9197 * intl/explodename.c (_nl_explode_name): Return -1 if
9198 _nl_normalize_codeset failed.
9199
a88f47a7
UD
92002007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
9201
9202 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
9203 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
9204 and avoid branch misspredicts for > 31 bytes memset case.
9205 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
9206 Remove toc ref to __cache_line_size.
9207
9208 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
9209 to get ISA-V2.0 branch hints.
9210 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
9211 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
9212 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
9213 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
9214 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
9215 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
9216 Remove toc ref to __cache_line_size.
9217
9218 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
9219 Include math_ldbl_opt.h.
9220
f98c2d06
UD
92212007-07-10 Ulrich Drepper <drepper@redhat.com>
9222
9223 [BZ #4773]
9224 * time/strptime_l.c (__strptime_internal): Implement greedy
9225 matching of weekday and month names.
9226
cec5991f
RM
92272007-07-09 Roland McGrath <roland@redhat.com>
9228
9229 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
9230 (ELF_NOTE_ABI): Use it.
9231 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
9232
8c1dcd26
UD
92332007-07-09 Ulrich Drepper <drepper@redhat.com>
9234
9235 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
9236 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9237
c2c7bd3f
UD
92382007-07-07 Ulrich Drepper <drepper@redhat.com>
9239
9240 [BZ #4745]
0923a2c8
UD
9241 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
9242 in loop to look for conversion specifier to avoid testing of
9243 wrong errno value.
9244 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
c2c7bd3f 9245 * stdio-common/bug18.c: New file.
0923a2c8
UD
9246 * stdio-common/bug18a.c: New file.
9247 * stdio-common/bug19.c: New file.
9248 * stdio-common/bug19a.c: New file.
c2c7bd3f 9249
4facf4af
RM
92502007-07-05 Mike Frysinger <vapier@gentoo.org>
9251
9252 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
9253 running awk script.
9254
1311e86e
UD
92552007-07-01 Jakub Jelinek <jakub@redhat.com>
9256
9257 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
9258 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
9259 Return NULL if mmap failed instead of asserting it does not.
9260 (calloc): Check for integer overflow.
9261
9262 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
9263 than LONG_MAX / 10.
9264
57c9179c
UD
92652007-07-03 Jakub Jelinek <jakub@redhat.com>
9266
9267 [BZ #4702]
9268 * nis/nss-default.c: Include errno.h.
9269 (init): Preserve errno.
9270
d0b283a8
UD
92712007-07-02 Ulrich Drepper <drepper@redhat.com>
9272
9273 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
9274
34e0bbaf
UD
92752007-06-30 Ulrich Drepper <drepper@redhat.com>
9276
9277 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
9278
92792007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
9280
9281 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
9282
34e0bbaf 92832007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
33516494
UD
9284
9285 * sysdeps/s390/dl-procinfo.c: New file.
9286 * sysdeps/s390/dl-procinfo.h: New file.
9287 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
9288
0e508a6e
UD
92892007-06-29 Jakub Jelinek <jakub@redhat.com>
9290
9291 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
9292 in PT_NOTE segments with multiple notes.
9293 * elf/readelflib.c (process_elf_file): Likewise.
9294
e22c61fb
UD
92952007-06-22 Ulrich Drepper <drepper@redhat.com>
9296
9297 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
9298 ISO C compliant.
9299
e4eb675d
UD
93002007-06-19 Ulrich Drepper <drepper@redhat.com>
9301
9302 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
9303
93042007-06-13 Jakub Jelinek <jakub@redhat.com>
9305
9306 * include/link.h: Don't include rtld-lowlevel.h.
9307 (struct link_map): Remove l_scope_lock.
9308 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
9309 (_dl_scope_free_list): New field (variable) in _rtld_global.
9310 (DL_LOOKUP_SCOPE_LOCK): Remove.
9311 (_dl_scope_free): New prototype.
9312 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
9313 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
9314 (_dl_profile_fixup): Likewise.
9315 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
9316 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
9317 THREAD_GSCOPE_RESET_FLAG around it.
9318 * elf/dl-close.c (_dl_close_worker): Don't use
9319 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
9320 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
9321 scopes were queued or if l_scope_mem has been abandoned.
9322 * elf/dl-open.c (_dl_scope_free): New function.
9323 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
9324 * elf/dl-support.c (_dl_scope_free_list): New variable.
9325 * elf/dl-lookup.c (add_dependency): Remove flags argument.
9326 Remove DL_LOOKUP_SCOPE_LOCK handling.
9327 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
9328 handling.
9329 * elf/dl-object.c (_dl_new_object): Don't use
9330 __rtld_mrlock_initialize.
9331
9be09e06
UD
93322007-06-19 Ulrich Drepper <drepper@redhat.com>
9333
9334 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
9335 to fill in holes
9336 (rtld_global_ro): Likewise.
9337
93382007-06-18 Jakub Jelinek <jakub@redhat.com>
9339
9340 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
9341 Move PT_LOAD checking to...
9342 (_dl_addr_inside_object): ... here, new function.
9343 * elf/dl-sym.c (do_sym): If not l_contiguous,
9344 call _dl_addr_inside_object.
9345 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
9346 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
9347 * elf/dl-open.c (dl_open_worker): Likewise.
9348 (_dl_addr_inside_object): New function if IS_IN_rtld.
9349 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
9350 holes are present or are PROT_NONE protected.
9351 * include/link.h (struct link_map): Add l_contiguous field.
9352 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
9353
ae1ad3ae 93542007-06-18 Jakub Jelinek <jakub@redhat.com>
f00d47a3
AS
9355 Tomas Janousek <tjanouse@redhat.com>
9356 Ulrich Drepper <drepper@redhat.com>
ae1ad3ae
UD
9357
9358 [BZ #4647]
9359 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
9360 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
9361 socket.
9362 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
9363 unused member a bitmap.
9364 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
9365 servers are configured.
9366
3abee0b7
UD
93672007-06-18 Jakub Jelinek <jakub@redhat.com>
9368
9369 * elf/rtld.c (dl_main): Don't call init_tls more than once.
9370
89074592
UD
93712007-06-17 Andreas Schwab <schwab@suse.de>
9372
9373 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
9374
b26e274d
AJ
93752007-06-16 Andreas Jaeger <aj@suse.de>
9376
9377 [BZ #4125]
9378 * sysdeps/unix/sysv/linux/sys/ptrace.h
9379 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
9380 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
89074592 9381 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
b26e274d
AJ
9382 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
9383 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
9384 Define.
9385 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9386 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9387 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9388 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9389
e0d4a4e5
UD
93902007-06-16 Ulrich Drepper <drepper@redhat.com>
9391
9392 [BZ #4599]
9393 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
9394 determining whether there are IPv4/IPv6 addresses, ignore loopback
9395 addresses.
9396
ae8e81f5
JJ
93972007-06-14 Uros Bizjak <ubizjak@gmail.com>
9398
9399 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
9400 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
9401 as the return type. Change type of "r" variable to CMPtype.
9402 * soft-fp/eqsf2.c (__eqsf2): Likewise.
9403 * soft-fp/eqtf2.c (__eqtf2): Likewise.
9404 * soft-fp/gedf2.c (__gedf2): Likewise.
9405 * soft-fp/gesf2.c (__gesf2): Likewise.
9406 * soft-fp/getf2.c (__getf2): Likewise.
9407 * soft-fp/ledf2.c (__ledf2): Likewise.
9408 * soft-fp/lesf2.c (__lesf2): Likewise.
9409 * soft-fp/letf2.c (__letf2): Likewise.
9410 * soft-fp/unorddf2 (__unorddf2): Likewise.
9411 * soft-fp/unordsf2 (__unordsf2): Likewise.
9412 * soft-fp/unordtf2 (__unordtf2): Likewise.
9413
90cd2413
UD
94142007-06-09 Ulrich Drepper <drepper@redhat.com>
9415
9416 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
9417 make sure gcc doesn't mess around with this.
9418
3c457089
UD
94192007-06-08 Ulrich Drepper <drepper@redhat.com>
9420
9421 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
9422
e8b6b64d
UD
94232007-06-08 Jakub Jelinek <jakub@redhat.com>
9424
9425 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
9426 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
9427 at most once per _dl_close_worker.
9428
36dffb22
UD
94292007-06-08 Ulrich Drepper <drepper@redhat.com>
9430
755db8c5
UD
9431 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
9432 __sched_cpucount as const.
9433 * posix/sched_cpucount.c: Adjust.
9434
36dffb22
UD
9435 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
9436 instruction for counting bits.
9437 * sysdeps/x86_64/sched_cpucount.c: New file.
9438
26f56c1c
UD
94392007-06-07 Ulrich Drepper <drepper@redhat.com>
9440
9441 * configure.in: Avoid variable named BASH.
e967d385 9442 * config.make.in: Likewise.
26f56c1c 9443 Patch in part by Mike Frysinger.
835abc5c 9444
26f56c1c 94452007-06-06 Jakub Jelinek <jakub@redhat.com>
47779a7d
JJ
9446
9447 [BZ #4586]
835abc5c
UD
9448 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
9449 pseudo-zeros as zero.
9450 * sysdeps/x86_64/ldbl2mpn.c: New file.
9451 * sysdeps/ia64/ldbl2mpn.c: New file.
9452
7e3706ea
UD
94532007-06-04 Jakub Jelinek <jakub@redhat.com>
9454
9455 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
9456 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
9457 Remove unreachable code at the end.
9458
94592007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
9460
9461 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
9462 ldbl-128ibm in comment.
9463 (fpclassifyl): Correct classification of denormals.
9464 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
9465 return value for MIN denormal. Rewrite using long double math too
9466 correctly handle denormals and canonicalize the results.
9467
94682007-06-05 Jakub Jelinek <jakub@redhat.com>
9469
9470 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
9471 (__mpn_construct_long_double): Fix conversion where result ought
9472 to be smaller than __LDBL_MIN__, or the low double should be
9473 denormal. Fix decision where to negate low double - honor round
9474 to even rules.
9475 * stdio-common/tst-sprintf2.c: Include string.h.
9476 (COMPARE_LDBL): Define.
9477 (TEST): Also test whether a string hexadecimal float representation
9478 can be parsed back to the number.
9479 (main): Add a couple of further tests.
9480
43b76828
UD
94812007-06-04 Jakub Jelinek <jakub@redhat.com>
9482
9483 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
9484 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
9485 is non-zero, but smaller than 2 * __DBL_MIN__.
9486 * stdio-common/tst-sprintf2.c: New test.
9487 * stdio-common/Makefile (tests): Add tst-sprintf2.
9488
9489 * math/test-misc.c (main): Don't run last batch of tests with
9490 IBM long double format.
9491
04067002
UD
94922007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
9493
9494 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
9495 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
9496 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
9497 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
9498 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9499 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
9500 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
9501 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
9502 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
9503 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9504 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
9505 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
9506 New file.
9507 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
9508 New file.
9509 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
9510 New file.
9511 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
9512 New file.
9513 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
9514 New file.
9515 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
9516 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
9517 New file.
9518 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
9519 New file.
9520 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
9521 New file.
9522 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
9523 New file.
9524 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
9525 New file.
9526
95272007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
9528
9529 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
9530 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
9531 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
9532 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
9533 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
9534 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
9535 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
9536 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
9537
95382007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
9539
9540 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
9541 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9542 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
9543 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9544 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
9545 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9546 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
9547 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9548
95492007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
9550
9551 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
9552 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
9553 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
9554 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
9555
95562007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
9557
9558 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
9559 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
9560
95612006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
9562
9563 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
9564 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
9565 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
9566 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
9567
95682006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
9569
9570 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
9571 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
9572
95732006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
9574
9575 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
9576 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
9577
9578 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
9579 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
9580 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
9581 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
9582
95832006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
9584
9585 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
9586 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
9587 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
9588 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
9589
95902006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
9591
9592 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
9593 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
9594 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
9595 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9596 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
9597 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9598
95992006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
9600
9601 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
9602 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
9603 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
9604 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
9605
96062006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
9607
9608 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
9609 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
9610 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
9611 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
9612 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
9613 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
9614 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
9615 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
9616 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
9617 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
9618 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
9619 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
9620 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
9621 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
9622 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
9623 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
9624
96252006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
9626
9627 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
9628 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
9629
96302007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
9631
9632 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
9633 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
9634
96352007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
9636
9637 * sysdeps/powerpc/powerpc32/970/Implies: New file.
9638 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
9639 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
9640 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
9641 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
9642 * sysdeps/powerpc/powerpc64/970/Implies: New file.
9643 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
9644 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
9645 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
9646 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
9647
96482007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
9649
9650 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
9651
96522007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
9653
9654 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
9655 branch miss-predicts. Ensure that cache line crossing does not impact
9656 dispatch grouping.
9657
96582006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
9659
9660 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
9661 "../../powerpc32/power4/memcopy.h".
9662 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
9663 "../../powerpc32/power4/wordcopy.c".
9664
96652006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
9666
9667 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
9668 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
9669 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
9670 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
9671 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
9672 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
9673
96742006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
9675
9676 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
9677
96782006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
9679
9680 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
9681 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
9682 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
9683 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
9684 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
9685 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
9686 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
9687 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
9688
96892006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
9690
9691 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
9692
96932006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
9694
9695 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
9696 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
9697 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
9698 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
9699 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
9700 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
9701 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
9702
5b55e1d3
RM
97032007-05-29 Roland McGrath <roland@redhat.com>
9704
9705 * po/Makefile (po-sed-cmd): New variable.
9706 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
9707
5da4373c
UD
97082007-05-29 Ulrich Drepper <drepper@redhat.com>
9709
4b5e7304
UD
9710 * crypt/md5-crypt.c: Fix comment.
9711
5da4373c
UD
9712 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
9713 of crashing. When this is the case or if the reply is malformed,
9714 don't try to close the new file descriptor since it does not
9715 exist.
9716 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
9717
40f57573
UD
97182007-05-28 Jakub Jelinek <jakub@redhat.com>
9719
9720 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
9721 if __NR_utimensat is not defined.
9722
6df7ffad
UD
97232007-05-26 Ulrich Drepper <drepper@redhat.com>
9724
9725 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
9726
47ad95ab
UD
97272007-05-25 Jakub Jelinek <jakub@redhat.com>
9728
9729 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
9730 (open): Fix comment typos. Don't call __open_2 if flags
9731 is a compile time constant without O_CREAT.
9732 (__open64_2): Add nonnull attribute.
9733 (open64): Fix comment typos. Don't call __open64_2 if flags
9734 is a compile time constant without O_CREAT.
9735 (__openat_2): Add nonnull attribute, fix nonnull attribute
9736 on redirect.
9737 (openat): Fix comment typos. Don't call __openat_2 if flags
9738 is a compile time constant without O_CREAT.
9739 (__openat64_2): Add nonnull attribute, fix nonnull attribute
9740 on redirect.
9741 (openat64): Fix comment typos. Don't call __openat64_2 if flags
9742 is a compile time constant without O_CREAT.
9743
ddfd0535
UD
97442007-05-24 Ulrich Drepper <drepper@redhat.com>
9745
9746 * Makerules (sysd-rules): Define PTW for ptw-* files.
9747 * Versions: Define GLIBC_2.7 for libc.
9748 * include/stdio.h: Declare __fortify_fail.
9749 * debug/fortify_fail.c: New file.
9750 * debug/Makefile (routines): Add fortify_fail.
9751 * debug/chk_fail.c: Use __fortify_fail.
9752 * debug/stack_chk_fail.c: Likewise.
9753 * io/Versions: Export __open_2, __open64_2, __openat_2, and
9754 __openat64_2 for GLIBC_2.7.
9755 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
9756 * io/open.c: Define *_2 variant of function which checks for O_CREAT
9757 and fails if necessary.
9758 * io/open64.c: Likewise.
9759 * io/openat.c: Likewise.
9760 * io/openat64.c: Likewise.
9761 * sysdeps/unix/sysv/linux/open64.c: Likewise.
9762 * sysdeps/unix/sysv/linux/openat.c: Likewise.
9763 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
9764 * io/bits/fcntl2.h: New file.
9765 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
9766 __openat64_2.
9767 * include/bits/fcntl2.h: New file.
9768 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9769 Add open_2.
9770 * sysdeps/unix/sysv/linux/open_2.c: New file.
9771
bfe6f5fa
UD
97722007-05-21 Ulrich Drepper <drepper@redhat.com>
9773
6d59823c
UD
9774 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
9775 as second parameter to handle_intel.
9776
e2b1e343
UD
9777 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
9778 the entry.
9779
bfe6f5fa
UD
9780 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
9781 handling to ...
9782 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
9783 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
9784 cacheinfo.
9785 * sysdeps/x86_64/memcpy.S: Complete rewrite.
9786 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
9787 Patch by Evandro Menezes <evandro.menezes@amd.com>.
9788
9789 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
9790
1f4843fb
UD
97912007-05-21 Jakub Jelinek <jakub@redhat.com>
9792
2c2c003a
UD
9793 [BZ #4525]
9794 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
9795 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
9796 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
9797
9798 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
9799
af269dd9
UD
9800 [BZ #4514]
9801 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
9802 reinitialize workend at the start of each do_positional format spec
9803 loop, free workstart before do_positional loops.
9804 (printf_unknown): Fix size of work_buffer.
9805 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
9806
1f4843fb
UD
9807 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
9808 (public_sET_STATe): If ms->version < 3, put all chunks into
9809 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
9810 chunks.
9811
9812 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
9813 * malloc/hooks.c: Likewise.
9814 * malloc/arena.c: Likewise.
9815 * malloc/malloc.c (do_check_malloc_state): Don't assert
9816 n_mmaps is not greater than n_mmaps_max. This removes the need
9817 for the previous change.
9818
9819 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
9820 2007-05-07 commit.
9821
12e8bbff
UD
98222007-05-19 Ulrich Drepper <drepper@redhat.com>
9823
9824 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
9825 Define for kernel >= 2.6.22.
69e5cbf5 9826
12e8bbff 98272007-05-18 Ulrich Drepper <drepper@redhat.com>
6d59823c 9828
df94b641
UD
9829 * elf/dl-close.c (_dl_close_worker): When removing object from
9830 global scope, wait for all lookups to finish afterwards.
9831 * elf/dl-open.c (add_to_global): When global scope array must
9832 grow, allocate a new one and free old array only after all
9833 lookups finish.
9834 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
9835 (_dl_lookup_symbol_x): Likewise.
9836 * elf/dl-support.c: Define _dl_wait_lookup_done.
9837 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9838 _dl_wait_lookup_done.
9839
2acd01ac
UD
9840 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
9841 not overlapping with arena.
9842
129abdd3
UD
9843 * malloc/mcheck.c (reallochook): If size==0, free the block.
9844
eb4b098a
UD
9845 * rt/tst-shm.c: Use fstat64 instead of fstat.
9846
69e5cbf5
UD
9847 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
9848 __NR_sync_file_range is not defined.
9849
a2ccc760
UD
98502007-05-17 Ulrich Drepper <drepper@redhat.com>
9851
bec51a30
UD
9852 Dummy files to prevent stub versions from being used.
9853 * sysdeps/x86_64/fpu/k_cosl.c: New file.
9854 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
9855 * sysdeps/x86_64/fpu/k_sinl.c: New file.
9856 * sysdeps/x86_64/fpu/k_tanl.c: New file.
9857
a2ccc760
UD
9858 * version.h (VERSION): Set to 2.6.90.
9859
1a31b586
UD
98602007-05-14 Ulrich Drepper <drepper@redhat.com>
9861
a2ccc760
UD
9862 * version.h (VERSION): Define to 2.6.
9863 * include/features.h (__GLIBC_MINOR__): Define to 6.
2c1d6172 9864
1d47e92f
UD
9865 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
9866
9867 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
9868 sizes.
366ad8fd 9869
1a31b586 98702007-05-13 Ulrich Drepper <drepper@redhat.com>
87e66335 9871
366ad8fd
UD
9872 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
9873 number of mmaps. n_mmaps_max is the target.
9874 * malloc/hooks.c: Likewise.
9875 * malloc/arena.c: Likewise.
9876
11ed6713
AJ
98772007-05-12 Andreas Jaeger <aj@suse.de>
9878
9879 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
9880 getpid.
9881
d65ef3dd
UD
98822007-05-11 Ulrich Drepper <drepper@redhat.com>
9883
2e81d449
UD
9884 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
9885 adding new variables.
9886
d65ef3dd 9887 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
2e81d449 9888 optimize. Completely extend global scope array before making the
d65ef3dd
UD
9889 new entries visible.
9890
c27d2078
UD
98912007-05-10 Ulrich Drepper <drepper@redhat.com>
9892
341c566f
UD
9893 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
9894 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
9895 tst-getcpu.
9896
9897 * include/link.h: Move l_version and l_nversion members around to
9898 fill gaps.
9899
a53fa282
UD
9900 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
9901
3771196d
UD
9902 * sysdeps/unix/sysv/linux/sched_setaffinity.c
9903 (__sched_setaffinity_new): If syscall was successful and
9904 RESET_VGETCPU_CACHE is defined, use it before returning.
9905 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
9906
f9bf102d
UD
9907 * io/sys/stat.h: Make sure struct timespec is defined for
9908 __USE_ATFILE.
9909
c27d2078
UD
9910 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
9911 UTIME_OMIT.
9912 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
9913 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
9914 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
9915 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
9916 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
9917 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
9918 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
9919 * io/sys/stat.h: Declare utimensat, futimens.
9920 * io/utimensat.c: New file.
9921 * io/futimens.c: New file.
9922 * sysdeps/unix/sysv/linux/utimensat.c: New file.
9923 * sysdeps/unix/sysv/linux/futimens.c: New file.
9924 * io/Makefile (routines): Add utimensat, futimens.
9925 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
9926 * sysdeps/unix/sysv/linux/lutimes.c: New file.
9927 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
9928 available.
9929
9930 * include/sys/cdefs.h: Redefine __nonnull so that test for
9931 incorrect parameters in the libc code itself are not omitted.
9932
cf6b0980
JJ
99332007-05-09 Jakub Jelinek <jakub@redhat.com>
9934
c1dfd7e6
JJ
9935 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
9936 exception in addition to inexact when asked to raise only FE_INEXACT.
9937
cf6b0980
JJ
9938 [BZ #3427]
9939 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
9940 in *envp.
9941
df7b6fea
UD
99422007-05-07 Ulrich Drepper <drepper@redhat.com>
9943
9944 [BZ #4403]
9945 * string/strfry.c (strfry): Make result more random.
9946
37f40235
RH
99472007-05-07 Richard Henderson <rth@redhat.com>
9948
9949 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
9950 if __NO_LONG_DOUBLE_MATH.
9951 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
df7b6fea 9952 available in the compiler, add .arch directive to the assembly.
37f40235
RH
9953
99542007-05-07 Jakub Jelinek <jakub@redhat.com>
9955
9956 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
9957 compat_symbol to GLIBC_2_1.
9958 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
9959 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
9960 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
9961 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
9962 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
9963 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
9964 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
9965 libc, not libm.
9966 (__isnanl): New compat_symbol.
9967
c7fd3362
JJ
99682007-05-07 Ulrich Drepper <drepper@redhat.com>
9969 Jakub Jelinek <jakub@redhat.com>
9970
9971 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
9972 (new_heap): Initialize mprotect_size.
9973 (grow_heap): When growing, only mprotect from mprotect_size till
9974 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
9975 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
9976
4a59e9ad 99772007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
37f40235 9978 Peter Bergner <bergner@us.ibm.com>
4a59e9ad
UD
9979
9980 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
9981 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
9982 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
9983 * sysdeps/powerpc/fpu/fe_mask.c: New file.
9984 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
9985 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
9986 Call __fe_mask_env() if all FP exceptions disabled.
9987 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
9988 from old FPSCR to new fenv to propagate DFP rounding modes.
9989 Call __fe_mask_env() if FP exceptions previously enabled.
9990 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
9991 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
9992 transitioning from all exceptions disabled to any exception enabled
9993 or visa versa.
9994 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
9995 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
9996 when transitioning from all exceptions disabled to any exception
9997 enabled or visa versa.
9998 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
9999 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
10000 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
10001 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
10002 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
10003 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10004
aa75f64c
UD
100052007-05-06 Ulrich Drepper <drepper@redhat.com>
10006
15eca720 10007 [BZ #4465]
aa75f64c
UD
10008 * posix/unistd.h: Remove __THROW from fdatasync.
10009
711deb05
UD
100102007-05-06 Mike Frysinger <vapier@gentoo.org>
10011
15eca720 10012 [BZ #4465]
711deb05
UD
10013 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10014
ffecd39b
UD
100152007-05-06 Ulrich Drepper <drepper@redhat.com>
10016
49a8eb75
UD
10017 * stdio-common/vfprintf.c (process_string_arg): Optimize
10018 ridiculous precision in wide char code printing multi-byte string.
10019 Reported by Jim Meyering <jim@meyering.net>.
10020
ffecd39b
UD
10021 [BZ #4131]
10022 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10023 boundaries to work around systems with overlapping binary loading.
10024 Based on a patch by Suzuki <suzuki@in.ibm.com>.
10025
b16dba4c
UD
100262007-05-04 Ulrich Drepper <drepper@redhat.com>
10027
30b323ab
UD
10028 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10029 __mbsnrtowcs after last change.
10030
b16dba4c
UD
10031 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10032 (get_ident): Likewise.
10033
37002cbc
JJ
100342007-05-03 Jakub Jelinek <jakub@redhat.com>
10035
10036 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10037 with setting the sticky bit.
10038 * math/test-misc.c (main): Add more truncation tests.
10039
100402007-04-14 Uros Bizjak <ubizjak@gmail.com>
10041
10042 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10043 double in the function declaration.
10044 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10045 double in the function declaration.
10046 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10047 float in the function declaration.
10048 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10049 float in the function declaration.
10050
10051 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10052 denormal operands. Do not generate FP_EX_DENORM exception.
10053 (FP_UNPACK_RAW_EP): Ditto.
10054 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10055 undefined _FP_UNPACK_RAW_E.
10056 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10057 undefined _FP_UNPACK_RAW_EP.
10058 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10059 undefined _FP_PACK_RAW_E.
10060 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10061 undefined _FP_PACK_RAW_EP.
10062
d9ac82d0
UD
10063 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10064 _FP_FRAC_COPY_2.
10065 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10066 _FP_FRAC_COPY_4.
37002cbc
JJ
10067
100682007-04-16 Uros Bizjak <ubizjak@gmail.com>
10069 Jakub Jelinek <jakub@redhat.com>
10070
10071 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10072 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
10073 this case.
10074 * soft-fp/op-common.h (FP_TRUNC): Ditto.
10075
002f0b0b
JJ
100762007-05-03 Jakub Jelinek <jakub@redhat.com>
10077
10078 * math/test-misc.c (main): Add tests for rounding long double
10079 values close to smallest double denormalized value to double.
10080
100812007-04-30 Joseph Myers <joseph@codesourcery.com>
10082
10083 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10084 condition for truncating to 0. Set sticky bit for such
10085 truncation.
10086
57433ede
UD
100872007-05-02 Jakub Jelinek <jakub@redhat.com>
10088
10089 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
10090 fixed length array for ignore.
10091
c01c2455
UD
100922007-04-30 Ulrich Drepper <drepper@redhat.com>
10093
10094 [BZ #4438]
10095 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
10096 stack for large precisions.
1cb04337
UD
10097 * stdio-common/test-vfprintf.c (main): Add test for large
10098 precision.
c01c2455 10099
37f02b1d
UD
101002007-04-30 Jakub Jelinek <jakub@redhat.com>
10101
b866373d
UD
10102 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
10103 for exponent 0.
10104 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
10105
37f02b1d
UD
10106 [BZ #4439]
10107 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
10108 account in the size check.
10109 * resolv/tst-inet_ntop.c: New test.
10110 * resolv/Makefile (tests): Add tst-inet_ntop.
10111
7ecfbd38
UD
101122007-04-30 Ulrich Drepper <drepper@redhat.com>
10113 Jakub Jelinek <jakub@redhat.com>
10114
10115 [BZ #4349]
10116 * malloc/malloc.c: Keep separate list for first blocks on the bin
10117 lists with a given size. This helps skipping over list elements
10118 we know won't fit in two places.
10119 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
10120
e53f0f51
UD
101212007-04-28 Ulrich Drepper <drepper@redhat.com>
10122
10123 [BZ #4102]
10124 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
10125 label to Teredo tunnel addresses 2001://32.
10126
109f51f2
UD
101272007-04-27 Ulrich Drepper <drepper@redhat.com>
10128
762422d1
UD
10129 * locale/programs/ld-collate.c (collate_read): Allow order_start
10130 after copy.
10131
61d5a67f
UD
10132 * locale/programs/ld-collate.c (collate_read): Fix printing of
10133 error message.
10134
10135 [BZ #3213]
10136 * locale/C-translit.h.in: Add entry for U2044.
10137
109f51f2
UD
10138 [BZ #4342]
10139 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
10140 hexa-decimal floats without exponent.
10141 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
10142
ec08f13d
UD
101432007-04-25 Ulrich Drepper <drepper@redhat.com>
10144
10145 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
10146 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
10147 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
10148 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
10149 GLIBC_2.6.
bce20b9a
UD
10150 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
10151 Add sched_getcpu.
ec08f13d 10152
41967e1c
JJ
101532007-04-25 Jakub Jelinek <jakub@redhat.com>
10154
10155 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
10156 of 0 after the out_fail label.
10157
ba508da3
UD
101582007-04-25 Ulrich Drepper <drepper@redhat.com>
10159
10160 [BZ #4406]
109f51f2 10161 * iconv/gconv_charset.h (strip): Allow ':'.
ba508da3
UD
10162 * iconv/iconv_open.c (iconv_open): Adjust comment.
10163
9c8d03d9
JJ
101642007-04-25 Jakub Jelinek <jakub@redhat.com>
10165
10166 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
10167 version.
10168
2f1687b9
UD
101692007-04-23 Jakub Jelinek <jakub@redhat.com>
10170
10171 [BZ #4381]
10172 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10173 alignment of buffer and tmp_buffer.
10174 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10175 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10176 alignment of buffer.
10177 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
10178 bigger than INT_MAX.
10179 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
10180 h_errnop arguments. Fail if buflen is too small.
10181 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10182
b64a9db8
JJ
101832007-04-23 Jakub Jelinek <jakub@redhat.com>
10184
10185 [BZ #4405]
10186 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10187 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
10188
4d3144c9
RM
101892007-04-22 Roland McGrath <roland@redhat.com>
10190
10191 * elf/elf.h (NT_PRXFPREG): New macro.
10192
767b40bf
AJ
101932007-04-19 Andreas Jaeger <aj@suse.de>
10194
10195 [BZ #3905]
10196 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
10197 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
10198 Added.
10199
2592d1ec
UD
102002007-04-19 Ulrich Drepper <drepper@redhat.com>
10201
10202 * include/sys/mman.h: Mark madvise hidden.
d07d044e 10203 * misc/madvise.c: Add libc_hidden_def.
2592d1ec 10204
7ab174ed
UD
102052007-04-06 Jakub Jelinek <jakub@redhat.com>
10206
10207 * nis/nis_domain_of.c (__nis_domain_of): New function.
10208 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
10209 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
10210 * nis/nis_call.c (rec_dirsearch): Likewise.
10211 (first_shoot): Likewise. Remove search_parent_first argument.
10212 (struct nis_server_cache): Rename search_parent_first field
10213 to search_parent.
10214 (nis_server_cache_search, nis_server_cache_add): Rename
10215 search_parent_first argument to search_parent.
10216 (__nisfind_server): Likewise. If search_parent, call
10217 __nis_domain_of.
10218
b17c265f
UD
102192007-04-18 Ulrich Drepper <drepper@redhat.com>
10220
10221 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
10222
b7674b11
UD
102232007-04-17 Ulrich Drepper <drepper@redhat.com>
10224
10225 [BZ #4368]
10226 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
10227
faf3ad69
UD
102282007-04-16 Ulrich Drepper <drepper@redhat.com>
10229
10230 [BZ #4364]
10231 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
10232
c14f245c
UD
102332007-04-15 Jakub Jelinek <jakub@redhat.com>
10234
10235 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
10236 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
10237 current number of locales in SUPPORTED.
10238 (create_archive): Initialize serial.
10239 (enlarge_archive): Preserve aliases rather than duplicating
10240 their locrecs.
10241
d40e67f5
UD
102422007-04-13 Jakub Jelinek <jakub@redhat.com>
10243
993a5d66
UD
10244 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
10245 after _IO_un_link, not before it.
10246
d40e67f5
UD
10247 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
10248 special case handling when wcp == wstartp + 1. Fix a comment typo.
10249 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
10250
0fca3153
UD
102512007-03-30 Jakub Jelinek <jakub@redhat.com>
10252
10253 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
10254 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
10255 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
10256 Remove __THROW.
10257 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
10258 _IO_file_xsgetn_maybe_mmap): Likewise.
10259 * libio/oldfileops.c (old_do_write): Likewise.
10260 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
10261 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
10262 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
10263 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
10264 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
10265 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
10266 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
10267 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
10268 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
10269 _IO_file_underflow, _IO_file_underflow_mmap,
10270 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
10271 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
10272 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
10273 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
10274 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
10275 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
10276 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
10277 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
10278 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
10279 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
10280 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
10281 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
10282 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
10283 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
10284 _IO_adjust_column_internal, _IO_default_uflow_internal,
10285 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
10286 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
10287 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
10288 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
10289 _IO_file_close_it_internal, _IO_file_underflow_internal,
10290 _IO_file_overflow_internal, _IO_file_attach_internal,
10291 _IO_file_fopen_internal, _IO_file_sync_internal,
10292 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
10293 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
10294 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
10295 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
10296 _IO_seekpos_unlocked): Likewise.
10297 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
10298 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
10299
07358add
JJ
103002007-04-16 Jakub Jelinek <jakub@redhat.com>
10301
10302 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
10303 argument in xmalloc size computation.
10304
7a82b74f
UD
103052007-04-01 Jakub Jelinek <jakub@redhat.com>
10306
10307 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
10308 math_opt_barrier and math_force_eval macros.
10309
3e336a87
UD
103102007-03-27 Jakub Jelinek <jakub@redhat.com>
10311
10312 [BZ #3306]
10313 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
10314 * sysdeps/i386/fpu/math_private.h: New file.
10315 * sysdeps/x86_64/fpu/math_private.h: New file.
10316 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
10317 math_force_eval macros. Use "+m" constraint on asm rather than
10318 "=m" and "m".
10319 * math/s_nextafter.c (__nextafter): Likewise.
10320 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10321 Likewise.
10322 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
10323 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
10324 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10325 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
10326 math_opt_barrier and math_force_eval macros.
10327 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
10328 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
10329 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
10330 (__nexttoward): Use math_opt_barrier and
10331 math_force_eval macros. Use "+m" constraint on asm rather than
10332 "=m" and "m". Only use asm to force double result if
10333 FLT_EVAL_METHOD is 2.
10334 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
10335 (__nexttowardf): Use math_opt_barrier and
10336 math_force_eval macros. Use "+m" constraint on asm rather than
10337 "=m" and "m". Only use asm to force double result if
10338 FLT_EVAL_METHOD is not 0.
10339 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
10340 (__nexttowardf): Use math_opt_barrier and
10341 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
10342 x to float using asm.
10343 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
10344 (__nldbl_nexttowardf): Use math_opt_barrier and
10345 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
10346 x to float using asm.
10347 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
10348 (__nexttowardf): Use math_opt_barrier and math_force_eval
10349 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
10350 * math/bug-nextafter.c (zero, inf): New variables.
10351 (main): Add new tests.
10352 * math/bug-nexttoward.c (zero, inf): New variables.
10353 (main): Add new tests.
10354
a8c79c40
UD
103552007-03-22 Jakub Jelinek <jakub@redhat.com>
10356
10357 [BZ #3427]
10358 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
10359 exceptions both in SW and MXCSR.
10360 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
10361 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
10362 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10363 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10364 in MXCSR if SSE is available.
10365 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
10366 and ldsodefs.h.
10367 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
10368 Fix comment typo.
10369 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
10370 Return 0 rather than 1.
10371 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
10372 Remove incorrect part of a comment. Fix argument to feraiseexcept.
10373 * math/test-fenv.c (feholdexcept_tests): New function.
10374 (main): Call it.
10375
103762007-01-05 Richard B. Kreckel <kreckel@ginac.de>
10377
10378 [BZ #3427]
10379 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10380 in SW.
10381
30a3aa75
JJ
103822007-04-13 Jakub Jelinek <jakub@redhat.com>
10383
10384 [BZ #4344]
10385 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
10386 Reported by David Anderson <davea42@earthlink.net>.
10387
75587bfe
UD
103882007-04-07 Ulrich Drepper <drepper@redhat.com>
10389
10390 * posix/sys/wait.h: Remove unnecessary forward declaration.
10391
88fa1769
JJ
103922007-04-05 Jakub Jelinek <jakub@redhat.com>
10393
10394 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
10395 with obj->do_servers after first_shoot.
10396
eab1bdfb
UD
103972007-04-03 Ulrich Drepper <drepper@redhat.com>
10398
10399 * posix/Makefile (routines): Add sched_cpucount.
10400 (tests): Add tst-cpucount.
10401 * posix/sched_cpucount.c: New file.
10402 * posix/tst-cpucount.c: New file.
10403 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
b4afdd06
UD
10404 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
10405 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10406 * posix/sched.h: Define CPU_COUNT.
eab1bdfb 10407
9700b039
UD
104082007-03-27 Jakub Jelinek <jakub@redhat.com>
10409
10410 * posix/fnmatch.c (STRUCT): Define.
10411 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
10412 * posix/fnmatch_loop.c (struct STRUCT): New type.
10413 (FCT): Add ends argument. If ends != NULL and normal * is
10414 seen in the pattern, store current pattern and string pointers
10415 and return. Adjust recursive calls.
10416 (EXT): Adjust FCT callers.
10417 (STRUCT): Undef at the end of the file.
10418 * posix/Makefile (tests): Add tst-fnmatch2.
10419 * posix/tst-fnmatch2.c: New test.
10420
d64e9790
JJ
104212007-04-01 Jakub Jelinek <jakub@redhat.com>
10422
933dfe7b
JJ
10423 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
10424 and 1 on failure.
10425
d64e9790
JJ
10426 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
10427 Change last argument to unsigned int.
10428
e1f0c5bc
UD
104292007-03-23 Jakub Jelinek <jakub@redhat.com>
10430
10431 * scripts/check-local-headers.sh: Filter out sys/capability.h.
10432
104332007-03-22 Jakub Jelinek <jakub@redhat.com>
10434
10435 * config.h.in (HAVE_LIBCAP): Add.
10436 * nscd/selinux.h: Include sys/capability.h rather than non-existent
10437 sys/capabilities.h.
10438 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
10439 free_caps. Cast away const from 4th cap_set_flag argument.
10440
4e87573f
UD
104412007-03-26 Ulrich Drepper <drepper@redhat.com>
10442
10443 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
10444 GLIBC_2.6.
10445 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10446 Add sync_file_range.
10447 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
10448
fa6e3bc3
UD
104492007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
10450
10451 * sysdeps/powerpc/bits/atomic.h
10452 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
10453 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
10454 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10455 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
10456 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10457 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
10458 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
10459 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10460 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10461 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10462 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
10463 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10464 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10465 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10466 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10467 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
10468 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10469 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
10470 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10471 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
10472
104732007-03-20 Jakub Jelinek <jakub@redhat.com>
c7693af7
UD
10474
10475 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
10476 (__cache_line_size): Define the variable here. Add
10477 attribute_hidden, remove weak_extern.
10478 (__libc_start_main): Set __cache_line_size
10479 unconditionally.
10480 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
10481 (__cache_line_size): Define the variable here. Add
10482 attribute_hidden, remove weak_extern.
10483 (DL_PLATFORM_AUXV): Set __cache_line_size
10484 unconditionally.
10485 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
10486 weak_extern, add attribute_hidden.
10487 (__elf_machine_runtime_setup): Assume __cache_line_size is always
10488 defined in ld.so.
10489 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
10490 definition.
10491 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
10492
0479e581
JJ
104932007-03-26 Jakub Jelinek <jakub@redhat.com>
10494
10495 [BZ #4276]
10496 * timezone/africa: Update from tzdata2007d.
10497 * timezone/asia: Likewise.
10498 * timezone/australasia: Likewise.
10499 * timezone/backward: Likewise.
10500 * timezone/europe: Likewise.
10501 * timezone/iso3166.tab: Likewise.
10502 * timezone/leapseconds: Likewise.
10503 * timezone/northamerica: Likewise.
10504 * timezone/southamerica: Likewise.
10505 * timezone/zone.tab: Likewise.
10506
10507 * timezone/private.h: Update from tzcode2007d.
10508 * timezone/zdump.c: Likewise.
10509 * timezone/zic.c: Likewise.
10510
697d37b1
JJ
105112007-03-21 Jakub Jelinek <jakub@redhat.com>
10512
10513 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
10514 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
10515 variables.
10516 (nis_server_cache_search, nis_server_cache_add): New functions.
10517 (__nisfind_server): Use them. Add dbp and flags argument, if
10518 call __nisbind_create.
10519 (__nisbind_create): Add server_used and current_ep arguments,
10520 only call __nis_findfastest if server_used is ~0.
10521 (__do_niscall2, __prepare_niscall): Adjust callers.
10522 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
10523 ckey_cache_euid, ckey_cache_lock): New variables.
10524 (get_ckey): New function.
10525 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
10526 __pmap_getnisport. Save __pmap_getnisport result in
10527 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
10528 key.
10529 * nis/nis_lookup.c (nis_lookup): Likewise.
10530 * nis/nis_table.c (nis_list): Likewise.
10531 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
10532 prototypes.
10533
10534 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
10535 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
10536 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
10537 _nss_nisplus_getservbyport_r): Likewise.
10538 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
10539 _nss_nisplus_getnetbyaddr_r): Likewise.
10540 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
10541 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
10542 _nss_nisplus_getntohost_r): Likewise.
10543 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
10544 _nss_nisplus_getrpcbynumber_r): Likewise.
10545
06029c20
JJ
105462007-03-20 Jakub Jelinek <jakub@redhat.com>
10547
371f84a4
JJ
10548 * configure.in (libc_cv_gnu89_inline): Only do compile test.
10549 * configure: Rebuilt.
10550
06029c20
JJ
10551 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
10552 bit-fields.
10553 * soft-fp/extended.h (_FP_UNION_E): Likewise.
10554
105552006-06-07 Joseph Myers <joseph@codesourcery.com>
10556
10557 [BZ #2831]
10558 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
10559 bit-fields.
10560
addc8335
UD
105612007-03-18 Jakub Jelinek <jakub@redhat.com>
10562
10563 * nscd/gai.c: Include alloca.h.
10564 (__libc_use_alloca): Define.
10565
b037a293
UD
105662007-03-16 Jakub Jelinek <jakub@redhat.com>
10567
965cba04
UD
10568 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
10569 smaller scopes.
10570 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
10571 (DL_DST_REQUIRED): Adjust user.
10572
10573 * include/dlfcn.h (struct link_map): New forward decl.
10574
10575 * inet/getnameinfo.c: Include stddef.h.
10576 (getnameinfo): Use offsetof.
10577
10578 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
10579
10580 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
10581
10582 * string/strerror_l.c: Include stdlib.h.
10583
b037a293
UD
10584 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
10585 * config.make.in (gnu89-inline-CFLAGS): New variable.
10586 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
10587 -std=gnu99.
10588 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
10589 * argp/argp.h: Use it.
10590 * bits/mathinline.h: Likewise.
10591 * bits/sigset.h: Likewise.
10592 * bits/string.h: Likewise.
10593 * ctype/ctype.h: Likewise.
10594 * hurd/hurd.h: Likewise.
10595 * hurd/hurd/fd.h: Likewise.
10596 * hurd/hurd/port.h: Likewise.
10597 * hurd/hurd/signal.h: Likewise.
10598 * hurd/hurd/threadvar.h: Likewise.
10599 * hurd/hurd/userlink.h: Likewise.
10600 * io/sys/stat.h: Likewise.
10601 * libio/bits/stdio.h: Likewise.
10602 * libio/bits/stdio2.h: Likewise.
10603 * mach/lock-intern.h: Likewise.
10604 * mach/mach/mig_support.h: Likewise.
10605 * math/bits/cmathcalls.h: Likewise.
10606 * posix/bits/unistd.h: Likewise.
10607 * socket/bits/socket2.h: Likewise.
10608 * stdlib/bits/stdlib.h: Likewise.
10609 * stdlib/stdlib.h: Likewise.
10610 * string/argz.h: Likewise.
10611 * string/bits/string2.h: Likewise.
10612 * string/bits/string3.h: Likewise.
10613 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
10614 * sysdeps/generic/inttypes.h: Likewise.
10615 * sysdeps/generic/machine-lock.h: Likewise.
10616 * sysdeps/generic/machine-sp.h: Likewise.
10617 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
10618 * sysdeps/i386/i486/bits/string.h: Likewise.
10619 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
10620 * sysdeps/mach/alpha/machine-lock.h: Likewise.
10621 * sysdeps/mach/alpha/machine-sp.h: Likewise.
10622 * sysdeps/mach/i386/machine-lock.h: Likewise.
10623 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10624 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
10625 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
10626 * sysdeps/s390/bits/string.h: Likewise.
10627 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
10628 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10629 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
10630 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
10631 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10632 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
10633 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
10634 * wcsmbs/bits/wchar2.h: Likewise.
10635 * wcsmbs/wchar.h: Likewise.
10636 * stdlib/gmp.h: Likewise. Include <features.h> to get
10637 __extern_inline definition.
10638
6b2665f5
UD
106392007-03-15 Jakub Jelinek <jakub@redhat.com>
10640
b037a293
UD
10641 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
10642 NULL.
10643
6b2665f5
UD
10644 [BZ #3919]
10645 * math/libm-test.inc (log_test): Test -Inf and NaN.
10646 (log10_test, log1p_test, log2_test): Test -Inf.
10647 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
10648 FE_INVALID when argument is qNaN.
10649 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
10650 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
10651 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
10652 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
10653 andb $1, %ah with testb $1, %ah, don't test for parity, instead
10654 testb $4, %ah and jump if non-zero.
10655 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
10656 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
10657
44969f17
UD
10658 [BZ #4101]
10659 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
10660 ancestors with the same depths.
10661 Patch by Niels Moeller <nisse@lysator.liu.se>.
10662 (filter_doc): Don't crash if argp is NULL.
10663 * argp/Makefile (tests): Add tst-argp2.
10664 * argp/tst-argp2.c: New test.
10665
05eb8975
UD
10666 [BZ #4130]
10667 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
10668 open_not_cancel_2.
10669 (updwtmp_file): Likewise.
10670
6cb988fa
UD
10671 [BZ #4181]
10672 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
10673 (inet6_opt_append): Don't check extlen is big enough if extbuf
10674 is NULL.
10675 (inet6_opt_finish): Likewise.
10676 * inet/Makefile (tests): Add test-inet6_opt.
10677 * inet/test-inet6_opt.c: New test.
10678
10679 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
10680 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
10681 NLMSG_ERR. Instead use a page sized buffer.
10682 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
10683 buffer.
10684
aea1d19e
RH
106852007-03-14 Richard Henderson <rth@redhat.com>
10686
b6df547c
RH
10687 * sysdeps/alpha/fpu/s_llround.c: New file.
10688 * sysdeps/alpha/fpu/s_llroundf.c: New file.
10689 * sysdeps/alpha/fpu/s_lround.c: New file.
10690 * sysdeps/alpha/fpu/s_lroundf.c: New file.
10691 * sysdeps/alpha/fpu/s_round.c: New file.
10692 * sysdeps/alpha/fpu/s_roundf.c: New file.
10693 * sysdeps/alpha/fpu/s_trunc.c: New file.
10694 * sysdeps/alpha/fpu/s_truncf.c: New file.
10695
aea1d19e
RH
10696 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
10697 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10698 * sysdeps/alpha/fpu/s_floor.c: Likewise.
10699 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10700 * sysdeps/alpha/fpu/s_rint.c: Likewise.
10701 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
10702
10703 * sysdeps/alpha/fpu/s_fmax.S: New file.
10704 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
10705 * sysdeps/alpha/fpu/s_fmin.S: New file.
10706 * sysdeps/alpha/fpu/s_fminf.S: New file.
10707 * sysdeps/alpha/fpu/s_isnan.c: New file.
10708 * sysdeps/alpha/fpu/s_isnanf.c: New file.
10709 * sysdeps/alpha/fpu/s_llrint.c: New file.
10710 * sysdeps/alpha/fpu/s_llrintf.c: New file.
10711 * sysdeps/alpha/fpu/s_lrint.c: New file.
10712 * sysdeps/alpha/fpu/s_lrintf.c: New file.
10713 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
10714 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
10715
10716 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
10717 (__fdimf, fdimf, __fdim, fdim): Remove.
10718 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
10719 (__isnanf, __isnan, __isnanl): New.
10720
9e43b50d
RH
107212007-03-13 Richard Henderson <rth@redhat.com>
10722
10723 * sysdeps/ieee754/ldbl-128/Makefile: New file.
10724
62789da3
RH
107252007-03-13 Richard Henderson <rth@redhat.com>
10726
10727 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
10728 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
10729 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
10730 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
10731 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
10732 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
10733
47dbe62b
RH
107342007-03-13 Richard Henderson <rth@redhat.com>
10735
37f40235 10736 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
47dbe62b
RH
10737 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
10738 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
10739 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
10740 Move to dl-auxv.h; initialize instead of extern weak.
10741 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
10742 weak symbol.
10743 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
10744 Extern instead of initialized.
10745
b8097bed
RH
107462007-03-13 Richard Henderson <rth@redhat.com>
10747
10748 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
10749 __sigsuspend_nocancel.
10750
6bf4a686
UD
107512007-03-06 Ulrich Drepper <drepper@redhat.com>
10752
10753 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
10754 172.16/12 address range.
10755
0b3b1a0c
UD
107562007-03-02 Jakub Jelinek <jakub@redhat.com>
10757
10758 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
10759 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
10760 message.
10761
8f3edfee
UD
107622007-03-01 Jakub Jelinek <jakub@redhat.com>
10763
c1c5e654 10764 [BZ #4069]
8f3edfee
UD
10765 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
10766 earlier.
10767 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
10768
10769 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
10770 for x qNaN and y either +-inf or non-integer value.
10771 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
10772 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
10773 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10774
245a1481
UD
107752007-02-10 Mike Frysinger <vapier@gentoo.org>
10776
10777 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
10778 from sysdep_headers.
10779
c217692b
UD
107802007-02-28 Jakub Jelinek <jakub@redhat.com>
10781
10782 * time/tzfile.c (find_transition): Instead of a linear search try to
10783 guess the transition index, use a linear search if the result is at
10784 most 10 transitions away from the guess or binary search otherwise.
10785
fe64626c
JJ
107862007-02-27 Jakub Jelinek <jakub@redhat.com>
10787
10788 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
10789 memory reallocation.
10790
0f7769f7
UD
107912007-02-21 Ulrich Drepper <drepper@redhat.com>
10792
621c133d
UD
10793 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
10794 and fix some typos.
10795 Optimize use of TOLOWER.
9cf147d8 10796
cdfd61e1
UD
10797 [BZ #3325]
10798 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
10799 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10800 * sysdeps/i386/fpu/e_fmod.S: Likewise.
10801
8889e7aa
UD
10802 [BZ #3458]
10803 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
10804 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
10805
63a2f305
UD
10806 [BZ #4076]
10807 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
10808 (open_dir_stream): Likewise.
10809 * io/Makefile (tests): Add bug-ftw5.
c536b9b8 10810 * io/bug-ftw5.c: New file.
63a2f305 10811
c8703f88
UD
10812 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
10813 * nscd/servicescache.c (cache_addserv): Likewise.
10814
10815 * nscd/grpcache.c (cache_addgr): In case a record changed on
10816 refresh, adjust key_copy.
10817
61705e06
UD
10818 [BZ #4074]
10819 * nscd/pwdcache.c (cache_addpw): In case a record changed on
10820 refresh, adjust key_copy.
10821
0f7769f7
UD
10822 [BZ #4070]
10823 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
0f7769f7 10824 special cases.
8889e7aa 10825 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
0f7769f7 10826
3979024a
UD
108272007-02-19 Ulrich Drepper <drepper@redhat.com>
10828
4c02bf1a
UD
10829 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
10830 optimization.
10831
3979024a
UD
10832 * stdio-common/vfscanf.c: Small cleanups throughout.
10833
821d3e70
UD
108342007-02-18 Ulrich Drepper <drepper@redhat.com>
10835
2484468b
UD
10836 [BZ #3325]
10837 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
10838 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10839 * sysdeps/i386/fpu/e_fmod.S: Likewise.
10840 Patch by Jared Casper <jaredcasper@gmail.com>.
10841
858ee15d
UD
10842 * sysdeps/unix/closedir.c: Outside libc don't use locking.
10843 * sysdeps/unix/opendir.c: Likewise.
10844 * sysdeps/unix/readdir.c: Likewise.
10845
ecb72bd5
UD
10846 [BZ #2211]
10847 * stdio-common/vfscanf.c: Handle localized digits etc for floating
10848 point numbers.
10849 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
10850
ac2ca022
UD
10851 * stdio-common/vfscanf.c: Fix problems in width accounting.
10852 * stdio-common/tst-sscanf.c (double_tests): New tests.
10853 (main): Hook them up.
10854
e9bb5246 10855 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
da50f001 10856 More simplifications of floating-point reader.
e9bb5246 10857
821d3e70
UD
10858 * stdio-common/Makefile (tests): Add tst-swscanf.
10859 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
10860 testing.
10861 * stdio-common/tst-swscanf.c: New file.
10862
07fb5185
UD
108632007-02-17 Ulrich Drepper <drepper@redhat.com>
10864
9138cc0b
UD
10865 [BZ #2633]
10866 * libio/stdio.h: Define struct _IO_FILE in global namespace.
10867 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
10868 Remove using for __jmp_buf_tag.
10869 * locale/locale.h (struct lconv): Also define in std namespace.
10870 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
10871
6818d837
UD
10872 [BZ #3842]
10873 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
10874 using __libc_enable_secure.
10875
15c4b5a4
UD
10876 [BZ #3818]
10877 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
10878
5e9e9c14
UD
10879 [BZ #3745]
10880 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
10881 of names for ellipsises.
10882
07fb5185
UD
10883 [BZ #3348]
10884 * malloc/memusage.sh: Cleanups.
10885 * debug/xtrace.sh: Quoting and trap changes.
10886
8c6d1043
UD
108872007-02-16 Ulrich Drepper <drepper@redhat.com>
10888
07fb5185
UD
10889 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
10890
93e66914 10891 * locale/iso-3166.def: Update entry for Serbia.
93e36434
UD
10892 * locale/iso-4217.def: Define RSD, remove CSD.
10893
ad0b348c
UD
10894 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
10895 and 64-bit operations.
10896
10897 [BZ #4040]
10898 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
10899 16-bit operations.
10900
8c6d1043
UD
10901 * nscd/nscd.c (parse_opt): One more conversion to use send instead
10902 of writev.
10903
987f54c6
UD
109042007-02-15 Ulrich Drepper <drepper@redhat.com>
10905
b3715c05
UD
10906 [BZ #3991]
10907 * assert/assert.h (assert): Simplify.
10908 (assert_perror): Likewise.
10909 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
10910
6eea8e0d
UD
10911 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
10912 reqdata.
10913
987f54c6
UD
10914 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
10915 change: don't pass NULL in place of an integer.
10916
3dc08a7e
UD
109172007-02-02 Bruno Haible <bruno@clisp.org>
10918
06c17c78
UD
10919 [BZ #3954]
10920 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
10921 Add mapping for U+327E.
10922 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
10923 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10924 mapping of 0xD9 0xE8.
10925 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
10926 mapping of U+327E.
10927 Reported by Jungshik Shin <jungshik@google.com>.
10928
10929 [BZ #3955]
3dc08a7e
UD
10930 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10931 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
10932 Reported by Jungshik Shin <jungshik@google.com>.
10933
a810e68c
UD
109342007-02-14 Ulrich Drepper <drepper@redhat.com>
10935
10936 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
10937 byte variants.
10938
10939 [BZ #4040]
10940 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
10941 byte variants. Patch mostly be tom@tommay.net.
10942
05f135ba
UD
109432007-02-14 Jakub Jelinek <jakub@redhat.com>
10944
10945 [BZ #3996]
10946 * posix/glob.c (attribute_hidden): Define if not defined.
10947 (glob): Unescape dirname, filename or username when needed and not
10948 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
10949 is NULL. Handle unescaped [ in pattern without closing ].
10950 Don't pass GLOB_CHECK down to recursive glob for directories.
10951 (__glob_pattern_type): New function.
10952 (__glob_pattern_p): Implement using __glob_pattern_type.
10953 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
10954 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
10955 Remove unreachable code.
10956 * posix/globtest.sh: Add a couple of new tests.
10957
2f699967
UD
109582007-02-13 Ulrich Drepper <drepper@redhat.com>
10959
10960 * po/ru.po: Update from translation team.
10961
3a7cd5b4
JJ
109622007-02-12 Jakub Jelinek <jakub@redhat.com>
10963
10964 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
10965 to the list of i486+ CPUs.
10966 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10967
2f978feb
UD
109682007-02-12 Ulrich Drepper <drepper@redhat.com>
10969
10970 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
10971 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
10972 references.
10973
2bbb7d5b
UD
109742007-02-09 Ulrich Drepper <drepper@redhat.com>
10975
5ed61e0f
UD
10976 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
10977
2bbb7d5b
UD
10978 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
10979 * resolv/res_mkquery.c: Define __res_nopt.
10980 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
10981 try adding EDNS0 record.
10982 * resolv/res_send.c (send_dg): If request failed with FORMERR and
10983 EDNS0 record was send make sure we don't try it again.
10984 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
10985 * include/resolv.h: Declare __res_nopt.
10986
00458b5b
UD
109872007-02-08 Jakub Jelinek <jakub@redhat.com>
10988
10989 [BZ #3944]
10990 * time/strptime_l.c (__strptime_internal): Set have_mon for
10991 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
10992 have been computed from tm_yday and tm_year. Don't crash
10993 in day_of_the_week or day_of_the_year if not have_mon
10994 and tm_mon contains bogus value.
10995 * time/Makefile (tests): Add tst-strptime3.
10996 * time/tst-strptime3.c: New test.
10997
784aacea
UD
109982007-02-05 Jakub Jelinek <jakub@redhat.com>
10999
11000 [BZ #3957]
11001 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11002 bit for RE_HAT_LISTS_NOT_NEWLINE.
11003 (build_charclass_op): Remove bogus comment.
11004 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11005 * posix/bug-regex27.c: New test.
11006 * posix/bug-regex28.c: New test.
11007
bf7a2463
UD
110082007-02-03 Ulrich Drepper <drepper@redhat.com>
11009
11010 * po/sv.po: Update from translation team.
11011
f2ccf983
UD
110122007-02-02 Ulrich Drepper <drepper@redhat.com>
11013
11014 * nscd/nscd_helper.c (open_socket): Minor size optimization.
11015
73f50d5a
UD
110162007-02-02 Jakub Jelinek <jakub@redhat.com>
11017
11018 * include/locale.h (__uselocale): Add libc_hidden_proto.
11019 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11020
f6bf9e59
JJ
11021 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11022 gettimeofday.
11023
4a44ce79
UD
110242007-02-01 Ulrich Drepper <drepper@redhat.com>
11025
11026 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11027 returning.
11028 (PTR_DEMANGLE): Real definition now that it's not the same as
11029 PRT_MANGLE anymore.
11030 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11031
11032 * string/strerror_l.c: New file.
11033 * string/Makefile (routines): Add strerror_l.
11034 * string/string.h: Declare strerror_l.
11035 * string/Versions: Export strerror_l for GLIBC_2.6.
11036
58a2d52e
UD
110372007-01-31 Ulrich Drepper <drepper@redhat.com>
11038
11039 * nscd/nscd_helper.c (open_socket): Now takes request type and key
11040 as parameter. Construct request record. Try sending request
11041 before the first poll use, it usually succeeds. Adjust all
11042 callers.
11043 * nscd/nscd-client.h: Define MAXKEYLEN.
4a44ce79 11044 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
58a2d52e 11045
1a77d37f
JJ
110462007-01-31 Jakub Jelinek <jakub@redhat.com>
11047
11048 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11049 from return value.
11050 * nscd/nscd_helper.c: Include string.h.
11051 (__nscd_cache_search): Remove const qualifier from return value.
11052 On strict alignment architectures check hash entry and data head
11053 alignment.
11054 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11055 mmapped data during GC cycle contains garbage. If
11056 __nscd_drop_map_ref fails, decrement mapped->counter when returning
11057 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11058 dropped to 0.
11059 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11060 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11061 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11062 * nscd/nscd_getai.c (__nscd_getai): Likewise.
11063 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11064
ee314200
UD
110652007-01-30 Ulrich Drepper <drepper@redhat.com>
11066
11067 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11068
14c8bf3b
UD
110692007-01-26 Ulrich Drepper <drepper@redhat.com>
11070
11071 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11072 names not numbers in cfi_*.
11073
d2708e67
AJ
110742007-01-26 Andreas Jaeger <aj@suse.de>
11075
11076 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
14c8bf3b 11077 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
d2708e67
AJ
11078 Correct values of PER_HPUX and PER_OSF4.
11079
7fbc8784
UD
110802007-01-24 Ulrich Drepper <drepper@redhat.com>
11081
8aaf53ee 11082 * elf/dl-minimal.c: Undefine _itoa first.
7fbc8784
UD
11083 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11084 * malloc/mtrace.c: Revert last change.
11085 * posix/wordexp.c: Likewise.
11086
9d6cde3d
UD
110872007-01-24 Jakub Jelinek <jakub@redhat.com>
11088
11089 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
11090 and __geode__ to the list of i486+ CPUs.
11091 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11092
c1f0486a
UD
110932007-01-23 Ulrich Drepper <drepper@redhat.com>
11094
11095 * stdio-common/_itoa.c: Include <limits.h>.
11096 * stdio-common/_itowa.c: Likewise.
11097
6cae3957
UD
110982007-01-22 Ulrich Drepper <drepper@redhat.com>
11099
765bbb24
UD
11100 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
11101 platforms.
11102 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
11103 64-bit platforms.
11104 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
11105 possible.
11106 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
11107 if possible.
11108
6cae3957
UD
11109 [BZ #3902]
11110 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
11111 * stdio-common/Makefile (tests): Add bug17.
11112 * stdio-common/bug17.c: New file.
11113
ddaafd04
UD
111142007-01-19 Ulrich Drepper <drepper@redhat.com>
11115
11116 * iconvdata/brf.c: New file.
439201de
UD
11117 * iconvdata/testdata/BRF: New file.
11118 * iconvdata/testdata/BRF..UTF8: New file.
11119 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
ddaafd04
UD
11120 * iconvdata/Makefile: Add rules to build BRF.
11121 * iconvdata/TESTS: Add BRF entry.
11122 * iconvdata/gconv-modules: Likewise.
11123 * iconvdata/tst-tables.sh: Likewise.
ddaafd04 11124
9e6e344e
UD
111252007-01-18 Anton Nikishaev <anton.nik@gmail.com>
11126
11127 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
11128 type `long long int', not `long int'.
11129 (wcstoq): Likewise.
11130
299f7b0f
UD
111312007-01-18 Ulrich Drepper <drepper@redhat.com>
11132
11133 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
11134 of values on 64-bit platforms which are too large.
11135
cd8127cc
JJ
111362007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
11137 Joe Kerian <jkerian@us.us.ibm.com>
11138
11139 [BZ #2749]
11140 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
11141 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
11142 (__copysignl): Use signbit() for comparison.
11143 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
11144 SET_LDOUBLE_WORDS64.
11145
11146 [BZ #2423, #2749]
11147 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
11148 (__ceill): Remove calls to fegetround(), fesetround().
11149 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11150 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11151 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11152
b3acfdf7
JJ
111532007-01-17 Jakub Jelinek <jakub@redhat.com>
11154
4a2e03c6
JJ
11155 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
11156
b3acfdf7
JJ
11157 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
11158
1476bce6
UD
111592007-01-17 Ulrich Drepper <drepper@redhat.com>
11160
11161 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
11162 demangle pointer.
11163 * csu/libc-start.c: Likewise.
11164
d78bce1c
UD
111652007-01-16 Ulrich Drepper <drepper@redhat.com>
11166
11167 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11168 really work anyway.
11169
1bd79025
UD
111702007-01-15 Ulrich Drepper <drepper@redhat.com>
11171
000b027e
UD
11172 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
11173 users.
11174 (handle_request): Remove unnecessary tests.
11175
1bd79025
UD
11176 * nscd/cache.c (cache_add): Record the failure to add to the cache.
11177
d68f5d2c
JJ
111782007-01-15 Jakub Jelinek <jakub@redhat.com>
11179
11180 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11181 workbits in semi-raw fraction.
11182
11183 * math/test-misc.c: Add new tests.
11184
111852007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
11186
11187 * math/basic-test.c: Include test-skeleton.c.
11188 (TEST_TRUNC): Define.
11189 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
11190 (main): Rename to ...
11191 (do_test): ...this. Run new tests.
11192 (TEST_FUNCTION): Define.
11193
111942006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
11195 Joe Kerian <jkerian@us.us.ibm.com>
11196
11197 [BZ #2749]
11198 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
11199 handling for high words.
11200 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
11201 and overflow for infinity.
11202
4e35ef2c
UD
112032007-01-15 Ulrich Drepper <drepper@redhat.com>
11204
2a1dea97
UD
11205 * nscd/connections.c (handle_request): Add a __builtin_expect.
11206
9691d83c
UD
11207 * nscd/connections.c (serv2db): Change type into structure which
11208 also says whether this is a request for data. Renamed to
11209 servinfo. All users changed.
11210 (handle_request): Much simpler test whether we should search the cache.
11211
49ee6d79
UD
11212 * nscd/connections.c (handle_request): Fix thinko in selinux test
11213 invocation.
11214
4e35ef2c
UD
11215 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
11216 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
11217 it before getting dl_load_lock and then relock.
11218 (_dl_lookup_symbol_x): Pass flags to add_dependency.
11219 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
11220 case we unlocked the scope.
11221 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
11222 _dl_lookup_symbol_x in case we locked the scope.
11223 (_dl_profile_fixup): Likewise.
11224 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
11225 set DL_LOOKUP_SCOPE_LOCK.
11226
23691ab2
UD
112272007-01-13 Ulrich Drepper <drepper@redhat.com>
11228
fb453d08
UD
11229 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
11230 CFLAGS-getsrvbynpt_r.c.
11231 * nscd/getsrvbynm_r.c: New file.
11232 * nscd/getsrvbypt_r.c: New file.
11233 * nscd/nscd_getserv_r.c: New file.
11234 * nscd/servicescache.c: New file.
11235 * nscd/Makefile (routines): Add nscd_getserv_r.
11236 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
11237 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
11238 CFLAGS-getsrvbypt_r.c.
11239 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
11240 table. Add entries for services database.
11241 * nscd/connections.c (serv2str): Mark as const. Add entries for
11242 services database.
11243 (dbs): Add .reset_res and servdb initialization.
11244 (serv2db): Add entries for services database.
11245 (verify_persistent_db): Accept dbnr == servdb.
11246 (invalidate_cache): Rewrite database name recognition to use a table.
11247 Call res_init() if .reset_res is set for database.
11248 (handle_request): Add code to handle services database.
11249 * nscd/gai.c: Don't define __getservbyname_r.
11250 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
11251 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
11252 (serv_response_header): Define.
11253 (struct datahead): Add serv_response_header member.
11254 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
11255 using table.
11256 * nscd/nscd.conf: Add entries for services database.
11257 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
11258 Declare serv_iov_disabled.
11259 Declare addservbyname, readdservbyname, addservbyport, and
11260 readdservbyport.
11261 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
11262 (find_db): Fix error message.
11263 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
11264 __nscd_getservbyname_r, and __nscd_getservbyport_r.
11265 * nscd/selinux.c (perms): Add entries for services database.
11266 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
11267 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
11268
11269 * nscd/grpcache.c: Remove obsolete code. Cleanups.
11270 * nscd/hstcache.c: Likewise.
11271 * nscd/pwdcache.c: Likewise.
11272
b21fa963
UD
11273 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
11274 computation of keylen.
11275
23691ab2
UD
11276 * include/string.h: Only redefine strndupa if this is really for
11277 libc code.
11278
8980796b
UD
112792007-01-12 Ulrich Drepper <drepper@redhat.com>
11280
4a4a65f2
UD
11281 * nscd/nscd_gethst_r.c: Minor cleanups.
11282
43397eaf
UD
11283 * nscd/connections.c (handle_request): Check selinux permissions
11284 for all non-admin commands.
11285
038a1a9f
UD
11286 * sysdeps/i386/i486/bits/atomic.h: Define
11287 atomic_compare_and_exchange_val_acq,
11288 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
11289 using __sync_* built-ins for gcc >= 4.1.
11290 * sysdeps/x86_64/bits/atomic.h: Likewise.
11291
8980796b
UD
11292 [BZ #3840]
11293 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
11294 and .oS.d files.
11295
32c075e1
JJ
112962007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
11297
11298 * stdlib/tst-makecontext.c: Include errno.h. Change main()
11299 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
11300 (do_test): Check errno and exit(0) if ENOSYS.
11301
113022007-01-11 Jakub Jelinek <jakub@redhat.com>
11303
11304 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
11305 thousands separators.
11306 * stdlib/Makefile: Add rules to build and run tst-strtod4.
11307 * stdlib/tst-strtod4.c: New test.
11308
11309 [BZ #3855]
11310 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
11311 hexadecimal digit should accept just the initial 0.
11312 * stdlib/tst-strtod2.c (tests): New variable.
11313 (do_test): Run several tests rather than just one.
11314
11bf311e 113152007-01-11 Jakub Jelinek <jakub@redhat.com>
df859a0c 11316
11bf311e
UD
11317 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
11318 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
df859a0c 11319
11bf311e 113202007-01-10 Ulrich Drepper <drepper@redhat.com>
32c075e1 11321
11bf311e
UD
11322 * io/fts.c: Make sure fts_cur is always valid after return from
11323 fts_read.
11324 Patch by Miloslav Trmac <mitr@redhat.com>.
64a0aa0f 11325
11bf311e 113262006-10-27 Richard Sandiford <richard@codesourcery.com>
32c075e1 11327
11bf311e
UD
11328 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
11329 (R_MIPS_NUM): Bump by 1.
32c075e1 11330
11bf311e 113312007-01-03 Jakub Jelinek <jakub@redhat.com>
32c075e1 11332
11bf311e
UD
11333 * posix/execvp.c: Include alloca.h.
11334 (allocate_scripts_argv): Renamed to...
11335 (scripts_argv): ... this. Don't allocate buffer here nor count
11336 arguments.
11337 (execvp): Use alloca if possible.
11338 * posix/Makefile: Add rules to build and run tst-vfork3 test.
11339 * posix/tst-vfork3.c: New test.
32c075e1
JJ
11340
113412007-01-03 Ulrich Drepper <drepper@redhat.com>
11342
11343 * string/Makefile (tst-strxfrm2-ENV): Define.
11bf311e 11344 * stdlib/Makefile (tst-strtod3-ENV): Define.
32c075e1 11345
11bf311e 113462007-01-02 Ulrich Drepper <drepper@redhat.com>
32c075e1 11347
11bf311e
UD
11348 * posix/getconf.c: Update copyright year.
11349 * nss/getent.c: Likewise.
11350 * iconv/iconvconfig.c: Likewise.
11351 * iconv/iconv_prog.c: Likewise.
11352 * elf/ldconfig.c: Likewise.
11353 * catgets/gencat.c: Likewise.
11354 * csu/version.c: Likewise.
11355 * elf/ldd.bash.in: Likewise.
11356 * elf/sprof.c (print_version): Likewise.
11357 * locale/programs/locale.c: Likewise.
11358 * locale/programs/localedef.c: Likewise.
11359 * nscd/nscd.c (print_version): Likewise.
11360 * debug/xtrace.sh: Likewise.
11361 * malloc/memusage.sh: Likewise.
11362 * malloc/mtrace.pl: Likewise.
11363 * debug/catchsegv.sh: Likewise.
64a0aa0f 11364
11bf311e 113652006-12-24 Ulrich Drepper <drepper@redhat.com>
48576885 11366
11bf311e
UD
11367 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
11368 attempts.
48576885 11369
11bf311e 113702006-12-23 Ulrich Drepper <drepper@redhat.com>
3b6667a4 11371
11bf311e 11372 * posix/wordexp.c: Remove some unnecessary tests.
3b6667a4 11373
33c6de58
UD
113742006-12-22 Gavin Romig-Koch <gavin@redhat.com>
11375
11376 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
11377 blacklist the group till after we look it up.
11378
fc242bef
UD
113792006-12-21 Ulrich Drepper <drepper@redhat.com>
11380
11381 * include/atomic.h (atomic_forced_read): New macro.
11382
11bf311e
UD
113832006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
11384
11385 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
11386
a12dcecc
UD
113872006-12-19 Jakub Jelinek <jakub@redhat.com>
11388
11bf311e
UD
11389 * nss/getXXbyYY_r.c: Include atomic.h.
11390 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
11391 add atomic_write_barrier () in between.
11392
a12dcecc
UD
11393 * stdlib/Makefile (tests): Add tst-makecontext.
11394 * stdlib/tst-makecontext.c: New test.
11395
11396 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
11397 (__makecontext): Don't realign uc_mcontext.uc_regs.
11398
11bf311e 113992006-11-28 Jakub Jelinek <jakub@redhat.com>
594d423a 11400
11bf311e
UD
11401 * elf/dl-support.c: Include dl-procinfo.h.
11402 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
11403 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
11404 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
11405 Define.
11406 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
11407 hardcoded constants.
11408 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
11409 PPC_PLATFORM_* macros for array designators.
594d423a 11410
11bf311e 114112006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
594d423a 11412
11bf311e
UD
11413 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
11414 names to the beginning.
11415 (_dl_powerpc_platforms): Add "power6x".
11416 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11417 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
11418 (_DL_PLATFORMS_COUNT): Increase.
11419 (_dl_string_platform): Handle power6x case.
11420 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
11421 PPC_FEATURE_POWER6_EXT): Define.
11422 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
594d423a 11423
5bcba0ed
UD
114242006-12-18 Jakub Jelinek <jakub@redhat.com>
11425
11426 [BZ #3747]
11427 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11bf311e 11428 [-2^31 .. 2^31) range.
5bcba0ed
UD
11429 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
11430 targets.
11431 * stdlib/tst-rand48-2.c: New test.
11432 * stdlib/Makefile (tests): Add tst-rand48-2.
11433
9e1444fc
UD
114342006-12-14 Jakub Jelinek <jakub@redhat.com>
11435
11436 * misc/tst-pselect.c (do_test): Fix sigblock argument.
11437
36775704
UD
114382006-12-14 Ulrich Drepper <drepper@redhat.com>
11439
11440 * misc/tst-pselect.c (do_test): Make sure the helper process is
11441 terminating when the test is aborted.
11442
1e88bd0f
UD
114432006-12-13 Ulrich Drepper <drepper@redhat.com>
11444
11bf311e
UD
11445 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
11446 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11447 Handle relatime mount option.
11448
1e88bd0f
UD
11449 [BZ #2337]
11450 * libio/Makefile (tests): Add tst-setvbuf1.
11451 * libio/tst-setvbuf1.c: New file.
11452
114532006-12-08 Jakub Jelinek <jakub@redhat.com>
11454
11455 [BZ #2337]
11456 * libio/genops.c (__uflow): Fix a typo.
11457 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
11458 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
11459 the narrow buffer size.
11460
114612006-11-24 Jakub Jelinek <jakub@redhat.com>
11462
11463 [BZ #2337]
11464 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
11465 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
11466 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
11467 in _flags.
11468 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
11469 _IO_wstr_finish): Likewise.
11470 * libio/wmemstream.c (open_wmemstream): Likewise.
11471 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
11472 even for wide streams.
11473
11bf311e 114742006-12-13 Jakub Jelinek <jakub@redhat.com>
1f55ce48 11475
11bf311e
UD
11476 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
11477 kernel-features.h.
11478
114792006-12-11 Ulrich Drepper <drepper@redhat.com>
11480
11481 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
11482 separators also if no non-zero digits found.
11483 * stdlib/Makefile (tests): Add tst-strtod3.
1f55ce48 11484
d117c1ce
UD
114852006-12-09 Ulrich Drepper <drepper@redhat.com>
11486
f85fb97b
UD
11487 [BZ #3632]
11488 * include/features.h: Fix comment about default value for
11489 _POSIX_C_SOURCE.
11490
11bf311e
UD
11491 [BZ #3664]
11492 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
11493 empty parsed strings.
11494 * stdlib/Makefile (tests): Add tst-strtod2.
11495 * stdlib/tst-strtod2.c: New file.
11496
11497 [BZ #3673]
11498 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
11499 computation.
11500 * stdlib/Makefile (tests): Add tst-atof2.
11501 * stdlib/tst-atof2.c: New file.
11502
11503 [BZ #3674]
11504 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
11505 correctly if removing trailing zero of hex-float.
11506 * stdlib/Makefile (tests): Add tst-atof1.
11507 * stdlib/tst-atof1.c: New file.
11508
a822d9f4
UD
115092006-12-09 Jakub Jelinek <jakub@redhat.com>
11510
11bf311e
UD
11511 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
11512 Start searching for next comma at p rather than rest.
11513 * misc/Makefile (tests): Add tst-mntent2.
11514 * misc/tst-mntent2.c: New test.
11515
a822d9f4
UD
11516 * misc/getusershell.c (initshells): Check for integer overflows.
11517 Make strings buffer one bigger as fgets always succeeds when second
11518 argument is 1. Don't use calloc for shells array. Disallow
11bf311e 11519 / as shell.
f0d5e1f6 11520
11bf311e 115212006-12-08 Ulrich Drepper <drepper@redhat.com>
f0d5e1f6 11522
11bf311e
UD
11523 * malloc/memusage.c: Handle realloc with new size of zero and
11524 non-NULL pointer correctly.
11525 (me): Really write first record twice.
11526 (struct entry): Make format bi-arch safe.
11527 (dest): Write out more realloc statistics.
11528 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
32c075e1 11529
11bf311e 115302006-12-05 Jakub Jelinek <jakub@redhat.com>
32c075e1 11531
11bf311e 11532 * nis/nis_subr.c (nis_getnames): Revert last change.
32c075e1 11533
f0d5e1f6
UD
115342006-12-04 Jakub Jelinek <jakub@redhat.com>
11535
11536 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
11537 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
11538 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
11539 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
11540 ENOTTY.
11541 * io/Makefile: Add rules to build and run tst-ttyname_r test.
11542 * io/tst-ttyname_r.c: New test.
11543
11bf311e 115442006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5df4fe08 11545
11bf311e 11546 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
5df4fe08 11547
11bf311e 115482006-11-30 H.J. Lu <hongjiu.lu@intel.com>
ee50871d 11549
11bf311e
UD
11550 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
11551 jump table entries.
11552
115532006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
11554
11555 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
11556 `clone' function to ensure proper unwinding stop of gdb.
11557 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11558
115592006-12-01 Ulrich Drepper <drepper@redhat.com>
11560
11561 * nscd/nscd.init: Remove obsolete and commented-out -S option
11562 handling.
11563
115642006-11-23 Jakub Jelinek <jakub@redhat.com>
11565
11566 [BZ #3514]
11567 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
11568
11569 [BZ #3515]
11570 * manual/string.texi (strtok): Remove duplicate paragraph.
11571
115722006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11573
11574 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
11575 libgcc not supporting `rflags' unwinding (register # >= 17).
11576
115772006-11-30 Jakub Jelinek <jakub@redhat.com>
11578
11579 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
11580 succeeded.
11581
115822006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
11583 Jakub Jelinek <jakub@redhat.com>
11584 Jan Kratochvil <jan.kratochvil@redhat.com>
11585
11586 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
11587 unwind information.
11588 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
11589 'restore_rt' even in the 'signal' directory.
11590 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
ee50871d 11591
b1a758f3
UD
115922006-11-27 Jakub Jelinek <jakub@redhat.com>
11593
11594 [BZ #3559]
11595 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11bf311e
UD
11596 malloc crashed. Don't allocate memory unnecessarily in each
11597 loop.
b1a758f3 11598
11bf311e 115992006-10-21 Jakub Jelinek <jakub@redhat.com>
854d1124 11600
11bf311e 11601 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
dfc99a56 11602
11bf311e 116032006-11-20 Ulrich Drepper <drepper@redhat.com>
dfc99a56 11604
11bf311e 11605 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
852d657c 11606
11bf311e 116072006-11-18 Bruno Haible <bruno@clisp.org>
852d657c 11608
11bf311e
UD
11609 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
11610 __sysconf only after having tried to call getgroups32.
36c0a636 11611
11bf311e 116122006-11-19 Ulrich Drepper <drepper@redhat.com>
36c0a636 11613
11bf311e
UD
11614 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
11615 addresses for IPv4 queries if they can be mapped.
b1f0c2a6 11616
11bf311e 116172006-11-16 Jakub Jelinek <jakub@redhat.com>
b1f0c2a6 11618
11bf311e
UD
11619 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
11620 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
11621 (signmask): Add .size directive.
11622 (othermask): Add .type directive.
bef8927a 11623
11bf311e 116242006-11-14 Ulrich Drepper <drepper@redhat.com>
2c53fa20 11625
11bf311e 11626 * po/nl.po: Update from translation team.
854d1124 11627
11bf311e 11628 * timezone/zdump.c: Redo fix for BZ #3137.
3f1e9205 11629
11bf311e 116302006-11-14 Jakub Jelinek <jakub@redhat.com>
bef8927a 11631
11bf311e
UD
11632 * nss/nss_files/files-alias.c (get_next_alias): Set line back
11633 to first_unused after parsing :include: file.
5c2af134 11634
32c075e1 116352006-11-10 Ulrich Drepper <drepper@redhat.com>
e1b37083 11636
11bf311e
UD
11637 * timezone/africa: Update from tzdata2006o.
11638 * timezone/antarctica: Likewise.
11639 * timezone/asia: Likewise.
11640 * timezone/australasia: Likewise.
11641 * timezone/backward: Likewise.
11642 * timezone/europe: Likewise.
11643 * timezone/iso3166.tab: Likewise.
11644 * timezone/northamerica: Likewise.
11645 * timezone/southamerica: Likewise.
11646 * timezone/zone.tab: Likewise.
11647
11648 * time/tzfile.c (__tzfile_read): Extend to handle new file format
11649 on machines with 64-bit time_t.
11650
11651 * timezone/checktab.awk: Update from tzcode2006o.
11652 * timezone/ialloc.c: Likewise.
11653 * timezone/private.h: Likewise.
11654 * timezone/scheck.c: Likewise.
11655 * timezone/tzfile.h: Likewise.
11656 * timezone/tzselect.ksh: Likewise.
11657 * timezone/zdump.c: Likewise.
11658 * timezone/zic.c: Likewise.
11659
11660 [BZ #3483]
11661 * elf/ldconfig.c (main): Call setlocale and textdomain.
11662 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11663
11664 [BZ #3480]
11665 * manual/argp.texi: Fix typos.
11666 * manual/charset.texi: Likewise.
11667 * manual/errno.texi: Likewise.
11668 * manual/filesys.texi: Likewise.
11669 * manual/lang.texi: Likewise.
11670 * manual/maint.texi: Likewise.
11671 * manual/memory.texi: Likewise.
11672 * manual/message.texi: Likewise.
11673 * manual/resource.texi: Likewise.
11674 * manual/search.texi: Likewise.
11675 * manual/signal.texi: Likewise.
11676 * manual/startup.texi: Likewise.
11677 * manual/stdio.texi: Likewise.
11678 * manual/sysinfo.texi: Likewise.
11679 * manual/syslog.texi: Likewise.
11680 * manual/time.texi: Likewise.
11681 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11682
11683 [BZ #3465]
11684 * sunrpc/clnt_raw.c: Minimal message improvements.
11685 * sunrpc/pm_getmaps.c: Likewise.
11686 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11687 * nis/nis_print_group_entry.c: Likewise.
11688 * locale/programs/repertoire.c: Likewise.
11689 * locale/programs/charmap.c: Likewise.
11690 * malloc/memusage.sh: Likewise.
11691 * elf/dl-deps.c: Likewise.
11692 * locale/programs/ld-collate.c: Likewise.
11693 * libio/vswprintf.c: Likewise.
11694 * malloc/memusagestat.c: Likewise.
11695 * sunrpc/auth_unix.c: Likewise.
11696 * sunrpc/rpc_main.c: Likewise.
11697 * nscd/cache.c: Likewise.
11698 * locale/programs/repertoire.c: Unify output messages.
11699 * locale/programs/charmap.c: Likewise.
11700 * locale/programs/ld-ctype.c: Likewise.
11701 * locale/programs/ld-monetary.c: Likewise.
11702 * locale/programs/ld-numeric.c: Likewise.
11703 * locale/programs/ld-time.c: Likewise.
11704 * elf/ldconfig.c: Likewise.
11705 * nscd/selinux.c: Likewise.
11706 * elf/cache.c: Likewise.
11707 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11708
5c2af134
UD
11709 [BZ #3451]
11710 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
11711 change atomic.
11712 (ceil): Likewise.
11713
11bf311e
UD
117142006-11-10 Jakub Jelinek <jakub@redhat.com>
11715
11716 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
11717 if N is one bigger than return value.
11718 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
11719 and l1 last arguments, if buf is defined, verify the return value
11720 equals to strlen (buf) and verify no byte beyond passed length
11721 is modified.
11722
117232006-11-10 Ulrich Drepper <drepper@redhat.com>
11724
11725 * po/sv.po: Update from translation team.
11726
37afcf79
UD
117272006-11-09 Ulrich Drepper <drepper@redhat.com>
11728
11729 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
11730 noinline attribute.
11731
117322006-11-10 Jakub Jelinek <jakub@redhat.com>
11733
11734 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
11735 noinline attribute.
11736
11bf311e
UD
11737 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
11738 Use __new_sys_siglist instead of _sys_siglist_internal as
11739 second macro argument.
11740 (_old_sys_siglist): Use declare_symbol_alias macro instead of
11741 strong_alias.
2692deea 11742
11bf311e
UD
117432006-11-09 Ulrich Drepper <drepper@redhat.com>
11744
11745 [BZ #3493]
11746 * posix/unistd.h (sysconf): Remove const attribute.
11747
11748 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
11749 temporary or deprecated addresses.
11750 Patch by Sridhar Samudrala <sri@us.ibm.com>.
11751
11752 * string/Makefile (tests): Add tst-strxfrm2.
11753 * string/tst-strxfrm2.c: New file.
11754
117552006-10-09 Jakub Jelinek <jakub@redhat.com>
11756
11757 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
11758 rather than r->r_brk.
2692deea
UD
11759
117602006-11-08 Jakub Jelinek <jakub@redhat.com>
11761
11bf311e
UD
11762 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
11763 optimization even if needed > n.
11764
2692deea
UD
11765 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
11766 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
11767 return false, otherwise return true.
11768 (cache_rpath): Return decompose_rpath return value.
11769
11bf311e
UD
117702006-11-07 Jakub Jelinek <jakub@redhat.com>
11771
11772 * include/libc-symbols.h (declare_symbol): Rename to...
11773 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
11774 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
11775 .size directive.
11776 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
11777 changes.
11778 * sysdeps/gnu/siglist.c: Likewise.
11779
117802006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
11781
11782 * sysdeps/powerpc/fpu/bits/mathinline.h
11783 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
11784 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
11785
117862006-11-05 Ulrich Drepper <drepper@redhat.com>
11787
11788 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
11789 Update handling of cache descriptor 0x49 for new models.
11790 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
11791 Likewise.
11792
9666e36c
UD
117932006-11-02 Jakub Jelinek <jakub@redhat.com>
11794
11795 * malloc/memusage.c (dest): Reset not_me back to false after
11796 printing statistics.
11797
11bf311e
UD
117982006-11-02 Ulrich Drepper <drepper@redhat.com>
11799
11800 * configure.in: Work around ld --help change and avoid -z relro
11801 test completely if the architecture doesn't care about security.
11802
118032006-11-01 Ulrich Drepper <drepper@redhat.com>
11804
11805 * po/sv.po: Update from translation team.
11806
118072006-10-31 Ulrich Drepper <drepper@redhat.com>
11808
11809 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
11810 generate compatibility version.
11811
118122006-10-29 Ulrich Drepper <drepper@redhat.com>
11813
11814 * configure.in: Relax -z relro requirement a bit.
11815
11816 * po/sv.po: Update from translation team.
11817
118182006-10-29 Jakub Jelinek <jakub@redhat.com>
11819
11820 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
11821 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
11822 * elf/dl-close.c (_dl_close_worker): Likewise.
11823 * elf/dl-open.c (_dl_open_worker): Likewise.
11824 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
11825
b2369ca3
UD
118262006-10-27 Ulrich Drepper <drepper@redhat.com>
11827
11bf311e
UD
11828 * configure.in: Require assembler support for visibility, compiler
11829 support for visibility and aliases, linker support for various -z
11830 options.
11831 * Makeconfig: Remove conditional code which now is unnecessary.
11832 * config.h.in: Likewise.
11833 * config.make.in: Likewise.
11834 * dlfcn/Makefile: Likewise.
11835 * elf/Makefile: Likewise.
11836 * elf/dl-load.c: Likewise.
11837 * elf/rtld.c: Likewise.
11838 * include/libc-symbols.h: Likewise.
11839 * include/stdio.h: Likewise.
11840 * io/Makefile: Likewise.
11841 * io/fstat.c: Likewise.
11842 * io/fstat64.c: Likewise.
11843 * io/fstatat.c: Likewise.
11844 * io/fstatat64.c: Likewise.
11845 * io/lstat.c: Likewise.
11846 * io/lstat64.c: Likewise.
11847 * io/mknod.c: Likewise.
11848 * io/mknodat.c: Likewise.
11849 * io/stat.c: Likewise.
11850 * io/stat64.c: Likewise.
11851 * libio/stdio.c: Likewise.
11852 * nscd/Makefile: Likewise.
11853 * stdlib/Makefile: Likewise.
11854 * stdlib/atexit.c: Likewise.
11855 * sysdeps/generic/ldsodefs.h: Likewise.
11856 * sysdeps/i386/dl-machine.h: Likewise.
11857 * sysdeps/i386/sysdep.h: Likewise.
11858 * sysdeps/i386/i686/memcmp.S: Likewise.
11859 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11860 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11861 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
11862
11863 * Makerules: USE_TLS support is now default.
11864 * tls.make.c: Likewise.
11865 * csu/Versions: Likewise.
11866 * csu/libc-start.c: Likewise.
11867 * csu/libc-tls.c: Likewise.
11868 * csu/version.c: Likewise.
11869 * dlfcn/dlinfo.c: Likewise.
11870 * elf/dl-addr.c: Likewise.
11871 * elf/dl-cache.c: Likewise.
11872 * elf/dl-close.c: Likewise.
11873 * elf/dl-iteratephdr.c: Likewise.
11874 * elf/dl-load.c: Likewise.
11875 * elf/dl-lookup.c: Likewise.
11876 * elf/dl-object.c: Likewise.
11877 * elf/dl-open.c: Likewise.
11878 * elf/dl-reloc.c: Likewise.
11879 * elf/dl-support.c: Likewise.
11880 * elf/dl-sym.c: Likewise.
11881 * elf/dl-sysdep.c: Likewise.
11882 * elf/dl-tls.c: Likewise.
11883 * elf/ldconfig.c: Likewise.
11884 * elf/rtld.c: Likewise.
11885 * elf/tst-tls-dlinfo.c: Likewise.
11886 * elf/tst-tls1.c: Likewise.
11887 * elf/tst-tls10.h: Likewise.
11888 * elf/tst-tls14.c: Likewise.
11889 * elf/tst-tls2.c: Likewise.
11890 * elf/tst-tls3.c: Likewise.
11891 * elf/tst-tls4.c: Likewise.
11892 * elf/tst-tls5.c: Likewise.
11893 * elf/tst-tls6.c: Likewise.
11894 * elf/tst-tls7.c: Likewise.
11895 * elf/tst-tls8.c: Likewise.
11896 * elf/tst-tls9.c: Likewise.
11897 * elf/tst-tlsmod1.c: Likewise.
11898 * elf/tst-tlsmod13.c: Likewise.
11899 * elf/tst-tlsmod13a.c: Likewise.
11900 * elf/tst-tlsmod14a.c: Likewise.
11901 * elf/tst-tlsmod2.c: Likewise.
11902 * elf/tst-tlsmod3.c: Likewise.
11903 * elf/tst-tlsmod4.c: Likewise.
11904 * elf/tst-tlsmod5.c: Likewise.
11905 * elf/tst-tlsmod6.c: Likewise.
11906 * include/errno.h: Likewise.
11907 * include/link.h: Likewise.
11908 * include/tls.h: Likewise.
11909 * locale/global-locale.c: Likewise.
11910 * locale/localeinfo.h: Likewise.
11911 * malloc/arena.c: Likewise.
11912 * malloc/hooks.c: Likewise.
11913 * malloc/malloc.c: Likewise.
11914 * resolv/Versions: Likewise.
11915 * sysdeps/alpha/dl-machine.h: Likewise.
11916 * sysdeps/alpha/libc-tls.c: Likewise.
11917 * sysdeps/generic/ldsodefs.h: Likewise.
11918 * sysdeps/generic/tls.h: Likewise.
11919 * sysdeps/i386/dl-machine.h: Likewise.
11920 * sysdeps/ia64/dl-machine.h: Likewise.
11921 * sysdeps/ia64/libc-tls.c: Likewise.
11922 * sysdeps/mach/hurd/fork.c: Likewise.
11923 * sysdeps/mach/hurd/i386/tls.h: Likewise.
11924 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
11925 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
11926 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
11927 * sysdeps/s390/libc-tls.c: Likewise.
11928 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11929 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11930 * sysdeps/sh/dl-machine.h: Likewise.
11931 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11932 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11933 * sysdeps/x86_64/dl-machine.h: Likewise.
11934
131c4428
UD
11935 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
11936 split out locking and parameter checking.
11937 (_dl_close): Call _dl_close_worker after locking and checking.
11938 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
11939 _dl_close.
ffd0e1b7
UD
11940 * elf/Makefile: Add rules to build and run tst-thrlock.
11941 * elf/tst-thrlock.c: New file.
131c4428 11942
11bf311e
UD
11943 [BZ #3426]
11944 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
11945 reality.
11946
b2369ca3
UD
11947 [BZ #3429]
11948 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
131c4428 11949 we are sure we do not need it anymore for _dl_close. Also move
b2369ca3
UD
11950 the asserts inside the lock region.
11951 Patch mostly by Suzuki <suzuki@in.ibm.com>.
11952
11bf311e
UD
119532006-10-27 Jakub Jelinek <jakub@redhat.com>
11954
11955 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
11956 argument.
11957 (_dl_lookup_symbol_x): Adjust caller.
11958
11959 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
11960 _ns_global_scope.
11961 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
11962
11963 * elf/dl-libc.c: Revert l_scope name changes.
11964 * elf/dl-load.c: Likewise.
11965 * elf/dl-object.c: Likewise.
11966 * elf/rtld.c: Likewise.
11967 * elf/dl-close.c (_dl_close): Likewise.
11968 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
11969 always use __rtld_mrlock_{change,done}. Always free old scope list
11970 here if not l_scope_mem.
11971 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
11972 change. Never free scope list here. Just __rtld_mrlock_lock before
11973 the lookup and __rtld_mrlock_unlock it after the lookup.
11974 * elf/dl-sym.c: Likewise.
11975 * include/link.h (struct r_scoperec): Remove.
11976 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
11977 with l_scope_mem and l_scoperec_lock with l_scope_lock.
11978
119792006-10-25 Ulrich Drepper <drepper@redhat.com>
11980
11981 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
11982
119832006-10-18 Ulrich Drepper <drepper@redhat.com>
11984
11985 * configure.in: Disable building profile libraries by default.
11986
609cf614
UD
119872006-10-17 Jakub Jelinek <jakub@redhat.com>
11988
11989 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
11990 as signed longs, check for x_base + pos overflow.
11991 * sunrpc/Makefile (tests): Add tst-xdrmem2.
11992 * sunrpc/tst-xdrmem2.c: New test.
11993
11bf311e
UD
119942006-10-18 Ulrich Drepper <drepper@redhat.com>
11995
11996 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
11997 _dl_lookup_symbol_x code.
11998
119992006-10-17 Jakub Jelinek <jakub@redhat.com>
12000
12001 * elf/dl-runtime.c: Include sysdep-cancel.h.
12002 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
12003 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
12004 instead of catomic_* macros.
12005 * elf/dl-sym.c: Include sysdep-cancel.h.
12006 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12007 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12008 * elf/dl-close.c: Include sysdep-cancel.h.
12009 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12010 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12011 * elf/dl-open.c: Include sysdep-cancel.h.
12012 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12013 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12014
120152006-10-17 Jakub Jelinek <jakub@redhat.com>
12016
12017 [BZ #3313]
12018 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12019 fastbin rather than end of fastbin array.
12020
120212006-10-18 Ulrich Drepper <drepper@redhat.com>
12022
12023 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12024 body macro.
12025 * sysdeps/x86_64/bits/atomic.h
12026 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12027 (catomic_decrement): Use correct body macro.
12028
120292006-10-17 Jakub Jelinek <jakub@redhat.com>
12030
12031 * include/atomic.h: Add a unique prefix to all local variables
12032 in macros.
12033 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12034
4a85a8ee
UD
120352006-10-16 Ulrich Drepper <drepper@redhat.com>
12036
12037 [BZ #3369]
12038 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12039 and 7.
12040
11bf311e
UD
120412006-10-14 Ulrich Drepper <drepper@redhat.com>
12042
12043 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12044
ff8d96be
UD
120452006-10-13 Ulrich Drepper <drepper@redhat.com>
12046
11bf311e
UD
12047 [BZ #3313]
12048 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12049 determine highest fast bin to consolidate, always look into all of
12050 them.
12051 (do_check_malloc_state): Only require for empty bins for large
12052 sizes in main arena.
12053
12054 * libio/stdio.h: Add more __wur attributes.
12055
ff8d96be
UD
12056 * elf/dl-minimal.c (realloc): Optimize last patch.
12057
90a0991a
UD
120582006-10-12 Richard Sandiford <richard@codesourcery.com>
12059
12060 [BZ #3352]
12061 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12062 and use memcpy() if it does.
ff8d96be 12063
11bf311e
UD
120642006-11-12 Andreas Jaeger <aj@suse.de>
12065
12066 [BZ #2510]
12067 * manual/search.texi (Hash Search Function): Clarify.
12068 (Array Search Function): Clarify.
12069
120702006-11-12 Joseph Myers <joseph@codesourcery.com>
12071
12072 [BZ #2830]
12073 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12074 shifting.
12075 * math/atest-exp2.c (read_mpn_hex): Likewise.
12076 * math/atest-sincos.c (main): Likewise.
12077
37fb7595
UD
120782006-10-11 Ulrich Drepper <drepper@redhat.com>
12079
11bf311e
UD
12080 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12081 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12082 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12083 version GLIBC_2.6.
12084 * Versions.def: Add GLIBC_2.6 for libc.
12085
46c38bd7
UD
12086 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
12087
11bf311e
UD
12088 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
12089
120902006-10-11 Jakub Jelinek <jakub@redhat.com>
12091
12092 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
12093
12094 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
12095
12096 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
12097 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
12098
120992006-10-11 Ulrich Drepper <drepper@redhat.com>
12100
12101 * include/atomic.c: Define catomic_* operations.
12102 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
12103 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
12104 * malloc/memusage.c: Likewise.
12105 * gmon/mcount.c: Likewise.
12106 * elf/dl-close.c: Likewise.
12107 * elf/dl-open.c: Likewise.
12108 * elf/dl-profile.c: Likewise.
12109 * elf/dl-sym.c: Likewise.
12110 * elf/dl-runtime.c: Likewise.
12111 * elf/dl-fptr.c: Likewise.
12112 * resolv/res_libc.c: Likewise.
12113
2a6ee549
UD
121142006-10-10 Ulrich Drepper <drepper@redhat.com>
12115
12116 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
12117 components which lack them.
12118
12119 * nis/nis_subr.c (nis_getnames): Make sure that we always return
12120 at least one entry consisting of the parameter concatenated with
12121 the domain.
12122
11bf311e 121232006-10-10 Roland McGrath <roland@frob.com>
c4f9fc3a 12124
11bf311e
UD
12125 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
12126 * sysdeps/mach/hurd/futimes.c: Likewise.
12127 * sysdeps/mach/hurd/lutimes.c: Likewise.
12128
121292006-10-09 Ulrich Drepper <drepper@redhat.com>
12130 Jakub Jelinek <jakub@redhat.com>
12131
12132 Implement reference counting of scope records.
12133 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
12134 from the list in objects which remain. Always allocate new scope
12135 record.
12136 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
12137 don't resize, allocate a new one.
12138 * elf/dl-runtime.c: Update reference counters before using a scope
12139 array.
12140 * elf/dl-sym.c: Likewise.
12141 * elf/dl-libc.c: Adjust for l_scope name change.
12142 * elf/dl-load.c: Likewise.
12143 * elf/dl-object.c: Likewise.
12144 * elf/rtld.c: Likewise.
12145 * include/link.h: Include <rtld-lowlevel.h>. Define struct
12146 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
12147 Add l_scoperec_lock.
12148 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
12149 * sysdeps/generic/rtld-lowlevel.h: New file.
12150
12151 * include/atomic.h: Rename atomic_and to atomic_and_val and
12152 atomic_or to atomic_or_val. Define new macros atomic_and and
12153 atomic_or which do not return values.
12154 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
12155 Various cleanups.
12156 * sysdeps/i386/i486/bits/atomic.h: Likewise.
12157
12158 * po/sv.po: Update from translation team.
12159
121602006-10-07 Ulrich Drepper <drepper@redhat.com>
12161
12162 * Versions.def: Add GLIBC_2.6 to libpthread.
12163
12164 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
12165 (versioned_symbol): Likewise.
12166 (compat_symbol): Likewise.
12167
12168 * po/tr.po: Update from translation team.
feb87ad1 12169
4df92d57
UD
121702006-10-06 Ulrich Drepper <drepper@redhat.com>
12171
11bf311e
UD
12172 * nis/Banner: Removed. It's been integral part forever and the
12173 author info is incomplete anyway.
12174 * libio/Banner: Likewise.
12175
4df92d57
UD
12176 * nis/nis_table.c (nis_list): If __follow_path fails in the new
12177 code, make sure the nis_freeresult call doesn't crash and that the
12178 result is reported correctly.
12179
68361572
UD
121802006-09-27 Jakub Jelinek <jakub@redhat.com>
12181
12182 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12183 when callback is NULL.
12184
12185 * nis/Versions (libnss_nisplus): Add
12186 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12187 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
12188 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
12189 _nss_create_tablename): Rename to...
12190 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
12191 ... these. No longer static.
12192 (internal_setgrent): Adjust users.
12193 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
12194 Don't use locking around _nss_grp_create_tablename call.
12195 * nis/nss_nisplus/nisplus-initgroups.c: New file.
12196
11bf311e
UD
121972006-10-06 Ulrich Drepper <drepper@redhat.com>
12198
12199 * version.h (VERSION): Bump to 2.5.90 for new development tree.
12200
3a4e0609
UD
122012006-10-06 Andreas Jaeger <aj@suse.de>
12202
12203 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
12204
122052006-10-06 Ulrich Drepper <drepper@redhat.com>
12206
12207 * po/pl.po: Update from translation team.
12208
12209 * nscd/nscd.c (main): Fix typo in message.
12210 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
12211
97e57dee
UD
122122006-10-02 Jakub Jelinek <jakub@redhat.com>
12213
12214 [BZ #3291]
12215 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
12216 errno.h, signal.h, unistd.h and sysdep-cancel.h.
12217 (__sigprocmask): Define.
12218
768027a4
UD
122192006-10-02 Ulrich Drepper <drepper@redhat.com>
12220
12221 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
12222 used.
12223
0b25a49a
UD
122242006-10-02 Jakub Jelinek <jakub@redhat.com>
12225
12226 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
12227 in oldtotal and newtotal calculation.
12228 * nscd/nscd-client.h (struct mapped_database): Add datasize
12229 field.
12230 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
12231 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
12232 increased.
12233 (__nscd_cache_search): Add checks to make sure we never reference
12234 data beyond the current mapping.
12235
a1286745
UD
122362006-10-02 Dmitry V. Levin <ldv@altlinux.org>
12237
d4ed7561
UD
12238 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
12239 variables const to avoid compiler warnings.
12240
a1286745
UD
12241 * io/fts.c (fts_close): Remove redundant checks.
12242 (fts_build): Likewise.
12243 (fts_palloc): Likewise.
12244
12245 * manual/message.texi (Advanced gettext functions,
12246 Using gettextized software): Fix typos.
12247
f01e4069
UD
122482006-09-30 Ulrich Drepper <drepper@redhat.com>
12249
12250 * posix/glob.c (glob_in_dir): Add some comments and asserts to
12251 explain why there are no leaks.
12252
154619b5
UD
122532006-09-29 Ulrich Drepper <drepper@redhat.com>
12254
690c3947
UD
12255 * libio/wmemstream.c: Include <wchar.h>.
12256 * libio/bug-wmemstream1.c: Likewise.
12257 * libio/tst-wmemstream1.c: Likewise.
12258 * libio/tst-wmemstream2.c: Likewise.
12259
88cc61e8
UD
12260 * version.h (RELEASE): Bump to 2.5.
12261 * README: Regenerated.
12262
a70c18b0
UD
12263 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
12264
154619b5
UD
12265 [BZ #3273]
12266 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
12267 found no group members.
12268 Patch by Petr Baudis.
12269
122702006-09-29 Jakub Jelinek <jakub@redhat.com>
12271
12272 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
12273 assert bootstrap_map.l_tls_modid is zero.
12274 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
12275 if USE___THREAD.
12276
1c31aa79
UD
122772006-09-27 Ulrich Drepper <drepper@redhat.com>
12278
12279 * libio/stdio.h: Move open_wmemstream prototype to ...
12280 * wcsmbs/wchar.h: ... here.
12281
f1122ec3
UD
122822006-09-25 Jakub Jelinek <jakub@redhat.com>
12283
12284 [BZ #3252]
12285 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
12286 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
12287 __{,l}chown to handle the rest.
12288 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
12289 fchownat syscall and __ASSUME_32BITUIDS case inline, call
12290 __{,l}chown to handle the rest.
12291 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
12292 i386/fchownat.c.
12293 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
12294 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
12295
12296 [BZ #3253]
12297 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
12298 time, rather allocate increasingly bigger arrays of pointers, if
12299 possible with alloca, if too large with malloc.
12300
123012006-09-24 Jakub Jelinek <jakub@redhat.com>
12302
12303 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
12304
12305 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
12306
457b559e
UD
123072006-09-24 Ulrich Drepper <drepper@redhat.com>
12308
12309 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
12310 home addresses.
12311 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
12312 IFA_F_HOMEADDRESS flag for interfaces.
12313 * include/ifaddrs.h (struct in6addrinfo): Define
12314 in6ai_homeaddress.
12315
4a132246
UD
123162006-09-21 Jakub Jelinek <jakub@redhat.com>
12317
12318 [BZ #3225]
12319 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
12320 PTR_DEMANGLE3): Define.
12321 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
12322 PTR_DEMANGLE3): Likewise.
12323 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
12324 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
12325 Likewise.
12326 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
12327
c69136ae
UD
123282006-09-20 Jakub Jelinek <jakub@redhat.com>
12329
12330 * po/libc.pot: Regenerated.
12331 * po/be.po: Updated.
12332 * po/ca.po: Likewise.
12333 * po/cs.po: Likewise.
12334 * po/da.po: Likewise.
12335 * po/de.po: Likewise.
12336 * po/el.po: Likewise.
12337 * po/en_GB.po: Likewise.
12338 * po/es.po: Likewise.
12339 * po/fi.po: Likewise.
12340 * po/fr.po: Likewise.
12341 * po/gl.po: Likewise.
12342 * po/hr.po: Likewise.
12343 * po/hu.po: Likewise.
12344 * po/ja.po: Likewise.
12345 * po/ko.po: Likewise.
12346 * po/nb.po: Likewise.
12347 * po/nl.po: Likewise.
12348 * po/pl.po: Likewise.
12349 * po/pt_BR.po: Likewise.
12350 * po/ru.po: Likewise.
12351 * po/rw.po: Likewise.
12352 * po/sk.po: Likewise.
12353 * po/sv.po: Likewise.
12354 * po/tr.po: Likewise.
12355 * po/zh_CN.po: Likewise.
12356 * po/zh_TW.po: Likewise.
12357
12358 [BZ #3137]
12359 * iconv/iconv_prog.c (main): Fix spelling in error message.
12360 * iconv/iconvconfig.c (main): Likewise.
12361 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
12362 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
12363 * locale/programs/localedef.c (main): Likewise.
12364 * locale/programs/repertoire.c (repertoire_read): Likewise.
12365 * timezone/zdump.c (main): Likewise.
12366 * nscd/connections.c (handle_request): Fix spelling in log message.
12367 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
12368
83b3108c
UD
123692006-09-20 Ulrich Drepper <drepper@redhat.com>
12370
12371 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
12372 interfaces.
12373
89210b4c
AJ
123742006-09-20 Andreas Jaeger <aj@suse.de>
12375
12376 * math/libm-test.inc (lrint_test_upward): Fix typo.
12377
6624dbc0
UD
123782006-06-17 Joseph S. Myers <joseph@codesourcery.com>
12379
12380 [BZ #2592]
12381 * math/libm-test.inc (lrint_test_tonearest): New function.
12382 (lrint_test_towardzero): New function.
12383 (lrint_test_downward): New function.
12384 (lrint_test_upward): New function.
12385 (main): Run these new tests.
12386 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
12387 of values near to 0.
12388 (two52): Use double not long double.
12389 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
12390 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
12391 (two23): Use float not double.
12392 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
12393 (two23): Use float not double.
12394 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
12395 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
12396 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
12397 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
12398
60cb50c7
UD
123992006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
12400
12401 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
12402 Cast sp to unsigned long to avoid compiler warning.
12403 Use __makecontext_ret function instead of a trampoline on the stack.
12404 (__makecontext_ret): New function.
12405 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
12406
33315ced
UD
124072006-09-19 Jakub Jelinek <jakub@redhat.com>
12408
12409 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
12410 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
12411 bits.
12412
1ee2ff20
UD
124132006-09-19 Ulrich Drepper <drepper@redhat.com>
12414
12415 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
12416 sure no reference to the unloaded map's search list remains in the
12417 dependency's scope.
12418
124192006-09-16 Jakub Jelinek <jakub@redhat.com>
12420
12421 * elf/Makefile: Add rules to build and run unload7 test.
12422 * elf/unload7.c: New test.
12423 * elf/unload7mod1.c: New file.
12424 * elf/unload7mod2.c: New file.
12425
0466106e
UD
124262006-09-18 Jakub Jelinek <jakub@redhat.com>
12427
12428 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
12429 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
12430 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12431 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
12432 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12433 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
12434 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12435 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
12436 PTRACE_GETEVENTMSG): Likewise.
12437 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
12438 values.
12439
9c316a45
UD
124402006-09-17 Mike Frysinger <vapier@gentoo.org>
12441
0466106e
UD
12442 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
12443 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12444 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
12445 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9c316a45
UD
12446
124472006-09-16 Jakub Jelinek <jakub@redhat.com>
12448
12449 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
12450 write '\0' to the fd.
12451 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
12452 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
12453 Change regs to unsigned long pointer from unsigned int, fix fscr
12454 offset.
12455
fb146a76
UD
124562006-09-14 Jakub Jelinek <jakub@redhat.com>
12457
12458 * io/Makefile (CFLAGS-fstatat.c): Set.
12459 (CFLAGS-fstatat64.c): Likewise.
12460 (CFLAGS-mknodat.c): Likewise.
12461
12462 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
12463 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12464 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
12465 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
12466
4cd3633d
UD
124672006-09-14 Jakub Jelinek <jakub@redhat.com>
12468 Steven Munroe <sjmunroe@us.ibm.com>
fb146a76 12469
4cd3633d
UD
12470 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
12471 names to the beginning. Rename "cell" to "cellbe".
12472 (_dl_powerpc_platforms): New.
12473 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12474 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
12475 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
12476 (_DL_HWCAP_PLATFORM): Define to new mask.
12477 (_dl_platform_string, _dl_string_platform): New functions.
12478 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
12479 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
12480
30aa5785
UD
124812006-09-12 Jakub Jelinek <jakub@redhat.com>
12482
12483 [BZ #2526]
12484 * README.libm: Fix a thinko in sqrt algorithm description.
12485
12486 [BZ #3143]
12487 * manual/string.texi (argz_delete): Fix prototype.
12488 Patch by <alpt@freaknet.org>.
12489
124902006-08-26 Joseph Myers <joseph@codesourcery.com>
12491
12492 [BZ #3138]
12493 * io/test-lfs.c (do_prepare): Give name_len type size_t.
12494 * io/tst-fcntl.c (do_prepare): Likewise.
12495 * posix/tst-exec.c (do_prepare): Likewise.
12496 * posix/tst-preadwrite.c (do_prepare): Likewise.
12497 * posix/tst-spawn.c (do_prepare): Likewise.
12498 * posix/tst-truncate.c (do_prepare): Likewise.
12499 * rt/tst-aio.c (do_prepare): Likewise.
12500 * rt/tst-aio64.c (do_prepare): Likewise.
12501 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
12502 size_t.
12503
d26d01d1
UD
125042006-09-09 Ulrich Drepper <drepper@redhat.com>
12505
41aba3d7
UD
12506 [BZ #2821]
12507 * time/mktime.c (guess_time_tm): Fix overflow detection.
12508 * time/Makefile (tests): Add bug-mktime1.
12509 * time/bug-mktime1.c: New file.
12510
eaa51b47 12511 [BZ #3189, #3188]
d26d01d1 12512 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
eaa51b47 12513 (mremap): Likewise.
d26d01d1 12514
ba40cc15
UD
125152006-09-07 Jakub Jelinek <jakub@redhat.com>
12516
2b6a801e
UD
12517 [BZ #1006]
12518 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12519 Ensure relocation doesn't clobber any bits outside of the
12520 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
12521 R_SPARC_HI22 and R_SPARC_H44.
12522
469615bd
UD
12523 [BZ #2775]
12524 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
12525 (long) (MINSIZE + nb - old_size) is positive.
12526
12527 * malloc/arena.c (grow_heap): When growing bail even if new_size
12528 is negative.
12529
ba40cc15
UD
12530 [BZ #3155]
12531 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
12532 stack below r1.
12533
243b9ac1
UD
125342006-09-06 Jakub Jelinek <jakub@redhat.com>
12535
ba40cc15
UD
12536 * posix/regex_internal.c (re_string_reconstruct): Handle
12537 offset < pstr->valid_raw_len && pstr->offsets_needed case.
12538 Ensure no bytes read before raw_mbs array. Pass a saved copy of
12539 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
12540 re_string_context_at.
12541 * posix/Makefile: Add rules to build and run bug-regex26 test.
12542 * posix/bug-regex26.c: New test.
12543
243b9ac1
UD
12544 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
12545 rather than col_sym_free. Move seqp declaration earlier.
12546
12547 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
12548
d052233c
UD
125492006-09-05 Jakub Jelinek <jakub@redhat.com>
12550
12551 * nscd/initgrcache.c (addinitgroupsX): Move any_success
12552 decl before first goto out.
12553
71213dc2
UD
125542006-09-04 Jakub Jelinek <jakub@redhat.com>
12555
12556 * Makerules (shlib.lds): If have-hash-style, put .hash section
12557 at the end of the RO segment.
12558
125592006-09-04 Ulrich Drepper <drepper@redhat.com>
12560
12561 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
12562 style hash table format is used.
12563
03eeff83
UD
125642006-09-04 Jakub Jelinek <jakub@redhat.com>
12565
12566 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
12567 randomization rather than before.
12568 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
12569
b80770b2
UD
125702006-08-31 Jakub Jelinek <jakub@redhat.com>
12571
ba40cc15 12572 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
b80770b2
UD
12573
12574 * malloc/malloc.c (_int_malloc): Use full list insert and not
12575 shortcut which assumes the list is empty for large requests
12576 too.
12577
12578 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
12579
99ea5991
UD
125802006-08-30 Jakub Jelinek <jakub@redhat.com>
12581
12582 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
12583 and offout arguments to the prototype.
12584 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
12585 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
12586 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
12587 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
12588 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
12589 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
12590 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
12591 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
12592
4004a0a5
UD
125932006-08-28 Ulrich Drepper <drepper@redhat.com>
12594
950398e1
UD
12595 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
12596
4004a0a5
UD
12597 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
12598 dlopen parameters.
12599
6e310111
UD
126002006-08-28 Jakub Jelinek <jakub@redhat.com>
12601
12602 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
12603 only if herrno is NETDB_INTERNAL. Handle errors other than
12604 ERANGE outside of the loops, handle TRY_AGAIN.
12605
12606 * locale/programs/ld-ctype.c (translit_flatten): Issue error
12607 if other's ctype category was missing.
12608 * locale/programs/ld-collate.c (collate_read): Return if
12609 copy_locale's collate category is missing.
12610
07014fca
UD
126112006-08-27 Ulrich Drepper <drepper@redhat.com>
12612
12613 [BZ #2684]
12614 * malloc/malloc.c (public_rEALLOc): Try harder by using other
12615 arenas if allocation failed.
12616 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
12617
71663747
UD
126182006-08-26 Ulrich Drepper <drepper@redhat.com>
12619
41999a1a
UD
12620 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
12621 waste bins[0..1].
12622 (malloc_state): Reduce bins size by 2.
12623 (_int_malloc): Fix test for large enough buffer for early termination.
12624 When no unsorted block matches perfectly and an exiting block has
12625 to be split, use full list insert and not shortcut which assumes
12626 the list is empty.
12627
71663747
UD
12628 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
12629 failure.
12630
93b53ca2
UD
126312006-08-24 Ulrich Drepper <drepper@redhat.com>
12632
f5a82772
UD
12633 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
12634 do anything.
12635
2ac9ca73
UD
12636 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
12637 symbol require exact match (these are PLTs).
12638 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
12639 (_dl_ppc64_addr_sym_match): Likewise.
12640
93b53ca2
UD
12641 [BZ #2683]
12642 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
12643 If symbol has a value use it.
12644 * elf/tst-dladdr1.c: New file.
12645 * elf/Makefile: Add rules to build and run tst-addr1.
12646
7463d5cb
UD
126472006-08-24 Jakub Jelinek <jakub@redhat.com>
12648
12649 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
12650 keeps failing and heap growth or new heap creation isn't
12651 successful either.
12652 * malloc/tst-malloc.c (main): Add new tests.
12653
542a6f62
UD
126542006-08-24 Ulrich Drepper <drepper@redhat.com>
12655
12656 [BZ #2734]
12657 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
12658 as in the x86-64 code to use bswap.
12659
aa2c6b6d
UD
126602006-05-21 Joseph S. Myers <joseph@codesourcery.com>
12661
24982798 12662 [BZ #2680]
aa2c6b6d
UD
12663 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
12664 __USE_UNIX98.
12665 * posix/bits/unistd.h: Likewise.
12666
59776aef
UD
126672006-05-15 Mike Frysinger <vapier@gentoo.org>
12668
12669 [BZ #2751]
12670 * string/strchr.c: Add cast to avoid warning.
12671
e404fb16
UD
126722006-08-21 Ulrich Drepper <drepper@redhat.com>
12673
12674 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
bd2c2341 12675 platforms define as 512K. For 64-bit platforms as 32MB. The lower
e404fb16
UD
12676 limit is needed to avoid the exploding of the address space
12677 requirement for secondary heaps.
12678 * malloc/arena.c (HEAP_MAX_SIZE): Define using
12679 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
12680
376e973a
UD
126812006-07-30 Joseph S. Myers <joseph@codesourcery.com>
12682
12683 [BZ #3018]
12684 * Makerules (depfiles): Handle extra-test-objs the same as
12685 extra-objs.
12686 (common-mostlyclean): Likewise.
12687 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
12688 instead.
12689 * elf/Makefile (extra-objs): Likewise.
12690 * stdlib/Makefile (extra-objs): Likewise.
12691
240c62a7
UD
126922006-08-14 Eric Blake <ebb9@byu.net>
12693
12694 [BZ #3044]
12695 * misc/error.h: Assume C89 or better.
12696 * misc/error.c: Likewise.
12697
3997b7c4
UD
126982006-08-21 Ulrich Drepper <drepper@redhat.com>
12699
12700 [BZ #3040]
12701 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
12702 __ASSUME_ATFCTS is defined.
12703
8a6537b0
UD
127042006-08-19 Ulrich Drepper <drepper@redhat.com>
12705
72320021
UD
12706 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
12707 to sort in each call.
12708
ed3691ba
UD
12709 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
12710 is empty simply return and use next service.
12711 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
12712
8a6537b0
UD
12713 * locale/programs/charmap.c (charmap_read): Add new parameter. It
12714 tells us when not finding a charmap file is an error.
12715 * locale/programs/charmap.h: Adjust charmap_read prototype.
12716 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
12717 cannot find a charmap.
12718 * locale/programs/localedef.c (main): Adjust charmap_read call.
12719
ad2a3c07
UD
127202006-08-15 Jakub Jelinek <jakub@redhat.com>
12721
12722 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
12723 sysdeps/posix/pause.c implementation instead.
12724
127252006-08-09 Jakub Jelinek <jakub@redhat.com>
12726
12727 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
12728 to EPERM.
12729
f17efcb4
UD
127302006-08-13 Andreas Schwab <schwab@suse.de>
12731
12732 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
12733 Don't clobber caller's LRSAVE.
12734 (_dl_prof_resolve): Likewise.
12735
107b8a92
UD
127362006-08-14 Ulrich Drepper <drepper@redhat.com>
12737
12738 [BZ #1996]
12739 * libio/memstream.c (open_memstream): Allocate initial buffer with
12740 calloc.
12741 * libio/wmemstream.c (open_wmemstream): Likewise.
12742 * libio/strops.c: Pretty printing.
12743 (_IO_str_overflow): Clear uninitialized part of the new buffer.
12744 (enlarge_userbuf): New function.
12745 (_IO_str_seekoff): Call it if seek position is larger than current
12746 buffer.
12747 * libio/wstrops.c: Likewise.
12748 * libio/vasprintf.c: Add comment as to why we do not have to use
12749 calloc instead of malloc to allocate initial buffer.
12750 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
12751 * libio/bug-memstream1.c: New file.
12752 * libio/bug-wmemstream1.c: New file.
12753
fa3ac53f
UD
127542006-08-13 Ulrich Drepper <drepper@redhat.com>
12755
89993734
UD
12756 * libio/wstrops.c: Remove dead macro definitions and comments.
12757 * libio/strops.c: Likewise.
12758
fa3ac53f
UD
12759 [BZ #2764]
12760 * login/utmpname.c (__utmpname): Remove unnecessary test.
12761
f99ed760
UD
127622006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
12763
12764 [BZ #2832]
12765 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
12766 0s from integers.
12767
127682006-08-13 Ulrich Drepper <drepper@redhat.com>
12769
12770 [BZ #2987]
12771 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
12772 for CPU clocks.
12773 * sysdeps/unix/clock_settime.c: Add support for platform-specific
12774 setting of CPU clocks.
12775
4c3f81d0
UD
127762006-06-23 Paul Eggert <eggert@cs.ucla.edu>
12777
12778 [BZ #2841]
12779 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
12780 since C99 requires the result to promote to 'int' when uint_least8_t
12781 and uint_least16_t promote to 'int'.
12782
cd8e60ce
UD
127832006-08-12 Ulrich Drepper <drepper@redhat.com>
12784
9a5c46e8
UD
12785 [BZ #3013]
12786 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
12787 lenght of one output field, correct bitmask creation.
12788 * locale/programs/ld-time.c: Add alignment.
12789
cd8e60ce
UD
12790 [BZ #2997]
12791 * misc/error.c: Add space between program name and message if file
12792 name is missing.
12793
9a528884
UD
127942006-08-03 Eric Blake <ebb9@byu.net>
12795
12796 [BZ #2998]
12797 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
12798
1d05c2fb
UD
127992006-08-09 Ulrich Drepper <drepper@redhat.com>
12800
0c1c6c6c
UD
12801 * malloc/memusagestat.c: Silence warnings.
12802
1d05c2fb
UD
12803 * malloc/malloc.c: Dynamically size mmap treshold if the program
12804 frees mmaped blocks.
12805 Patch by Valerie Henson and Arjan van de Ven.
12806
2d1e6277
UD
128072006-08-08 Jakub Jelinek <jakub@redhat.com>
12808
be7ffd91
UD
12809 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
12810 __USE_GNU.
12811
2d1e6277
UD
12812 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
12813 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
12814 (DEF): Don't put the var into .gnu.linkonce.r.* section.
12815 Only provide var definitions in strtol_l (or for *ull*
12816 in strtoll_l).
12817
12818 * stdio-common/bug16.c (tests): New array.
12819 (do_tests): Allow the first hexadecimal digit
12820 to be 1, 2, 4 or 8. Do 3 additional tests.
12821
12822 * sysdeps/s390/fpu/libm-test-ulps: Update.
12823
12824 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
12825 fchownat syscall if available.
12826 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
12827 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
12828 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
12829
d0ccde25
UD
128302006-08-07 Ulrich Drepper <drepper@redhat.com>
12831
12832 * nis/nis_xdr.c: Avoid some function calls.
12833
13a0293d 128342006-08-07 Jakub Jelinek <jakub@redhat.com>
3f7a21a9 12835 Ulrich Drepper <drepper@redhat.com>
13a0293d
UD
12836
12837 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
12838 short cut if only one name component is stripped away.
12839
bd1ebae0
UD
128402006-08-07 Ulrich Drepper <drepper@redhat.com>
12841
12842 * nis/nis_call.c: Minor cleanups throughout.
2d1e6277 12843 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
bd1ebae0
UD
12844 (first_shoot): Add search_parent_first parameter. Only if it is set
12845 search parent server first.
12846 If directory for table found through cold start cache is not the same
12847 as referenced in the cache, don't use it.
12848 (__nisfind_server): Take additional parameter. Pass it on to
12849 first_shoot.
12850 (__prepare_niscall): Adjust __nisfind_server call.
12851 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
12852 * nis/nis_table.c: Adjust __nisfind_server call.
12853 * nis/nis_lookup.c: Likewise.
12854 (nis_lookup): Don't loop endlessly if name is reduced to ".".
12855
f1762c0c
UD
128562006-08-03 Ulrich Drepper <drepper@redhat.com>
12857
fe710250
UD
12858 [BZ #2182]
12859 * math/s_cacosh.c: Return values from positive branch.
12860 * math/s_cacoshf.c: Likewise.
12861 * math/s_cacoshl.c: Likewise.
12862
a5852807
UD
12863 [BZ #2883]
12864 * sysvipc/sys/msg.h: Change return value to ssize_t.
12865 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
fe710250
UD
12866 * sysvipc/msgrcv.c: Likewise.
12867 * include/sys/msg.h: Likewise.
39571a13 12868
6c215a8d
UD
12869 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
12870 test introduced in patch for bz #661.
39571a13 12871 (getgrouplist): Simplify code a bit. Don't allocate one additional
f13bfdd0 12872 element for NEWGROUPS.
6c215a8d 12873
9c06eb66
UD
12874 [BZ #2908]
12875 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
12876 'f', use '1' as leading digit not '\1'.
12877 * stdio-common/Makefile (tests): Add bug16.
12878 * stdio-common/bug16.c: New file.
12879
12880 [BZ #2914]
12881 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
12882 and don't try to open it. The patch introducing the macro
12883 contained a bug and used the same file name as the new file
12884 instead of using /var/adm/hostid. Nobody complaint so I'm taking
12885 this out completely.
12886
12887 [BZ #2926]
12888 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
12889 Patch by Jerry James <Jerry.James@usu.edu>.
12890
f1762c0c
UD
12891 * rt/Makefile (tests): Add tst-clock2.
12892 * rt/tst-clock2.c: New file.
12893
12894 [BZ #2978]
12895 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
12896 function and its parameters and pass it to new thread.
12897 (__gai_notify): Add support for alternative waiting for completion.
12898 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
12899 waiting for completion.
12900 * resolv/getaddrinfo_a.c: Likewise.
12901 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
12902 waiting for completion is used.
12903 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
12904 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
12905 * resolv/gai_error.c: Likewise.
12906 * resolv/gai_sigqueue.c: Likewise.
12907
83ae6b40
RM
129082006-08-02 Thomas Schwinge <tschwinge@gnu.org>
12909
0e4e62fe 12910 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
f1762c0c 12911 errno to EBADF and return MACH_PORT_NULL.
83ae6b40 12912
82ee37c5
UD
129132006-06-23 Joseph Myers <joseph@codesourcery.com>
12914
12915 [BZ #2980]
f1762c0c 12916 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
82ee37c5
UD
12917
129182006-08-02 Ulrich Drepper <drepper@redhat.com>
12919
12920 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
12921 walk them instead of the symbol table.
12922
7bb1b2c9
UD
129232006-08-01 Ulrich Drepper <drepper@redhat.com>
12924
f13bfdd0 12925 [BZ #2098]
fbbc73b3
UD
12926 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
12927 status of NSS calls, not the number of returned entries.
12928
a4518922
UD
12929 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
12930 request_key, keyctl.
7bb1b2c9 12931
b06e7e9a
UD
129322006-07-31 Ulrich Drepper <drepper@redhat.com>
12933
12934 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
12935
f1227969
UD
129362006-07-16 Jeff Bailey <jbailey@ubuntu.com>
12937
12938 * elf/tst-auditmod1.c: Fix typo in #error.
12939
82ae2712
UD
129402006-07-31 Ulrich Drepper <drepper@redhat.com>
12941
f1227969
UD
12942 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
12943
82ae2712
UD
12944 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
12945
a1260d92
UD
129462006-07-20 Adam Nemet <anemet@caviumnetworks.com>
12947
12948 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
b06e7e9a 12949 that the directory is empty even on non-POSIX filesystems.
a1260d92 12950
d2de41fe
UD
129512006-07-31 Ulrich Drepper <drepper@redhat.com>
12952
13669f2c
UD
12953 * elf/dl-open.c (dl_open_worker): Add branch prediction.
12954
d2de41fe
UD
12955 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
12956 the backend NSS module. If backend setgrent call failed, don't have
12957 internal_setgrent fail. Just remember this until it is needed.
12958 * nis/nss_compat/compat-pwd.c: Likewise.
12959 * nis/nss_compat/compat-spwd.c: Likewise.
12960
b894c2ea
RM
129612006-07-30 Roland McGrath <roland@redhat.com>
12962
12963 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
12964 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
12965 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
12966 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
12967
12968 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
12969 (nanosleep_not_cancel): New macro.
12970 (sigsuspend_not_cancel): new macro.
12971 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
12972 (do_sigsuspend): Define as inline.
12973 (__sigsuspend): Always use do_sigsuspend.
12974 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
12975 * include/signal.h: Declare __sigsuspend_nocancel.
12976 * sysdeps/posix/pause.c
12977 [! NO_CANCELLATION] (__pause_nocancel): New function.
12978
12979 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
12980 * include/time.h (__nanosleep_nocancel): Likewise.
12981
c10d32c8
UD
129822006-07-30 Ulrich Drepper <drepper@redhat.com>
12983
12984 * locale/programs/localedef.c (add_to_readlist): Rename local
12985 variables to avoid confusion.
12986
12987 * locale/programs/charmap.c (charmap_read): Emit error message if
12988 charmap couldn't be found or read.
12989
6822f056
UD
129902006-07-28 Ulrich Drepper <drepper@redhat.com>
12991
d5ba53f9
UD
12992 * sysdeps/unix/sysv/linux/kernel-features.h: Define
12993 __ASSUME_FUTEX_LOCK_PI.
12994 * include/time.h: Declare __nanosleep_nocancel.
12995 * include/unistd.h: Declare __pause_nocancel.
12996
6822f056
UD
12997 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
12998 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
12999 get the __stack_chk_fail_local definition when it's needed.
13000
3a975ff5
UD
130012006-07-26 Ulrich Drepper <drepper@redhat.com>
13002
6de1f625
UD
13003 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13004 * dlfcn/bug-atexit3.c: New file.
13005 * dlfcn/bug-atexit3-lib.cc: New file.
13006
3a975ff5
UD
13007 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13008 used when the namespace is not the base namespace.
13009
a92b1166
UD
130102006-07-26 Gavin Romig-Koch <gavin@redhat.com>
13011
13012 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13013 (__new_exitfn): Bump it in every successful call.
13014 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13015 more exit handlers, call them right away.
13016 * stdlib/exit.h: Declare __new_exitfn_called.
13017
a08336fb
UD
130182006-07-25 Ulrich Drepper <drepper@redhat.com>
13019
bd3754dc
UD
13020 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13021 calling registered handler.
13022
a08336fb
UD
13023 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13024 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13025 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13026 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13027 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13028 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13029 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13030 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13031
871b9158
UD
130322006-07-10 Ulrich Drepper <drepper@redhat.com>
13033
13034 * elf/dl-lookup.c (dl_new_hash): New functions.
13035 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13036 value here. Compute new-style hash value. Pass new hash value
13037 and reference to variable with the old value to do_lookup_x.
13038 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13039 old-style hash table.
13040 (_dl_debug_bindings): Pass new hash value and reference to variable
13041 with the old value to do_lookup_x.
13042 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13043 new-style hash value and change old-style hash value parameter to
13044 be a reference. Reoganize functions to determine whether
13045 new-style hash table is available. Only fall back on old-style
13046 table. If old-style hash value is needed, compute it here.
13047 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13048 entry.
13049 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13050 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
13051 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13052 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13053 * Makeconfig: If linker supports --hash-style option add it to all
13054 linker command lines to build DSOs.
13055 * config.make.in: Define have-hash-style.
13056 * configure.in: Test whether linker supports --hash-style option.
13057
13058 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13059 * sysdeps/generic/ldsodefs.h: Adjust prototype.
13060
a1f0de82
UD
130612006-06-27 Ulrich Drepper <drepper@redhat.com>
13062
361a3706
UD
13063 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13064 auditing.
13065
a1f0de82
UD
13066 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13067 RPATH of main map twice.
13068
4259230f
UD
130692006-06-22 Ulrich Drepper <drepper@redhat.com>
13070
13071 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13072 look further, return original strings.
13073 (_nl_find_msg): Do not return found translation if the conversion
13074 failed. Either signal the string is unusable or that something went
13075 wrong and the original should be used.
13076
130772006-06-21 Ulrich Drepper <drepper@redhat.com>
13078
13079 * string/_strerror.c (__strerror_r): Add __builtin_expect.
13080
f9b7a98b
UD
130812006-06-14 Jakub Jelinek <jakub@redhat.com>
13082
13083 [BZ #2766]
13084 * misc/insremque.c (insque): Handle prev == NULL.
13085 * misc/Makefile (tests): Add tst-insremque.
13086 * misc/tst-insremque.c: New test.
13087
ac55a25b
UD
130882006-06-17 Ulrich Drepper <drepper@redhat.com>
13089
13090 [BZ #2792]
13091 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
13092 conflict with DL_DST_REQUIRED.
13093
02f366b3
UD
130942006-06-16 Ulrich Drepper <drepper@redhat.com>
13095
13096 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
13097 match what Solaris does.
13098
9009e8f8
UD
130992006-06-04 Ulrich Drepper <drepper@redhat.com>
13100
1b8373f4
UD
13101 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
13102 local_setegid instead of seteuid and setegid.
13103 * sysdeps/generic/local-setxid.h: New file.
13104 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
13105
7231452e
UD
13106 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
13107
9009e8f8 13108 * string/Makefile (tests): Add bug-envz1.
02f366b3 13109 * string/bug-envz1.c: New file.
9009e8f8 13110
33e63e79
UD
131112006-06-02 Jakub Jelinek <jakub@redhat.com>
13112
13113 * posix/regex_internal.c (re_string_skip_chars): If no character has
13114 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
13115 to the byte which couldn't be converted.
13116 (re_string_reconstruct): Don't clear valid_raw_len before calling
13117 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
13118 tip_context using re_string_context_at.
13119 * posix/Makefile: Add rules to build and run bug-regex25 test.
13120 * posix/bug-regex25.c: New test.
13121
fdc02996
UD
131222006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
13123
13124 [BZ #2703]
13125 * string/envz.c (envz_strip): Correct erroneously reversed src
13126 and dest parameters to memmove() invocation.
13127
902c4291
UD
131282006-05-30 Jakub Jelinek <jakub@redhat.com>
13129
13130 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
13131 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
13132 to make sure the database has been already invalidated.
13133 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
13134 after the cache has been invalidated. Use pthread_mutex_lock rather
13135 than pthread_mutex_trylock if fd != -1.
13136 * nscd/connections.c (invalidate_cache): Add fd argument, write
13137 response to fd if not calling prune_cache, pass fd to prune_cache.
13138 (handle_request): Adjust invalidate_cache caller.
13139 (nscd_run): Pass -1 as fd to prune_cache.
13140
ecc68568
UD
131412006-05-30 Ulrich Drepper <drepper@redhat.com>
13142
13143 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
13144 the correct place.
13145
9636a217
UD
131462006-05-29 Ulrich Drepper <drepper@redhat.com>
13147
13148 * nscd/nscd.h (struct database_dyn): Add prunelock field.
13149 * nscd/cache.c (prune_cache): Take prunelock before starting the
13150 work. Just return in case it is already taken.
cabfcde1 13151 * nscd/connections.c (dbs): Initialize .prunelock.
9636a217 13152
6bcb494a
UD
131532006-05-25 Ulrich Drepper <drepper@redhat.com>
13154
672d5a63 13155 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
ecc68568 13156 copying. No need to allocate new array for group members. Just
672d5a63
UD
13157 move the pointers and update the size.
13158
1663b44f
UD
13159 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
13160 Avoid memory leak in case realloc fails. Simplification for
13161 better code generation.
13162
13163 Avoid deprecation warning because of libc_hidden_proto for
13164 inet6_option_alloc.
13165 * inet/inet6_option.c (option_alloc): Renamed from
13166 inet6_option_alloc. Made static.
9636a217 13167 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1663b44f
UD
13168 (inet6_option_append): Call option_alloc.
13169 * include/netinet/in.h: Remove libc_hidden_proto for
13170 inet6_option_alloc.
13171
6bcb494a
UD
13172 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13173 for cleanup when cb!=NULL [Coverity CID 233].
13174
aec6b246
UD
131752006-05-24 Ulrich Drepper <drepper@redhat.com>
13176
07bfff20
UD
13177 [BZ #2693]
13178 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13179 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13180 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13181 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13182 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13183 and inet6_rth_getaddr.
13184 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13185 array.
13186 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13187 Mark inet6_option_* interfaces as deprecated.
13188 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
13189 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
13190 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
13191 inet6_rth_segments, and inet6_rth_getaddr.
13192 * inet/inet6_opt.c: New file.
13193 * inet/inet6_rth.c: New file.
13194
13195 * inet/netinet/icmp6.h: Pretty printing.
13196
aec6b246
UD
13197 [BZ #2683]
13198 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
13199
2d571cd1
UD
132002006-05-23 Ulrich Drepper <drepper@redhat.com>
13201
062e719b
UD
13202 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
13203 doing it all here. When server does not know the answer do not
13204 fail immediate, try parent first.
13205
2d571cd1
UD
13206 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
13207 overflow test.
13208
a17fa610
UD
132092006-05-20 Ulrich Drepper <drepper@redhat.com>
13210
13211 * nis/nis_call.c (__prepare_niscall): New function. Split out
13212 from __do_niscall.
13213 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
13214 and exported.
13215 (__follow_path): New function. Split out from nis_list.
13216 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
13217 _xdr_nis_result.
13218 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
13219 _xdr_nis_result.
13220 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
13221 and __follow_path.
13222 * nis/Versions: Export __prepare_niscall, __create_ib_request,
13223 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
13224 from libnsl for version GLIBC_PRIVATE.
13225 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
13226 Remove entry parameter from _nss_nisplus_parse_pwent and
13227 _nss_nisplus_parse_grent.
13228 * nis/nss_nisplus/nisplus-parser.c: Likewise.
13229 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
13230 again. Rewrite getpwent handling to not use nis_first_entry and
13231 nis_next_entry. Roll out own niscall handling.
13232 * nis/nss_nisplus/nisplus-grp.c: Likewise.
13233
13234 * sunrpc/xdr_rec.c: Fix typo in comment.
13235
429bb183
UD
132362006-05-19 Ulrich Drepper <drepper@redhat.com>
13237
1d4f062a
UD
13238 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
13239 handling.
13240
101cc598
UD
13241 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
13242 to allocate memory for my_pollfd. Better initialization of
13243 cb_is_running. Use TEMP_FAILURE_RETRY.
13244
f50fa10c
UD
13245 * malloc/memusage.sh (memusageso): Add quotes.
13246 (memusagestat): Likewise.
13247 * debug/xtrace.sh (pcprofileso): Likewise.
13248 (pcprofiledump): Likewise.
13249 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
13250 replacement.
13251 * malloc/Makefile ($(objpfx)memusage): Likewise.
13252
882bfe73
UD
13253 * nis/nis_callback.c (__nis_create_callback): Calls to
13254 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
13255 asprintf call fails.
13256
429bb183
UD
13257 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
13258 no uninitialized memory is passed to sendto.
13259
f90de831
UD
132602006-05-18 Ulrich Drepper <drepper@redhat.com>
13261
13262 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
13263 of snprintf+strdup. Handle OOM.
13264 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
13265 cb->serv together. Remove now obsolete free calls.
13266 (__nis_destroy_callback): Remove now obsolete free call.
13267
a17fa610 132682006-05-18 David Woodhouse <dwmw2@redhat.com>
6e2a7825
UD
13269
13270 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
13271 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
13272 and ULA respectively). Set precedence for IPv4 address to 10 as
13273 defined in RFC3484 for preferring IPv6.
13274 * posix/gai.conf: Update to match the new default tables.
13275
758b9d7e
UD
132762006-05-18 Jakub Jelinek <jakub@redhat.com>
13277
13278 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
13279 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
13280 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
13281 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
13282
13283 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
13284 Removed.
13285 (init_nss_interface): Remove initialization of these variables.
13286
132872006-05-18 Ulrich Drepper <drepper@redhat.com>
13288
13289 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
13290 nis_free_directory forward to avoid duplication.
13291
388c779e
UD
132922006-05-17 Ulrich Drepper <drepper@redhat.com>
13293
5f1724bf
UD
13294 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
13295 rec_dirsearch returning NULL.
13296 (first_shoot): Handle __nis_finddirectory returning NULL.
13297 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
13298
388c779e
UD
13299 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
13300 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
13301
360d5cf4
UD
133022006-05-17 Jakub Jelinek <jakub@redhat.com>
13303
13304 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
13305 pid changed.
13306
88dbff8c
UD
133072006-05-15 Ulrich Drepper <drepper@redhat.com>
13308
6f8a7dff
UD
13309 * include/rpc/pmap_prot.h: Mark all functions as hidden.
13310
13311 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
13312 * nscd/nscd_getgr_r.c: Likewise.
13313
13314 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
13315
13316 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
13317 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
13318
13319 * stdlib/longlong.h (__clz_tab): Mark as hidden.
13320
13321 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
13322
360d5cf4 13323 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8263ed62
UD
13324
13325 * include/rpc/auth.h: Mark xdr_des_block_internal and
13326 xdr_opaque_auth_internal as hidden.
13327
13328 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
13329 hidden.
13330
360d5cf4 13331 * include/rpc/xdr.h: Mark all _internal functions as hidden.
8263ed62 13332
02264020
UD
13333 * misc/getusershell.c (okshells): Don't use static initializers,
13334 do it dynamically.
13335
fd5ea238
UD
13336 * stdlib/fmtmsg.c (keywords): Change type of len element to
13337 uint32_t to not waste space on 64bit machines.
13338
9446614c
UD
13339 * locale/setlocale.c: Change _nl_category_names into a string.
13340 Add new _nl_category_name_idxs. Change all users.
13341 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
13342 Declare _nl_category_name_idxs.
13343 * locale/findlocale.c: Adjust for _nl_category_names change.
13344 * locale/loadlocale.c: Likewise.
13345 * locale/newlocale.c: Likewise.
13346 * intl/dcigettext.c: Likewise.
13347
88dbff8c
UD
13348 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
13349 (add_alias2): ...here. New function.
13350 (__gconv_read_conf): Simplify builtin alias handling.
13351 (builtin_aliases): Convert to string to avoid relocations.
13352 * iconv/gconv_builtin.h: Add comment about correct formatting.
13353
4442d58f
UD
133542006-05-15 Jakub Jelinek <jakub@redhat.com>
13355
13356 * resolv/res_debug.c (loc_ntoa): Make error const.
13357
133582006-05-14 Andreas Schwab <schwab@suse.de>
13359
13360 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
13361
133622006-05-12 Jakub Jelinek <jakub@redhat.com>
13363
13364 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
13365 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
13366 sizeof (cpu_set_t).
13367
a51752b6
UD
133682006-05-11 Ulrich Drepper <drepper@redhat.com>
13369
5d3fd1f6
UD
13370 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
13371
08cfb839
UD
13372 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
13373
4b481a15
UD
13374 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
13375 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
13376
13377 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
13378 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
13379
13380 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
13381 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
13382 xdr_cback_data.
13383
13384 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
13385 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13386 xdr_ypupdate_args.
13387
13388 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
13389 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
13390
13391 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
13392 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
13393
13394 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
13395 * include/rpcsvc/nis_callback.h: New file.
13396
13397 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
13398 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
13399
13400 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13401 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13402
13403 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
13404 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
13405
13406 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13407 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13408
b1ad49c6
UD
13409 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
13410 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13411 xdr_ypdelete_args.
13412
cd5f7829
UD
13413 * nis/nis_xdr.h: Mark all functions as hidden. Remove
13414 __BEGIN_DECLS and __END_DECLS, the header is not installed.
13415
a51752b6
UD
13416 * nis/nis_error.c: Remove table of strings. Use position
13417 independent mechanism.
13418 * nis/nis_error.h: New file.
13419
3d237e42
UD
134202006-05-11 Jakub Jelinek <jakub@redhat.com>
13421
13422 * locale/programs/ld-time.c (time_finish): If wide era name or
13423 format aren't provided, set both wname and wformat to L"".
13424
d6c159fe
UD
134252006-05-10 Ulrich Drepper <drepper@redhat.com>
13426
0088b04e
UD
13427 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
13428 results if the call was succesful.
13429
d6c159fe
UD
13430 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
13431
13432 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
13433 as hidden.
13434
5c5acdf0
UD
134352006-05-10 Jakub Jelinek <jakub@redhat.com>
13436
13437 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
13438
16d620db
UD
134392006-05-10 Ulrich Drepper <drepper@redhat.com>
13440
13441 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
13442 caller makes sure this is not the case.
13443 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
13444
e7c8359e
UD
134452006-05-09 Ulrich Drepper <drepper@redhat.com>
13446
ecf359c6
UD
13447 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
13448 calls.
13449
400cc70a
UD
13450 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
13451 [Coverity CID 229, 230]
13452
13453 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
13454 DGETTEXT calls.
13455 (hol_help): Likewise. [Coverity CID 226, 227]
13456
13457 * string/argz-replace.c (__argz_replace): Unconditionally call
13458 free on SRC. [Coverity CID 225]
13459
13460 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
13461 the return value of __nis_default_owner and __nis_default_group,
13462 it has been especially allocated. [Coverity CID 224]
13463
51e59260
UD
13464 * nis/nis_defaults.c (searchXYX): New functions. Used by both
13465 searchgroup and searchowner. Significantly simplified.
13466 (__nis_default_owner): Remove duplication. Do not locally copy the
13467 string before duplicating it.
13468 (__nis_default_group): Likewise.
13469
13470 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
13471 we must clear the variable before calling __nisfind_server.
13472
13473 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
13474 nis_getnames. [Coverity CID 223]
13475
13476 * locale/programs/locfile.c (locfile_read): Use alloca instead of
13477 xmalloc to allocate local repertoire name. [Coverity CID 222]
13478
13479 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
13480 allocate memory for the input to add_bytes. [Coverity CID 221]
13481
e7c8359e 13482 * posix/wordexp.c (w_addword): Free word if realloc fails and it
51e59260 13483 was allocated here. [Coverity CID 219, 220]
e7c8359e
UD
13484
13485 * posix/getconf.c (print_all): Free confstr data after printing.
13486 [Coverity CID 218]
13487
13488 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
13489 list allocation fails. [Coverity CID 215]
13490
13491 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
13492 [Coverity CID 213]
13493
13494 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
13495 string is NULL. [Coverity CID 212]
13496 * argp/Makefile: Add rules to build and run bug-argp1.
13497 * argp/bug-argp1.c: New file.
13498
13499 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
13500 end of string.
13501 * stdlib/canonicalize.c (__realpath): Likewise.
13502
13503 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
13504 pointer. [Coverity CID 206]
13505
13506 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
13507 in statically linked code.
13508 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
13509 statically built code, be prepared to have no link map.
13510 [Coverity CID 205]
13511
13512 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
13513 dgettext calls. [Coverity CID 204]
13514
13515 * argp/argp-help.c (struct uparams): Remove valid member. Change
13516 the one user.
13517 (uparam_names): Reduce size. Avoid relative relocations.
13518 Moved to read-only segment.
13519 (fill_in_uparams): Update for new layout.
13520
13521 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
13522 assumed to always be != NULL. [Coverity CID 202]
13523
13524 * argp/argp-help.c (hol_entry_help): Remove some dead code
13525 [Coverity CID 200].
13526
13527 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
13528 away a few more unconditional yperr2nss calls.
13529 (_nss_nis_getservbyname_r): Likewise.
13530
acf82eaf
UD
135312006-05-06 Ulrich Drepper <drepper@redhat.com>
13532
4461cf48
UD
13533 * sysdeps/generic/ldsodefs.h: Remove support for non-core
13534 architectures.
13535
b74a8c7f
UD
13536 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
13537 that unused memory passed to sendto is nevertheless initialized.
13538
acb98cb5
UD
13539 [BZ #2499]
13540 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
13541 possibly unaligned memory accesses.
13542
bce16467
UD
13543 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
13544 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
13545 and __putlong respectively. Correct buffer overflow check for
13546 NS_NOTIFY_OP.
13547
13548 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
13549
8e45b1ac
UD
13550 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
13551 (send_dg): Rewrite error handling to be more compact and avoid
13552 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
13553
697e1628
UD
13554 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
13555
13556 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
13557 instead of ns_get16.
13558 (res_queriesmatch): Likewise. Minor optimization.
13559
acf82eaf
UD
13560 [BZ #2499]
13561 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
13562 __libc_res_nsend might reallocate the buffer for the answer. In
13563 this case we have to reload the HP pointer.
13564
7bfee654
UD
135652006-05-05 Ulrich Drepper <drepper@redhat.com>
13566
694b49ca
UD
13567 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
13568 some branch prediction hints.
13569
7bfee654
UD
13570 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
13571 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13572 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13573 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13574 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13575 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13576 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13577 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13578
308bb2d5
UD
135792006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
13580
13581 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
13582 by a GOT relocation to make Scrt1.o position independent.
13583 * sysdeps/s390/s390-64/elf/start.S: Likewise.
13584
13585 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
13586 six system call parameters.
13587 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
13588
cdb9c321
UD
135892006-05-05 Ulrich Drepper <drepper@redhat.com>
13590
13591 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
13592 malloc&bzero.
13593
13594 * sunrpc/svc_udp.c (BZERO): Remove definition.
13595 (CALLOC): Define.
13596 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
13597
13598 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
13599 (des_SPtrans): Use uint32_t type.
13600 (des_skb): Likewise.
13601
13602 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
13603
fff04b32
UD
136042006-05-05 Jakub Jelinek <jakub@redhat.com>
13605
13606 [BZ #2509]
13607 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
13608 on 32-bit arches.
13609
136102006-05-05 Ulrich Drepper <drepper@redhat.com>
13611
13612 * locale/programs/ld-address.c (address_finish): Fix one more
cdb9c321 13613 place where the iso639 array might be accessed beyond the limits.
fff04b32 13614
077a30bc 136152006-05-04 Ulrich Drepper <drepper@redhat.com>
77dd4c3b 13616
f2d5cf50
UD
13617 * nis/nis_table.c (nis_list): Avoid clearing res twice before
13618 filling it for the first time.
13619
3e4370cf
UD
13620 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
13621 Adjust all callers.
13622 Free res object content before returning.
13623
5e65a53d
UD
13624 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
13625
48be3114
UD
13626 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
13627 client->cl_auth.
13628
ca4fce0e
UD
13629 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
13630 cleanup for initial thread, just the free call on TVP.
13631
077a30bc 13632 * nscd/gai.c (__getline): Define.
3b7a95fb 13633
5d37289a 13634
3f87d901 13635See ChangeLog.16 for earlier changes.