]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
3ff2684f56052e546df2c5d1c664afa06beaf0a4
[thirdparty/glibc.git] / ChangeLog
1 2009-12-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
2
3 * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
4 __mach_port_deallocate on rootdevid.
5
6 2009-12-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
7
8 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
9 R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
10 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
11 unneeded R_390_PLT16DBL and R_390_PLT32DBL.
12
13 2009-12-21 Ulrich Drepper <drepper@redhat.com>
14
15 * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
16
17 2009-12-15 Ulrich Drepper <drepper@redhat.com>
18
19 [BZ #11093]
20 * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
21 POLLWRBAND also for POSIX 2008.
22 * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
23 * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
24
25 * include/link.h (struct link_map): Move l_used into its own word.
26 * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
27 still zero.
28 * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
29 never really used.
30
31 2009-12-13 H.J. Lu <hongjiu.lu@intel.com>
32
33 * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
34 instead of <ifunc-defines.h>. Use bit_XXX and index_XXX to
35 check processor feature.
36 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
37 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
38 * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
39 (index_SSE2): Likewise.
40
41 2009-12-09 H.J. Lu <hongjiu.lu@intel.com>
42
43 * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
44 if __ASSEMBLER__ is defined.
45 (bit_SSSE3): New. Defined for __ASSEMBLER__.
46 (bit_SSE4_2): Likewise.
47 (index_SSSE3): Likewise.
48 (index_SSE4_2): Likewise.
49 * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
50 instead of <ifunc-defines.h>. Use bit_XXX and index_XXX to
51 check processor feature.
52 * sysdeps/x86_64/multiarch/strchr.S: Likewise.
53 * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
54 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
55 * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
56 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
57 * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
58 * sysdeps/x86_64/multiarch/strspn.S: Likewise.
59
60 2009-12-08 Kaz Kojima <kkojima@rr.iij4u.or.jp>
61
62 * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
63
64 2009-12-01 Mike Frysinger <vapier@gentoo.org>
65
66 * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
67
68 2009-12-11 Ulrich Drepper <drepper@redhat.com>
69
70 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
71 O_DSYNC to match 2.6.33+ kernels.
72 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
73 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
74 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
76 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
77 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
78
79 2009-12-10 Ulrich Drepper <drepper@redhat.com>
80
81 [BZ #11000]
82 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
83 *herrnop before returning.
84 * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
85 Likewise.
86 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
87 TRYAGAIN errors separately.
88 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
89 *name4_r after functions.
90
91 2009-12-09 Ulrich Drepper <drepper@redhat.com>
92
93 [BZ #11046]
94 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
95 version check.
96
97 2009-11-05 Bruno Haible <bruno@clisp.org>
98
99 [BZ #11056]
100 * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
101 argv argument as non-NULL.
102 (execle, execl, execlp): Mark the first ARG argument as non-NULL.
103
104 -2009-12-08 Ulrich Drepper <drepper@redhat.com>
105
106 * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
107 recvmmsg.
108 * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
109 * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
110
111 2009-12-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
112
113 * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
114 registers.
115 * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
116 * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
117 * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
118
119 2009-11-30 Ulrich Drepper <drepper@redhat.com>
120
121 * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
122 SCHED_RESET_ON_FORK.
123
124 2009-11-26 Ulrich Drepper <drepper@redhat.com>
125
126 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
127 only used on truly ancient kernel if configuration requires a more
128 recent kernel.
129
130 2009-11-24 Ulrich Drepper <drepper@redhat.com>
131
132 [BZ #3662]
133 * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
134 Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
135
136 * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
137 pass it on to __ptsname_internal.
138 (grantpt): Pass stat64 pointer to pts_name. Remove stat call here.
139 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
140 All the code from __ptsname_r but take additional parameter. Use that
141 instead of pointer to local stat64 variable.
142 (__ptsname_r): Call __ptsname_internal with pointer to local stat64
143 variable.
144 * include/stdlib.h: Declare __ptsname_internal.
145
146 * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
147 before the exec.
148 * sysdeps/unix/sysv/linux/grantpt.c: New file.
149 * login/programs/pt_chown.c (main): Don't print message on errors
150 when doing real work.
151
152 * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
153 once.
154
155 * csu/elf-init.c (__libc_csu_irel): New function. Code to perform
156 irel relocations split out from...
157 (__libc_csu_init): ...here.
158 * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
159
160 2009-11-23 Andreas Schwab <schwab@redhat.com>
161
162 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
163 for timestamps also if __USE_XOPEN2K8.
164 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
165 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
166 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
167 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
168
169 2009-11-22 Ulrich Drepper <drepper@redhat.com>
170
171 * nscd/connections.c (restart): Try harder to re-exec.
172
173 * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
174
175 * sysdeps/unix/sysv/linux/ntp_gettimex.c: New file.
176 * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
177 * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
178 * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
179 some placeholders. Redirect ntp_gettime to ntp_gettimex.
180 * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
181
182 * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
183 Define.
184 (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
185
186 2009-11-18 H.J. Lu <hongjiu.lu@intel.com>
187
188 [BZ #10162]
189 * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
190 than software pipeline. Properly recover from shorter read.
191
192 2009-11-19 Ulrich Drepper <drepper@redhat.com>
193
194 [BZ #10958]
195 * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
196 initialized before using it.
197 (_IO_putwc_unlocked): Likewise.
198
199 [BZ #10918]
200 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
201 in cast to not throw away const-ness of parameters.
202 (__CPU_EQUAL_S): Likewise.
203 (__CPU_OP_S): Likewise.
204
205 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
206 F_OWNER_PGRP and mark F_OWNER_GID obsolete. The kernel people made
207 this gratuitous change and we have to keep compatibility.
208 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
209 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
210 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
211 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
212 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
213 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
214
215 2009-11-17 Ulrich Drepper <drepper@redhat.com>
216
217 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
218 of parameters of sync_file_range.
219 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
220 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
221 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
222 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
223 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
224 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
225
226 2009-11-16 Jakub Jelinek <jakub@redhat.com>
227
228 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
229 Implement using sync_file_range2 syscall if __NR_sync_file_range2
230 is defined.
231 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
232 file.
233
234 2009-11-17 Paolo Bonzini <bonzini@gnu.org>
235
236 * posix/bug-regex30.c: New file.
237 * posix/Makefile: Add rules to build and run bug-regex30.
238 * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
239 character lead bytes when there is a range in a COMPLEX_BRACKET.
240 Reported by Oleg Bylatov.
241
242 2009-11-17 Ulrich Drepper <drepper@redhat.com>
243
244 [BZ #10969]
245 * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
246 * locale/tst-duplocale.c: New file.
247 * locale/Makefile (tests): Add tst-duplocale.
248
249 [BZ #10968]
250 * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
251 Patch by Bruno Haible <bruno@clisp.org>.
252 * locale/tst-locname.c: New file.
253 * locale/Makefile (tests): Add tst-locname.
254
255 [BZ #10972]
256 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
257 constants from recent kernels.
258 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
259 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
260 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
261 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
262 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
263 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
264
265 2009-11-09 H.J. Lu <hongjiu.lu@intel.com>
266
267 [BZ #10162]
268 * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
269 software pipeline.
270
271 2009-11-09 Mike Frysinger <vapier@gentoo.org>
272
273 * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
274 (fallocate): Return ENOSYS if __NR_fallocate is not defined.
275 * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
276
277 2009-11-06 Mike Frysinger <vapier@gentoo.org>
278
279 * posix/bug-regex29.c: Include stdio.h.
280
281 2009-11-14 Ulrich Drepper <drepper@redhat.com>
282
283 [BZ #10939]
284 * Versions.def: Define GLIBC_2.12 for libc.
285 * manual/errno.texi: Add ERFKILL entry.
286 * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
287 for 2.12.
288 * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
289 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
290
291 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
292 F_GETOWN_EX definitions according to corrected kernel definitions.
293 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
294 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
295 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
296 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
297 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
298 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
299
300 2009-11-12 Ulrich Drepper <drepper@redhat.com>
301
302 * version.h: Bump for 2.12 development.
303
304 2009-11-10 Andreas Schwab <schwab@redhat.com>
305
306 * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
307 out of buffer space.
308 * resolv/nss_dns/dns-host.c (getanswer_r): Check for
309 map_v4v6_hostent running out of space.
310
311 2009-11-10 Ulrich Drepper <drepper@redhat.com>
312
313 * string/bits/string3.h (memset): If the second parameter is constant
314 and zero there is likely no transposition.
315 Patch by Caolan McNamara <caolanm@redhat.com.
316
317 2009-11-04 Philippe De Muyter <phdm@macqel.be>
318
319 * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
320 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
321
322 2009-10-30 Holger Hans Peter Freyther <zecke@selfish.org>
323
324 * malloc/memusagestat.c (main): Fix spelling in an error message.
325
326 2009-11-01 H.J. Lu <hongjiu.lu@intel.com>
327
328 * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
329 * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
330
331 2009-11-03 Andreas Schwab <schwab@redhat.com>
332
333 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
334 readahead.
335
336 2009-11-03 Jakub Jelinek <jakub@redhat.com>
337
338 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
339 relocate opd entry when resolving prelink conflicts.
340
341 2009-11-04 Jakub Jelinek <jakub@redhat.com>
342
343 * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
344 when -D_FILE_OFFSET_BITS=64.
345
346 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
347 of last two arguments when -D_FILE_OFFSET_BITS=64.
348 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
349 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
350 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
351 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
352 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
353 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
354
355 2009-11-03 Andreas Schwab <schwab@linux-m68k.org>
356
357 [BZ #4457]
358 * sysdeps/generic/libgcc_s.h: New file.
359 * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
360
361 2009-11-01 Ulrich Drepper <drepper@redhat.com>
362
363 * malloc/hooks.c (free_check): Restore locking and call _int_free
364 appropriately.
365
366 2009-10-30 Ulrich Drepper <drepper@redhat.com>
367
368 * version.h (VERSION): Bump for 2.11 release.
369 * include/features.h (__GLIBC_MINOR__): Bump to 11.
370
371 * elf/tst-execstack.c (do_test): Add cast to avoid warning.
372
373 * stdio-common/scanf13.c (main): Remove unused variable wbuf.
374
375 * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
376 to avoid warning.
377 * stdlib/tst-strtoll.c (tests): Likewise.
378
379 [BZ #9986]
380 * time/strftime_l.c (__strftime_internal): Allow %OC.
381
382 * misc/mkostemps.c: New file.
383 * misc/mkostemps64.c: New file.
384
385 2009-10-30 Andreas Schwab <schwab@redhat.com>
386
387 * locale/programs/locale-spec.c: Include <error.h> and
388 <libintl.h>.
389
390 * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
391
392 2009-10-28 Roland McGrath <roland@redhat.com>
393
394 * Makefile (dist-prepare): New target.
395 (tag-for-dist): Target removed.
396 (glibc-%.tar): Pattern rule removed.
397 (%.tar): New pattern rule, does simple use of git archive.
398 (dist-version): Remove variable definition.
399 (dist): Just depend on that. Add .tar.xz dependency.
400 If dist-version variable not set on command line, depend on
401 dist-prepare, re-invoke with dist-version set via git describe.
402
403 * Makerules (%.xz): New pattern rule.
404
405 2009-10-28 Alan Modra <amodra@bigpond.net.au>
406
407 * elf/ifuncdep2.c: Include ifunc-sel.h.
408 (global): Delete.
409 (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
410 * elf/ifuncmain1.c (global): Delete.
411 * elf/ifuncmain1vis.c: Likewise.
412 * elf/ifuncmain2.c: Likewise.
413 * elf/ifuncmain5.c: Likewise.
414 * elf/ifuncmod3.c: Likewise.
415 * elf/ifuncmain6pie.c: Include ifunc-sel.h.
416 (foo_ifunc): Use ifunc_one.
417 * elf/ifuncmain7.c: Likewise.
418 * elf/ifuncmod1.c: Include ifunc-sel.h.
419 (global): Define protected var.
420 (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
421 * elf/ifuncmod5.c: Likewise.
422 * sysdeps/generic/elf/ifunc-sel.h: New file.
423 * sysdeps/powerpc/elf/ifunc-sel.h: New file.
424
425 2009-07-30 Alan Modra <amodra@bigpond.net.au>
426
427 * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
428 (R_PPC_REL16*): Correct comments.
429 (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
430 (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
431 R_PPC64_REL16_HA): Define.
432 * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
433 * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
434 * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
435 Delete unused "reloc" param.
436 (__process_machine_rela): Handle R_PPC_IRELATIVE.
437 * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
438 Delete "reloc" param.
439 (elf_machine_rela): Handle STT_GNU_IFUNC functions and
440 R_PPC_IRELATIVE.
441 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
442 (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
443 relocations.
444
445 d2009-10-30 Ulrich Drepper <drepper@redhat.com>
446
447 [BZ #10315]
448 * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
449 UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
450 UDP_ENCAP_L2TPINUDP.
451
452 [BZ #10349]
453 * sysdeps/posix/tempname.c (__gen_tempname): Take new second
454 parameter, specifying length of prefix.
455 * stdio-common/tempname.c: Likewise.
456 * include/stdio.h: Adjust prototypes.
457 * libio/oldtmpfile.c: Adjust caller.
458 * misc/mkdtemp.c: Likewise.
459 * misc/mkostemp.c: Likewise.
460 * misc/mkostemp64.c: Likewise.
461 * misc/mkstemp.c: Likewise.
462 * misc/mkstemp64.c: Likewise.
463 * misc/mktemp.c: Likewise.
464 * stdio-common/tempnam.c: Likewise.
465 * stdio-common/tmpfile.c: Likewise.
466 * stdio-common/tmpnam.c: Likewise.
467 * stdio-common/tmpnam_r.c: Likewise.
468 * misc/mkstemps.c: New file.
469 * misc/mkstemps64.c: New file.
470 * stdlib/stdlib.h: Add prototypes.
471 * misc/Makefile (routines): Add mkstemps and mkstemps64.
472 * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
473
474 2009-10-29 Ulrich Drepper <drepper@redhat.com>
475
476 * locale/iso-639.def: Add sml entry.
477
478 [BZ #10391]
479 * resolv/res_send.c (send_dg): Initialize resplen.
480
481 [BZ #10446]
482 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
483 definition to the kernel's.
484 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
485
486 2009-08-18 Anders Johansson <ajohansson@novell.com>
487
488 * nscd/aicache.c: Fix mixing up dataset and dataset->resp
489 offsets and record sizes in assert()s and response sending.
490 * nscd/grpcache.c: Likewise.
491 * nscd/hstcache.c: Likewise.
492 * nscd/initgrcache.c: Likewise.
493 * nscd/pwdcache.c: Likewise.
494
495 2009-10-29 Ulrich Drepper <drepper@redhat.com>
496
497 [BZ #10540]
498 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
499 /etc/hosts does not exist set errnop and herrnop appropriately.
500 Patch by Steve Langasek <vorlon@debian.org>.
501
502 [BZ #10553]
503 * malloc/malloc.c (malloc_info): Fix typos in format strings.
504 Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
505
506 [BZ #10564]
507 * login/utmp_file.c (TIMEOUT): Increase to 10.
508
509 [BZ #10609]
510 * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
511 for file names in case the syscall is not available.
512 * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
513 * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
514 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
515 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
516 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
517 * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
518 * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
519 * sysdeps/unix/sysv/linux/linkat.c: Likewise.
520 * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
521 * sysdeps/unix/sysv/linux/openat.c: Likewise.
522 * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
523 * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
524 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
525 * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
526 * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
527 * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
528 * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
529
530 [BZ #10643]
531 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
532 creation filed, remove the request from the 'requests' list and signal
533 the caller that the request is finished.
534
535 [BZ #10692]
536 * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
537 in error if batch_read. Patch by Joe Landers <jlanders@vmware.com>.
538
539 [BZ #10713]
540 * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
541 from intern.start. Patch by Joe Landers <jlanders@vmware.com>.
542
543 [BZ #10780]
544 * libio/ioputs.c (_IO_puts): Make sure to not return a number which
545 overflows the int return type.
546
547 [BZ #10717]
548 * malloc/memusagestat.c (main): Fix repairing of trace files. We also
549 have to compute maxsize_total, we have to update the variables, and
550 the also_total handling must happen after the repair.
551
552 [BZ #10742]
553 * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
554 Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
555
556 2009-10-27 Andreas Schwab <schwab@redhat.com>
557
558 * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
559 errno is always set when returning unsuccessfully.
560
561 2009-10-29 Andreas Schwab <schwab@redhat.com>
562
563 * malloc/memusage.c (update_data): Fix index wraparound handling
564 so that buffer_cnt is actually reset.
565
566 2009-10-29 Ulrich Drepper <drepper@redhat.com>
567
568 [BZ #10784]
569 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
570 of the directory we look at into the static buffer if there is one
571 at the start of the loop.
572
573 [BZ #10789]
574 * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
575 macros. Patch by Philip Prindeville <philipp@redfish-solutions.com>.
576
577 [BZ #10840]
578 * sysdeps/unix/sysv/linux/kernel-features.h: Define
579 __ASSUME_F_GETOWN_EX.
580 * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
581 if possible.
582 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
583
584 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
585 and f_owner_ex.
586 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
587 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
588 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
589 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
590 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
591 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
592
593 [BZ #10847]
594 * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
595 getutmpx symbol.
596
597 [BZ #10823]
598 * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
599 addresses. Patch by Petar Bogdanovic <petar@smokva.net>.
600
601 2009-10-24 Joseph Myers <joseph@codesourcery.com>
602
603 * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
604
605 2009-10-27 Jakub Jelinek <jakub@redhat.com>
606
607 [BZ #10817]
608 * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
609 Reported by Ray Chason.
610
611 2009-10-21 H.J. Lu <hongjiu.lu@intel.com>
612
613 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
614 strend-sse4.
615 * sysdeps/x86_64/multiarch/strchr.S: New file.
616 * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
617 * sysdeps/x86_64/multiarch/strrchr.S: New file.
618
619 2009-10-21 Andreas Schwab <schwab@redhat.com>
620
621 * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
622
623 2009-10-19 Andreas Schwab <schwab@redhat.com>
624
625 * include/math.h: Add hidden protos for __exp/__expf/__expl.
626 * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
627 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
628 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
629 * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
630 * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
631 * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
632 __ieee751_expl to handle overflow.
633
634 2009-10-14 David S. Miller <davem@davemloft.net>
635
636 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
637 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
638
639 2009-10-13 Andreas Schwab <schwab@redhat.com>
640
641 * csu/elf-init.c (__libc_csu_init): Run preinit array even if
642 !USE_MULTIARCH.
643
644 2009-10-08 Ulrich Drepper <drepper@redhat.com>
645
646 [BZ #10730]
647 * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
648 Patch in part by Steve Ward <planet36@gmail.com>.
649
650 [BZ #10731]
651 * stdlib/rand_r.c: Fix typo.
652
653 * po/cs.po: Update from translation team.
654
655 2009-10-06 Andreas Schwab <schwab@redhat.com>
656
657 * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
658 returning if RTLD_NOLOAD.
659
660 2009-10-06 Roland McGrath <roland@redhat.com>
661
662 * sysdeps/x86_64/multiarch/strstr-c.c
663 [! SHARED]: Omit libc_hidden_builtin_def fiddling.
664
665 * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
666 libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
667
668 * sysdeps/x86_64/multiarch/init-arch.h
669 [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
670 (HAS_CPU_FEATURE): New macro.
671 (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
672 * sysdeps/x86_64/multiarch/init-arch.c
673 (__get_cpu_features): #undef it before definition.
674
675 2009-10-05 Andreas Schwab <schwab@redhat.com>
676
677 * locale/C-time.c: Revert week-1stday back to 19971130 and set
678 first_weekday to 1 and first_workday to 2.
679
680 2009-10-01 Ulrich Drepper <drepper@redhat.com>
681
682 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
683 F_GETOWN_EX.
684 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
685 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
686 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
687 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
688 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
689 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
690
691 2009-09-28 Andreas Schwab <schwab@redhat.com>
692
693 * stdio-common/printf_fp.c: Check for and avoid integer overflows.
694 * stdio-common/vfprintf.c: Likewise.
695
696 2009-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
697
698 * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
699 (mkdirat): Call __directory_name_split_at instead of
700 __directory_name_split.
701
702 2009-09-28 Ulrich Drepper <drepper@redhat.com>
703
704 * locale/programs/locale-spec.c (locale_special): If nothing matches
705 fail with an appropriate message.
706
707 2009-09-10 H.J. Lu <hongjiu.lu@intel.com>
708
709 * configure.in: Exclude binutils 2.X. Support binutils 2.100
710 and XX.
711
712 2009-09-25 Andreas Schwab <schwab@redhat.com>
713
714 * elf/dl-reloc.c (RESOLVE_MAP): Always pass
715 DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
716
717 2009-09-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
718
719 * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
720
721 2009-09-20 Andreas Schwab <schwab@linux-m68k.org>
722
723 * iconvdata/iso646.c (gconv_init): Correctly initialize the
724 character size elements in step data.
725
726 2009-09-20 Ulrich Drepper <drepper@redhat.com>
727
728 * po/hu.po: Update from translation team.
729 * po/vi.po: Likewise.
730
731 2009-09-19 Roland McGrath <roland@redhat.com>
732
733 * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
734
735 2009-09-15 Roland McGrath <roland@redhat.com>
736
737 * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
738 * nptl/sysdeps/pthread/configure: Regenerated.
739 * nptl/sysdeps/x86_64/configure: Regenerated.
740 * sysdeps/unix/sysv/linux/configure: Regenerated.
741 * sysdeps/x86_64/elf/configure: Regenerated.
742
743 * Makefile (autoconf-it): Set execute bit only on top-level configure.
744
745 * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
746 the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
747 * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
748 * configure: Regenerated.
749
750 2009-09-09 Ulrich Drepper <drepper@redhat.com>
751
752 * posix/getconf.c (main): Handle -- on command line.
753
754 2009-09-05 H.J. Lu <hongjiu.lu@intel.com>
755
756 * configure.in: Support binutils 2.100 and 3.0.
757
758 2009-09-08 Jakub Jelinek <jakub@redhat.com>
759
760 * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
761 * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
762 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
763 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
764
765 2009-09-07 Ulrich Drepper <drepper@redhat.com>
766
767 * locale/programs/ld-collate.c (struct locale_collate_t): Add
768 unnamed_section_defined field.
769 (collate_read): Test and set unnamed_section_defined.
770
771 * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
772 _POSIX2_LINE_MAX.
773
774 2009-09-04 H.J. Lu <hongjiu.lu@intel.com>
775
776 * configure.in: Support binutils 2.20.
777
778 2009-09-03 Ulrich Drepper <drepper@redhat.com>
779
780 * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
781 __strstr_ia32): Add attribute_hidden.
782
783 2009-09-01 Andreas Schwab <schwab@redhat.com>
784
785 * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
786 parsing of group entry.
787
788 2009-09-02 Andreas Schwab <schwab@redhat.com>
789
790 * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
791 external buffer. Always discard readahead in internal buffer.
792 * libio/Makefile (tests): Add bug-wsetpos.
793 * libio/bug-wsetpos.c: New file.
794
795 2009-09-02 Jakub Jelinek <jakub@redhat.com>
796
797 * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
798 Add attribute_hidden.
799 * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
800 __strcasestr_sse2): Likewise.
801 * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
802 (__fma_fma): Make static.
803 * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
804 (__fmaf_fma): Make static.
805
806 2009-08-31 Andreas Schwab <schwab@redhat.com>
807
808 * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
809 reformulate in-buffer optimisation check to match code in
810 _IO_new_file_seekoff.
811
812 2009-08-31 Joshua W. Boyer <jwboyer@linux.vnet.ibm.com>
813
814 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
815 to srwi in 32-bit memcpy for power6.
816
817 2009-09-01 Andreas Schwab <schwab@redhat.com>
818
819 * include/stdio.h: Declare hidden proto for fflush.
820 * libio/iofflush.c: Add hidden weak alias for fflush.
821
822 2009-09-01 Jakub Jelinek <jakub@redhat.com>
823
824 * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
825 (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
826
827 2009-08-31 Andreas Schwab <schwab@redhat.com>
828
829 * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
830
831 2009-08-31 Ulrich Drepper <drepper@redhat.com>
832
833 [BZ #10560]
834 * malloc/malloc.c: Add local assert definition to avoid problems with
835 memory allocation in the real one.
836
837 2009-08-27 H.J. Lu <hongjiu.lu@intel.com>
838
839 * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
840 Removed.
841 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
842 turn off SSSE3 on Atom.
843
844 2009-08-28 Ulrich Drepper <drepper@redhat.com>
845
846 * stdlib/tst-strtol.c (tests): More tests.
847 * stdlib/tst-strtoll.c (tests): Likewise.
848
849 2009-08-26 Ulrich Drepper <drepper@redhat.com>
850
851 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
852
853 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
854
855 2009-08-25 Ulrich Drepper <drepper@redhat.com>
856
857 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
858 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
859
860 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
861
862 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
863
864 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
865
866 2009-08-25 Joseph Myers <joseph@codesourcery.com>
867
868 * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
869
870 2009-08-25 Ulrich Drepper <drepper@redhat.com>
871
872 * sysdeps/x86_64/fpu/s_scalbln.c: New file.
873 * sysdeps/x86_64/fpu/s_scalbn.c: New file.
874
875 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
876
877 * sysdeps/x86_64/fpu/s_signbit.S: New file.
878 * sysdeps/x86_64/fpu/s_signbitf.S: New file.
879
880 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
881 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
882
883 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
884 leftover YMM_SIZE definition.
885
886 2009-08-24 Ulrich Drepper <drepper@redhat.com>
887
888 * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
889 union.
890 (EXTRACT_WORDS64, INSERT_WORDS64): Define.
891 * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
892 Redefine.
893 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
894
895 * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
896 and SET_FLOAT_WORD definitions.
897
898 2009-08-24 Roland McGrath <roland@redhat.com>
899
900 * sysdeps/unix/syscall-template.S: New file.
901 * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
902 * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
903 (compile-syscall): Pass mkdep and -g options as normal.
904 (s-proto.d, s-proto-cancel.d): Don't "-include" these.
905 (common-generated): Don't add them here.
906
907 2009-08-24 Ulrich Drepper <drepper@redhat.com>
908
909 * math/s_fdim.c: In case of overflows set errno.
910 * math/s_fdimf.c: Likewise.
911 * math/s_fdiml.c: Likewise.
912
913 * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
914 * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
915 are using the inline optimizations.
916
917 * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
918 (__signbitf): Likewise.
919
920 2009-08-23 Ulrich Drepper <drepper@redhat.com>
921
922 * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
923 terminated.
924 * posix/Makefile (tests): Add bug-regex29.
925 * posix/bug-regex29.c: New file.
926
927 * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
928 older POSIX versions are selected.
929
930 * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
931 as well.
932 * stdio-common/printf_fphex.c: Likewise.
933 * stdio-common/tstdiomisc.c: Add more tests.
934
935 * locale/locale.h: Include xlocale.h and the thread-local locale
936 declarations for XPG7, not XPG6.
937
938 2009-08-21 Andreas Schwab <schwab@redhat.com>
939
940 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
941 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
942 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
943 * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
944 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
945 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
946
947 2009-08-20 Roland McGrath <roland@redhat.com>
948
949 * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
950 Use l_addr instead of l_map_start (dli_fbase).
951 Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
952 address when there is no proximate symbol.
953 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
954 Likewise.
955
956 2009-08-16 Ulrich Drepper <drepper@redhat.com>
957
958 * scripts/gen-as-const.awk: Fix test for 64-bit platform.
959
960 2009-08-14 Ulrich Drepper <drepper@redhat.com>
961
962 * test-skeleton.c (signal_handler): Renamed from timeout_handler.
963 Also handle SIGINT. In that case only do the cleanup and then
964 re-raise the signal.
965 (main): Install handler for SIGINT.
966
967 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
968
969 * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
970 clobber list.
971
972 2009-08-01 H.J. Lu <hongjiu.lu@intel.com>
973
974 * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
975 tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
976 tst-auditmod7b.c.
977 (tests): Add tst-audit6 tst-audit7.
978 (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
979 tst-auditmod7a tst-auditmod7b.
980 ($(objpfx)tst-audit6): New.
981 ($(objpfx)tst-audit6.out): Likewise.
982 ($(objpfx)tst-audit7): Likewise.
983 ($(objpfx)tst-audit7.out): Likewise.
984 (tst-audit6-ENV): Likewise.
985 (tst-audit7-ENV): Likewise.
986 (CFLAGS-tst-auditmod6b.c): Likewise.
987 (CFLAGS-tst-auditmod6c.c): Likewise.
988 (CFLAGS-tst-auditmod7b.c): Likewise.
989 * elf/tst-audit6.c: New file.
990 * elf/tst-audit7.c: New file.
991 * elf/tst-auditmod6a.c: New file.
992 * elf/tst-auditmod6b.c: New file.
993 * elf/tst-auditmod6c.c: New file.
994 * elf/tst-auditmod7a.c: New file.
995 * elf/tst-auditmod7b.c: New file.
996 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
997 saving and restoring SSE/AVX registers to ...
998 * sysdeps/x86_64/dl-trampoline.h: This. New file.
999
1000 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
1001
1002 * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
1003 only if SHARED is defined.
1004 * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
1005
1006 2009-08-03 Jim Meyering <meyering@redhat.com>
1007
1008 * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
1009
1010 2009-08-08 Ulrich Drepper <drepper@redhat.com>
1011
1012 * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
1013 section as the other functions for this architecture.
1014 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1015
1016 2009-08-07 Ulrich Drepper <drepper@redhat.com>
1017
1018 * sysdeps/x86_64/strcmp.S: Add support to compile with
1019 USE_SSSE3. In this case palignr is used.
1020 * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
1021 available but SSSE3 is, pick __str{,n}cmp_ssse3.
1022 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
1023 Add strcmp-ssse3 and strncmp-ssse3.
1024 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
1025 * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
1026
1027 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
1028 warning through fake initialization.
1029
1030 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
1031
1032 * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
1033
1034 2009-08-07 Andreas Schwab <schwab@redhat.com>
1035
1036 * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
1037 unique symbols.
1038
1039 2009-08-05 H.J. Lu <hongjiu.lu@intel.com>
1040
1041 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1042 EBX from EAX = 1. Handle EAX = 11.
1043
1044 2009-08-07 Andreas Schwab <schwab@redhat.com>
1045
1046 * Makefile (TAGS): Use separate sed -e expressions to avoid \
1047 inside ''.
1048
1049 2009-08-03 H.J. Lu <hongjiu.lu@intel.com>
1050
1051 * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1052 hidden IFUNC functions.
1053 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1054
1055 * sysdeps/i386/i686/multiarch/strlen.S: New file.
1056
1057 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1058 (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
1059 strcasestr-c.
1060 (CFLAGS-strcspn-c.c): Define.
1061 (CFLAGS-strpbrk-c.c): Define.
1062 (CFLAGS-strspn-c.c): Define.
1063 (CFLAGS-strstr.c): Define.
1064 (CFLAGS-strcasestr.c): Define.
1065 * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
1066 * sysdeps/i386/i686/multiarch/strcspn.S: New file.
1067 * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
1068 * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
1069 * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
1070 * sysdeps/i386/i686/multiarch/strspn.S: New file.
1071 * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
1072 * sysdeps/i386/i686/multiarch/strstr.c: New file.
1073 * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
1074 * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
1075 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
1076 -16L instead of 0xfffffffffffffff0L.
1077 * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1078
1079 2009-08-02 Ulrich Drepper <drepper@redhat.com>
1080
1081 * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1082
1083 2009-07-31 Ulrich Drepper <drepper@redhat.com>
1084
1085 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1086 another rewrite. Much smaller and faster.
1087 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1088
1089 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1090 ss_flags from the correct location.
1091
1092 2009-07-31 H.J. Lu <hongjiu.lu@intel.com>
1093
1094 * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1095 * sysdeps/i386/i686/cacheinfo.c: New file.
1096 * sysdeps/i386/i686/multiarch/Makefile: New file.
1097 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1098 * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1099 * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1100 * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1101 * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1102 * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1103 (__cpuid_count): New. Provide the default.
1104 (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1105 (__x86_64_preferred_memory_instruction): Define only if
1106 DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1107 (intel_check_word): Use __cpuid.
1108 (handle_intel): Likewise.
1109 (handle_amd): Likewise.
1110 (__cache_sysconf): Likewise.
1111 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
1112 (__cache_sysconf): Likewise.
1113 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
1114 * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1115 (get_common_indeces): Use __cpuid.
1116 (__init_cpu_features): Likewise. Disable SSSE3 on Atom only
1117 if ENABLE_SSSE3_ON_ATOM is not defined.
1118 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1119 * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1120 popcnt instead of popcntq.
1121
1122 2009-07-31 Jakub Jelinek <jakub@redhat.com>
1123
1124 * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1125
1126 2009-07-30 Ulrich Drepper <drepper@redhat.com>
1127
1128 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1129 * sysdeps/i386/____longjmp_chk.S: Remove all code. This is now a file
1130 which always causes a compile error.
1131
1132 * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1133
1134 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file. Content
1135 comes from...
1136 * sysdeps/x86_64/____longjmp_chk.S: ...here. This is now a file
1137 which always causes a compile error.
1138
1139 * debug/Makefile (tests): Add tst-longjmp_chk2.
1140 * debug/tst-longjmp_chk2.c: New file.
1141
1142 * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling. Fix CFI.
1143 Remove incorrect use of BP_SYM.
1144 * sysdeps/x86_64/____longjmp_chk.S: Rewrite. Complete implementation
1145 here now since it is more complex than just a simple check.
1146
1147 * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1148 we make no more progress.
1149
1150 2009-07-29 Ulrich Drepper <drepper@redhat.com>
1151
1152 * math/s_fma.c: Don't define alias if __fma is a macro.
1153 * math/s_fmaf.c: Likewise.
1154 * sysdeps/x86_64/multiarch/s_fma.c: New file.
1155 * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1156 Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1157
1158 * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1159 (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1160 New macro HAS_FMA.
1161 * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1162 function.
1163 * include/libc-symbols.h (libm_ifunc): Define.
1164 * sysdeps/x86_64/multiarch/Versions: New file.
1165
1166 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
1167
1168 2009-07-28 H.J. Lu <hongjiu.lu@intel.com>
1169
1170 * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1171
1172 2009-07-29 Ulrich Drepper <drepper@redhat.com>
1173
1174 * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1175 call that registers used in calling conventions need to be preserved.
1176 * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1177 to preserve register content if necessary.
1178 * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1179 (_dl_x86_64_restore_sse): New function.
1180 * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1181 is allowed to modify xmm/ymm registers.
1182
1183 * stdio-common/scanf15.c: Undefine _LIBC. We want to test from an
1184 application's perspective.
1185 * stdio-common/scanf17.c: Likewise.
1186
1187 2009-07-28 Ulrich Drepper <drepper@redhat.com>
1188
1189 * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1190 size to memsz.
1191 (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1192 here.
1193 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1194 two steps to catch bugs.
1195
1196 2009-07-27 Ulrich Drepper <drepper@redhat.com>
1197
1198 * sysdeps/x86_64/tst-xmmymm.sh: Refine testing. The script now
1199 determines which files are used in runtime lookups and only checks
1200 those for SSE use.
1201 * sysdeps/x86_64/rtld-memchr.c: Removed. Not needed with refined
1202 testing.
1203 * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
1204 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
1205 * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
1206 take a while.
1207
1208 * elf/dl-open.c: Move _dl_scope_free to...
1209 * elf/dl-scope.c: ...here. New file.
1210 * elf/Makefile (dl-routines): Add scope.
1211
1212 * resolv/resolv.h (RES_USE_DNSSEC): Define.
1213 * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1214 RES_USE_DNSSEC.
1215 * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1216 * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1217 all the places we handled RES_USE_EDNS0 only before.
1218 Patch by Adam Tkac <atkac@redhat.com>.
1219
1220 2009-07-27 Jakub Jelinek <jakub@redhat.com>
1221
1222 * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1223 3/4 full. Pass size + 1 rather than size to _dl_higher_prime_number.
1224 Update size when reallocating.
1225
1226 2009-07-26 Ulrich Drepper <drepper@redhat.com>
1227
1228 * sysdeps/x86_64/tst-xmmymm.sh: New file. Check whether any of the
1229 functions used in ld.so modify xmm/ymm registers.
1230 * sysdeps/x86_64/Makefile: Hook new test up.
1231 * sysdeps/x86_64/rtld-memchr.c: New file.
1232 * sysdeps/x86_64/rtld-memcmp.c: New file.
1233 * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1234 * sysdeps/x86_64/rtld-strchr.S: New file.
1235 * sysdeps/x86_64/rtld-strlen.S: New file.
1236 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1237 * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1238
1239 2009-07-26 H.J. Lu <hongjiu.lu@intel.com>
1240
1241 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1242 strncmp-c.
1243 * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1244 (exit): Likewise.
1245 (Byte1): Likewise.
1246 (Byte2): Likewise.
1247 (Byte3): Likewise.
1248 (Byte4): Likewise.
1249 (Byte5): Likewise.
1250 (Byte6): Likewise.
1251 (next_8_bytes): Likewise.
1252 (Byte0): Remove commented out codes.
1253 (unaligned_table): Align jump table at 8 bytes.
1254 Add _sse4_2 to all labels. Always include "../strcmp.S".
1255 * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1256 * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1257 * sysdeps/x86_64/strncmp.S: New file.
1258
1259 2009-07-26 Ulrich Drepper <drepper@redhat.com>
1260
1261 [BZ #10422]
1262 * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1263 kernels, dropped when eventfd2 support was added.
1264 * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1265 kernels, dropped when signalfd4 support was added.
1266 * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1267 added, name them.
1268
1269 [BZ #10452]
1270 * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1271 replies up.
1272
1273 * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1274
1275 2009-07-25 Ulrich Drepper <drepper@redhat.com>
1276
1277 * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1278 modern processor versions. Patch by H.J. Lu <hongjiu.lu@intel.com>.
1279
1280 [BZ #10448]
1281 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
1282 callback we must touch the status to avoid using stale value.
1283
1284 * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
1285 compiled in.
1286
1287 2009-07-24 Ulrich Drepper <drepper@redhat.com>
1288
1289 * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
1290 /lib/modules/* headers anymore. We have sane headers in the standard
1291 place now.
1292
1293 2009-06-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1294
1295 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
1296 "etf3enh" and "highgprs" added.
1297 (_dl_s390_platforms): "z10" added.
1298 * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
1299 Increased for the new entries.
1300 (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
1301 HWCAP_S390_HIGH_GPRS added.
1302
1303 * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
1304 * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
1305 * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
1306 * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
1307 * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
1308
1309 2009-07-23 Ulrich Drepper <drepper@redhat.com>
1310
1311 * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
1312 avoid additional cpuid instructions. Most of the information is
1313 stored somewhere.
1314
1315 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
1316 cache descriptors.
1317 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
1318
1319 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
1320 SSSE3 bit for Atoms.
1321 * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
1322 here anymore.
1323
1324 * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
1325 structure before copying it to avoid warning.
1326 * posix/tst-rfc3484-2.c (do_test): Likewise.
1327 * posix/tst-rfc3484-3.c (do_test): Likewise.
1328
1329 [BZ #10416]
1330 * include/unistd.h: Make header file suitable for C++ test cases.
1331 Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
1332
1333 * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
1334 stack alignment in the exit code.
1335
1336 * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
1337 potentially be zero.
1338
1339 * elf/tst-unique1.c: Extend test to check for unloading DSO with
1340 unique symbol definition.
1341 Patch by Jakub Jelinek.
1342 * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
1343 make sure the object with the definition cannot be unloaded. Adjust
1344 a few types.
1345 * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
1346 the unique symbol hash table should not be const.
1347
1348 2009-07-21 Ulrich Drepper <drepper@redhat.com>
1349
1350 * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups. Remove
1351 unnecesary variables. Comment fixes.
1352
1353 2009-07-20 Ulrich Drepper <drepper@redhat.com>
1354
1355 * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
1356 Use NONASCII_CASE information provided by the locale to determine
1357 whether optimized string load function can be used. Minor cleanups.
1358
1359 2009-07-20 H.J. Lu <hongjiu.lu@intel.com>
1360
1361 * string/strcasestr.c (STRCASESTR): New macro.
1362 (__strcasestr): Renamed to ..
1363 (STRCASESTR): ...this.
1364 * string/strstr.c (STRSTR): New macro.
1365 (strstr): Renamed to ..
1366 (STRSTR): ...this.
1367 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1368 strstr-c strcasestr-c
1369 (CFLAGS-strstr.c): New.
1370 (CFLAGS-strcasestr.c): Likewise.
1371 * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
1372 * sysdeps/x86_64/multiarch/strcasestr.c: New file.
1373 * sysdeps/x86_64/multiarch/strstr-c.c: New file.
1374 * sysdeps/x86_64/multiarch/strstr.c: New file.
1375
1376 2009-07-20 Ulrich Drepper <drepper@redhat.com>
1377
1378 * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
1379 * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
1380 * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
1381 _NL_CTYPE_NONASCII_CASE.
1382 * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
1383 field.
1384 (ctype_finish): Check whether there are any 8-bit characters outside
1385 the range ASCII has or whether the mapping isn't the same as for
1386 ASCII (±0x20). Set nonascii_case appropriately.
1387 (ctype_output): Add output handler for nonascii_case.
1388
1389 2009-07-17 Ulrich Drepper <drepper@redhat.com>
1390
1391 * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
1392 CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
1393
1394 2009-07-16 Ulrich Drepper <drepper@redhat.com>
1395
1396 [BZ #10360]
1397 * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
1398 0xffff in the EDNS0 record.
1399
1400 2009-07-16 Ulrich Drepper <drepper@redhat.com>
1401
1402 * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
1403 instead of atomic_compare_and_exchange_bool_acq to ensure pointer
1404 is written before the list head update.
1405 Patch by Andreas Schwab <aschwab@redhat.com>.
1406
1407 2009-07-16 Ulrich Drepper <drepper@redhat.com>
1408 Jakub Jelinek <jakub@redhat.com>
1409
1410 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
1411 corruption thread-safe.
1412
1413 2009-07-13 Jakub Jelinek <jakub@redhat.com>
1414
1415 * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
1416 overrides atomic_compare_and_exchange_val_rel, define to
1417 atomic_compare_and_exchange_val_rel by default, otherwise default
1418 to catomic_compare_and_exchange_val_acq.
1419 (catomic_compare_and_exchange_bool_rel): If arch overrides
1420 atomic_compare_and_exchange_bool_rel, define to
1421 atomic_compare_and_exchange_bool_rel by default.
1422 * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
1423 Use catomic_compare_and_exchange_val_rel instead of
1424 catomic_compare_and_exchange_val_acq.
1425
1426 2009-07-16 Ulrich Drepper <drepper@redhat.com>
1427
1428 * sysdeps/generic/ldsodefs.h: Add prototype for
1429 _dl_higher_prime_number.
1430 * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
1431
1432 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
1433 restoring of ymm registers a bit.
1434
1435 2009-07-15 H.J. Lu <hongjiu.lu@intel.com>
1436
1437 * sysdeps/x86_64/memcmp.S: New file.
1438
1439 2009-07-15 Ulrich Drepper <drepper@redhat.com>
1440
1441 * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
1442 * sysdeps/x86-64/dl-trampoline.S: ...here. Rewrite to avoid function
1443 pointers in writable memory.
1444
1445 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
1446
1447 * config.h.in: Add HAVE_AVX_SUPPORT entry.
1448 * config.make.in: Add config-cflags-avx entry.
1449 * configure.in: Substitute libc_cv_cc_avx.
1450 * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
1451 * elf/tst-audit4.c: New file.
1452 * elf/tst-audit5.c: New file.
1453 * elf/tst-auditmod4a.c: New file.
1454 * elf/tst-auditmod4b.c: New file.
1455 * elf/tst-auditmod5a.c: New file.
1456 * elf/tst-auditmod5b.c: New file.
1457 * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
1458 link-defines.sym.
1459 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
1460 (La_x86_64_vector): Likewise.
1461 (La_x86_64_regs): Append lr_vector.
1462 (La_x86_64_retval): Append lr_vector0/lrv_vector1.
1463 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1464 saving and restoring SSE registers to ...
1465 * sysdeps/x86_64/dl-trampoline.h: This. New file.
1466 * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
1467 <link-defines.h>.
1468 (_dl_runtime_profile): Use LR_SIZE to allocate space for
1469 La_x86_64_regs. Allocate extra space and jump to memory at
1470 save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
1471 (save_and_restore_vector_sse): New.
1472 (save_and_restore_vector_avx): Likewise.
1473 (check_avx): Likewise.
1474 (save_and_restore_vector): Likewise.
1475 * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
1476 HAVE_AVX_SUPPORT.
1477 * sysdeps/x86_64/link-defines.sym: New file.
1478
1479 2009-07-10 Ulrich Drepper <drepper@redhat.com>
1480
1481 * elf/do-lookup.h: Removed after folding content into...
1482 * elf/dl-lookup.c: ...here.
1483
1484 * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
1485
1486 2009-07-09 Ulrich Drepper <drepper@redhat.com>
1487
1488 * configure.in: Check for gnu_unique_symbol symbol type.
1489 * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
1490 * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
1491 the undefined symbol. Handle STB_GNU_UNIQUE binding of found symbol.
1492 * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
1493 change.
1494 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
1495 unique symbol table.
1496 * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
1497 for first namespace.
1498 * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
1499 unique symbol hash table.
1500 * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
1501 * elf/tst-unique1.c: New file.
1502 * elf/tst-unique1mod1.c: New file.
1503 * elf/tst-unique1mod2.c: New file.
1504 * elf/tst-unique2.c: New file.
1505 * elf/tst-unique2mod1.c: New file.
1506 * elf/tst-unique2mod2.c: New file.
1507
1508 2009-07-07 Ulrich Drepper <drepper@redhat.com>
1509
1510 * elf/elf.h (STB_GNU_UNIQUE): Define.
1511
1512 * elf/dl-misc.c (_dl_higher_prime_number): New function. Moved here
1513 from...
1514 * include/inline-hashtab.h: ...here.
1515 (htab_expand): Adjust for renamed function. Correct memory handling.
1516
1517 2009-07-06 Ulrich Drepper <drepper@redhat.com>
1518
1519 * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
1520
1521 2009-07-03 Andreas Schwab <aschwab@redhat.com>
1522
1523 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
1524 (PPC_FEATURE_HAS_VSX): Likewise.
1525
1526 2009-07-03 Ulrich Drepper <drepper@redhat.com>
1527
1528 * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
1529 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
1530
1531 * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
1532 aligned to 16 byte boundaries.
1533 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1534 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1535 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1536
1537 2009-07-02 H.J. Lu <hongjiu.lu@intel.com>
1538
1539 * config.h.in (HAVE_SSE4_SUPPORT): New macro.
1540 * config.make.in (config-cflags-sse4): New variable.
1541 * configure.in: Substitute libc_cv_cc_sse4.
1542 * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
1543 HAVE_SSE4_SUPPORT.
1544 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1545 strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
1546 * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
1547 * sysdeps/x86_64/multiarch/strcspn.S: New file.
1548 * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
1549 * sysdeps/x86_64/multiarch/strpbrk.S: New file.
1550 * sysdeps/x86_64/multiarch/strspn-c.c: New file.
1551 * sysdeps/x86_64/multiarch/strspn.S: New file.
1552
1553 2009-06-30 H.J. Lu <hongjiu.lu@intel.com>
1554
1555 * elf/Makefile (distribute): Remove tst-audit.sh. Add
1556 tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
1557 (tests): Add tst-audit3 for x86_64.
1558 (modules-names): Add tst-auditmod3a, tst-auditmod3b.
1559 ($(objpfx)tst-audit3): Define.
1560 ($(objpfx)tst-audit3.out): Define.
1561 (tst-audit3-ENV): Define.
1562 * elf/tst-audit3.c: New file.
1563 * elf/tst-auditmod3a.c: New file.
1564 * elf/tst-auditmod3b.c: New file.
1565 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
1566 and restore xmm6.
1567
1568 * string/stpncpy.c (STPNCPY): New. Defined if not defined.
1569 (__stpncpy): Renamed to ...
1570 (STPNCPY): This.
1571 (stpncpy): Create alias only if STPNCPY is not defined.
1572 * string/strncpy.c (STRNCPY): New. Defined to strncpy if not
1573 defined.
1574 (strncpy): Renamed to ...
1575 (STRNCPY): This.
1576 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1577 stpncpy-c strncpy-c for string.
1578 * sysdeps/x86_64/multiarch/stpcpy.S: New file.
1579 * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
1580 * sysdeps/x86_64/multiarch/stpncpy.S: New file.
1581 * sysdeps/x86_64/multiarch/strcpy.S: New file.
1582 * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
1583 * sysdeps/x86_64/multiarch/strncpy.S: New file.
1584
1585 2009-07-02 Ulrich Drepper <drepper@redhat.com>
1586
1587 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
1588 adding to fast bin list.
1589
1590 2009-07-01 Ulrich Drepper <drepper@redhat.com>
1591
1592 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
1593 inet_makeaddr. This worked only with class-based networks.
1594 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
1595 Likewise.
1596
1597 * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
1598 recognize all types.
1599 * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
1600 to getnetbyaddr. Fix network parameter to getnetbyaddr. It must
1601 be in host byte order.
1602
1603 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
1604
1605 * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
1606 (MODEL_OFFSET): Define.
1607 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
1608 family and model.
1609 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
1610 out common code into new function get_common_indeces. Determine
1611 extended family and model for Intel processors.
1612
1613 2009-06-26 Ulrich Drepper <drepper@redhat.com>
1614
1615 * resolv/resolv.h: Define RES_SNGLKUPREOP.
1616 * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
1617 option.
1618 * resolv/res_send.c (reopen): New function. Broken out of...
1619 (send_dg): ... here. Recognize RES_SNGLKUPREOP. Implement second
1620 fallback mechanism. If single-request fails switch to
1621 single-request-reopen mode which opens a new socket for the second
1622 request.
1623
1624 2009-06-25 Andreas Schwab <aschwab@redhat.com>
1625
1626 * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
1627 (CHECK_SP): Use it.
1628
1629 2009-06-24 Andreas Schwab <aschwab@redhat.com>
1630
1631 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
1632 for saved registers.
1633 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
1634 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
1635 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
1636
1637 2009-06-23 Andreas Schwab <aschwab@redhat.com>
1638
1639 * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
1640
1641 2009-06-22 Ulrich Drepper <drepper@redhat.com>
1642
1643 * po/id.po: Update from translation team.
1644
1645 * po/bg.po: Update from translation team.
1646
1647 2009-06-22 H.J. Lu <hongjiu.lu@intel.com>
1648
1649 * string/strncmp.c (STRNCMP): New. Defined to strncmp if not
1650 defined.
1651 (strncmp): Renamed to STRNCMP.
1652 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1653 strncmp-c for string.
1654 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
1655 * sysdeps/x86_64/multiarch/strcmp.S: New file.
1656 * sysdeps/x86_64/multiarch/strncmp.S: New file.
1657 * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
1658
1659 2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
1660
1661 * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
1662 ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
1663 ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
1664 ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
1665 ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
1666 ifuncmain7static.c.
1667 (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
1668 ifuncmain7static, and ifuncmain7picstatic.
1669 (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
1670 $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
1671 $(objpfx)ifuncmain7pie.out.
1672 (modules-names): Add ifuncmod5 ifuncmod6
1673 (ifuncmod5.so-no-z-defs): Define.
1674 (ifuncmod6.so-no-z-defs): Define.
1675 (CFLAGS-ifuncmain5pic.c): Define.
1676 (CFLAGS-ifuncmain5picstatic.c): Define.
1677 (CFLAGS-ifuncmain5staticpic.c): Define.
1678 (CFLAGS-ifuncdep5pic.c): Define.
1679 (CFLAGS-ifuncmain7pic.c): Define.
1680 (CFLAGS-ifuncmain7picstatic.c): Define.
1681 (CFLAGS-ifuncmain1staticpie.c): Define.
1682 (CFLAGS-ifuncmain5pie.c): Define.
1683 (CFLAGS-ifuncmain6pie.c): Define.
1684 (CFLAGS-ifuncmain7pie.c): Define.
1685 ($(objpfx)ifuncmain1staticpie.out): Define.
1686 ($(objpfx)ifuncmain1staticpie): Define.
1687 ($(objpfx)ifuncmain5pie.out): Define.
1688 ($(objpfx)ifuncmain5pie): Define.
1689 ($(objpfx)ifuncmain6pie.out): Define.
1690 ($(objpfx)ifuncmain6pie): Define.
1691 ($(objpfx)ifuncmain5): Define.
1692 ($(objpfx)ifuncmain5pic): Define.
1693 ($(objpfx)ifuncmain5static): Define.
1694 ($(objpfx)ifuncmain5staticpic): Define.
1695 ($(objpfx)ifuncmain5picstatic): Define.
1696 (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
1697 ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
1698 ifuncmain6pie.out.
1699 * elf/b/elf/ifuncmain1staticpie.c: New file.
1700 * elf/ifuncdep5.c: New file.
1701 * elf/ifuncdep5pic.c: New file.
1702 * elf/ifuncmain5.c: New file.
1703 * elf/ifuncmain5pic.c: New file.
1704 * elf/ifuncmain5picstatic.c: New file.
1705 * elf/ifuncmain5pie.c: New file.
1706 * elf/ifuncmain5static.c: New file.
1707 * elf/ifuncmain5staticpic.c: New file.
1708 * elf/ifuncmain6pie.c: New file.
1709 * elf/ifuncmain7.c: New file.
1710 * elf/ifuncmain7pic.c: New file.
1711 * elf/ifuncmain7picstatic.c: New file.
1712 * elf/ifuncmain7pie.c: New file.
1713 * elf/ifuncmain7static.c: New file.
1714 * elf/ifuncmod5.c: New file.
1715 * elf/ifuncmod6.c: New file.
1716
1717 2009-06-20 Ulrich Drepper <drepper@redhat.com>
1718
1719 [BZ #10085]
1720 * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
1721 (nss_endgrent): New variable.
1722 (struct ent_t): Add need_endgrent and skip_initgroups_dyn
1723 fields. Change type of files to bool and adjust all users.
1724 (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
1725 (internal_endgrent): Call nss_endgrent if necessary.
1726 (add_group): New function. Broken out of...
1727 (check_and_add_group): ...here.
1728 (getgrent_next_nss): Remove test that any callback is available.
1729 Use skip_initgroups_dyn to determine whether to use initgroups_dyn
1730 callback. If there is no blacklist we can trust the results returned
1731 by the initgroups_dyn callback. In case there is a callback and we
1732 find a group entry for the group ID but it doesn't contain the
1733 correct member, switch to the slow mode and use getgrent_r.
1734 (internal_getgrent_r): When we see a +: entry, determine whether
1735 there is any callback and which we can use the initgroups_dyn
1736 callback.
1737
1738 2009-06-18 Ulrich Drepper <drepper@redhat.com>
1739
1740 * malloc/malloc.c (_int_malloc): Add some consistency checks.
1741 (_int_free): Likewise.
1742
1743 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
1744 AF_IEEE802154.
1745 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1746 * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
1747 and ARPHRD_IEEE802154_PHY.
1748
1749 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
1750 relative to generic Linux version.
1751
1752 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
1753
1754 * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
1755 ($(objpfx)ifuncmain1vispie): Likewise.
1756
1757 2009-06-16 Ulrich Drepper <drepper@redhat.com>
1758
1759 * login/Makefile: Build pt_chown as PIE.
1760
1761 2009-06-15 Andreas Schwab <aschwab@redhat.com>
1762
1763 * debug/xtrace.sh (do_help): Don't treat bug reporting message as
1764 a format string.
1765 * elf/sln.c (usage): Likewise.
1766 * malloc/memusage.sh (do_help): Likewise.
1767 * nss/getent.c (more_help): Likewise.
1768 * posix/getconf.c (main): Likewise.
1769 * sunrpc/rpcinfo.c (usage): Likewise.
1770 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1771
1772 2009-06-16 Ulrich Drepper <drepper@redhat.com>
1773
1774 * login/programs/pt_chown.c: Use libcap to drop privileges other than
1775 those needed.
1776 * login/Makefile: If necessary link pt_chown with -lcap.
1777 * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
1778 * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
1779
1780 2009-06-16 Jakub Jelinek <jakub@redhat.com>
1781
1782 * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
1783 comparisons.
1784 * string/test-memchr.c (do_random_tests): Test very large lengths
1785 as well.
1786
1787 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
1788
1789 * Makeconfig (+link-pie): Define.
1790 (+prectorS): Define.
1791 (+postctorS): Define.
1792 * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
1793 * nscd/Makefile ($(objpfx)nscd): Likewise.
1794
1795 2009-04-22 Ryan S. Arnold <rsa@us.ibm.com>
1796
1797 [BZ #10107]
1798 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
1799 with cmplwi.
1800 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
1801
1802 2009-06-16 Ulrich Drepper <drepper@redhat.com>
1803
1804 * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
1805 into ...
1806 * sysdeps/unix/grantpt.c: ...here.
1807
1808 2009-06-15 Ulrich Drepper <drepper@redhat.com>
1809
1810 * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
1811 chmod if it is necessary.
1812
1813 [BZ #10166]
1814 * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
1815 when the slave device is in devpts or devfs.
1816
1817 [BZ #10183]
1818 * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
1819
1820 [BZ #10195]
1821 * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
1822 of nd_opt_home_agent_info_preference to uint16_t.
1823 Patch by Arnaud Ebalard <arno@natisbad.org>.
1824
1825 [BZ #10207]
1826 * nss/getent.c: Add support for printing gshadow data.
1827
1828 [BZ #10203]
1829 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
1830 not just the currently used one and those which follow.
1831 Patch by Joe Landers <jlanders@vmware.com>.
1832
1833 [BZ #10196]
1834 * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
1835 * libio/Makefile: Run tst-fgetwc with necessary envvar.
1836 Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
1837
1838 [BZ #10217]
1839 * stdlib/abort.c: Define variable __abort_msg.
1840 * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
1841 * include/stdlib.h: Declare __abort_msg.
1842 * assert/assert-perr.c: Don't free buffer for message immediately.
1843 Store atomically in __abort_msg and free old buffer if necessary.
1844 * assert/assert.c: Likewise.
1845 * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
1846 store pointer in __abort_msg, and possibly free old string.
1847 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
1848
1849 * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
1850
1851 [BZ #10211]
1852 * time/tzfile.c (__tzfile_compute): If we use the envvar format still
1853 handle leap seconds if they are available.
1854 Patch by Akinori Hattori <hattya@gentoo.org>.
1855
1856 * timezone/tzselect.ksh: Update from tzcode2009i.
1857 * timezone/zdump.c: Likewise.
1858 * timezone/zic.c: Likewise.
1859
1860 * timezone/africa: Update from tzdata2009i.
1861 * timezone/antarctica: Likewise.
1862 * timezone/asia: Likewise.
1863 * timezone/australasia: Likewise.
1864 * timezone/backward: Likewise.
1865 * timezone/etcetera: Likewise.
1866 * timezone/europe: Likewise.
1867 * timezone/factory: Likewise.
1868 * timezone/iso3166.tab: Likewise.
1869 * timezone/leapseconds: Likewise.
1870 * timezone/northamerica: Likewise.
1871 * timezone/pacificnew: Likewise.
1872 * timezone/solar87: Likewise.
1873 * timezone/solar88: Likewise.
1874 * timezone/solar89: Likewise.
1875 * timezone/southamerica: Likewise.
1876 * timezone/systemv: Likewise.
1877 * timezone/yearistype: Likewise.
1878 * timezone/zone.tab: Likewise.
1879
1880 2009-06-15 Jakub Jelinek <jakub@redhat.com>
1881
1882 * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
1883 STT_GNU_IFUNC symbol or in 8 into type_class.
1884
1885 * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
1886 instead of Elf64_Addr.
1887
1888 2009-06-14 Ulrich Drepper <drepper@redhat.com>
1889
1890 * po/sv.po: Update from translation team.
1891
1892 [BZ #10229]
1893 * misc/sys/select.h (__NFDBITS): Expression should have type int.
1894 * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
1895 __FD_CLR, and __FD_ISSET. gcc nowadays generates better code from
1896 the C version.
1897
1898 2009-06-12 Ulrich Drepper <drepper@redhat.com>
1899
1900 * Versions.def: Add GLIBC_2.11 for libpthread.
1901
1902 2009-06-11 Ulrich Drepper <drepper@redhat.com>
1903
1904 * resolv/res_send.c (send_dg): Remember we switched to
1905 single-request mode.
1906
1907 2009-06-09 Ulrich Drepper <drepper@redhat.com>
1908
1909 * dlfcn/dlfcn.h: Remove comma at end of enum.
1910 Patch by J.H.M. Dassen <rdassen@redhat.com>.
1911
1912 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
1913 parsing mode string.
1914
1915 2009-06-05 Ulrich Drepper <drepper@redhat.com>
1916
1917 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
1918
1919 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
1920
1921 * sysdeps/x86_64/multiarch/strlen.S: New file.
1922 * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
1923 * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
1924 * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
1925 content.
1926
1927 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
1928 is defined.
1929
1930 2009-06-04 Ulrich Drepper <drepper@redhat.com>
1931
1932 * sysdeps/x86_64/strlen.S: Minor optimizations.
1933
1934 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
1935
1936 * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
1937 ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
1938 ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
1939 ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
1940 ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
1941 funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
1942 ifuncmain3.c, ifuncmod3.c,.
1943 ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
1944 (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
1945 ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
1946 ifuncmain4picstatic.
1947 (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
1948 ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
1949 ifuncmain3, ifuncmain4.
1950 (tests): Depend on $(objpfx)ifuncmain1pie.out and
1951 $(objpfx)ifuncmain1vispie.out.
1952 (modules-names): Add ifuncmod1 ifuncmod3.
1953 (generated): Add ifuncmain1pie ifuncmain1pie.out
1954 ifuncmain1vispie ifuncmain1vispie.out.
1955 Define rules to build and run the tests.
1956 * elf/ifuncdep1.c: New file.
1957 * elf/ifuncdep1pic.c: New file.
1958 * elf/ifuncdep2.c: New file.
1959 * elf/ifuncdep2pic.c: New file.
1960 * elf/ifuncmain1.c: New file.
1961 * elf/ifuncmain1pic.c: New file.
1962 * elf/ifuncmain1picstatic.c: New file.
1963 * elf/ifuncmain1pie.c: New file.
1964 * elf/ifuncmain1static.c: New file.
1965 * elf/ifuncmain1staticpic.c: New file.
1966 * elf/ifuncmain1vis.c: New file..
1967 * elf/ifuncmain1vispic.c: New file..
1968 * elf/ifuncmain1vispie.c: New file.
1969 * elf/ifuncmain2.c: New file.
1970 * elf/ifuncmain2pic.c: New file.
1971 * elf/ifuncmain2picstatic.c: New file.
1972 * elf/ifuncmain2static.c: New file.
1973 * elf/ifuncmain3.c: New file.
1974 * elf/ifuncmain4.c: New file.
1975 * elf/ifuncmain4picstatic.c: New file.
1976 * elf/ifuncmain4static.c: New file.
1977 * elf/ifuncmod1.c: New file.
1978 * elf/ifuncmod3.c: New file.
1979
1980 2009-06-03 Ulrich Drepper <drepper@redhat.com>
1981
1982 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
1983
1984 2009-06-02 Ulrich Drepper <drepper@redhat.com>
1985
1986 [BZ #10221]
1987 * posix/Makefile (routines): Add execvpe.
1988 * posix/Versions: Export execvpe for GLIBC_2.11.
1989 * posix/execvp.c: Now only a wrapper. Move code to...
1990 * posix/execvpe.c: ...here. New file.
1991 * posix/unistd.h: Declare execvpe.
1992
1993 2009-06-01 Ulrich Drepper <drepper@redhat.com>
1994
1995 * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
1996 for STT_GNU_IFUNC handling for efficiency.
1997 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1998
1999 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
2000 _exit.
2001 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
2002
2003 2009-05-31 Ulrich Drepper <drepper@redhat.com>
2004
2005 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
2006 for !SHARED.
2007
2008 2009-05-29 H.J. Lu <hongjiu.lu@intel.com>
2009
2010 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
2011 is not defined.
2012 (__rela_iplt_start): New declaration.
2013 (__rela_iplt_end): Likewise.
2014 (__rel_iplt_start): Likewise.
2015 (__rel_iplt_end): Likewise.
2016 (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
2017 * elf/elf.h (R_386_IRELATIVE): New macro.
2018 (R_X86_64_IRELATIVE): New macro.
2019 (R_386_NUM): Updated.
2020 (R_X86_64_NUM): Likewise.
2021 * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
2022 (libc_ifunc_hidden_def): New macro.
2023 * sysdeps/generic/dl-irel.h: New file.
2024 * sysdeps/i386/dl-irel.h: New file.
2025 * sysdeps/x86_64/dl-irel.h: New file.
2026 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
2027 (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
2028 Handle R_386_IRELATIVE.
2029 (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
2030 (elf_machine_lazy_rela): Likewise.
2031 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2032 R_X86_64_IRELATIVE.
2033 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
2034
2035 2009-05-31 Ulrich Drepper <drepper@redhat.com>
2036
2037 * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
2038 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. So far there
2039 are no differences. If an architecture has bits in CPUID index 1
2040 meaning different things the values for the COMMON_CPUID_INDEX_1
2041 index must not be set.
2042 (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2043 (HAS_POPCOUNT): ...this. New macro.
2044 * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2045 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. Unify code
2046 to set the value for Intel and AMD architectures.
2047 * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2048 INTEL_CPUID_INDEX_1.
2049 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2050 change.
2051
2052 2009-05-30 Andreas Schwab <schwab@linux-m68k.org>
2053
2054 * configure.in: Move AC_CANONICAL_HOST before first use of $host
2055 and $build.
2056
2057 2009-05-29 Jakub Jelinek <jakub@redhat.com>
2058
2059 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
2060 (__expm1l): Set errno to ERANGE on overflow.
2061 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
2062 (__tanl): Set errno to EDOM for ±Inf.
2063 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
2064 (__cosl): Set errno to EDOM for ±Inf.
2065 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
2066 (__sinl): Set errno to EDOM for ±Inf.
2067
2068 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
2069 defined, use it.
2070 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2071 * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
2072 * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
2073
2074 2009-05-29 Ulrich Drepper <drepper@redhat.com>
2075
2076 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
2077 code accessing it.
2078 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2079
2080 2009-05-22 Andreas Schwab <schwab@linux-m68k.org>
2081
2082 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
2083 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2084 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2085 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2086
2087 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2088 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2089 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2090 defined.
2091 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2092 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2093
2094 2009-05-22 Jakub Jelinek <jakub@redhat.com>
2095
2096 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2097 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2098 is, either do nothing at all if __ASSUME_ACCEPT4, or
2099 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2100 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2101 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2102 define.
2103 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2104 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2105 internal_accept4 in socket directory.
2106
2107 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
2108
2109 * sysdeps/ia64/configure.in: New file.
2110
2111 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
2112
2113 [BZ #10162]
2114 * sysdeps/ia64/memchr.S: Use speculative load.
2115
2116 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2117 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2118 use it.
2119
2120 * sysdeps/i386/__longjmp.S: Add .text.
2121 * sysdeps/x86_64/__longjmp.S: Likewise.
2122
2123 2009-05-21 Ulrich Drepper <drepper@redhat.com>
2124
2125 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2126 __ASSUME_ACCEPT4 for IA-64.
2127
2128 2009-05-21 Jakub Jelinek <jakub@redhat.com>
2129
2130 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2131
2132 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2133 (SOCKOP_accept4): Define.
2134
2135 2009-05-20 Ulrich Drepper <drepper@redhat.com>
2136
2137 Sun approved the change of the license.
2138 * sunrpc/auth_des.c: Replace license text.
2139 * sunrpc/auth_none.c: Likewise.
2140 * sunrpc/auth_unix.c: Likewise.
2141 * sunrpc/authdes_prot.c: Likewise.
2142 * sunrpc/authuxprot.c: Likewise.
2143 * sunrpc/bindrsvprt.c: Likewise.
2144 * sunrpc/clnt_gen.c: Likewise.
2145 * sunrpc/clnt_perr.c: Likewise.
2146 * sunrpc/clnt_raw.c: Likewise.
2147 * sunrpc/clnt_simp.c: Likewise.
2148 * sunrpc/clnt_tcp.c: Likewise.
2149 * sunrpc/clnt_udp.c: Likewise.
2150 * sunrpc/clnt_unix.c: Likewise.
2151 * sunrpc/des_crypt.c: Likewise.
2152 * sunrpc/des_soft.c: Likewise.
2153 * sunrpc/get_myaddr.c: Likewise.
2154 * sunrpc/getrpcport.c: Likewise.
2155 * sunrpc/key_call.c: Likewise.
2156 * sunrpc/key_prot.c: Likewise.
2157 * sunrpc/openchild.c: Likewise.
2158 * sunrpc/pm_getmaps.c: Likewise.
2159 * sunrpc/pm_getport.c: Likewise.
2160 * sunrpc/pmap_clnt.c: Likewise.
2161 * sunrpc/pmap_prot.c: Likewise.
2162 * sunrpc/pmap_prot2.c: Likewise.
2163 * sunrpc/pmap_rmt.c: Likewise.
2164 * sunrpc/rpc/auth.h: Likewise.
2165 * sunrpc/rpc/auth_unix.h: Likewise.
2166 * sunrpc/rpc/clnt.h: Likewise.
2167 * sunrpc/rpc/des_crypt.h: Likewise.
2168 * sunrpc/rpc/key_prot.h: Likewise.
2169 * sunrpc/rpc/netdb.h: Likewise.
2170 * sunrpc/rpc/pmap_clnt.h: Likewise.
2171 * sunrpc/rpc/pmap_prot.h: Likewise.
2172 * sunrpc/rpc/pmap_rmt.h: Likewise.
2173 * sunrpc/rpc/rpc.h: Likewise.
2174 * sunrpc/rpc/rpc_des.h: Likewise.
2175 * sunrpc/rpc/rpc_msg.h: Likewise.
2176 * sunrpc/rpc/svc.h: Likewise.
2177 * sunrpc/rpc/svc_auth.h: Likewise.
2178 * sunrpc/rpc/types.h: Likewise.
2179 * sunrpc/rpc/xdr.h: Likewise.
2180 * sunrpc/rpc_clntout.c: Likewise.
2181 * sunrpc/rpc_cmsg.c: Likewise.
2182 * sunrpc/rpc_common.c: Likewise.
2183 * sunrpc/rpc_cout.c: Likewise.
2184 * sunrpc/rpc_dtable.c: Likewise.
2185 * sunrpc/rpc_hout.c: Likewise.
2186 * sunrpc/rpc_main.c: Likewise.
2187 * sunrpc/rpc_parse.c: Likewise.
2188 * sunrpc/rpc_parse.h: Likewise.
2189 * sunrpc/rpc_prot.c: Likewise.
2190 * sunrpc/rpc_sample.c: Likewise.
2191 * sunrpc/rpc_scan.c: Likewise.
2192 * sunrpc/rpc_scan.h: Likewise.
2193 * sunrpc/rpc_svcout.c: Likewise.
2194 * sunrpc/rpc_tblout.c: Likewise.
2195 * sunrpc/rpc_util.c: Likewise.
2196 * sunrpc/rpc_util.h: Likewise.
2197 * sunrpc/rpcinfo.c: Likewise.
2198 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2199 * sunrpc/rpcsvc/key_prot.x: Likewise.
2200 * sunrpc/rpcsvc/klm_prot.x: Likewise.
2201 * sunrpc/rpcsvc/mount.x: Likewise.
2202 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2203 * sunrpc/rpcsvc/rex.x: Likewise.
2204 * sunrpc/rpcsvc/rstat.x: Likewise.
2205 * sunrpc/rpcsvc/rusers.x: Likewise.
2206 * sunrpc/rpcsvc/sm_inter.x: Likewise.
2207 * sunrpc/rpcsvc/spray.x: Likewise.
2208 * sunrpc/rpcsvc/yppasswd.x: Likewise.
2209 * sunrpc/rtime.c: Likewise.
2210 * sunrpc/svc.c: Likewise.
2211 * sunrpc/svc_auth.c: Likewise.
2212 * sunrpc/svc_authux.c: Likewise.
2213 * sunrpc/svc_raw.c: Likewise.
2214 * sunrpc/svc_run.c: Likewise.
2215 * sunrpc/svc_simple.c: Likewise.
2216 * sunrpc/svc_tcp.c: Likewise.
2217 * sunrpc/svc_udp.c: Likewise.
2218 * sunrpc/svc_unix.c: Likewise.
2219 * sunrpc/svcauth_des.c: Likewise.
2220 * sunrpc/xcrypt.c: Likewise.
2221 * sunrpc/xdr.c: Likewise.
2222 * sunrpc/xdr_array.c: Likewise.
2223 * sunrpc/xdr_float.c: Likewise.
2224 * sunrpc/xdr_mem.c: Likewise.
2225 * sunrpc/xdr_rec.c: Likewise.
2226 * sunrpc/xdr_ref.c: Likewise.
2227 * sunrpc/xdr_sizeof.c: Likewise.
2228 * sunrpc/xdr_stdio.c: Likewise.
2229
2230 * po/da.po: Update from translation team.
2231
2232 2009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2233
2234 * sysdeps/sh/____longjmp_chk.S: New file.
2235 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2236 * sysdeps/sh/sh4/__longjmp.S: Likewise.
2237
2238 2009-05-18 Jakub Jelinek <jakub@redhat.com>
2239 Ulrich Drepper <drepper@redhat.com>
2240
2241 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2242 (__nscd_cache_search): Assume each entry in the
2243 hash chain needs one hashentry and half of datahead. Use
2244 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2245
2246 2009-05-16 Ulrich Drepper <drepper@redhat.com>
2247
2248 * posix/sys/wait.h: Fix typos. Pretty printing.
2249 * stdlib/stdlib.h: Likewise. Correct comments.
2250
2251 [BZ #10159]
2252 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2253
2254 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2255 patch.
2256
2257 2009-05-15 Ulrich Drepper <drepper@redhat.com>
2258
2259 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2260 Use it if we absolutely cannot reach any more correct list elements
2261 because that many do not fit into the currently mapped database.
2262
2263 2009-05-14 Jakub Jelinek <jakub@redhat.com>
2264
2265 * nscd/nscd_helper.c: Include stddef.h.
2266 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
2267 in a couple of places. Return NULL if trail is not less than
2268 datasize, don't consider dataheads with length smaller than
2269 offsetof (struct datahead, data) + datalen.
2270 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2271 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2272 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2273 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2274 * nscd/nscd_getai.c (__nscd_getai): Likewise.
2275 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2276 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2277
2278 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2279 Rename ...
2280 (fallocate64): ... to this.
2281 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
2282 Rename ...
2283 (fallocate64): ... to this.
2284 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
2285 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
2286 fallocate64@@GLIBC_2.10.
2287 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
2288 fallocate64@@GLIBC_2.11.
2289 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2290 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
2291 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2292 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
2293
2294 * nscd/selinux.c (nscd_avc_destroy): Removed.
2295 * nscd/selinux.h (nscd_avc_destroy): Likewise.
2296 * nscd/nscd.c (termination_handler): Don't call
2297 nscd_avc_destroy.
2298
2299 2009-05-12 Jakub Jelinek <jakub@redhat.com>
2300
2301 * include/atomic.h: Formatting.
2302 (catomic_compare_and_exchange_val_acq): Don't define if already
2303 defined by bits/atomic.h.
2304
2305 2009-05-15 Ulrich Drepper <drepper@redhat.com>
2306
2307 * math/libm-test.inc (expm1_test): Add test for range error.
2308
2309 * Versions.def: Add GLIBC_2.11 for libc.
2310 * debug/Makefile (routines): Add longjmp_chk.
2311 Add rules to build and run tst-longjmp_chk.
2312 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
2313 * debug/longjmp_chk.c: New file.
2314 * debug/tst-longjmp_chk.c: New file.
2315 * include/bits/setjmp2.: New file.
2316 * include/stdio.h: Mark __fortify_fail as internal_function.
2317 * setjmp/Makefile (headers): Add bits/setjmp2.h.
2318 * setjmp/bits/setjmp2.h: New file.
2319 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
2320 of the aliases.
2321 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
2322 defined.
2323 * sysdeps/i386/____longjmp_chk.S: New file.
2324 * sysdeps/x86_64/____longjmp_chk.S: New file.
2325 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
2326 * sysdeps/x86_64/__longjmp.S: Likewise.
2327
2328 * version.h: Bump for 2.11 development.
2329
2330 * elf/check-execstack.c: New file.
2331 * elf/Makefile: Add rules to build and run check-execstack.
2332
2333 2009-05-10 Ulrich Drepper <drepper@redhat.com>
2334
2335 * version.h (VERSION): Bump to 2.10.1.
2336
2337 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
2338 compatibility functions.
2339 * nss/getXXent_r.c: Likewise.
2340 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
2341 * gshadow/getsgnam_r.c: Likewise.
2342 * gshadow/Version: Remove duplicate entries.
2343
2344 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
2345 for recent processor.
2346 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
2347 Likewise.
2348
2349 2009-05-09 Ulrich Drepper <drepper@redhat.com>
2350
2351 * version.h (VERSION): Bump for 2.10 release.
2352 * include/features.h (__GLIBC_MINOR__): Bump to 10.
2353
2354 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
2355 same place we add ASFLAGS-config.
2356
2357 2009-05-05 Aurelien Jarno <aurelien@aurel32.net>
2358
2359 [BZ #10128]
2360 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
2361 or FORMERR and the other NOERROR, don't raise an error.
2362
2363 2009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
2364
2365 [BZ #10118]
2366 * Makeconfig (+asflags): New variable based upon ASFLAG or
2367 asflags-cpu.
2368 (ASFLAGS): Add override to set ASFLAGS to +asflags.
2369 * config.make.in (asflags-cpu): Add variable based upon
2370 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
2371 the assembler.
2372 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2373 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
2374 recognizes power6 instruction set due to passing -mcpu=power6 from
2375 --with-cpu=power6 when compiling .S files.
2376 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2377 Likewise.
2378 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2379 Likewise.
2380 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2381 Likewise.
2382
2383 2009-05-09 Jakub Jelinek <jakub@redhat.com>
2384
2385 * string/stratcliff.c (do_test): Test for zero length
2386 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
2387 at the end of the page.
2388
2389 2009-05-08 Ulrich Drepper <drepper@redhat.com>
2390
2391 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
2392
2393 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
2394 count is zero.
2395
2396 * po/da.po: Update from translation team.
2397
2398 2009-05-05 Jakub Jelinek <jakub@redhat.com>
2399
2400 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
2401 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2402
2403 2009-05-05 Ulrich Drepper <drepper@redhat.com>
2404
2405 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
2406 and READ_IMPLIES_EXEC.
2407
2408 2009-05-04 Ulrich Drepper <drepper@redhat.com>
2409
2410 * po/da.po: Update from translation team.
2411
2412 2009-04-29 Jakub Jelinek <jakub@redhat.com>
2413
2414 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
2415 comment change.
2416
2417 2009-04-27 Jakub Jelinek <jakub@redhat.com>
2418
2419 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
2420 to MAP_ANON in PROT_NONE mmap64 call.
2421 (open_archive): Likewise.
2422 (file_data_available_p): Use mmap64 instead of mremap.
2423 (enlarge_archive): Likewise. Update head if ah->addr changed.
2424 Attempt to reserve address space after mmap64 region.
2425
2426 2009-04-26 Ulrich Drepper <drepper@redhat.com>
2427
2428 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
2429 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2430 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2431
2432 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
2433 atanh should set ERANGE.
2434
2435 [BZ #10087]
2436 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
2437 result of lookup to make call to implement STT_GNU_IFUNC.
2438 (_dl_profile_fixup): Likewise.
2439 Patch by H.J. Lu <hjl.tools@gmail.com>.
2440
2441 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
2442 warning.
2443
2444 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
2445 from definition.
2446
2447 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
2448 label if it is not used.
2449
2450 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
2451 of gmon_hist_hdr and gmon_hdr structures and use them.
2452 * elf/sprof.c: Likewise.
2453
2454 * elf/dl-load.c (open_verify): Add temporary variable to avoid
2455 warning.
2456
2457 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
2458
2459 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
2460 to avoid cast.
2461
2462 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
2463 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
2464 to avoid warnings.
2465 (iruserok_af): Use ss_family instead of casts.
2466
2467 * gmon/gmon.c (write_hist): Define real-type variant of
2468 gmon_hist_hdr structure and use it.
2469 (write_gmon): Likewise for gmon_hdr.
2470
2471 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
2472 function if we are not going to define it.
2473 * sysdeps/unix/sysv/linux/writev.c: Likewise.
2474
2475 * inet/inet6_option.c (option_alloc): Add temporary variable to
2476 avoid warning.
2477
2478 * libio/strfile.h (struct _IO_streambuf): Use correct type and
2479 name of VTable element.
2480 * libio/iovsprintf.c: Avoid casts to avoid warnings.
2481 * libio/iovsscanf.c: Likewise.
2482 * libio/vasprintf.c: Likewise.
2483 * libio/vsnprintf.c: Likewise.
2484 * stdio-common/isoc99_vsscanf.c: Likewise.
2485 * stdlib/strfmon_l.c: Likewise.
2486 * debug/vasprintf_chk.c: Likewise.
2487 * debug/vsnprintf_chk.c: Likewise.
2488 * debug/vsprintf_chk.c: Likewise.
2489
2490 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
2491 function pointers.
2492
2493 2009-04-26 Jakub Jelinek <jakub@redhat.com>
2494
2495 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
2496
2497 2009-04-25 Ulrich Drepper <drepper@redhat.com>
2498
2499 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
2500
2501 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
2502 * sysdeps/i386/fpu/s_tanf.S: Likewise.
2503 * sysdeps/i386/fpu/s_tanl.S: Likewise.
2504 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2505 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2506 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
2507 * math/libm-test.inc: Add tests for errno after tan calls with
2508 ±Inf.
2509
2510 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
2511 errno value vor pow(+-0,neg).
2512 * math/libm-test.inc (pow_test): Add tests for errno value for
2513 pole errors.
2514
2515 * math/w_fmod.c: Also handle x=±Inf as error.
2516 * math/w_fmodf.c: Likewise.
2517 * math/w_fmodl.c: Likewise.
2518 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
2519 x=±Inf or y=0.
2520
2521 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
2522 * sysdeps/i386/fpu/s_cosf.S: Likewise.
2523 * sysdeps/i386/fpu/s_cosl.S: Likewise.
2524 * sysdeps/i386/fpu/s_sin.S: Likewise.
2525 * sysdeps/i386/fpu/s_sinf.S: Likewise.
2526 * sysdeps/i386/fpu/s_sinl.S: Likewise.
2527 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2528 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2529 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2530 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2531 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2532 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
2533 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
2534 * math/libm-test.inc: Add tests for errno after sin/cos calls with
2535 ±Inf.
2536
2537 * stdlib/strtod_l.c (round_and_return): We have to set errno to
2538 ERANGE for underflows.
2539 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
2540
2541 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
2542 the 2001 revision.
2543
2544 * libio/tst-widetext.input: Remove surrogates.
2545
2546 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
2547
2548 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
2549 for lgamma should set errno to ERANGE, not EDOM.
2550 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
2551
2552 2009-04-24 Ulrich Drepper <drepper@redhat.com>
2553
2554 [BZ #10093]
2555 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
2556 UTF-16 surrogates.
2557
2558 * locale/programs/locarchive.c (enlarge_archive): Conserve address
2559 space when temporarily mapping the whole content of the old file.
2560
2561 [BZ #10100]
2562 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
2563 not zero.
2564
2565 2009-04-24 Jakub Jelinek <jakub@redhat.com>
2566
2567 * iconvdata/sjis.c (BODY): Don't advance inptr before
2568 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
2569 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
2570 two byte chars.
2571
2572 2009-04-24 Ulrich Drepper <drepper@redhat.com>
2573
2574 * locale/locarchive.h (struct locarhandle): Rename len field to
2575 mmaped and add new reserved field.
2576 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
2577 (create_archive): Reserve address space and then map file into it.
2578 (open_archive): Likewise.
2579 (file_data_available_p): New function.
2580 (compare_from_file): New function.
2581 (close_archive): Adjust to member name changes.
2582 (add_locale): Before comparing locale data, check it is mapped.
2583 Otherwise fall back to reading from the file.
2584
2585 2009-04-23 H.J. Lu <hongjiu.lu@intel.com>
2586
2587 * stdio-common/psiginfo.c: Include <errno.h>.
2588
2589 2009-04-23 Ulrich Drepper <drepper@redhat.com>
2590
2591 [BZ #9920]
2592 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
2593 to get consistency between 32 and 64 bit architectures.
2594
2595 [BZ #10052]
2596 * sysdeps/unix/make-syscalls.sh: Add rule to create target
2597 directory for dummy syscall rules.
2598 Patch by Chris Steinbroner <hesh@pobox.com>.
2599
2600 2009-04-23 Aurelien Jarno <aurelien@aurel32.net>
2601
2602 [BZ #10092]
2603 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
2604 MNT_EXPIRE.
2605
2606 2009-04-23 Ulrich Drepper <drepper@redhat.com>
2607
2608 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
2609 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2610
2611 2009-04-23 Jakub Jelinek <jakub@redhat.com>
2612
2613 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
2614 data from vector to temporary buffer and call PWRITEV after it
2615 instead of vice versa.
2616 * sysdeps/posix/preadv.c: Fix up comment.
2617 * misc/preadv.c: Likewise.
2618 * misc/preadv64.c: Likewise.
2619 * misc/pwritev.c: Likewise.
2620 * misc/pwritev64.c: Likewise.
2621 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
2622
2623 2009-04-23 Ulrich Drepper <drepper@redhat.com>
2624
2625 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
2626
2627 * shadow/Makefile (tests): Add tst-shadow.
2628 * shadow/tst-shadow.c: New file.
2629
2630 [BZ #9955]
2631 * gshadow/Makefile: New file.
2632 * gshadow/Versions: New file.
2633 * gshadow/fgetsgent.c: New file.
2634 * gshadow/fgetsgent_r.c: New file.
2635 * gshadow/getsgent.c: New file.
2636 * gshadow/getsgent_r.c: New file.
2637 * gshadow/getsgnam.c: New file.
2638 * gshadow/getsgnam_r.c: New file.
2639 * gshadow/gshadow.h: New file.
2640 * gshadow/putsgent.c: New file.
2641 * gshadow/sgetsgent.c: New file.
2642 * gshadow/sgetsgent_r.c: New file.
2643 * gshadow/tst-gshadow.c: New file.
2644 * include/gshadow.h: New file.
2645 * Makeconfig (all-subdirs): Add gshadow.
2646 * Makefile (installed-headers): Add gshadow/gshadow.h.
2647 * nss/Makefile (databases): Add sgrp.
2648 * nss/Versions: Add gshadow functions as private exports.
2649 * nss/nsswitch.conf: Add gshadow entry.
2650 * nss/sgrp-lookup.c: New file.
2651 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
2652 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
2653 * nss/nss_files/files-sgrp.c: New file.
2654 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
2655 * sysdeps/unix/sysv/linux/paths.h: Likewise.
2656
2657 2009-04-22 Ulrich Drepper <drepper@redhat.com>
2658
2659 * stdio-common/printf.h: Add missing const to register_printf_modifier.
2660 * stdio-common/reg-modifier.c: Likewise.
2661
2662 2009-04-22 Andrew Stubbs <ams@codesourcery.com>
2663
2664 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
2665 is no FPU.
2666
2667 2009-04-20 Ulrich Drepper <drepper@redhat.com>
2668
2669 [BZ #10086]
2670 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
2671 headers up to 2.6.30.
2672
2673 * po/ca.po: Update from translation team.
2674
2675 2009-04-19 Ulrich Drepper <drepper@redhat.com>
2676
2677 [BZ #10069]
2678 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
2679 an object that uses static TLS if the TLS modid is higher than the
2680 reserve we always allocate. At least for multi-threaded code.
2681
2682 2009-04-18 Ulrich Drepper <drepper@redhat.com>
2683
2684 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
2685 Numerically stable check for valid width.
2686
2687 * locale/programs/locarchive.c (open_archive): Map the entire file
2688 and not just the administrative data.
2689 (add_locale): When we find a hash sum match compare the content
2690 to be sure.
2691
2692 * malloc/malloc.c (malloc_info): Output address space information.
2693
2694 2009-04-17 Ulrich Drepper <drepper@redhat.com>
2695
2696 * malloc/malloc.c (malloc_info): Also output system memory information.
2697
2698 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
2699 architectures have preadv/pwritev in 2.6.30.
2700
2701 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
2702 * sysdeps/posix/readv.c: Likewise.
2703 Reported by Markus Armbruster <armbru@redhat.com>.
2704
2705 * malloc/hooks.c (top_check): Force hook value into register.
2706
2707 2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2708
2709 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
2710 calls to _dl_relocate_object.
2711
2712 2009-04-16 Ulrich Drepper <drepper@redhat.com>
2713
2714 [BZ #9957]
2715 * malloc/malloc.c (force_reg): Define.
2716 (sYSMALLOc): Load hook variable into variable
2717 before test and force into register.
2718 (sYSTRIm): Likewise.
2719 (public_mALLOc): Force hook value into register.
2720 (public_fREe): Likewise.
2721 (public_rEALLOc): Likewise.
2722 (public_mEMALIGn): Likewise.
2723 (public_vALLOc): Likewise.
2724 (public_pVALLOc): Likewise.
2725 (public_cALLOc): Likewise.
2726 (__posix_memalign): Likewise.
2727 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
2728 before test and force into register.
2729 * malloc/hooks.c (top_check): Likewise.
2730 (public_sET_STATe): Pretty printing.
2731
2732 * resolv/res_send.c (send_dg): Don't just ignore the result we got
2733 in case we only receive one reply in single-request mode.
2734
2735 2009-04-16 Jakub Jelinek <jakub@redhat.com>
2736
2737 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
2738 are dlopened in statically linked program even for __LM_ID_CALLER.
2739
2740 2009-04-16 Ulrich Drepper <drepper@redhat.com>
2741
2742 * resolv/res_send.c (send_dg): Don't switch into single-request
2743 mode if we already are in it.
2744
2745 2009-04-15 Ulrich Drepper <drepper@redhat.com>
2746
2747 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
2748 are always at least 4 bytes in the returned line.
2749
2750 2009-04-15 Jakub Jelinek <jakub@redhat.com>
2751
2752 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
2753 __libc_use_alloca (8192), if the stack is too small use 512 bytes
2754 instead of 8K. Stop searching in /proc/stat after hitting first
2755 line not starting with cpu.
2756 (next_line): Truncate too long
2757 lines at buffer size * 3/4 instead of pretending there were line
2758 breaks inside of large lines.
2759
2760 2009-04-14 Ulrich Drepper <drepper@redhat.com>
2761
2762 * sysdeps/x86_64/mp_clz_tab.c: New file.
2763
2764 2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
2765 Ulrich Drepper <drepper@redhat.com>
2766
2767 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
2768 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
2769 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2770
2771 2009-03-25 Andrew Stubbs <ams@codesourcery.com>
2772
2773 * sysdeps/sh/libc-tls.c: New file.
2774
2775 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
2776
2777 2009-04-14 Roland McGrath <roland@redhat.com>
2778
2779 * elf/elf.h: Add various missing ARM constants, to match binutils.
2780
2781 2009-04-14 Ulrich Drepper <drepper@redhat.com>
2782
2783 Optimizations from GMP.
2784 * sysdeps/x86_64/add_n.S: New file.
2785 * sysdeps/x86_64/addmul_1.S: New file.
2786 * sysdeps/x86_64/lshift.S: New file.
2787 * sysdeps/x86_64/mul_1.S: New file.
2788 * sysdeps/x86_64/rshift.S: New file.
2789 * sysdeps/x86_64/sub_n.S: New file.
2790 * sysdeps/x86_64/submul_1.S: New file.
2791
2792 2009-04-14 Jakub Jelinek <jakub@redhat.com>
2793
2794 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
2795 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
2796 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2797 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2798
2799 2009-04-14 Ulrich Drepper <drepper@redhat.com>
2800
2801 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
2802 preadv/pwritev.
2803
2804 2009-04-13 Ulrich Drepper <drepper@redhat.com>
2805
2806 * sysdeps/x86-64/strrchr.S: New file.
2807
2808 2009-04-10 Ulrich Drepper <drepper@redhat.com>
2809
2810 * stdio-common/printf.h (struct printf_info): Add user element.
2811 New types printf_arginfo_size_function, printf_va_arg_function.
2812 Declare register_printf_specifier, register_printf_modifier,
2813 register_printf_type.
2814 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
2815 (union printf_arg): Add pa_user element.
2816 Adjust __printf_arginfo_table type.
2817 Add __printf_va_arg_table, __printf_modifier_table,
2818 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
2819 declarations.
2820 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
2821 If registered arginfo call failed try normal specifier.
2822 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
2823 function.
2824 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
2825 * stdio-common/Versions: Export register_printf_modifier,
2826 register_printf_type, and register_printf_specifier for GLIBC_2.10.
2827 * stdio-common/reg-modifier.c: New file.
2828 * stdio-common/reg-type.c: New file.
2829 * stdio-common/reg-printf.c (__register_printf_specifier): New
2830 function. Mostly the old __register_printf_function function but
2831 uses locking and type of third parameter changed.
2832 (__register_printf_function): Implement using
2833 __register_printf_specifier.
2834 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
2835 calls to arginfo functions. Allocate enough memory for user-defined
2836 types. Call new va_arg functions to get user-defined types.
2837 Try installed handlers even for existing format specifiers first.
2838
2839 2009-04-09 Ulrich Drepper <drepper@redhat.com>
2840
2841 * sysdeps/x86_64/rawmemchr.S: New file.
2842
2843 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
2844 Simplified code and possible copy problem fixed.
2845
2846 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
2847 function if it is not defined. Add some necessary casts.
2848 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2849
2850 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
2851 have preadv/pwritev in 2.6.30.
2852
2853 2009-04-08 Ulrich Drepper <drepper@redhat.com>
2854
2855 * malloc/malloc.c (malloc_info): New function.
2856 * malloc/malloc.h: Declare it.
2857 * malloc/Versions: Export malloc_info for GLIBC_2.10.
2858
2859 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
2860 to avoid PLT slot.
2861
2862 * malloc/malloc.c (_int_realloc): Add parameter with old block
2863 size. Remove duplicated test. Don't handle mmap'ed blocks here.
2864 Adjust all callers.
2865 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
2866
2867 2009-04-07 Ulrich Drepper <drepper@redhat.com>
2868
2869 * sysdeps/x86_64/strchrnul.S: New file.
2870
2871 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
2872 depending libcrypt on -lfreebl3.
2873
2874 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
2875 preadv/pwritev in 2.6.30.
2876
2877 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
2878 instead of __strcasecmp.
2879
2880 * string/stratcliff.c (do_test): Add memchr tests..
2881 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
2882 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
2883 first read quad word.
2884
2885 2009-04-06 Ulrich Drepper <drepper@redhat.com>
2886
2887 * string/strverscmp.c (__strverscmp): Fix last cleanups.
2888 * string/tst-svc.input: Add new test case.
2889 * string/tst-svc.expect: Adjust.
2890 * string/Makefile: Don't ignore tst-svc error.
2891
2892 * sysdeps/x86_64/memchr.S: New file.
2893
2894 * resolv/resolv.h (RES_SNGLKUP): Define.
2895 * resolv/res_init.c (res_setoptions): Recognize single-request option.
2896 * resolv/res_send.c (send_dg): If we sent two requests at once and
2897 only get one reply before timeout switch to mode where we send the
2898 second request only after the first answer has been received.
2899
2900 2009-04-05 Ulrich Drepper <drepper@redhat.com>
2901
2902 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
2903 * sysdeps/x86_64/strchr.S: Likewise.
2904
2905 2009-04-03 Ulrich Drepper <drepper@redhat.com>
2906
2907 * configure.in: We need to test for the compiler earlier.
2908
2909 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
2910 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
2911 GLIBC_2.10.
2912 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
2913 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
2914 and pwritev.
2915 * misc/preadv.c: New file.
2916 * misc/preadv64.c: New file.
2917 * misc/pwritev.c: New file.
2918 * misc/pwritev64.c: New file.
2919 * sysdeps/posx/preadv.c: New file.
2920 * sysdeps/posx/preadv64.c: New file.
2921 * sysdeps/posx/pwritev.c: New file.
2922 * sysdeps/posx/pwritev64.c: New file.
2923 * sysdeps/unix/sysv/linux/preadv.c: New file.
2924 * sysdeps/unix/sysv/linux/preadv64.c: New file.
2925 * sysdeps/unix/sysv/linux/pwritev.c: New file.
2926 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
2927 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
2928 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
2929
2930 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
2931 compatibility code.
2932 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
2933
2934 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2935 __ASSUME_COMPLETE_READV_WRITEV.
2936 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
2937 with modern kernels.
2938 * sysdeps/unix/sysv/linux/writev.c: Likewise.
2939
2940 * sysdeps/posix/readv.c: Since read is a cancellation point we have
2941 to free a possible malloced buffer in case of cancellation.
2942 * sysdeps/posix/writev.c: Likewise for write.
2943
2944 2009-04-02 Ulrich Drepper <drepper@redhat.com>
2945
2946 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
2947
2948 * configure.in: Recognize --enable-nss-crypt.
2949 * config.make.in: Add nss-crypt entry.
2950 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
2951 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
2952 and include path for NSS directory to compiler for md5-crypt,
2953 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
2954 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
2955 function implementation, use NSS. Introduce wrappers around the
2956 hash function calls. Little code size optimization.
2957 * crypt/sha256-crypt.c: Likewise.
2958 * crypt/sha512-crypt.c: Likewise.
2959 * scripts/check-local-headers.sh: Ignore nss3 directory.
2960
2961 * configure.in: Rename pic_default to libc_cv_pic_default.
2962 * config.make.in: Likewise.
2963
2964 2009-04-01 Roland McGrath <roland@redhat.com>
2965
2966 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
2967 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
2968 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
2969 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
2970 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
2971 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
2972 (R_SPARC_NUM): Update.
2973 From Dave Miller <davem@davemloft.net>.
2974
2975 2009-04-01 Ulrich Drepper <drepper@redhat.com>
2976
2977 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
2978
2979 2009-03-31 Ulrich Drepper <drepper@redhat.com>
2980
2981 * elf/dl-open.c: Keep track of used name spaces and only iterate over
2982 those which are used.
2983 * elf/dl-addr.c: Likewise.
2984 * elf/dl-caller.c: Likewise.
2985 * elf/dl-fini.c: Likewise.
2986 * elf/dl-iteratephdr.c: Likewise.
2987 * elf/dl-libc.c: Likewise.
2988 * elf/dl-load.c: Likewise.
2989 * elf/dl-support.c: Likewise.
2990 * elf/dl-sym.c: Likewise.
2991 * elf/rtld.c: Likewise.
2992 * sysdeps/generic/ldsodefs.h: Likewise.
2993
2994 * elf/dl-load.c: Remove support for systems without MAP_ANON.
2995 * elf/dl-minimal.c: Likewise.
2996 * elf/dl-misc.c: Likewise.
2997 * elf/rtld.c: Likewise.
2998 * sysdeps/generic/ldsodefs.h: Likewise.
2999
3000 2009-03-30 Ulrich Drepper <drepper@redhat.com>
3001
3002 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
3003 Avoid reuse of complex expression.
3004
3005 * po/fr.po: Update from translation team.
3006
3007 2009-03-16 Ulrich Drepper <drepper@redhat.com>
3008
3009 * include/dirent.h: Yet more changes to match sort function type
3010 change.
3011 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
3012 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
3013 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3014
3015 2009-03-16 Thomas Schwinge <tschwinge@gnu.org>
3016
3017 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
3018
3019 2009-03-16 Ulrich Drepper <drepper@redhat.com>
3020
3021 * nscd/connections.c (restart): Try to preserve the process name
3022 by reading the /proc/self/exe symlink and using the return name.
3023 Patch by Jeff Bastian <jbastian@redhat.com>.
3024
3025 2009-03-15 Ulrich Drepper <drepper@redhat.com>
3026
3027 [BZ #9733]
3028 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
3029 if we are not loading a new audit library.
3030 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
3031 Only use profiling trampoline for auditing if we are not relocating
3032 an audit library.
3033 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
3034 * elf/rtld.c: Likewise.
3035 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
3036
3037 * elf/rtld.c (dl_main): Extend help message for --audit option.
3038
3039 [BZ #9759]
3040 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3041 alphasort64, versionsort, and versionsort64 to POSIX 2008.
3042 * dirent/alphasort.c: Adjust implementation to type change.
3043 * dirent/alphasort64.c: Likewise.
3044 * dirent/scandir.c: Likewise.
3045 * dirent/versionsort.c: Likewise.
3046 * dirent/versionsort64.c: Likewise.
3047 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3048 declaration.
3049 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3050 declaration.
3051
3052 [BZ #9880]
3053 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
3054 correctly. Set segleft member in output as required.
3055 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3056 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
3057
3058 [BZ #9881]
3059 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
3060 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3061 * inet/Makefile (tests): Add tst-inet6_rth.
3062 * inet/tst-inet6_rth.c: New file.
3063
3064 [BZ #5807]
3065 * string/strlen.c (strlen): Fix omission in the expression to test
3066 for NUL bytes.
3067
3068 2009-03-14 Ulrich Drepper <drepper@redhat.com>
3069
3070 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
3071
3072 * elf/dl-runtime.c (reloc_offset): Define.
3073 (reloc_index): Define.
3074 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
3075 (_dl_fixup_profile): Likewise. Use reloc_index instead of
3076 computing index from reloc_offset.
3077 (_dl_call_pltexit): Likewise.
3078 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3079 the relocation index to _dl_fixup.
3080 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3081 _dl_call_pltexit.
3082 * sysdeps/x86_64/dl-runtime.c: New file.
3083
3084 [BZ #9893]
3085 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
3086 alignment of La_x86_64_regs. Store xmm parameters.
3087 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3088
3089 [BZ #9913]
3090 * string/strverscmp.c (__strverscmp): Fix case of different digits
3091 in fractional part of string.
3092 Patch by Jingyu Liu <jyliu@fortinet.com>.
3093 * string/Makefile (tests): Add tst-svc2.
3094 * string/tst-svc2.c: New file.
3095
3096 * string/strverscmp.c (__strverscmp): Optimize size of tables.
3097
3098 * locale/iso-639.def: Add Min Nan.
3099
3100 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3101
3102 [BZ #9948]
3103 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3104
3105 2009-03-14 Ulrich Drepper <drepper@redhat.com>
3106
3107 * elf/dl-sysdep.c (auxvars): Compress data structure.
3108
3109 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3110 STT_GNU_IFUNC handling.
3111 (elf_machine_rela): Likewise.
3112
3113 2009-03-13 Ulrich Drepper <drepper@redhat.com>
3114
3115 * config.h.in (USE_MULTIARCH): Define.
3116 * configure.in: Handle --enable-multi-arch.
3117 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3118 (_dl_fixup_profile): Likewise.
3119 * elf/do-lookup.c (dl_lookup_x): Likewise.
3120 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3121 * elf/elf.h (STT_GNU_IFUNC): Define.
3122 * include/libc-symbols.h (libc_ifunc): Define.
3123 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3124 framework in init-arch.h to get CPUID values.
3125 * sysdeps/x86_64/multiarch/Makefile: New file.
3126 * sysdeps/x86_64/multiarch/init-arch.c: New file.
3127 * sysdeps/x86_64/multiarch/init-arch.h: New file.
3128 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3129
3130 * config.make.in (experimental-malloc): Define.
3131 * configure.in: Handle --enable-experimental-malloc.
3132 * malloc/Makefile: Handle experimental-malloc flag.
3133 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3134 * malloc/arena.c: Likewise.
3135 * malloc/hooks.c: Likewise.
3136 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3137
3138 2009-03-11 Ulrich Drepper <drepper@redhat.com>
3139
3140 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3141 prediction. A few size optimizations.
3142
3143 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3144
3145 * time/tzset.c: Optimize a bit for size.
3146
3147 2009-03-10 Jakub Jelinek <jakub@redhat.com>
3148
3149 * include/stdio.h (fmemopen): Add libc_hidden_proto.
3150 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3151
3152 * elf/sprof.c: Avoid warning about multi-line comment.
3153
3154 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3155
3156 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3157 DST name.
3158 * time/tst-posixtz.c: Add tests for quoted timezone names.
3159
3160 2009-03-10 Jakub Jelinek <jakub@redhat.com>
3161
3162 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3163 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3164 200809L instead of 200112L.
3165 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3166 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3167
3168 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3169 instead of __quick_exit_funcs to __run_exit_handlers.
3170 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3171 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3172 (__cxa_at_quick_exit): Remove attribute_hidden.
3173 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3174 to __run_exit_handlers.
3175 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3176 attribute_hidden.
3177
3178 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3179
3180 * po/id.po: Update from translation team.
3181
3182 2009-02-18 Jakub Jelinek <jakub@redhat.com>
3183
3184 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3185 .machine push; .machine "power6" and .machine pop around mtfsf
3186 insns outside of _ARCH_PWR6 define.
3187 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3188 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3189 Likewise.
3190 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3191 Likewise.
3192 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3193 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3194 relax_fenv_state): Likewise.
3195
3196 2009-03-08 Ulrich Drepper <drepper@redhat.com>
3197
3198 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
3199 cxa_at_quick_exit.
3200 (static-only-routines): Add at_quick_exit.
3201 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
3202 GLIBC_2.10.
3203 * stdlib/quick_exit.c: New file.
3204 * stdlib/at_quick_exit.c: New file.
3205 * stdlib/cxa_at_quick_exit.c: New file.
3206 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
3207 it appropriately.
3208 (__internal_atexit): New function.
3209 (__new_exitfn): Now takes parameter to point to the list to use.
3210 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
3211 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
3212 (exit): ...here. Just call __run_exit_handlers appropriately.
3213 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3214 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
3215 * stdlib/on_exit.c: Adjust call to __new_exitfn.
3216 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3217
3218 * po/id.po: Update from translation team.
3219
3220 2009-03-07 Ulrich Drepper <drepper@redhat.com>
3221
3222 * po/ru.po: Update from translation team.
3223
3224 2009-03-04 Ulrich Drepper <drepper@redhat.com>
3225
3226 * po/nl.po: Update from translation team.
3227
3228 2009-03-03 Ulrich Drepper <drepper@redhat.com>
3229
3230 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3231 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3232 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3233 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3234 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3235 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3236 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3237
3238 * po/pl.po: Update from translation team.
3239
3240 2009-03-02 Ulrich Drepper <drepper@redhat.com>
3241
3242 [BZ #7083]
3243 * sysdeps/unix/sysv/linux/fallocate.c: New file.
3244 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3245 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3246 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3247 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3248 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3249 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3250 for GLIBC_2.10.
3251 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3252 Add fallocate and fallocate64.
3253
3254 * io/fcntl.h: Pretty printing.
3255
3256 2009-03-02 Richard Guenther <rguenther@suse.de>
3257
3258 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3259 attribute also for non-C99 inline semantics variant.
3260
3261 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3262
3263 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3264 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3265 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3266 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3267 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3268 Likewise.
3269 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3270 Likewise.
3271
3272 2009-03-02 Ulrich Drepper <drepper@redhat.com>
3273
3274 * po/cs.po: Update from translation team.
3275
3276 2009-02-28 Ulrich Drepper <drepper@redhat.com>
3277
3278 * po/bg.po: Update from translation team.
3279 * po/sv.po: Likewise.
3280 * po/fi.po: Likewise.
3281 * po/vi.po: Likewise.
3282
3283 2009-02-27 Roland McGrath <roland@redhat.com>
3284
3285 * Makeconfig (%.v.i): Depend on Makeconfig.
3286 Exclude % lines from initial #-comment removal.
3287
3288 2009-02-27 Ulrich Drepper <drepper@redhat.com>
3289
3290 * po/ko.po: Update from translation team.
3291
3292 2009-02-26 Roland McGrath <roland@redhat.com>
3293
3294 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
3295 avoids unused warning.
3296
3297 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
3298 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
3299
3300 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
3301 sys/ucontext.h and asm/elf.h. Include sys/user.h.
3302 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
3303 and asm/user.h. Include asm/ptrace.h.
3304 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
3305 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3306 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
3307 Undefine.
3308 (start_thread): Don't undefine.
3309 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
3310 Define.
3311
3312 2009-02-26 Ulrich Drepper <drepper@redhat.com>
3313
3314 * wctype/wctype.h: The *_l functions are in POSIX 2008.
3315 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
3316 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
3317 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
3318 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
3319 200112L to 200809L.
3320 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
3321 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3322 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
3323 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3324 _SC_THREAD_ROBUST_PRIO_PROTECT.
3325 * posix/unistd.h: fexecve is in POSIX 2008.
3326 * time/time.h: strftime_l is in POSIX 2008.
3327 * io/sys/stat.h: futimens is in POSIX 2008.
3328 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
3329 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
3330 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
3331 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
3332 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
3333 open_memstream, and vdprintf are in POSIX 2008.
3334
3335 2009-02-25 Ulrich Drepper <drepper@redhat.com>
3336
3337 * include/features.h: Define macros for XPG7/POSIX 2008.
3338 * ctype/ctype.h: The *_l functions are in POSIX 2008.
3339 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
3340 POSIX 2008.
3341 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
3342 * locale/xlocale.h: Define locale_t type.
3343 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
3344 in POSIX 2008. Don't define locale_t here.
3345 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3346 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
3347 UTIME_OMIT only with __USE_ATFILE.
3348 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
3349 * stdio-common/psiginfo.c: New file.
3350 * stdio-common/psiginfo-data.h: New file.
3351 * stdio-common/psiginfo-define.h: New file.
3352 * stdio-common/Makefile (routines): Add psiginfo.
3353 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3354 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3355 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3356 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3357 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3358 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3359 * io/sys/stat.h: Move mknodat definition into same conditional as
3360 mknod.
3361 * time/sys/time.h: futimesat is not among the functions accepted
3362 into the POSIX standard.
3363
3364 * include/features.h: If no feature selection given and we select
3365 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
3366 * posix/Versions: Export __posix_getopt.
3367 * posix/getopt.c (_getopt_initialize): Take additional parameter.
3368 Use it to alternatively initialize __posixly_correct.
3369 (_getopt_internal_r): Take addition parameter. Pass on to
3370 _getopt_initialize.
3371 (_getopt_internal): Take addition parameter. Pass on to
3372 _getopt_internal_r.
3373 (getopt): Pass additional zero to _getopt_internal.
3374 (__posix_getopt): New function.
3375 * posix/getopt.h: Add redirection for getopt.
3376 * posix/getopt1.c (getopt_long): Pass additional zero to
3377 _getopt_internal.
3378 (getopt_long_only): Likewise.
3379 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
3380 (_getopt_long_only_r): Likewise.
3381 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
3382 _getopt_internal_r.
3383
3384 2009-02-24 Ulrich Drepper <drepper@redhat.com>
3385
3386 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
3387 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3388 * sysdeps/posix/sysconf.c (__sysconf): Handle
3389 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
3390 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3391
3392 2009-02-24 Roland McGrath <roland@redhat.com>
3393
3394 [BZ #9895]
3395 * README.template: Reworded not to use substituted version number.
3396 Renamed to ...
3397 * README: ... here (no longer generated).
3398 * Makefile (README): Target removed.
3399
3400 2009-02-24 Ulrich Drepper <drepper@redhat.com>
3401
3402 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
3403 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
3404 instead.
3405
3406 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
3407
3408 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
3409
3410 2009-02-22 Ulrich Drepper <drepper@redhat.com>
3411
3412 * po/bg.po: Update from translation team.
3413
3414 2009-02-16 Jakub Jelinek <jakub@redhat.com>
3415
3416 * stdlib/monetary.h: Uglify function parameter names.
3417 * sunrpc/rpc/pmap_clnt.h: Likewise.
3418 * sunrpc/rpc/svc.h: Likewise.
3419 * sunrpc/rpc/xdr.h: Likewise.
3420 * sunrpc/rpc/clnt.h: Likewise.
3421 * resolv/netdb.h: Likewise.
3422 * resolv/arpa/nameser.h: Likewise.
3423 * resolv/resolv.h: Likewise.
3424 * argp/argp.h: Likewise.
3425 * locale/langinfo.h: Likewise.
3426 * io/sys/stat.h: Likewise.
3427 * posix/spawn.h: Likewise.
3428 * nis/rpcsvc/nislib.h: Likewise.
3429 * malloc/obstack.h: Likewise.
3430 * sysdeps/ia64/bits/link.h: Likewise.
3431 * sysdeps/i386/bits/link.h: Likewise.
3432 * sysdeps/s390/bits/link.h: Likewise.
3433 * sysdeps/powerpc/bits/link.h: Likewise.
3434 * sysdeps/x86_64/bits/link.h: Likewise.
3435 * sysdeps/sparc/bits/link.h: Likewise.
3436 * sysdeps/sh/bits/link.h: Likewise.
3437 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
3438 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
3439 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
3440 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3441
3442 2008-12-01 Fredrik Unger <fred@tree.se>
3443
3444 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
3445 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
3446 _FP_UNPACK_RAW_2, fix up first argument.
3447
3448 2009-02-15 Ulrich Drepper <drepper@redhat.com>
3449
3450 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
3451 (GET_NPROCS_PARSER): Change parameters and use next_line.
3452 (__get_nprocs): Rewrite to not use stdio routines.
3453 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
3454 Change parameters and use next_line.
3455
3456 2009-02-13 Ulrich Drepper <drepper@redhat.com>
3457
3458 [BZ #5381]
3459 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
3460 Change mempool_alloc prototype.
3461 * nscd/mem.c (gc): Don't handle mem_in_flight.
3462 (mempool_alloc): Third parameter now only indicates whether this is the
3463 first call (to allocate data) or not. If it is, get db rdlock.
3464 Release it on error. Don't handle mem_in_flight.
3465 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
3466 Adjust third parameter of mempool_alloc calls.
3467 Nothing to do here in case mempool_alloc fails.
3468 Avoid local variable shadowing parameter. No need to get db rdlock
3469 before calling cache_add.
3470 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
3471 no mem_in_flight array anymore.
3472 * nscd/connections.c: Remove definition and handling of mem_in_flight.
3473 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
3474 mempool_alloc calls. Mark he parameter as const. Nothing to do here
3475 in case mempool_alloc fails. No need to get db rdlock before calling
3476 cache_add.
3477 * nscd/hstcache.c (cache_addhst): Likewise.
3478 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3479 * nscd/servicescache.c (cache_addserv): Likewise.
3480 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
3481
3482 2009-02-11 Ulrich Drepper <drepper@redhat.com>
3483
3484 * po/lt.po: Update from translation team.
3485
3486 2009-02-10 Ulrich Drepper <drepper@redhat.com>
3487
3488 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
3489 defined, allow additional data to be added using the optional
3490 MORE_ELF_HEADER_DATA macro.
3491 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
3492 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
3493
3494 2009-02-08 Ulrich Drepper <drepper@redhat.com>
3495
3496 * include/atomic.h: Define catomic_and if not already defined.
3497 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
3498 * sysdeps/i386/i486/bits/atomic.h: Likewise.
3499
3500 2009-02-07 Ulrich Drepper <drepper@redhat.com>
3501
3502 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
3503 Change all callers.
3504 (_int_realloc): Likewise. Third argument is now padded size
3505 All _int_* functions are now static.
3506
3507 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
3508 * malloc/arena.c: Likewise.
3509 * include/malloc.h: Remove now unnecessary declarations of the _int_*
3510 functions.
3511
3512 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
3513 easily.
3514
3515 * malloc/malloc.c: Add branch prediction for use of the hooks.
3516
3517 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
3518
3519 2009-02-06 Ulrich Drepper <drepper@redhat.com>
3520
3521 [BZ #7095]
3522 * bits/confname.h: Add SUSv7 macros for getconf environments.
3523 * bits/environments.h: Likewise.
3524 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
3525 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
3526 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
3527 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
3528 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
3529 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
3530 * posix/getconf.c: Likewise.
3531 * posix/sysconf.c: Likewise.
3532 * sysdeps/posix/sysconf.c: Likewise.
3533 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
3534 environments.
3535
3536 2009-01-16 Petr Baudis <pasky@suse.cz>
3537
3538 [BZ #9753]
3539 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
3540 even if we currently have zero nscount.
3541
3542 2009-02-06 Ulrich Drepper <drepper@redhat.com>
3543
3544 [BZ #9781]
3545 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
3546 the input line is too long.
3547
3548 * po/Makefile (libc.pot): Add f_print as function taking c-format
3549 parameter.
3550
3551 * debug/xtrace.sh: Unify translatable messages.
3552 * elf/ldd.bash.in: Likewise.
3553 * elf/sprof.c: Likewise.
3554 * locale/programs/locale.c: Likewise.
3555 * malloc/memusage.sh: Likewise.
3556 * nss/getent.c: Likewise.
3557
3558 2009-02-06 Joseph Myers <joseph@codesourcery.com>
3559
3560 * debug/pcprofiledump.c (print_version,
3561 argp_program_version_hook): New function.
3562 * elf/ldconfig.c (more_help): New function.
3563 (argp): Use it.
3564 * elf/sln.c (usage): New function.
3565 (main): Support --help and --version.
3566 * malloc/memusagestat.c (print_version): New function.
3567 (argp_program_version_hook): New variable.
3568 * nscd/nscd.c (more_help): New function.
3569 (argp): Use it.
3570 * posix/getconf.c (main): Send --version output to stdout.
3571 Support --help.
3572 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
3573 arguments. All callers changed.
3574 (print_version): New function.
3575 (parseargs): Support --help and --version.
3576 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
3577 changed.
3578 (print_version): New function.
3579 (main): Use getopt_long. Support --help and --version.
3580 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
3581 --version.
3582
3583 2009-02-06 Ulrich Drepper <drepper@redhat.com>
3584
3585 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
3586 (update_data): Fix handling of wrapping back
3587 to the beginning of the buffer.
3588
3589 [BZ #9823]
3590 * stdio-common/psignal.c (psignal): Fix test for empty string.
3591
3592 2009-02-05 Ulrich Drepper <drepper@redhat.com>
3593
3594 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
3595 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
3596 move _null_auth to .rodata.
3597
3598 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
3599 value of 24.
3600
3601 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
3602
3603 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
3604 today than when the original code was written. Use larger
3605 buffers. This also makes it unnecessary to have stat information,
3606 if this causes extra efforts.
3607 (__opendir): In case O_DIRECTORY works, don't call fstat just for
3608 __alloc_dir.
3609
3610 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
3611
3612 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
3613 is set.
3614 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
3615 * sysdeps/sh/sh4/__longjmp.S: Likewise.
3616 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
3617 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
3618 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
3619 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
3620
3621 2009-02-04 Ulrich Drepper <drepper@redhat.com>
3622
3623 * po/ru.po: Update from translation team.
3624
3625 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
3626
3627 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
3628 Add _tid slot to maintain consistency with kernel.
3629
3630 2009-02-04 Ulrich Drepper <drepper@redhat.com>
3631
3632 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
3633 incomplete characters at end of input buffer.
3634 * libio/Makefile (tests): Add tst-fgetwc.
3635 * libio/tst-fgetwc.c: New file.
3636 * libio/tst-fgetwc.input: New file.
3637
3638 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
3639
3640 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
3641
3642 2009-02-02 Ulrich Drepper <drepper@redhat.com>
3643
3644 [BZ #9793]
3645 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
3646 *OUTBUFSTART unless the whole output fit into the buffer.
3647 * iconv/Makefile (tests): Add tst-iconv4.
3648 * iconv/tst-iconv4.c: New file.
3649
3650 2009-02-01 Ulrich Drepper <drepper@redhat.com>
3651
3652 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
3653 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3654
3655 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
3656
3657 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
3658 newer linker scripts.
3659
3660 2009-01-30 Ulrich Drepper <drepper@redhat.com>
3661
3662 [BZ #7040]
3663 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
3664 inotify_rm_watch should have type int.
3665
3666 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
3667
3668 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
3669 Make aligned_restore_vmx a local symbol.
3670 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
3671 Likewise.
3672
3673 2009-01-30 Andreas Jaeger <aj@suse.de>
3674
3675 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
3676 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
3677 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
3678 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
3679 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
3680 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
3681 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
3682
3683 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
3684
3685 [BZ #9726]
3686 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
3687 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
3688
3689 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
3690
3691 [BZ #9726]
3692 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3693 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3694 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3695 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3696
3697 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
3698
3699 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
3700 memcpy instead of memcmp.
3701 (_dl_setup_pointer_guard): Likewise.
3702
3703 2009-01-30 Ulrich Drepper <drepper@redhat.com>
3704
3705 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
3706 manipulated brk, use malloc_printerr.
3707 * misc/sbrk.c (__sbrk): Better error handling for nonsense
3708 requests.
3709
3710 2009-01-30 Jakub Jelinek <jakub@redhat.com>
3711
3712 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
3713 rindex): For C++ add inlines so that they can be recognized as
3714 builtins.
3715 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
3716
3717 2009-01-29 Ulrich Drepper <drepper@redhat.com>
3718 Jakub Jelinek <jakub@redhat.com>
3719
3720 * string/string.h: Define correct C++ prototypes for gcc 4.4.
3721 * wcsmbs/wchar.h: Likewise.
3722
3723 2009-01-29 Ulrich Drepper <drepper@redhat.com>
3724
3725 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
3726 (stackinfo_sub_sp): Define.
3727
3728 2009-01-28 Ulrich Drepper <drepper@redhat.com>
3729
3730 [BZ #9750]
3731 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
3732 * include/alloca.h (alloca_account): Define.
3733 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
3734 (stackinfo_sub_sp): Define.
3735
3736 * nscd/connections.c (nscd_init): If database file access fails
3737 check whether this is due to permission problems and bail in that
3738 case.
3739
3740 [BZ #9741]
3741 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
3742 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
3743
3744 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3745
3746 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
3747 Add "t" to clobber list.
3748 (INTERNAL_SYSCALL_NCS): Likewise.
3749
3750 2009-01-28 Ulrich Drepper <drepper@redhat.com>
3751
3752 * nss/getent.c (print_networks): Don't print comma between aliases.
3753
3754 2009-01-23 Ulrich Drepper <drepper@redhat.com>
3755
3756 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
3757
3758 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
3759 the hash table.
3760 * misc/Makefile (tests): Add bug-hsearch1.
3761 * misc/bug-hsearch1.c: New file.
3762
3763 2009-01-22 Roland McGrath <roland@redhat.com>
3764
3765 * Makeconfig (%.v.i): Strip trailing # comments,
3766 not only whole-line comments.
3767
3768 2009-01-10 Ulrich Drepper <drepper@redhat.com>
3769
3770 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
3771 one parameter. If non-NULL use it to initialize return value.
3772 (_dl_setup_pointer_guard): New function.
3773 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
3774 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
3775 * elf/rtld.c (security_init): Pass _dl_random to
3776 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
3777 pointer_chk_guard.
3778 * elf/dl-sysdep.c (_dl_random): New variable.
3779 (_dl_sysdep_start): Handle AT_RANDOM.
3780 (_dl_show_auxv): Likewise.
3781 * elf/dl-support.c (_dl_random): New variable.
3782 (_dl_aux_init): Handle AT_RANDOM.
3783 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
3784 to _dl_setup_stack_chk_guard.
3785
3786 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
3787
3788 2009-01-10 Roland McGrath <roland@redhat.com>
3789
3790 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
3791
3792 2009-01-08 Ulrich Drepper <drepper@redhat.com>
3793
3794 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
3795
3796 [BZ #9706]
3797 * nss/nss_files/files-parse.c (strtou32): New function.
3798 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
3799 across 32-bit and 64-bit platforms.
3800 (INT_FIELD_MAYBE_NULL): Likewise.
3801
3802 2009-01-08 Jakub Jelinek <jakub@redhat.com>
3803
3804 [BZ #9720]
3805 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
3806 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
3807 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
3808 Likewise.
3809
3810 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
3811
3812 [BZ #697]
3813 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3814 being NULL also if there are no backreferences.
3815 * posix/rxspencer/tests: Add testcases.
3816
3817 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
3818
3819 [BZ #9697]
3820 * posix/bug-regex17.c: Add testcases.
3821 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3822 handling.
3823
3824 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
3825
3826 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
3827 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
3828 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
3829 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
3830 for elf subdir.
3831 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
3832 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
3833 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
3834 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
3835 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3836 * sysdeps/unix/sysv/linux/s390/Versions: New file.
3837
3838 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
3839
3840 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3841 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3842 re_string_skip_chars, re_string_reconstruct): Likewise.
3843 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3844
3845 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
3846
3847 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
3848 adjust the buffer alignment.
3849
3850 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3851
3852 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
3853 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
3854 net/route.h.
3855
3856 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
3857 flavor to description only when flavor is not NULL.
3858
3859 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
3860 mutex after SIGIO/SIGURG lookup loop.
3861
3862 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3863
3864 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
3865
3866 2009-01-03 Ulrich Drepper <drepper@redhat.com>
3867
3868 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
3869 handling.
3870
3871 2009-01-02 Ulrich Drepper <drepper@redhat.com>
3872
3873 * sysdeps/unix/sysv/linux/kernel-features.h
3874 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
3875
3876 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
3877 if no output is written.
3878
3879 * version.h: Bump to 2.10 development.
3880
3881 * posix/getconf.c: Update copyright year.
3882 * nss/getent.c: Likewise.
3883 * iconv/iconvconfig.c: Likewise.
3884 * iconv/iconv_prog.c: Likewise.
3885 * elf/ldconfig.c: Likewise.
3886 * catgets/gencat.c: Likewise.
3887 * csu/version.c: Likewise.
3888 * elf/ldd.bash.in: Likewise.
3889 * elf/sprof.c (print_version): Likewise.
3890 * locale/programs/locale.c: Likewise.
3891 * locale/programs/localedef.c: Likewise.
3892 * nscd/nscd.c (print_version): Likewise.
3893 * debug/xtrace.sh: Likewise.
3894 * malloc/memusage.sh: Likewise.
3895 * malloc/mtrace.pl: Likewise.
3896 * debug/catchsegv.sh: Likewise.
3897
3898 2008-12-29 Mike Frysinger <vapier@gentoo.org>
3899
3900 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
3901 script.
3902
3903 2008-12-29 Ulrich Drepper <drepper@redhat.com>
3904
3905 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
3906 gethostbyname4_r function call succeeded, just leave the loop.
3907
3908 [BZ #9694]
3909 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
3910 very end.
3911 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
3912 * wctype/Makefile (tests): Add bug-wctypeh.
3913 * wctype/bug-wctypeh.c: New file.
3914
3915 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
3916 LOCALDOMAIN is defined.
3917 * nscd/nscd_getai.c (__nscd_getai): Likewise.
3918
3919 * sysdeps/x86_64/bits/select.h: New file.
3920
3921 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
3922
3923 2008-12-21 Bruno Haible <bruno@clisp.org>
3924
3925 [BZ #9677]
3926 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
3927 if no output is written.
3928
3929 2008-12-13 Klaus Dittrich <kladit@arcor.de>
3930
3931 * login/utmp_file.c (pututline_file): Replace call to dup2 with
3932 libc internal symbol __dup2 to avoid access through the PLT.
3933
3934 2008-12-08 Ulrich Drepper <drepper@redhat.com>
3935
3936 [BZ #6545]
3937 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
3938 available only for __USE_GNU.
3939
3940 * inet/Makefile (tests): Add tst-getni2.
3941 * inet/tst-getni2.c: New file.
3942
3943 [BZ #7080]
3944 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
3945 NULL when NI_NAMEREQD is set.
3946 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3947 * inet/Makefile (tests): Add tst-getni1.
3948 * inet/tst-getni1.c: New file.
3949
3950 2008-12-03 Petr Baudis <pasky@suse.cz>
3951
3952 [BZ #7067]
3953 * nscd/connections.c (invalidate_cache): Use prune_run_lock
3954 instead of prune_lock.
3955 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
3956 * nscd/nscd.h (database_dyn): Add prune_run_cache.
3957
3958 2008-12-07 Ulrich Drepper <drepper@redhat.com>
3959
3960 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
3961 use.
3962
3963 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
3964 handling.
3965
3966 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
3967 after reading name server list.
3968
3969 [BZ #7058]
3970 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
3971 handling for host name aliases.
3972
3973 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
3974
3975 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
3976 instead of doing things manually.
3977
3978 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
3979
3980 * posix/regex_internal.h (build_wcs_upper_buffer):
3981 Return type is reg_error_t.
3982
3983 2008-12-05 Ulrich Drepper <drepper@redhat.com>
3984
3985 * posix/globtest.sh: Use mktemp to create temporary file and
3986 directory.
3987
3988 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
3989 sets correctly.
3990 (__CPU_CLR_S): Likewise.
3991 (__CPU_ISSET_S): Likewise.
3992
3993 2008-12-05 Joseph Myers <joseph@codesourcery.com>
3994 Ulrich Drepper <drepper@redhat.com>
3995
3996 * scripts/firstversion.awk: Use custom comparison function to compare
3997 version numbers.
3998 * scripts/versions.awk: Use sort invocation which can handle
3999 multi-digit sub-version numbers.
4000
4001 2008-12-04 Ulrich Drepper <drepper@redhat.com>
4002
4003 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
4004 * locale/iso-639.def: Add Chhattisgarhi entry.
4005
4006 2008-12-02 Ulrich Drepper <drepper@redhat.com>
4007
4008 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
4009 ESRCH return value.
4010 (_nss_dns_gethostbyname4_r): Likewise.
4011 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
4012 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
4013 gethostbyname4_r, we don't have a separate IPv6 status, so copy
4014 the no_data variable.
4015
4016 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
4017 information at the correct index.
4018
4019 * socket/sys/socket.h: Declare accept4.
4020 * socket/accept4.c: New file.
4021 * sysdeps/unix/sysv/linux/accept4.c: New file.
4022 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
4023 * socket/Makefile (routines): Add accept4.
4024 * socket/Versions: Export accept4 with version GLIBC_2.10.
4025 * socket/paccept.c: Removed.
4026 * sysdeps/unix/sysv/linux/paccept.c: Removed.
4027 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
4028 * Versions.def: Define GLIBC_2.10 for libc.
4029 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
4030
4031 * nscd/connections.c: Use accept4.
4032
4033 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
4034
4035 2008-12-01 Ulrich Drepper <drepper@redhat.com>
4036
4037 * resolv/res_send.c (send_dg): Create sockets with non-blocking
4038 flag already set.
4039
4040 * stdlib/setenv.c (unsetenv): Don't search environment if it does
4041 not exist.
4042 * stdlib/Makefile (tests): Add tst-unsetenv1.
4043 * stdlib/tst-unsetenv1.c: New file.
4044
4045 2008-11-29 Ulrich Drepper <drepper@redhat.com>
4046
4047 * login/utmp_file.c (file_writable): New variable.
4048 (setutent_file): Don't try to open file for writing.
4049 (pututline_file): Before writing, make descriptor writable if
4050 necessary.
4051
4052 2008-11-26 Ulrich Drepper <drepper@redhat.com>
4053
4054 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
4055 to IPv4 or IPv6 if an interface has been found.
4056
4057 2008-11-26 Roland McGrath <roland@redhat.com>
4058
4059 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
4060 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
4061
4062 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
4063 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
4064 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
4065
4066 * elf/elf.h (NT_386_IOPERM): New macro.
4067 (NT_PPC_VSX): New macro.
4068
4069 2008-11-25 Roland McGrath <roland@redhat.com>
4070
4071 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
4072 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
4073 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
4074 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
4075 Subdirectories moved to ports repository.
4076 * configure.in (base_machine): Remove alpha case.
4077
4078 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
4079
4080 * sysdeps/mach/strerror_l.c: New file.
4081
4082 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
4083
4084 [BZ #6411]
4085 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4086 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4087 magic numbers.
4088 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4089 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4090 (relax_fenv_state): Same as above.
4091 (FPSCR_29): Reserve bit in ISA 2.05.
4092 (FPSCR_NI): Provide define for compat.
4093 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4094 magic numbers.
4095 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4096 magic numbers.
4097 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
4098 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4099 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4100 access to hwcap to account for hwcap size increase to uint64_t.
4101 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4102 Likewise.
4103 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4104 (*setcontext): Likewise.
4105 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4106 New file.
4107 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4108 New file.
4109 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4110 (*setcontext): dynamically select mtfsf insn based on
4111 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4112 increase to uint64_t.
4113 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4114 (*swapcontext): dynamically select mtfsf insn based on
4115 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4116 increase to uint64_t.
4117 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4118 New file.
4119 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4120 New file.
4121 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4122 (*setcontext): dynamically select mtfsf insn based on
4123 PPC_FEATURE_HAS_DFP.
4124 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4125 (*swapcontext): dynamically select mtfsf insn based on
4126 PPC_FEATURE_HAS_DFP.
4127
4128 2008-11-13 Ulrich Drepper <drepper@redhat.com>
4129
4130 * version.h: Bump for 2.9 release.
4131 * include/features.h (__GLIBC_MINOR__): Bump to 9.
4132
4133 [BZ #7029]
4134 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4135 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4136 all the rounding.
4137
4138 2008-11-11 Ulrich Drepper <drepper@redhat.com>
4139
4140 [BZ #7009]
4141 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4142 unknown request types for now.
4143
4144 2008-11-11 Roland McGrath <roland@redhat.com>
4145
4146 * sysdeps/x86_64/configure: New file.
4147
4148 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4149 * configure: Regenerated.
4150
4151 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
4152
4153 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4154 correct instruction to remove the stack frame.
4155
4156 2008-11-03 Michael Matz <matz@suse.de>
4157
4158 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4159 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4160
4161 2008-11-07 Jakub Jelinek <jakub@redhat.com>
4162
4163 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4164 Remove.
4165
4166 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4167 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4168 of the thread variable instead of void *.
4169 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4170 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4171 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4172 __libc_tsd_define arguments.
4173 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4174 __libc_tsd_address arguments. Remove union hack.
4175 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4176 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4177 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4178 Adjust __libc_tsd_{set,get} arguments.
4179 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4180 __libc_tsd_define arguments.
4181 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4182 arguments.
4183 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4184 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4185 (LOCALE): Adjust __libc_tsd_define arguments.
4186 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4187 arguments.
4188 (LOCALE): Adjust __libc_tsd_define arguments.
4189 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4190 arguments.
4191 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4192 arguments.
4193
4194 2008-11-02 Ulrich Drepper <drepper@redhat.com>
4195
4196 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
4197 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4198
4199 2008-11-01 Ulrich Drepper <drepper@redhat.com>
4200
4201 [BZ #6966]
4202 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
4203
4204 2008-10-24 Joseph Myers <joseph@codesourcery.com>
4205 Ulrich Drepper <drepper@redhat.com>
4206
4207 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
4208 definition for GCC 3.1 and later.
4209
4210 2008-10-31 Jakub Jelinek <jakub@redhat.com>
4211
4212 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
4213 refetch dtv, as it might have changed.
4214 * elf/Makefile: Add rules to build and run tst-tls18.
4215 * elf/tst-tls18.c: New test.
4216 * elf/tst-tlsmod18a.c: New file.
4217
4218 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
4219
4220 [BZ #6875]
4221 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4222
4223 2008-10-31 Ulrich Drepper <drepper@redhat.com>
4224
4225 [BZ #6867]
4226 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4227
4228 [BZ #6919]
4229 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4230 Fix length of copy operation.
4231
4232 2008-10-02 Pierre Habouzit <madcoder@debian.org>
4233
4234 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4235 and fix its calling convention.
4236
4237 2008-10-07 Andreas Schwab <schwab@suse.de>
4238
4239 [BZ #6942]
4240 * resolv/res_send.c (send_vc): Fix last change.
4241 (send_dg): Align here as well.
4242
4243 2008-10-31 Ulrich Drepper <drepper@redhat.com>
4244
4245 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4246 return value in case rlimit is RLIM_INFINITY.
4247
4248 [BZ #6947]
4249 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4250 for UL_SETFSIZE.
4251 * resource/Makefile (tests): Add bug-ulimit1.
4252 * resource/bug-ulimit1.c: New file.
4253
4254 [BZ #6974]
4255 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4256 without dot. Properly terminate the string with a null byte.
4257 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4258
4259 [BZ #6980]
4260 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4261 negative sizees.
4262 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4263 negative __size.
4264
4265 [BZ #6995]
4266 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4267
4268 2008-10-30 Ulrich Drepper <drepper@redhat.com>
4269
4270 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4271 abort if there is no initgroups_dyn function.
4272
4273 * resolv/res_send.c (send_dg): On timeout, only return nonzero
4274 result if any of the queries really provided an answer.
4275
4276 2008-10-28 Ulrich Drepper <drepper@redhat.com>
4277
4278 * po/lt.po: Update from translation team.
4279
4280 2008-10-26 Ulrich Drepper <drepper@redhat.com>
4281
4282 * po/id.po: Update from translation team.
4283
4284 2008-10-24 Ulrich Drepper <drepper@redhat.com>
4285
4286 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
4287 Fix tests for existence of second reply.
4288
4289 2008-10-23 Ulrich Drepper <drepper@redhat.com>
4290
4291 * po/id.po: New file.
4292 Contributed by the Indonesian translation team.
4293
4294 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
4295
4296 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
4297 initialization.
4298
4299 2008-10-17 Jakub Jelinek <jakub@redhat.com>
4300
4301 * elf/Makefile: Add rules to build and run tst-tls17.
4302 * elf/tst-tls17.c: New test.
4303 * elf/tst-tlsmod17a.c: New file.
4304 * elf/tst-tlsmod17b.c: Likewise.
4305
4306 2008-10-17 Ulrich Drepper <drepper@redhat.com>
4307
4308 * stdlib/divmod_1.c: Use correct type for dummy variable.
4309 * stdlib/mod_1.c: Likewise.
4310
4311 2008-10-16 Ulrich Drepper <drepper@redhat.com>
4312
4313 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
4314
4315 2008-10-16 Jakub Jelinek <jakub@redhat.com>
4316
4317 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
4318 __nonnull order for C++.
4319 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
4320 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
4321
4322 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
4323
4324 * stdlib/longlong.h: Update from GCC.
4325
4326 2008-10-09 Jakub Jelinek <jakub@redhat.com>
4327 David S. Miller <davem@davemloft.net>
4328
4329 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
4330 make sure any registers used with 64-bit 'branch-on-register'
4331 instructions have their top 32-bits clear.
4332 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
4333 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
4334
4335 2008-09-18 Andreas Schwab <schwab@suse.de>
4336
4337 [BZ #6942]
4338 * resolv/res_send.c (send_vc): Fix use of unaligned address.
4339 Properly handle partial reads.
4340
4341 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
4342
4343 * elf/elf.h (STO_MIPS_PLT): New.
4344 (R_MIPS_COPY): New.
4345 (R_MIPS_JUMP_SLOT): New.
4346 (R_MIPS_NUM): Redefine to 128.
4347 (DT_MIPS_PLTGOT): New.
4348 (DT_MIPS_RWPLT): New.
4349 (DT_MIPS_NUM): Redefine to 0x35.
4350
4351 2008-10-01 Ulrich Drepper <drepper@redhat.com>
4352
4353 * timezone/africa: Update from tzdata2008f.
4354 * timezone/asia: Likewise.
4355 * timezone/australasia: Likewise.
4356 * timezone/europe: Likewise.
4357 * timezone/leapseconds: Likewise.
4358 * timezone/northamerica: Likewise.
4359 * timezone/southamerica: Likewise.
4360 * timezone/zone.tab: Likewise.
4361
4362 2008-09-30 Ulrich Drepper <drepper@redhat.com>
4363
4364 * nscd/connections.c: Disable use of paccept for now.
4365
4366 2008-09-29 Ulrich Drepper <drepper@redhat.com>
4367
4368 * socket/Versions: Remove paccept export for GLIBC_2.9.
4369 * socket/Makefile (routines): Remove paccept.
4370 * socket/sys/socket.h: Remove paccept declaration.
4371
4372 * po/sv.po: Update from translation team.
4373
4374 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
4375
4376 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
4377 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4378
4379 2008-09-16 Ulrich Drepper <drepper@redhat.com>
4380
4381 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
4382 Patch by Olivier Fourdan <ofourdan@redhat.com>.
4383
4384 2008-09-15 Ulrich Drepper <drepper@redhat.com>
4385
4386 * sunrpc/rpc/svc.h: Declare svcfd_create.
4387 Patch by Michael Solberg <msolberg@redhat.com>.
4388
4389 2008-09-12 Flavio Leitner <fleitner@redhat.com>
4390 Ulrich Drepper <drepper@redhat.com>
4391
4392 * malloc/malloc.c (public_vALLOc): Try other arenas in case
4393 _int_valloc fails.
4394 (public_pVALLOc): Likewise.
4395
4396 2008-09-02 Andreas Jaeger <aj@suse.de>
4397
4398 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
4399 commit.
4400
4401 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
4402
4403 [BZ #6860]
4404 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
4405
4406 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
4407
4408 * Makefile (check-data): Check data directory in add-ons.
4409 * elf/Makefile (check-data): Likewise.
4410
4411 2008-08-18 Roland McGrath <roland@redhat.com>
4412
4413 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
4414 * configure: Regenerated.
4415 * config.make.in (cflags-cpu): New substituted variable.
4416 (with-cpu): Variable removed.
4417 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
4418
4419 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
4420
4421 [BZ #6845]
4422 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
4423 __signbitl definition and __LONG_DOUBLE_128__ guard from:
4424 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
4425 redundant. Functions which call floating point assembler operations
4426 should go into a sysdeps powerpc/fpu directory.
4427
4428 2008-08-15 Ulrich Drepper <drepper@redhat.com>
4429
4430 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
4431 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4432
4433 2008-08-14 Ulrich Drepper <drepper@redhat.com>
4434
4435 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
4436
4437 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
4438 change related to AT_EXECFN. We cannot use that string.
4439 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
4440 _dl_execfn member.
4441 * elf/dl-support.c: Remove _dl_execfn variable.
4442 (_dl_aux_init): Remove handling of AT_EXECFN.
4443 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
4444 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
4445
4446 2008-08-13 Ulrich Drepper <drepper@redhat.com>
4447
4448 [BZ #6544]
4449 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
4450 byte gets added to writes and seeks from the end use the length of
4451 the buffer and not the currently terminating NUL byte.
4452
4453 [BZ #6634]
4454 * login/utmp_file.c (getutent_r_file): Take additional parameter.
4455 Set to true if locking failed.
4456 (getutid_r_file): Adjust caller.
4457 (pututline_file): Likewise. Return NULL in this case.
4458 Patch mostly by halesh.s@gmail.com.
4459
4460 2008-08-12 Ulrich Drepper <drepper@redhat.com>
4461
4462 [BZ #6589]
4463 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
4464 Define.
4465 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
4466
4467 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
4468
4469 [BZ #6839]
4470 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
4471 macro since it is now available in elf/dynamic-link.h.
4472
4473 2008-08-12 Roland McGrath <roland@frob.com>
4474
4475 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
4476 in case used outside of libc.
4477 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
4478
4479 2008-08-11 Ulrich Drepper <drepper@redhat.com>
4480
4481 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
4482 directly instead of going through dn_comp.
4483
4484 2008-08-11 Aurelien Jarno <aurel32@debian.org>
4485
4486 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4487 Fix asm constraints.
4488
4489 2008-08-07 Ulrich Drepper <drepper@redhat.com>
4490
4491 [BZ #6790]
4492 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
4493 (IPV6_PMTUDISC_PROBE): Likewise.
4494
4495 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
4496
4497 [BZ #6791]
4498 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
4499
4500 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
4501 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
4502
4503 [BZ #6817]
4504 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
4505 Added the members 'vsx' and 'arch_2_06'.
4506 (_dl_powerpc_platforms): Add the member 'power7'.
4507 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
4508 to reflect the changes required by VSX and ISA 2.06.
4509 Modify _DL_PLATFORMS_COUNT to reflect the addition of
4510 'power7'.
4511 Defined PPC_PLATFORM_POWER7.
4512 (_dl_string_platform): Add support for POWER7.
4513 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
4514 capability and ISA 2.06.
4515
4516 2008-08-07 Ulrich Drepper <drepper@redhat.com>
4517
4518 [BZ #6824]
4519 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
4520 macro to detect use of 128 bit long double.
4521 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
4522
4523 2008-08-05 Ulrich Drepper <drepper@redhat.com>
4524
4525 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
4526
4527 [BZ #5794]
4528 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
4529 parameters.
4530 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
4531 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4532
4533 2008-08-03 Ulrich Drepper <drepper@redhat.com>
4534
4535 * nscd/connections.c (main_loop_poll): Pass a buffer which is
4536 guaranteed to be large enough to read inotify event. Ignore
4537 EAGAIN error. Better error message. Add branch predicition.
4538 (main_loop_epoll): Likewise.
4539
4540 2008-08-02 Roland McGrath <roland@frob.com>
4541
4542 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4543 Add memory clobbers.
4544
4545 2008-08-02 Ulrich Drepper <drepper@redhat.com>
4546
4547 * manual/arith.texi: Avoid @strong{Note:}.
4548 * manual/creature.texi: Likewise.
4549 * manual/filesys.texi: Likewise.
4550 * manual/math.texi: Likewise.
4551 * manual/memory.texi: Likewise.
4552 * manual/resource.texi: Likewise.
4553 * manual/syslog.texi: Likewise.
4554 * manual/time.texi: Likewise.
4555
4556 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
4557 to prevent warning.
4558
4559 2008-08-01 Ulrich Drepper <drepper@redhat.com>
4560
4561 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
4562 new epoll_create1 interface.
4563 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4564 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
4565 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4566
4567 * include/arpa/nameser.h (NS_GET16): Use const pointer.
4568 (NS_GET32): Likewise.
4569
4570 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
4571 syscalls, too.
4572
4573 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
4574 use the AT_EXECFN value if it is no absolute path.
4575 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
4576 __ASSUME_AT_EXECFN.
4577
4578 * Versions.def: Add GLIBC_2.9 to libresolv.
4579 * include/resolv.h: Remove hidden proto declarations for __ns_*
4580 functions. Add them for __dn_count_labels and __p_secstodate.
4581 * include/arpa/nameser.h: Add a number of hidden proto declarations.
4582 Define ns_msg_getflags macro here.
4583 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
4584 and __p_secstodate.
4585 * resolv/Versions: Export functions from <arpa/nameser.h> from
4586 libresolv in version GLIBC_2.9.
4587 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
4588 hidden definitions.
4589 * resolv/ns_netint.c: Likewise.
4590 * resolv/ns_parse.c: Likewise.
4591 * resolv/ns_print.c: Likewise.
4592 * resolv/ns_samedomain.c: Likewise.
4593 * resolv/ns_ttl.c: Likewise.
4594 * resolv/arpa/nameser_compat.h: Likewise.
4595 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
4596 function calls.
4597 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
4598 instead of ns_get16.
4599 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
4600 __ns_get32 instead of ns_get16 and ns_get32 respectively.
4601 (gaih_getanswer_slice): Likewise.
4602 * resolv/Makefile (libresolv-routines): Add ns_date.
4603 * resolv/ns_date.c: New file.
4604
4605 * elf/Makefile (check-localplt.out): Also check libresolv and
4606 libcrypt.
4607
4608 2008-07-31 Ulrich Drepper <drepper@redhat.com>
4609
4610 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4611 __ASSUME_O_CLOEXEC.
4612
4613 2008-07-30 Ulrich Drepper <drepper@redhat.com>
4614
4615 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
4616 buffer passed to NSS functions.
4617
4618 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
4619
4620 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
4621 Define.
4622
4623 * misc/syslog.c (openlog_internal): Fix compile problem.
4624
4625 2008-07-28 Roland McGrath <roland@redhat.com>
4626
4627 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
4628
4629 2008-07-28 Ulrich Drepper <drepper@redhat.com>
4630
4631 * io/ftw.c (add_object): Remove inline to avoid warning.
4632
4633 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
4634
4635 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
4636 Use it instead of locally defined resplen2 variable.
4637 (res_nsend): Adjust for __libc_res_nsend interface change.
4638 (send_vc): Initialize *resplen2 if necessary. Read length of
4639 package into an appropriately aligned variable. Store converted length
4640 in new variable and use it appropriately.
4641 Add branch prediction help.
4642 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
4643 and pass it on to __libc_res_nsend. Adjust all callers.
4644 (__libc_res_nsearch): Likewise.
4645 (__libc_res_nqeurydomain): Likewise.
4646 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
4647 change.
4648 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
4649 Define resplen2 variable and pass it to __libc_res_nsearch and then
4650 to gaih_getanswer.
4651 (getanswer_r): In case of incorrect DNS data don't overread buffer.
4652 Add branch prediction.
4653 (gaih_getanswer_slice): Likewise. Check for invalid data types.
4654 (gaih_getanswer): Don't decode second slice if first one failed due
4655 to a too small buffer. Don't let not found status of second
4656 decoder shadow results of the first.
4657 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
4658 and __libc_res_nquery interface changes
4659 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
4660 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
4661 __libc_res_nsearch, and __libc_res_nsend.
4662 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
4663 change.
4664 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
4665 __libc_res_nsearch interface changes.
4666
4667 2008-07-27 Ulrich Drepper <drepper@redhat.com>
4668
4669 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
4670
4671 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
4672 file descriptors with close-on-exec set.
4673 (exec_comm_child): Fix the case where the write end of the pipe is
4674 STDOUT_FILENO already. In case it is, clear close-on-exec.
4675
4676 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
4677 * io/pipe2.c: Likewise.
4678 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
4679 instead of __ASSUME_PACCEPT.
4680 * include/unistd.h: Declare __have_pipe2.
4681 * libio/iopopen.c: Implement "e" flag.
4682 * libio/Makefile (tests): Add tst-popen1.
4683 * libio/tst-popen1.c: New file.
4684
4685 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
4686 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4687
4688 2008-07-26 Ulrich Drepper <drepper@redhat.com>
4689
4690 [BZ #6771]
4691 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
4692 success call of _IO_SEEKOFF or calls which failed because the
4693 descriptor is for a pipe.
4694
4695 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
4696 magic number.
4697
4698 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
4699
4700 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
4701 F_SETFD use if we know fopen set the flag.
4702
4703 * login/utmp_file.c (setutent_file): Minor optimization in case
4704 O_CLOEXEC is available.
4705
4706 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
4707
4708 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
4709 * elf/Makefile: Use pie-ccflag variable.
4710 * nscd/Makefile: Likewise.
4711 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
4712
4713 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
4714
4715 [BZ #6724]
4716 * Versions.def: Add GLIBC_2.9 version tag for libutil.
4717 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
4718 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
4719 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
4720 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
4721 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
4722 utmp32, utmpx32 and login32.
4723 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
4724 versions of struct utmp functions to libc and libutil.
4725 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
4726 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
4727 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
4728 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
4729 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
4730 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
4731 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
4732 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
4733 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
4734 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
4735 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
4736 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
4737 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
4738 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
4739 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
4740 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
4741 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
4742 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
4743 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
4744 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
4745 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
4746 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
4747
4748 2008-07-26 Ulrich Drepper <drepper@redhat.com>
4749
4750 * scripts/gen-as-const.awk: Generate more widely usable code by
4751 using 64-bit arithmetic.
4752
4753 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
4754 the same treatment as narrow output code in last patch.
4755
4756 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
4757
4758 [BZ #6763]
4759 * elf/dl-load.c (local_strdup): Remove inline.
4760 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
4761 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
4762 part of the object.
4763
4764 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
4765
4766 2008-07-25 Ulrich Drepper <drepper@redhat.com>
4767
4768 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
4769 the new syscalls, too.
4770
4771 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
4772 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
4773
4774 [BZ #6698]
4775 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
4776 parameter for end of buffer. If temporary copy is too large use
4777 malloc.
4778 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
4779 interface change.
4780 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
4781 string rewrite when allocating buffer.
4782
4783 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
4784 syscalls, too.
4785
4786 * nscd/connections.c (nscd_init): Clean up fcntl call.
4787
4788 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
4789 SOCK_NONBLOCK if possible.
4790
4791 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
4792 SOCK_CLOEXEC if available.
4793
4794 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
4795 __libc_clntudp_bufcreate_internal.
4796 * include/sys/socket.h: Declare __have_sock_cloexec.
4797 * socket/Makefile (aux): Add have_sock_cloexec.
4798 * socket/have_sock_cloexec.c: New file.
4799 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
4800 __libc_clntudp_bufcreate.
4801 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
4802 which takes an additional parameter. Create socket with non-blocking
4803 mode and close-on-exec flag set, if wanted.
4804 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
4805 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
4806 instead of clntudp_create. The socket has already the close-on-exec
4807 flag set if SOCK_CLOEXEC is defined.
4808
4809 2008-07-24 Ulrich Drepper <drepper@redhat.com>
4810
4811 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4812 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
4813 appropriate.
4814 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
4815 non-blocking mode by using socket, paccept, and inotify_init1.
4816
4817 * Versions.def (glibc): Add GLIBC_2.9.
4818 * io/Makefile (routines): Add dup3 and pipe2.
4819 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
4820 * io/dup3.c: New file.
4821 * io/pipe2.c: New file.
4822 * posix/unistd.h: Declare dup3 and pipe2.
4823 * socket/Makefile (routines): Add paccept.
4824 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
4825 * socket/paccept.c: New file.
4826 * socket/sys/socket.h: Declare paccept.
4827 * sysdeps/unix/syscalls.list: Add entry for dup3.
4828 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
4829 epoll_create2 and inotify_init1.
4830 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
4831 * sysdeps/unix/sysv/linux/paccept.c: New file.
4832 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
4833 possible.
4834 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
4835 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
4836 inotify_init1, and pipe2 entries.
4837 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
4838 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
4839 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
4840 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
4841 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
4842 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
4843 SOCK_NONBLOCK.
4844 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
4845 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
4846 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
4847 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
4848 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
4849 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
4850 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
4851 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
4852 EPOLL_NONBLOCK. Declare epoll_create2.
4853 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
4854 EFD_NONBLOCK.
4855 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
4856 IN_NONBLOCK. Declare inotify_init1.
4857 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
4858 SFD_NONBLOCK.
4859 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
4860 TFD_NONBLOCK.
4861
4862 * elf/elf.h: Define AT_EXECFN.
4863 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
4864 LD_ORIGIN_PATH.
4865 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
4866 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
4867 if __ASSUME_AT_EXECFN is defined.
4868 (_dl_aux_init): Handle AT_EXECFN.
4869 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
4870 for 2.6.27 and up.
4871 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
4872 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
4873 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
4874 _dl_execfn if available and avoid compatibility code if
4875 __ASSUME_AT_EXECFN is defined.
4876
4877 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
4878 _dl_discover_osversion only for older kernels.
4879
4880 2008-07-22 Roland McGrath <roland@frob.com>
4881
4882 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
4883
4884 2008-07-21 Roland McGrath <roland@frob.com>
4885
4886 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
4887 returned too much data out of line.
4888
4889 2008-07-20 Ulrich Drepper <drepper@redhat.com>
4890
4891 * locale/setlocale.c (setname): Remove inline to avoid compiler
4892 warning.
4893
4894 [BZ #6712]
4895 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
4896
4897 2008-07-15 Ulrich Drepper <drepper@redhat.com>
4898
4899 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
4900 doesn't manage to write anything, fail.
4901
4902 * malloc/hooks.c (__malloc_check_init): Remove printf.
4903
4904 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4905
4906 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
4907
4908 2008-07-12 Ulrich Drepper <drepper@redhat.com>
4909
4910 * nscd/connections.c (main_loop_poll): Fix handling of read errors
4911 from inotify.
4912 (main_loop_epoll): Likewise.
4913
4914 2008-07-09 Ulrich Drepper <drepper@redhat.com>
4915
4916 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
4917
4918 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
4919 if DEBUG is defined.
4920
4921 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
4922 query. Adjust buffer size computation for padding.
4923
4924 2008-07-08 Ulrich Drepper <drepper@redhat.com>
4925
4926 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
4927 * stdio-common/tst-setvbuf1.c: New file.
4928 * stdio-common/tst-setvbuf1.expect: New file.
4929
4930 [BZ #6719]
4931 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
4932 when selecting fully-buffered stream.
4933 Patch by Wang Xin <wxinee@gmail.com>.
4934
4935 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
4936
4937 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
4938 (__open_2): New function.
4939 (__open64_2): New alias to __open_2.
4940 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
4941 (__openat_2): New function.
4942 (__openat64_2): New alias to __openat_2.
4943
4944 2008-07-06 Ulrich Drepper <drepper@redhat.com>
4945
4946 [BZ #6723]
4947 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
4948
4949 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4950
4951 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
4952 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
4953 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
4954 __hurd_dfail.
4955 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4956 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4957 * sysdeps/mach/hurd/send.c (__send): Likewise.
4958 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
4959 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
4960
4961 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4962
4963 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
4964 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4965 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4966 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
4967 * hurd/get-host.c (_hurd_get_host_config): Likewise.
4968 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
4969
4970 2008-06-27 Ulrich Drepper <drepper@redhat.com>
4971
4972 [BZ #6657]
4973 * time/strptime_l.c: Don't clear s.era_cnt after successful match
4974 of %EY.
4975 Patch by Petr Baudis.
4976
4977 2008-06-26 Ulrich Drepper <drepper@redhat.com>
4978
4979 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
4980 Patch by Peter Jones <pjones@redhat.com>.
4981
4982 2008-06-25 Ulrich Drepper <drepper@redhat.com>
4983
4984 [BZ #6654]
4985 * stdlib/canonicalize.c (__realpath): readlink can write too much
4986 into the buffer on platforms without PATH_MAX.
4987
4988 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
4989
4990 [BZ #6653]
4991 * posix/tst-regex.c (main): Rename to...
4992 (do_test): ... this. Remove cmdline option processing.
4993 (TIMEOUT): Define.
4994 (TEST_FUNCTION): Define.
4995 (CMDLINE_OPTIONS): Define.
4996
4997 2008-06-25 Ulrich Drepper <drepper@redhat.com>
4998
4999 [BZ #5210]
5000 * configure.in: Add -Werror to -fstack-protector test to catch
5001 unsupported architectures.
5002 Patch by Gilles Esponasse <g.esp@free.fr>.
5003
5004 2008-06-17 Joseph Myers <joseph@codesourcery.com>
5005
5006 * stdlib/tst-setcontext.c: Set back_in_main before exit if
5007 getcontext returns ENOSYS.
5008
5009 2008-06-18 Ulrich Drepper <drepper@redhat.com>
5010
5011 * nscd/connections.c (main_loop_poll): Fix test for read error.
5012 (main_loop_epoll): Likewise.
5013
5014 2008-06-13 Ulrich Drepper <drepper@redhat.com>
5015
5016 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
5017 better place so it is not called when nscd is used.
5018
5019 * nscd/connections.c: Also recognize and handle changes to the
5020 resolver configuration file.
5021
5022 2008-06-12 Ulrich Drepper <drepper@redhat.com>
5023
5024 * time/strftime.c: Pass reference to tzset_called around to handle
5025 recursive calls.
5026
5027 [BZ #6612]
5028 * time/strftime.c (__strftime_internal): Call tzset() only
5029 when printing timezone-dependent values.
5030 Based on a patch by Petr Baudis <pasky@suse.cz>.
5031
5032 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
5033 unconditionally use second gaih_getanswer_slice result.
5034
5035 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
5036 (getaddrinfo): RES must always be non-NULL.
5037
5038 2008-06-12 Jakub Jelinek <jakub@redhat.com>
5039
5040 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
5041 cr[34] registers.
5042 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5043 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5044 Likewise.
5045 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
5046 register.
5047
5048 2008-06-12 Ulrich Drepper <drepper@redhat.com>
5049
5050 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
5051 fields.
5052 * nscd/connections.c (inotify_fd): New variable.
5053 (nscd_init): Try to open an inotify descriptor.
5054 If successful, watch files for databases using inotify instead of
5055 having prune threads stat the files.
5056 (nscd_run_prune): Recognize clear_cache flag being set and call
5057 prune_cache appropriately.
5058 (main_loop_poll): Add inotify descriptor to wait set and handle the
5059 reported changes.
5060 (main_loop_epoll): Likewise.
5061 * nscd/cache.c (prune_cache): Don't stat files for databases if
5062 inotify is used.
5063 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
5064 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
5065
5066 * nscd/grpcache.c (cache_addgr): Correctly compute size of
5067 fixed-size portion of the record.
5068 * nscd/servicescache.c (cache_addserv): Likewise.
5069 * nscd/pwdcache.c (cache_addpw): Likewise.
5070 * nscd/initgrcache.c (addinitgroupsX): Likewise.
5071
5072 2008-06-11 Ulrich Drepper <drepper@redhat.com>
5073
5074 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
5075 out we don't use uninitialized memory.
5076
5077 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
5078 the client.
5079
5080 2008-06-10 Ulrich Drepper <drepper@redhat.com>
5081
5082 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5083 ignore T_DNAME messages.
5084 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5085
5086 2008-06-05 Jakub Jelinek <jakub@redhat.com>
5087
5088 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5089 Avoid segfault if first GETC returns eof/'\0'/'\n'.
5090
5091 2008-06-03 Jakub Jelinek <jakub@redhat.com>
5092
5093 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5094 instead of portstr to nscd_getserv_r. Patch by
5095 Roman Kagan <rkagan@mail.ru>.
5096
5097 2008-05-26 Jim Meyering <meyering@redhat.com>
5098
5099 Remove more useless "if" tests before "free".
5100 * include/inline-hashtab.h (htab_delete): Likewise.
5101 * libio/freopen.c (freopen): Likewise.
5102 * libio/freopen64.c (freopen64): Likewise.
5103 * locale/programs/ld-collate.c (collate_read): Likewise.
5104 * misc/fstab.c (libc_freeres_fn): Likewise.
5105 * posix/glob.c (globfree): Likewise.
5106
5107 2008-05-24 Ulrich Drepper <drepper@redhat.com>
5108
5109 * string/Makefile (strop-tests): Add memmem.
5110 * string/test-memmem.c: New file.
5111 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5112 (test_init): Size buf1 according to BUF1PAGES.
5113
5114 2008-05-24 Jakub Jelinek <jakub@redhat.com>
5115
5116 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5117 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5118 (CFLAGS-scanf17.c): New.
5119 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5120 * stdio-common/scanf15.c (main): Likewise.
5121 * stdio-common/scanf16.c: New file.
5122 * stdio-common/scanf17.c: New file.
5123
5124 2008-05-24 Ulrich Drepper <drepper@redhat.com>
5125
5126 * resolv/res_send.c (send_dg): If we already have one of two
5127 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
5128 use the one answer insted of failing.
5129
5130 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
5131
5132 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5133 being executed on PowerPC as the expected result exceeds IBM
5134 long double 128 __LDBL_MAX__.
5135
5136 2008-05-21 Roland McGrath <roland@redhat.com>
5137
5138 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5139
5140 * Makefile (check-data): Use $(abi-name) before other guesses.
5141 Look in $(add-ons) dirs before scripts/data/.
5142 * elf/Makefile (check-data): Likewise.
5143
5144 * scripts/soversions.awk: Grok ABI line.
5145 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5146 Emit definition for abi-name variable.
5147
5148 2008-05-21 Ulrich Drepper <drepper@redhat.com>
5149
5150 * string/endian.h: Define new fixed-size hto* and *toh macros only
5151 if [__USE_BSD].
5152
5153 * iconvdata/Depend: Add localedata.
5154
5155 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
5156
5157 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5158
5159 2008-05-08 David S. Miller <davem@davemloft.net>
5160
5161 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5162 HIDDEN_JUMPTARGET.
5163 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5164 (__SYSCALL_CLOBBERS): Remove %g* registers.
5165 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5166 (__SYSCALL_CLOBBERS): Likewise.
5167 * scripts/data/localplt-sparc-linux-gnu.data: New file.
5168 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
5169
5170 2008-05-21 Jakub Jelinek <jakub@redhat.com>
5171
5172 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5173 (CALL_ERRNO_LOCATION): Define.
5174 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5175 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5176 (CALL_ERRNO_LOCATION): Define.
5177 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5178 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
5179 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
5180
5181 2008-05-20 Ulrich Drepper <drepper@redhat.com>
5182
5183 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
5184 variable.
5185
5186 2008-05-20 Jakub Jelinek <jakub@redhat.com>
5187
5188 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
5189 (FIRST_FRAME_POINTER): Define.
5190
5191 2008-05-09 David S. Miller <davem@davemloft.net>
5192
5193 * sysdeps/sparc/sparc64/backtrace.c: New file.
5194
5195 2008-05-14 David S. Miller <davem@davemloft.net>
5196
5197 * sysdeps/sparc/machine-gmon.h: New file.
5198 * sysdeps/sparc/sparc-mcount.S: Likewise.
5199 * sysdeps/sparc/Makefile: Add sparc-mcount target to
5200 sysdep_routines in gmon directory.
5201
5202 2008-05-19 Jakub Jelinek <jakub@redhat.com>
5203
5204 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
5205
5206 2008-05-19 Ulrich Drepper <drepper@redhat.com>
5207
5208 * resolv/res_query.c (__libc_res_nquery): In case one of two
5209 answer was too short don't try to read that answer's header.
5210
5211 * resolv/res_send.c (send_dg): In case of timeout and there are
5212 two queries and one has been answered, return value indicating
5213 success.
5214
5215 2008-05-18 Ulrich Drepper <drepper@redhat.com>
5216
5217 * nscd/cache.c (cache_add): Take additional parameter specifying
5218 whether this is in response of a cache refill. Check alignment
5219 of package data. Revamp waking of pruning thread.
5220 (prune_cache): Small optimization.
5221 * nscd/nscd.h: Adjust cache_add prototypes.
5222 * nscd/aicache.c: Adjust cache_add calls.
5223 * nscd/grpcache.c: Likewise.
5224 * nscd/hstcache.c: Likewise.
5225 * nscd/initgrcache.c: Likewise.
5226 * nscd/pwdcache.c: Likewise.
5227 * nscd/servicescache.c: Likewise.
5228 * nscd/connections.c (restart): Really disable cache use before
5229 exec attempt. If it fails, reenable cache.
5230 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
5231 time to max to be able to notice concurrent cache additions. Unlock
5232 prune_lock while performing gc. Afterwards compute wakeup time with
5233 current wakeup_time value in mind.
5234
5235 2008-05-17 Ulrich Drepper <drepper@redhat.com>
5236
5237 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
5238
5239 * nscd/mem.c (gc): Correctly determine highest used array element
5240 in mark.
5241
5242 * nscd/mem.c (markrange): Add assert to check entries are all
5243 aligned. Small cleanup in bitmap use.
5244
5245 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5246 blockoff of type nscd_ssize_t.
5247 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5248 (mempoll_alloc): Record block offset and not address.
5249
5250 * nscd/mem.c (gc): Fix test for stack overuse.
5251
5252 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5253 more asserts.
5254
5255 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5256 entry is available, believe it.
5257
5258 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5259 no answers return NSS_STATUS_NOTFOUND.
5260 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5261 buffer does not have any content.
5262
5263 2008-05-16 Ulrich Drepper <drepper@redhat.com>
5264
5265 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
5266
5267 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
5268 lookup, don't assign canon unconditionally.
5269
5270 2008-05-14 Ulrich Drepper <drepper@redhat.com>
5271
5272 * string/Makefile (distribute): Add str-two-way.h.
5273
5274 2008-03-29 Eric Blake <ebb9@byu.net>
5275
5276 Rewrite string searches to O(n) rather than O(n^2).
5277 * string/str-two-way.h: New file. For linear fixed-allocation
5278 string searching.
5279 * string/memmem.c: New implementation.
5280 * string/strstr.c: New implementation.
5281 * string/strcasestr.c: New implementation.
5282
5283 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
5284
5285 * posix/regcomp.c (optimize_utf8): Add a note on why we test
5286 opr.ctx_type.
5287 (calc_first): Initialize constraint field.
5288 (duplicate_node_closure): Use it instead of special casing ANCHORS.
5289 Use search_duplicated_node to avoid loops. Fix grammar.
5290 (duplicate_node): Merge constraint field for all node types.
5291 (calc_eclosure_iter): Look at constraint field for all node types.
5292 * posix/regex_internal.c (create_cd_newstate): Don't look at
5293 create_cd_newstate.
5294
5295 2008-05-14 Ulrich Drepper <drepper@redhat.com>
5296
5297 [BZ #6428]
5298 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
5299
5300 [BZ #6442]
5301 * string/endian.h: Add macros for fixed-size endian conversion.
5302 * bits/byteswap.h: Allow inclusion from <endian.h>.
5303 * sysdeps/i386/bits/byteswap.h: Likewise.
5304 * sysdeps/ia64/bits/byteswap.h: Likewise.
5305 * sysdeps/s390/bits/byteswap.h: Likewise.
5306 * sysdeps/x86_64/bits/byteswap.h: Likewise.
5307 * string/Makefile (tests): Add tst-endian.
5308 * string/tst-endian.c: New file.
5309
5310 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
5311 Patch by Reuben Thomas.
5312
5313 2008-05-14 Joseph Myers <joseph@codesourcery.com>
5314
5315 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
5316
5317 2008-05-14 Ulrich Drepper <drepper@redhat.com>
5318
5319 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
5320
5321 [BZ #6461]
5322 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
5323 Add missing braces.
5324 (BODY for __gconv_transform_internal_ascii): Likewise.
5325
5326 [BZ #6472]
5327 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
5328 to be treated like link-local addresses.
5329 (match_prefix): Don't treat IPv4 loopback address special when
5330 converting to v4 mapped addressed.
5331
5332 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
5333 if necessary.
5334 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
5335 * posix/tst-rfc3484-2.c: Likewise.
5336 * posix/tst-rfc3484-3.c: Likewise.
5337
5338 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
5339 and SCTP.
5340
5341 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
5342
5343 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
5344
5345 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
5346
5347 2008-05-13 Ulrich Drepper <drepper@redhat.com>
5348
5349 * po/lt.po: New file. From Lituanian translation team.
5350
5351 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
5352
5353 Introduce TLS descriptors for i386 and x86_64.
5354 * include/inline-hashtab.h: New file, copied from 2005's
5355 libiberty, with fix for memory leak imported afterwards by
5356 Glauber de Oliveira Costa.
5357 * elf/tlsdeschtab.h: New file.
5358 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
5359 (_dl_allocate_static_tls): ... here. Rearrange failure path.
5360 (CHECK_STATIC_TLS): Move to...
5361 * elf/dynamic-link.h: ... this file.
5362 (TRY_STATIC_TLS): New macro.
5363 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
5364 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
5365 R_386_TLS_DESC): Define.
5366 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
5367 binutils.
5368 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
5369 R_X86_64_TLSDESC): Define.
5370 (R_386_NUM, R_X86_64_NUM): Adjust.
5371 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
5372 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5373 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5374 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
5375 release tlsdesc_table.
5376 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
5377 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
5378 (elf_machine_rel): Handle R_386_TLS_DESC.
5379 (elf_machine_rela): Likewise.
5380 (elf_machine_lazy_rel): Likewise.
5381 (elf_machine_lazy_rela): Likewise.
5382 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
5383 * sysdeps/i386/dl-tlsdesc.S: New file.
5384 * sysdeps/i386/dl-tlsdesc.h: New file.
5385 * sysdeps/i386/tlsdesc.c: New file.
5386 * sysdeps/i386/tlsdesc.sym: New file.
5387 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
5388 tlsdesc_table.
5389 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
5390 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5391 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5392 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
5393 release tlsdesc_table.
5394 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
5395 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
5396 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
5397 (elf_machine_rel): Handle R_X86_64_TLSDESC.
5398 (elf_machine_rela): Likewise.
5399 (elf_machine_lazy_rel): Likewise.
5400 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
5401 (__tls_get_addr): Do not declare for non-shared compiles.
5402 * sysdeps/x86_64/dl-tlsdesc.S: New file.
5403 * sysdeps/x86_64/dl-tlsdesc.h: New file.
5404 * sysdeps/x86_64/tlsdesc.c: New file.
5405 * sysdeps/x86_64/tlsdesc.sym: New file.
5406 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
5407 tlsdesc_table for both 32- and 64-bit structs.
5408
5409 2008-05-11 Ulrich Drepper <drepper@redhat.com>
5410
5411 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
5412 its own function. This reduces the frame setup costs and more.
5413
5414 2008-02-11 Joseph Myers <joseph@codesourcery.com>
5415
5416 [BZ #3406]
5417 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
5418 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
5419
5420 2008-05-11 Ulrich Drepper <drepper@redhat.com>
5421
5422 * io/openat.c (__openat_2): Also pass fd to __openat.
5423 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
5424 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
5425
5426 * string/tester.c (test_memcmp): Add a few more tests.
5427 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
5428
5429 2008-05-10 Ulrich Drepper <drepper@redhat.com>
5430
5431 * nscd/cache.c (cache_add): Before returning with failure and this
5432 is the first use of the record, mark it as unusable.
5433 * nscd/aicache.c: Don't touch the dataset after cache_add returns
5434 reporting a failure.
5435 * nscd/grpcache.c: Likewise
5436 * nscd/hstcache.c: Likewise.
5437 * nscd/initgrcache.c: Likewise.
5438 * nscd/pwdcache.c: Likewise.
5439 * nscd/servicescache.c: Likewise.
5440
5441 2008-05-10 Roland McGrath <roland@redhat.com>
5442
5443 [BZ #6505]
5444 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
5445
5446 2008-05-08 David S. Miller <davem@davemloft.net>
5447
5448 * misc/truncate64.c (truncate64): Use __truncate not truncate.
5449
5450 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
5451 (__ieee754_y0l): Likewise.
5452 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5453 (__ieee754_y1l): Likewise.
5454 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
5455 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
5456 frexpl and ldexpl. math_private.h provides them and the latter
5457 is not even used.
5458 (__log1pl): Use __frexpl.
5459
5460 2008-05-10 Ulrich Drepper <drepper@redhat.com>
5461
5462 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
5463 prototypes.
5464 * include/arpa/nameser_compat.h: Define T_UNSPEC.
5465 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
5466 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
5467 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
5468 af==AF_UNSPEC.
5469 (_nss_nis_gethostbyname4_r): New function.
5470 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
5471 Change to also handle af==AF_UNSPEC.
5472 (get_tablename): New function. Use it to avoid duplication.
5473 (_nss_nisplus_gethostbyname4_r): New function.
5474 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
5475 available.
5476 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
5477 * nss/nss.h: Define struct gaih_addrtuple.
5478 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
5479 af==AF_UNSPEC.
5480 (_nss_files_gethostbyname4_r): New function.
5481 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
5482 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
5483 calls.
5484 * resolv/res_query.c (__libc_res_nquery): Take two additional
5485 parameters for second answer buffer. Handle type=T_UNSPEC to mean
5486 look up IPv4 and IPv6.
5487 Change all callers.
5488 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
5489 for an additional query and answer buffer. Pass to send_vc and
5490 send_dg.
5491 (send_vc): Send possibly two requests and receive two answers.
5492 (send_dg): Likewise.
5493 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
5494 __libc_res_nquery.
5495 (_nss_dns_gethostbyname4_r): New function.
5496 (gaih_getanswer_slice): Likewise.
5497 (gaih_getanswer): Likewise.
5498 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
5499 __libc_res_nquery call.
5500 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5501 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
5502 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
5503 available.
5504
5505 2008-05-05 David S. Miller <davem@davemloft.net>
5506
5507 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
5508 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
5509
5510 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5511
5512 Fix termios bit macros.
5513 Move *DLY definitions where they belong, in termios.h.
5514 Add *[0-3] definitions.
5515 Fixes confusion between VT and FF.
5516 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
5517 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
5518 are already defined to avoid collision with termios.h.
5519 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
5520 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
5521 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
5522 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
5523 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
5524 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
5525 VTDLY, VT0, VT1): New macros.
5526 [__USE_GNU] (OLCUC): Change value of macro.
5527 [__USE_XOPEN] (OFILL): New macro.
5528 [__USE_BSD] (CRTSCTS): Change value.
5529 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
5530 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
5531 (B7200, B14400, B28800, B76800): New macros.
5532
5533 2008-05-01 David S. Miller <davem@davemloft.net>
5534
5535 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
5536 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
5537 (gen-as-const-headers): Add it.
5538 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
5539 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
5540 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
5541 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
5542
5543 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
5544 six system call parameters.
5545 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
5546
5547 2008-04-30 Ulrich Drepper <drepper@redhat.com>
5548
5549 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
5550 RUSAGE_LWP.
5551 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
5552 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
5553
5554 2008-04-30 Jakub Jelinek <jakub@redhat.com>
5555
5556 * stdlib/tst-setcontext.c: Include unistd.h.
5557
5558 2008-04-25 David S. Miller <davem@davemloft.net>
5559
5560 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
5561 Pass "union semun" properly in to sys_ipc, it must be passed
5562 by value, not by reference.
5563
5564 2008-04-22 Jakub Jelinek <jakub@redhat.com>
5565
5566 * nscd/Makefile (nscd-cflags): Set back to -fpie.
5567 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
5568 * nscd/connections.c (mem_in_flight): Likewise.
5569
5570 * nscd/nscd.h (dbs): Make hidden.
5571
5572 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
5573 Avoid returning -1, return 0 instead.
5574
5575 2008-04-19 Ulrich Drepper <drepper@redhat.com>
5576
5577 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
5578
5579 2008-04-15 Ulrich Drepper <drepper@redhat.com>
5580
5581 [BZ #5209]
5582 * sysdeps/unix/sysv/linux/times.c: New file.
5583
5584 [BZ #5381]
5585 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
5586 mem_in_flight_list variables. Add new parameter to mempool_alloc
5587 prototype.
5588 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
5589 appropriate mem_in_flight element.
5590 (gc): Take allocations which have not yet been committed to the
5591 database into account.
5592 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
5593 Reset mem_in_flight before returning.
5594 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
5595 cue it up in mem_in_flight_list.
5596 * nscd/aicache.c: Adjust mempool_alloc call.
5597 * nscd/grpcache.c: Likewise.
5598 * nscd/hstcache.c: Likewise.
5599 * nscd/initgrcache.c: Likewise.
5600 * nscd/pwdcache.c: Likewise.
5601 * nscd/servicescache.c: Likewise.
5602 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
5603 of -fpie.
5604
5605 * nscd/connections.c (handle_request): Provide better error message
5606 in case SELinux forbids the service.
5607
5608 * version.h (VERSION): Bump to 2.8.90.
5609
5610 2008-04-17 Jakub Jelinek <jakub@redhat.com>
5611
5612 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
5613
5614 2008-04-11 Ulrich Drepper <drepper@redhat.com>
5615
5616 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
5617 Also use for 32-bit.
5618 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
5619 __nextafter instead of nextafter to avoid local PLT.
5620 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
5621 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5622
5623 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
5624
5625 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
5626 __fe_nomask_env.
5627 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
5628 <fenv_libc.h> instead of <fenv.h>.
5629 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
5630 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
5631
5632 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
5633
5634 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
5635 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
5636 function from fegetexcept and make old name weak alias.
5637 * include/fenv.h: Declare __fegetexcept.
5638 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
5639 fegetexcept.
5640 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
5641 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
5642 to fetestexcept.
5643 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
5644 instead of frexpl to avoid local PLT.
5645 * math/s_significandl.c (__significandl): Use __ilogbl instead of
5646 ilogbl to avoid local PLT.
5647 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
5648 instead of ldexpl to avoid local PLT.
5649 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
5650 __roundl not roundl to avoid local PLT.
5651 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
5652 local PLTs. Use __sincosl instead of separate sinl and cosl
5653 calls.
5654 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5655
5656 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
5657 version for ppc64 to 2.4.21 since without it makecontext will fail.
5658
5659 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
5660 to the ABI in use.
5661 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
5662 .__tls_get_addr.
5663 [__powerpc64__] (TLS_GD): Likewise.
5664
5665 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
5666
5667 [BZ #4997]
5668 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
5669 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
5670 mantissa.
5671 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5672 Likewise. Also account for when x is an odd number between 2^52
5673 and 2^53-1.
5674 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
5675 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5676 * math/libm-test.inc (lround_test, llround_test): Added test cases to
5677 detect aforementioned erroneous conditions.
5678
5679 2008-04-11 Jakub Jelinek <jakub@redhat.com>
5680
5681 * configure.in: Check for -fno-section-anchors in addition to
5682 -fno-toplevel-reorder.
5683
5684 2008-04-11 Ulrich Drepper <drepper@redhat.com>
5685
5686 * include/features.h (__GLIBC_MINOR__): Bump to 8.
5687
5688 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
5689 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
5690 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
5691 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
5692 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
5693 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
5694
5695 2008-04-11 Jakub Jelinek <jakub@redhat.com>
5696
5697 [BZ #5443]
5698 * time/era.c: Transform __libc_setlocale_lock into rwlock.
5699 * time/alt_digit.c: Likewise.
5700 * wcsmbs/wcsmbsload.c: Likewise.
5701
5702 2008-04-10 Ulrich Drepper <drepper@redhat.com>
5703
5704 * version.h (VERSION): Bump to 2.8.
5705
5706 * timzeone/asia: Update from tzdata2008b.
5707 * timezone/backward: Likewise.
5708 * timezone/europe: Likewise.
5709 * timezone/northamerica: Likewise.
5710 * timezone/southamerica: Likewise.
5711 * timezone/iso3166.tab: Likewise.
5712 * timezone/leapseconds: Likewise.
5713 * timezone/zone.tab: Likewise.
5714 * timezone/private.h: Update from tzcode2008a.
5715 * timezone/zdump.c: Likewise.
5716 * timezone/zic.c: Likewise.
5717
5718 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
5719
5720 [BZ #5741]
5721 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
5722 Define additonal Data Cache Block instruction macros.
5723 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
5724 Replace dcbst with dcbf and sync with sync/isync.
5725
5726 2008-02-21 Alan Modra <amodra@bigpond.net.au>
5727
5728 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
5729 Always set ELF_RTYPE_CLASS_PLT.
5730 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
5731
5732 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
5733
5734 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
5735 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
5736 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
5737 For ISA 2.01 and later replace mftb with mfspr 268.
5738
5739 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
5740
5741 [BZ #5768]
5742 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
5743 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
5744
5745 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
5746
5747 [BZ #5768]
5748 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
5749 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
5750 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
5751 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
5752
5753 2008-04-10 Jakub Jelinek <jakub@redhat.com>
5754
5755 * stdlib/tst-makecontext.c (othervar): New variable.
5756 (cf): Test sign extending the argument to long.
5757
5758 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
5759
5760 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
5761 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
5762 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
5763 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
5764 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
5765 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
5766 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
5767
5768 2008-02-22 Alan Modra <amodra@bigpond.net.au>
5769
5770 * elf/Makefile (tests): Substitute tests-vis-yes here.
5771 (tests-vis-yes): Delete.
5772 (modules-name, modules-vis-yes): Similarly.
5773
5774 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
5775
5776 [BZ #4407]
5777 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5778 Preserve sign in signgamp when x is zero.
5779
5780 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
5781
5782 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
5783 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
5784 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
5785 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
5786 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
5787 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
5788
5789 2008-04-09 Ulrich Drepper <drepper@redhat.com>
5790
5791 [BZ #4314]
5792 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
5793 buffers.
5794
5795 [BZ #5209]
5796 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
5797 a reserved error value.
5798
5799 * stdlib/tst-makecontext.c: Change parameter to cf to negative
5800 value to check for correct sign extension.
5801
5802 [BZ #5436]
5803 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
5804 Copy 64-bit parameter values even though this is not required in
5805 the standard.
5806
5807 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
5808 PC save.
5809
5810 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
5811
5812 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
5813 PC save.
5814
5815 2008-04-09 Jakub Jelinek <jakub@redhat.com>
5816
5817 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
5818
5819 2008-04-09 Ulrich Drepper <drepper@redhat.com>
5820
5821 [BZ #5998]
5822 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
5823 in line-buffered stream failed.
5824 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
5825
5826 2008-04-08 Ulrich Drepper <drepper@redhat.com>
5827
5828 [BZ #6024]
5829 * scripts/abi-versions.awk: If the version specified by
5830 --enable-oldest-abi is older than the first version for this
5831 architecture, use the default version.
5832
5833 * locale/programs/ld-collate.c (collate_read): Ignore script lines
5834 as well when ignoring the whole category.
5835
5836 2008-04-07 Ulrich Drepper <drepper@redhat.com>
5837
5838 [BZ #6042]
5839 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
5840 ETHERTYPE_* definitions.
5841 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
5842
5843 2008-04-07 Jakub Jelinek <jakub@redhat.com>
5844
5845 * stdlib/mbtowc.c (__no_r_state): Remove.
5846 (mbtowc): New static state variable. Use it instead of
5847 __no_r_state.
5848 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
5849 (__wctomb_state): New hidden variable.
5850 (wctomb): Use __wctomb_state instead of __no_r_state.
5851 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
5852 (__wctomb_state): New extern decl.
5853 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
5854
5855 2008-04-07 Ulrich Drepper <drepper@redhat.com>
5856
5857 [BZ #5475]
5858 * resolv/res_init.c: Handle scope IDs in resolv.conf.
5859
5860 2008-04-07 Jakub Jelinek <jakub@redhat.com>
5861
5862 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
5863
5864 2008-04-06 Ulrich Drepper <drepper@redhat.com>
5865
5866 * po/nl.po: Update from translation team.
5867
5868 2008-03-31 Ulrich Drepper <drepper@redhat.com>
5869
5870 [BZ #6007]
5871 * string/strfry.c: Handle empty strings again.
5872
5873 2008-03-30 Ulrich Drepper <drepper@redhat.com>
5874
5875 [BZ #5443]
5876 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
5877 before looking for translation.
5878 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
5879 * locale/freelocale.c: Likewise.
5880 * locale/newlocale.c: Likewise.
5881 * locale/setlocale.c: Likewise.
5882 Based partially on a patch by ryo@np.css.fujitsu.com.
5883
5884 2008-03-30 Jakub Jelinek <jakub@redhat.com>
5885
5886 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
5887 acquiring wrlock. Do conv_tab allocation while holding lock.
5888 * intl/Makefile: Add rules to build and run tst-gettext6.
5889 * intl/tst-gettext6.c: New test.
5890 * intl/tst-gettext6.sh: New file.
5891
5892 2008-03-30 Ulrich Drepper <drepper@redhat.com>
5893
5894 * po/nl.po: Update from translation team.
5895
5896 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
5897 provided through st_blksize, try the default size before giving up.
5898
5899 2008-03-29 Ulrich Drepper <drepper@redhat.com>
5900
5901 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
5902
5903 [BZ #5939]
5904 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
5905
5906 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
5907 error message. POSIX today does not require the messages to be in
5908 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
5909
5910 [BZ #5979]
5911 * sunrpc/auth_unix.c: Unify printed strings.
5912 * sunrpc/clnt_tcp.c: Likewise.
5913 * sunrpc/clnt_udp.c: Likewise.
5914 * sunrpc/clnt_unix.c: Likewise.
5915 * sunrpc/svc_tcp.c: Likewise.
5916 * sunrpc/svc_udp.c: Likewise.
5917 * sunrpc/svc_unix.c: Likewise.
5918 * sunrpc/xdr.c: Likewise.
5919 * sunrpc/xdr_array.c: Likewise.
5920 * sunrpc/xdr_rec.c: Likewise.
5921 * sunrpc/xdr_ref.c: Likewise.
5922 * locale/programs/ld-time.c (time_finish): Unify messages.
5923 * locale/programs/locfile.c (handle_copy): Fix typo.
5924 * nscd/nscd.c (options): Fix typo.
5925
5926 [BZ #5995]
5927 * stdlib/strtod_l.c: Use correct sign for result in one more
5928 underflow case.
5929 Patch by Eric Blake <ebb9@byu.net>.
5930
5931 2008-03-27 Jakub Jelinek <jakub@redhat.com>
5932
5933 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
5934 and creat system calls.
5935 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
5936 call.
5937 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
5938 system calls.
5939 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
5940 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5941 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5942
5943 2008-03-27 Ulrich Drepper <drepper@redhat.com>
5944
5945 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
5946 <linux/limits.h> has defined it.
5947 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
5948 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
5949 headers.
5950 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
5951 it instead of ARG_MAX.
5952
5953 2008-03-25 Jakub Jelinek <jakub@redhat.com>
5954
5955 * posix/gai.conf: Fix comment for scope nullbits.
5956 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
5957 default to 128 bits for v4 mapped addresses.
5958
5959 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
5960
5961 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
5962 ptrace call to get the ieee_instruction_pointer from the kernel.
5963 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
5964 ptrace call to set the ieee_instructtion_pointer.
5965 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
5966 Add comment that ieee_instruction_pointer is always 0.
5967
5968 2008-03-09 Andreas Jaeger <aj@suse.de>
5969
5970 [BZ #5857]
5971 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
5972 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
5973 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
5974
5975 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
5976 (rint_test): Likewise.
5977
5978 2008-03-24 Ulrich Drepper <drepper@redhat.com>
5979
5980 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
5981 call.
5982 (__nisfind_server): Similar for open readColdStartFile call.
5983 Patch partially by Jim Meyering.
5984 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
5985 around internal_setent call.
5986
5987 * po/vi.po: New Vietnamese translation.
5988
5989 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
5990 ADJ_OFFSET_SS_READ.
5991
5992 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
5993 remove CLONE_STOPPED.
5994
5995 2008-02-10 Jim Meyering <meyering@redhat.com>
5996
5997 Remove useless "if" before "free":
5998 * elf/ldconfig.c (parse_conf_include): Likewise.
5999 * gmon/gmon.c (weak_alias): Likewise.
6000 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
6001 * inet/rcmd.c (__validuser2_sa): Likewise.
6002 * intl/bindtextdom.c (set_binding_values): Likewise.
6003 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
6004 * libio/genops.c (save_for_backup): Likewise.
6005 * libio/wgenops.c (save_for_wbackup): Likewise.
6006 * locale/programs/ld-collate.c (collate_read): Likewise.
6007 * locale/programs/linereader.c (get_string): Likewise.
6008 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
6009 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
6010 * resolv/res_debug.c (do_section): Likewise.
6011 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
6012 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
6013 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
6014 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6015 * time/tzset.c (tzset_internal): Likewise.
6016
6017 2008-03-18 Jakub Jelinek <jakub@redhat.com>
6018
6019 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
6020 of ASSEMBLER.
6021
6022 2008-03-11 Ulrich Drepper <drepper@redhat.com>
6023
6024 [BZ #5903]
6025 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
6026 not stream for output file. Open output file here.
6027 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
6028 and output file name.
6029 (process_fd): Likewise.
6030 (process_file): Likewise.
6031 (main): Adjust callers of changed functions.
6032 * iconv/iconv_prog.h: Adjust prototype.
6033
6034 2008-03-09 Andreas Jaeger <aj@suse.de>
6035
6036 [BZ #5753]
6037 * sysdeps/ia64/ieee754.h: Use protected namespace
6038 __BIG_ENDIAN/__LITTLE_ENDIAN.
6039 * sysdeps/ieee754/ieee754.h: Likewise.
6040 Patch by Aurelien Jarno <aurelien@aurel32.net>.
6041
6042 2008-03-08 Roland McGrath <roland@frob.com>
6043
6044 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
6045 ignore a signal that came from a machine exception, treat it as a
6046 fatal core-dump signal instead.
6047 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6048
6049 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6050 Clear DF bit in thread state's eflags.
6051 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6052
6053 2008-03-08 Ulrich Drepper <drepper@redhat.com>
6054
6055 [BZ #5774]
6056 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
6057 of NAN(...) sequence.
6058 * stdlib/Makefile (tests): Add tst-strtod6.
6059 * stdlib/tst-strtod6.c: New file.
6060
6061 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
6062
6063 [BZ #5762]
6064 * posix/getopt.c (_getopt_internal_r): Clarify error message by
6065 putting offending option character in quotes. Clean up error
6066 messages.
6067 * po/be.po: Adjust msgstr in translation file.
6068 * po/bg.po: Likewise.
6069 * po/ca.po: Likewise.
6070 * po/cs.po: Likewise.
6071 * po/da.po: Likewise.
6072 * po/de.po: Likewise.
6073 * po/es.po: Likewise.
6074 * po/fr.po: Likewise.
6075 * po/hr.po: Likewise.
6076 * po/ko.po: Likewise.
6077 * po/nl.po: Likewise.
6078 * po/rw.po: Likewise.
6079 * po/sk.po: Likewise.
6080 * po/sv.po: Likewise.
6081 * po/tr.po: Likewise.
6082 * po/zh_CN.po: Likewise.
6083 * po/zh_TW.po: Likewise.
6084
6085 [BZ #5760]
6086 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6087 Patch by Roland Bless <roland@bless.de>.
6088
6089 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6090 .o file.
6091 * elf/Makefile (routines): Add dl-sysdep.
6092 (elide-routines.os): Likewise.
6093
6094 2008-03-07 Ulrich Drepper <drepper@redhat.com>
6095
6096 [BZ #5786]
6097 * elf/dl-sysdep.c: Undefine ROUND after use.
6098 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6099 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6100 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6101 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6102 to ...
6103 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6104 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6105 if necessary.
6106 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6107
6108 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6109 _dl_tls_get_addr_soft element.
6110 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6111 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6112 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6113 GLRO.
6114 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6115 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6116 of internal_function.
6117
6118 * stdlib/Makefile (aux): Add tens_in_limb.
6119 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6120 * stdlib/tens_in_limb.c: ...here. New file.
6121
6122 [BZ #5778]
6123 * sysdeps/unix/sysv/linux/pathconf.h: Declare
6124 __statfs_chown_restricted.
6125 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6126 for _PC_CHOWN_RESTRICTED.
6127 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6128 Implement __statfs_chown_restricted.
6129 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6130 _POSIX_CHOWN_RESTRICTED value to zero.
6131 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6132 defined to zero.
6133
6134 * sysdeps/x86_64/rtld-memset.c: New file.
6135
6136 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
6137
6138 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6139
6140 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6141 Barcelona machine. Make default fall through branch of
6142 __x86_64_preferred_memory_instruction check as the integer code path.
6143
6144 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
6145
6146 * sysdeps/x86_64/cacheinfo.c
6147 (__x86_64_preferred_memory_instruction): New variable.
6148 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6149
6150 * sysdeps/x86_64/memset.S: Rewrite.
6151
6152 2008-03-04 Jakub Jelinek <jakub@redhat.com>
6153
6154 * include/stdio.h (__asprintf_chk, __dprintf_chk,
6155 __obstack_printf_chk): New prototypes.
6156 (__vasprintf_chk, __vdprintf_chk,
6157 __obstack_vprintf_chk): Likewise.
6158 Add libc_hidden_proto.
6159 * libio/obprintf.c
6160 (_IO_obstack_jumps): No longer static, add attribute_hidden.
6161 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6162 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6163 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6164 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6165 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6166 __obstack_vprintf_chk): New prototypes.
6167 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
6168 obstack_vprintf): New inlines.
6169 * debug/dprintf_chk.c: New file.
6170 * debug/vdprintf_chk.c: New file.
6171 * debug/asprintf_chk.c: New file.
6172 * debug/vasprintf_chk.c: New file.
6173 * debug/obprintf_chk.c: New file.
6174 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
6175 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
6176 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
6177 @@GLIBC_2.8.
6178 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
6179 vdprintf_chk and obprintf_chk, set CFLAGS for them.
6180 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
6181 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
6182 libc_hidden_proto.
6183 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
6184 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
6185 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
6186 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
6187 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
6188 @@GLIBC_2.8.
6189 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
6190 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
6191 obstack_vprintf_chk.
6192 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
6193 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
6194 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
6195 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
6196 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
6197 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
6198
6199 2008-03-04 Ulrich Drepper <drepper@redhat.com>
6200
6201 [BZ #5779]
6202 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
6203 Patch by Roy Marples <roy@marples.name>.
6204
6205 [BZ #5736]
6206 * malloc/malloc.c: Fix typo in comment.
6207
6208 [BZ #5627]
6209 * locale/iso-639.def: Add Shuswap.
6210
6211 2008-02-25 Jakub Jelinek <jakub@redhat.com>
6212
6213 [BZ #5790]
6214 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
6215 overwrite *h_errnop/*errnop values from getanswer_r in case of
6216 failure.
6217
6218 2008-03-03 Ulrich Drepper <drepper@redhat.com>
6219
6220 [BZ #5818]
6221 * nscd/connections.c (dbs): Add initializers for .suggested_module.
6222 (verify_persistent_db): Remove one unnecessary test and add a new one
6223 for bad configuration.
6224 (nscd_init): Improve error reported when persistent database cannot
6225 be reused.
6226 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
6227 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
6228 .suggested_module and .max_db_size and case config file says the
6229 values are zero.
6230 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
6231
6232 [BZ #5854]
6233 * nis/ypclnt.c (yp_order): Fix handling of return value of
6234 do_ypcall_tr call.
6235 Patch by Jeff Moyer <jmoyer@redhat.com>.
6236
6237 * po/fr.po: Update from translation team.
6238
6239 2008-02-22 Andreas Jaeger <aj@suse.de>,
6240 Carlos O'Donell <carlos@systemhalted.org>
6241
6242 [BZ #5012]
6243 * FAQ.in: Describe why glibc needs to be compiled with
6244 optimization.
6245
6246 2008-02-19 Roland McGrath <roland@redhat.com>
6247
6248 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6249
6250 2008-02-15 Ulrich Drepper <drepper@redhat.com>
6251
6252 [BZ #5737]
6253 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6254 __USE_MISC is defined.
6255
6256 2008-02-10 Ulrich Drepper <drepper@redhat.com>
6257
6258 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6259 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6260 sys/timerfd.h.
6261 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6262 timerfd_gettime, timerfd_settime.
6263 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6264 timerfd_gettime, timerfd_settime for GLIBC_2.8.
6265
6266 2008-02-08 Roland McGrath <roland@redhat.com>
6267
6268 * elf/elf.h (NT_PPC_SPE): New macro.
6269
6270 2008-02-06 Roland McGrath <roland@redhat.com>
6271
6272 * Makerules ($(common-objpfx)sysd-rules):
6273 Depend on $(sysdep-makeconfigs).
6274
6275 2008-01-31 Roland McGrath <roland@redhat.com>
6276
6277 [BZ #5442]
6278 * configure.in: Use -print-file-name if it yields a directory,
6279 for each of include and include-fixed.
6280 * configure: Regenerated.
6281
6282 * Makeconfig (sysd-rules-targets): New variable.
6283 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
6284 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
6285
6286 2008-01-30 Roland McGrath <roland@redhat.com>
6287
6288 * manual/libc.texinfo: Update back-cover text.
6289
6290 * elf/elf.h (NT_386_TLS): New macro.
6291
6292 2008-01-29 Roland McGrath <roland@redhat.com>
6293
6294 * Makeconfig (sysd-rules-patterns): New variable.
6295 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
6296 (check-inhibit-asm): New canned sequence, replaces ...
6297 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
6298 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
6299 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
6300 (CFLAGS-rtld): Variable removed.
6301
6302 2008-01-24 Roland McGrath <roland@redhat.com>
6303
6304 * configure.in: Let configure fragments set base_os.
6305 * configure: Regenerated.
6306
6307 2008-01-22 Ulrich Drepper <drepper@redhat.com>
6308
6309 * po/ko.po: Update from translation team.
6310
6311 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
6312
6313 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
6314
6315 2008-01-12 Andreas Jaeger <aj@suse.de>
6316
6317 [BZ #5040]
6318 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
6319 Add EPOLLRDHUP.
6320
6321 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
6322
6323 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
6324 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
6325 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
6326
6327 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
6328
6329 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
6330 * elf/dl-close.c (_dl_close): Check for it.
6331 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
6332 (_dl_allocate_static_tls): Likewise.
6333 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
6334 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
6335 to it.
6336 * elf/tst-tls16.c: New file.
6337 * elf/tst-tlsmod16a.c: New file.
6338 * elf/tst-tlsmod16b.c: New file.
6339 * elf/Makefile: Add rules to build and run tst-tls16.
6340
6341 2008-01-16 Ulrich Drepper <drepper@redhat.com>
6342
6343 [BZ #5628]
6344 * bits/shm.h: Fix comment describing shmid_ds.
6345 * sysdeps/gnu/bits/shm.h: Likewise.
6346 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
6347 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
6348 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6349 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6350 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6351 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6352 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6353 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
6354 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
6355
6356 [BZ #5607]
6357 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
6358 prototypes.
6359 * conform/data/limits.h-data: Adjust limits changed in v6 and add
6360 additional suffixes.
6361 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
6362 Add optional functions mq_timedreceive and mq_timedsend.
6363 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
6364 * conform/data/pthread.h-data: Fix prototype of
6365 pthread_condattr_setclock. pthread_sigmask is not required in v6.
6366 * conform/data/semaphore.h-data: Allow time.h definitions.
6367 * conform/data/signal.h-data: Likewise.
6368 * conform/data/stdio.h-data: getw and putw are not required in v6.
6369 * conform/data/stdlib.h-data: Change setstate prototype.
6370 * conform/data/string.h-data: Fix strerror_r prototype.
6371 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
6372 * conform/data/unistd.h-data: pthread_atfork not required in v6.
6373 Fix readlink prototype.
6374 * conform/data/netinet/in.h-data: Add const to in6addr_any and
6375 in6addr_loopback.
6376 * inet/netinet/in.h: Cleanup namespace.
6377 * posix/regex.h: Likewise.
6378 * resolv/netdb.h: Likewise.
6379 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
6380 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6381 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6382 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
6383 of names of in in6_addr.
6384 (default_precedence): Likewise.
6385 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
6386 NULL definition.
6387
6388 2008-01-15 Ulrich Drepper <drepper@redhat.com>
6389
6390 * conform/data/fmtmsg.h-data: Add missing allows.
6391 * conform/data/ftw.h-data: Likewise.
6392 * conform/data/inttypes.h-data: Likewise.
6393 * conform/data/math.h-data: Likewise.
6394 * conform/data/signal.h-data: Likewise.
6395 * conform/data/net/if.h-data: Likewise.
6396 * conform/data/netinet/in.h-data: Likewise.
6397 * conform/data/sys/socket.h-data: Likewise.
6398
6399 [BZ #5614]
6400 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
6401 (__strtok_r): Simplify.
6402 * string/tester.c (test_strtok_r): Add test case for futile search
6403 with single-character seach string.
6404
6405 2008-01-12 Ulrich Drepper <drepper@redhat.com>
6406
6407 * po/ko.po: Update from translation team.
6408
6409 2008-01-11 Andreas Jaeger <aj@suse.de>
6410
6411 [BZ #5600]
6412 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
6413 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
6414 kernel header.
6415
6416 2008-01-10 Ulrich Drepper <drepper@redhat.com>
6417
6418 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
6419 native interface lookup in all the relevant places.
6420
6421 2008-01-10 Jakub Jelinek <jakub@redhat.com>
6422 Ulrich Drepper <drepper@redhat.com>
6423
6424 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
6425 field. Use sockaddr_in6 for source_addr.
6426 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
6427 (match_prefix): Likewise.
6428 (get_label): Likewise.
6429 (get_precedence): Likewise.
6430 (rfc3484_sort): Change to use indirect access to results array.
6431 Adjust to use of sockaddr_in6. Replace service_order test with
6432 simple index comparison.
6433 (getaddrinfo): Define order array. Initialize it. Don't initialize
6434 service_order field. Adjust qsort_t calls. Access sorted result
6435 array indirectly through order array.
6436 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
6437 * posix/tst-rfc3484-2.c: Likewise.
6438 * posix/tst-rfc3484-3.c: Likewise.
6439
6440 2008-01-09 Ulrich Drepper <drepper@redhat.com>
6441
6442 [BZ #5541]
6443 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
6444 pollfd structures.
6445 Patch by André Cruz.
6446
6447 [BZ #5545]
6448 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
6449 (clnt_spcreateerror): Likewise.
6450
6451 [BZ #5553]
6452 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
6453 (public_mEMALIGn): Likewise.
6454 Patch mostly by Daniel Jacobowitz.
6455
6456 2008-01-09 Jakub Jelinek <jakub@redhat.com>
6457
6458 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
6459 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
6460 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
6461 * stdlib/tst-makecontext2.c: New test.
6462
6463 2008-01-08 Jakub Jelinek <jakub@redhat.com>
6464
6465 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
6466 defined.
6467 (REINIT_PARAMS): Likewise. Undefine before end of file.
6468 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
6469 transliteration hooks and REINIT_PARAMS afterwards.
6470 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
6471 status.
6472 (REINIT_PARAMS): Define.
6473 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
6474 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
6475 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
6476 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
6477 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
6478 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
6479 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
6480 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
6481 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
6482 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
6483 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
6484 * iconvdata/tst-iconv7.c: New test.
6485
6486 2008-01-07 Ulrich Drepper <drepper@redhat.com>
6487
6488 * libio/stdio.h (vscanf): Fix definition for loser compilers.
6489
6490 2008-01-05 Jakub Jelinek <jakub@redhat.com>
6491
6492 [BZ #5112]
6493 * nscd/connections.c (restart): Fix condition.
6494
6495 2008-01-03 Jakub Jelinek <jakub@redhat.com>
6496
6497 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
6498 __ctype_toupper_loc): Add __THROW.
6499
6500 2008-01-02 Ulrich Drepper <drepper@redhat.com>
6501
6502 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
6503 recognition of interface family.
6504
6505 * posix/getconf.c: Update copyright year.
6506 * nss/getent.c: Likewise.
6507 * iconv/iconvconfig.c: Likewise.
6508 * iconv/iconv_prog.c: Likewise.
6509 * elf/ldconfig.c: Likewise.
6510 * catgets/gencat.c: Likewise.
6511 * csu/version.c: Likewise.
6512 * elf/ldd.bash.in: Likewise.
6513 * elf/sprof.c (print_version): Likewise.
6514 * locale/programs/locale.c: Likewise.
6515 * locale/programs/localedef.c: Likewise.
6516 * nscd/nscd.c (print_version): Likewise.
6517 * debug/xtrace.sh: Likewise.
6518 * malloc/memusage.sh: Likewise.
6519 * malloc/mtrace.pl: Likewise.
6520 * debug/catchsegv.sh: Likewise.
6521
6522 2007-12-26 Ulrich Drepper <drepper@redhat.com>
6523
6524 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
6525 second lookup.
6526
6527 2007-12-23 Ulrich Drepper <drepper@redhat.com>
6528
6529 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
6530 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6531
6532 2007-12-17 Roland McGrath <roland@redhat.com>
6533
6534 * inet/ether_line.c (ether_line): Remove unused variable.
6535
6536 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
6537
6538 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
6539 and winp.
6540 * login/openpty.c (openpty): Likewise.
6541 * login/pty.h (openpty, forkpty): Likewise.
6542 * manual/terminal.texi (openpty, forkpty): Likewise.
6543
6544 2007-12-17 Ulrich Drepper <drepper@redhat.com>
6545
6546 * malloc/malloc.c (public_cALLOc): For arenas other than
6547 main_arena, count all bytes inside the mprotect_size range of the
6548 heap as uninitialized.
6549
6550 2007-12-16 Ulrich Drepper <drepper@redhat.com>
6551
6552 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
6553 executable stacks.
6554
6555 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
6556 mTRIm for all of them.
6557 (mTRIm): Additionally iterate over all free blocks and use madvise
6558 to free memory for all those blocks which contain at least one
6559 memory page.
6560 * malloc/tst-trim1.c: New file.
6561 * malloc/Makefile (tests): Add tst-trim1.
6562
6563 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
6564
6565 2007-12-14 Ulrich Drepper <drepper@redhat.com>
6566
6567 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
6568 First cast argument to long
6569 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
6570 Return long.
6571 (__vdso_clock_gettime): Likewise.
6572 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
6573 return long.
6574
6575 2007-12-13 Ulrich Drepper <drepper@redhat.com>
6576
6577 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
6578 * locale/nl_langinfo_l.c: Real implementation, copied from
6579 nl_langinfo.c.
6580 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
6581
6582 2007-12-01 Jim Meyering <meyering@redhat.com>
6583
6584 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6585 that would inhibit utf8-optimization of a regexp containing line-
6586 or buffer-anchors, e.g., `^', `$'.
6587
6588 2007-12-12 Ulrich Drepper <drepper@redhat.com>
6589
6590 * time/bug-getdate1.c (do_test): Don't use century values which
6591 aren't valid on 32-bit systems.
6592
6593 2007-12-12 Jakub Jelinek <jakub@redhat.com>
6594
6595 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
6596 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
6597 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
6598 __strcat_g, __strncat_g): Add __asm__.
6599
6600 2007-12-12 Ulrich Drepper <drepper@redhat.com>
6601
6602 [BZ #5477]
6603 * io/fchmodat.c: Fix typo in stub_warning use.
6604 Patch by Petr Salinger.
6605
6606 2007-12-11 Ulrich Drepper <drepper@redhat.com>
6607
6608 * iconvdata/hp-thai8.c: New file.
6609 * iconvdata/Makefile: Add rules for hp-thai8.c.
6610 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
6611 * iconvdata/gconv-modules: Likewise.
6612
6613 [BZ #5464]
6614 * iconvdata/hp-greek8.c: New file.
6615 * iconvdata/Makefile: Add rules for hp-greek8.c.
6616 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
6617 * iconvdata/gconv-modules: Likewise.
6618
6619 [BZ #5463]
6620 * iconvdata/hp-turkish8.c: New file.
6621 * iconvdata/Makefile: Add rules for hp-turkish8.c.
6622 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
6623 * iconvdata/gconv-modules: Likewise.
6624
6625 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
6626 (shrink_heap): ... this new function.
6627 (heap_trim): Call shrink_heap instead of grow_heap.
6628
6629 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
6630 case don't call alloc_perturb.
6631
6632 2007-12-10 Ulrich Drepper <drepper@redhat.com>
6633
6634 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
6635 possible.
6636 * sysdeps/unix/sysv/linux/kernel-features.h
6637 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
6638 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
6639
6640 2007-12-08 Ulrich Drepper <drepper@redhat.com>
6641
6642 [BZ #5424]
6643 * stdio-common/vfprintf.c: Do not overflow when adding to done.
6644 * stdio-common/Makefile (tests): Add bug22.
6645 * stdio-common/bug22.c: New file.
6646
6647 [BZ #5451]
6648 * time/getdate.c: Fix filling in default values.
6649 * time/bug-getdate1.c: New file.
6650 * time/Makefile: Add rules to build and run bug-getdate1.
6651
6652 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
6653 * iconvdata/ebcdic-es.c: Likewise.
6654 * iconvdata/ebcdic-es-a.c: Likewise.
6655 * iconvdata/ebcdic-uk.c: Likewise.
6656 * iconvdata/iso8859-16.c: Likewise.
6657 * iconvdata/viscii.c: Likewise.
6658 * iconvdata/iso8859-9e.c: Likewise.
6659 * iconvdata/Makefile: Adjust appropriately.
6660
6661 [BZ #5428]
6662 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
6663 __need_wint_t.
6664
6665 2007-12-07 Ulrich Drepper <drepper@redhat.com>
6666
6667 [BZ #5427]
6668 * iconvdata/hp-roman9.c: New file.
6669 * iconvdata/Makefile: Add rules for hp-roman9.c.
6670 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
6671 * iconvdata/gconv-modules: Likewise.
6672
6673 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
6674 * iconvdata/Makefile: Adjust appropriately.
6675
6676 [BZ #5441]
6677 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
6678 structure, it's allocated with alloca.
6679 * stdio-common/Makefile (tests): Add bug21.
6680 * stdio-common/bug21.c: New file.
6681
6682 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
6683
6684 [BZ #5452]
6685 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
6686 keyword for gcc's braced-groups.
6687
6688 2007-12-07 Ulrich Drepper <drepper@redhat.com>
6689
6690 [BZ #5454]
6691 * inet/ether_line.c: Strip hostname of whitespaces.
6692 * inet/Makefile (tests): Add tst-ether_line.
6693 * inet/tst-ether_line.c: New file.
6694
6695 2007-12-03 Ulrich Drepper <drepper@redhat.com>
6696
6697 [BZ #5439]
6698 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
6699
6700 [BZ #5435]
6701 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
6702
6703 * stdlib/tst-setcontext.c: Catch the case where the links gets
6704 messed up and we do not reach main again.
6705
6706 * po/ca.po: Update from translation team.
6707
6708 2007-11-26 Ulrich Drepper <drepper@redhat.com>
6709
6710 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
6711 * posix/regex.h (REG_ENOSYS): Likewise.
6712 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
6713
6714 2007-11-25 Ulrich Drepper <drepper@redhat.com>
6715
6716 * nscd/nscd.h (MAX_STACK_USE): Define.
6717 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
6718 (gc): Initialize stack_used based on allocation in prune_cache.
6719 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
6720 Clear array before use.
6721
6722 * nscd/aicache.c (addhstaiX): Update statistics counter in case
6723 memory allocation failed.
6724 * nscd/hstcache.c (cache_addhst): Likewise.
6725 * nscd/grpcache.c (cache_addgr): Likewise.
6726 * nscd/servicescache.c (cache_addserv): Likewise.
6727 * nscd/pwdcache.c (cache_addpw): Likewise.
6728 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6729
6730 2007-11-23 Ulrich Drepper <drepper@redhat.com>
6731
6732 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
6733 and creat system calls.
6734
6735 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
6736
6737 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
6738
6739 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
6740 Add netiucv/iucv.h.
6741 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
6742 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
6743 protocol.
6744 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
6745 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
6746 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
6747
6748 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
6749
6750 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
6751 strncat): Define as macros to avoid compile errors.
6752
6753 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
6754 creat entries.
6755
6756 2007-11-22 Ulrich Drepper <drepper@redhat.com>
6757
6758 [BZ #5382]
6759 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
6760 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
6761 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
6762 overflow it.
6763 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6764
6765 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
6766 Return zero in case the thread library is not NPTL.
6767
6768 [BZ #5375]
6769 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
6770 initializing interface list.
6771
6772 [BZ #5378]
6773 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
6774 use result of nss_getgrgid_r if nothing was found. For other
6775 error return with a failure.
6776 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6777
6778 * locale/programs/ld-collate.c (collate_read): Fix loop to match
6779 macro name.
6780
6781 2007-11-19 Ulrich Drepper <drepper@redhat.com>
6782
6783 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
6784 (get_scope): For IPv4 scope, use scopes table.
6785 (fini): Free scopes table if necessary.
6786 (free_scopelist): New function.
6787 (scopecmp): New function.
6788 (gaiconf_init): Also handle scopev4 entries.
6789 * posix/tst-rfc3484.c (do_test): Initialize scopes.
6790 * posix/tst-rfc3484-2.c (do_test): Likewise.
6791 * posix/gai.conf: Document scopev4 defaults.
6792 * posix/Makefile (tests): Add tst-rfc3484-3.
6793 * posix/tst-rfc3484-3.c: New file.
6794
6795 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
6796 Teredo tunnels.
6797 * posix/gai.conf: Update for current default tables.
6798
6799 2007-11-19 Ulrich Drepper <drepper@redhat.com>
6800
6801 * po/tr.po: Update from translation team.
6802
6803 2007-11-18 Roland McGrath <roland@frob.com>
6804
6805 * manual/arith.texi (Remainder Functions): Spelling fix.
6806 From Shaun Silk <genix@mysoul.com.au>.
6807
6808 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
6809
6810 2007-11-17 Ulrich Drepper <drepper@redhat.com>
6811
6812 * po/zh_CN.po: Update from translation team.
6813
6814 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6815 Add sys/signalfd.h and sys/eventfd.h.
6816
6817 2007-11-15 Bruno Haible <bruno@clisp.org>
6818
6819 [BZ #5346]
6820 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
6821 union.
6822 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
6823 (DCIGETTEXT): Change the allocation of the 'search' variable so that
6824 it needs only fixed stack space. Delay the initialization of
6825 msgid_len until it is needed.
6826
6827 2007-11-15 Andreas Jaeger <aj@suse.de>
6828
6829 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
6830 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
6831
6832 2007-11-15 Ulrich Drepper <drepper@redhat.com>
6833
6834 * po/ko.po: Update from translation team.
6835
6836 2007-11-14 Ulrich Drepper <drepper@redhat.com>
6837
6838 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
6839 significantly. The device type is also part of the ifinfomsg data.
6840
6841 * po/sv.po: Update from translation team.
6842 * po/nl.po: Likewise.
6843
6844 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
6845 to wake up in 24 hours.
6846
6847 * nscd/gai.c (__ioctl): Define. Include check_native.c.
6848
6849 2007-11-13 Ulrich Drepper <drepper@redhat.com>
6850
6851 * po/cs.po: Update from translation team.
6852 * po/pl.po: Likewise.
6853
6854 * include/ifaddrs.h: Remove in6ai_temporary.
6855 (struct in6addrinfo): Add index element.
6856 Declare __check_native.
6857 * inet/Makefile (aux): Add check_native.
6858 * sysdeps/unix/sysv/linux/check_native.c: New file.
6859 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
6860 IFA_F_TEMPORARY. Pass back ifa_index.
6861 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
6862 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
6863 call __check_native if necessary.
6864 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
6865 to sort addresses. Pass information about the results.
6866 * posix/tst-rfc3484.c: Adjust for addition of index field and change
6867 of rfc3484_sort interface.
6868 * posix/tst-rfc3484-2.c: Likewise.
6869
6870 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
6871 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
6872 for _quicksort.
6873 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
6874 (qsort_r): Renamed from qsort. Take additional parameter and pass it
6875 on as third parameter to compare function and _quicksort.
6876 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
6877 to the compare function.
6878 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
6879 * Versions.def: Add GLIBC_2.8 for libc.
6880
6881 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
6882 * posix/tst-rfc3484-2.c: Likewise.
6883
6884 * include/kernel-features.h: Moved to...
6885 * sysdeps/mach/hurd/kernel-features.h: ...here.
6886
6887 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
6888
6889 * sysdeps/i386/i586/memcpy_chk.S: New file.
6890 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
6891 * sysdeps/i386/i586/memset_chk.S: Likewise.
6892
6893 2007-11-12 Ulrich Drepper <drepper@redhat.com>
6894
6895 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
6896 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
6897 list of interfaces. Also store prefix length.
6898 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
6899 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
6900 prefix if source and destination address are in the same subnet.
6901 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
6902 Always look for matching record in in6ai list.
6903 Correct source_addr_len value for IPv6->IPv4 converted records.
6904
6905 2007-11-11 Roland McGrath <roland@frob.com>
6906
6907 * include/kernel-features.h: New file.
6908
6909 2007-11-10 Ulrich Drepper <drepper@redhat.com>
6910
6911 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
6912 complications for 64-bit platforms.
6913
6914 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
6915 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
6916 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
6917 open64_2.
6918 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
6919 entries.
6920 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6921 * sysdeps/wordsize-64/alphasort.c: New file.
6922 * sysdeps/wordsize-64/alphasort64.c: New file.
6923 * sysdeps/wordsize-64/fseeko.c: New file.
6924 * sysdeps/wordsize-64/fseeko64.c: New file.
6925 * sysdeps/wordsize-64/ftello.c: New file.
6926 * sysdeps/wordsize-64/ftello64.c: New file.
6927 * sysdeps/wordsize-64/ftw.c: New file.
6928 * sysdeps/wordsize-64/ftw64.c: New file.
6929 * sysdeps/wordsize-64/iofgetpos.c: New file.
6930 * sysdeps/wordsize-64/iofgetpos64.c: New file.
6931 * sysdeps/wordsize-64/iofopen.c: New file.
6932 * sysdeps/wordsize-64/iofopen64.c: New file.
6933 * sysdeps/wordsize-64/iofsetpos.c: New file.
6934 * sysdeps/wordsize-64/iofsetpos64.c: New file.
6935 * sysdeps/wordsize-64/lockf.c: New file.
6936 * sysdeps/wordsize-64/lockf64.c: New file.
6937 * sysdeps/wordsize-64/mkostemp.c: New file.
6938 * sysdeps/wordsize-64/mkostemp64.c: New file.
6939 * sysdeps/wordsize-64/mkstemp.c: New file.
6940 * sysdeps/wordsize-64/mkstemp64.c: New file.
6941 * sysdeps/wordsize-64/scandir.c: New file.
6942 * sysdeps/wordsize-64/scandir64.c: New file.
6943 * sysdeps/wordsize-64/tmpfile.c: New file.
6944 * sysdeps/wordsize-64/tmpfile64.c: New file.
6945 * sysdeps/wordsize-64/versionsort.c: New file.
6946 * sysdeps/wordsize-64/versionsort64.c: New file.
6947 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
6948 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
6949 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
6950 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
6951 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
6952 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
6953 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
6954 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
6955 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
6956 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
6957 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
6958 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
6959
6960 * crypt/sha256-crypt.c: Fix a comment.
6961 * crypt/sha512-crypt.c: Likewise.
6962
6963 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
6964
6965 * sysdeps/x86_64/memset.S: Add sfence after movnti.
6966
6967 2007-11-07 Ulrich Drepper <drepper@redhat.com>
6968
6969 [BZ #5277]
6970 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
6971 because output buffer is too small break, don't loop.
6972 * iconvdata/Makefile (tests): Add bug-iconv6.
6973 * iconvdata/bug-iconv6.c: New file.
6974
6975 2007-11-06 Ulrich Drepper <drepper@redhat.com>
6976
6977 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
6978 with size_t type.
6979 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
6980 size_t. Add casts where needed.
6981
6982 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
6983 old headers, don't call avc_has_perm if we don't have the
6984 permission information.
6985
6986 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
6987
6988 * elf/rtld.c (dl_main): Use the page size to find the map start.
6989
6990 2007-11-05 Ulrich Drepper <drepper@redhat.com>
6991
6992 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
6993 Patch by Szymon Siwek <sls@poczta.wp.pl>.
6994
6995 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
6996 when the lookup call failed.
6997
6998 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
6999 Add prune_cond and wakeup_time.
7000 (CACHE_PRUNE_INTERNAL): Define.
7001 Update declarations of prune_cache and setup_thread.
7002 * nscd/connections.c (dbs): Update initializers.
7003 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
7004 (nscd_init): Default number of threads is now 4.
7005 (invalidate_cache): Take lock before calling prune_cache.
7006 (handle_request): If SELinux forbids the request, say so.
7007 (readylist_cond): Use static initializer.
7008 (nscd_run_prune): New function. Used only by pruning threads.
7009 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
7010 here.
7011 (fd_ready): Update nscd_run reference.
7012 (start_threads): No need to initialize readylist_cond.
7013 Start pruning threads separately.
7014 * nscd/nscd_setup_thread.c: Change return value type to int and always
7015 return 0.
7016 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
7017 to int and return nonzero value if we can use the TID address hack.
7018 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
7019 the database is later than the new entry's timeout, update the
7020 wakeup time and wake the cleanup thread.
7021 (prune_cache): Return seconds the next entry in the database is still
7022 valid. Remove locking for pruning here.
7023 * nscd/nscd.conf: Document default number of threads.
7024
7025 2007-10-31 Ulrich Drepper <drepper@redhat.com>
7026
7027 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
7028 stack is properly aligned for the target function.
7029 Correct unwind info.
7030
7031 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
7032 when using auditing libraries.
7033
7034 2007-10-29 Ulrich Drepper <drepper@redhat.com>
7035
7036 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
7037 _nss_dns_getnetbyaddr2_r.
7038 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
7039 extra parameter to getanswer_r.
7040 (_nss_dns_getnetbyaddr_r): Now a wrapper around
7041 _nss_dns_getnetbyaddr2_r.
7042
7043 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
7044 gethstbynm3_r.
7045 * nscd/gethstbynm2_r.c: Remove.
7046 * nscd/gethstbynm3_r.c: New file.
7047 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
7048 __gethostbyaddr_r.
7049 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
7050 __gethostbyaddr_r compatibility wrapper.
7051 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
7052 determining timeout of entry.
7053 (lookup): Take new parameter and pass it to __gethostbyname3_r and
7054 __gethostbyaddr2_r.
7055 (addhstbyX): Pass reference to variable for TTL to lookup and
7056 cache_addhst.
7057 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
7058 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
7059 and __nss_next2. Remove __nss_services_lookup.
7060 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
7061 Add compat wrapper.
7062 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
7063 __nss_next2.
7064 * nss/getXXent_r.c: Likewise.
7065 * nss/getnssent_r.c: Likewise.
7066 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
7067 does not exist in module, try the optional second name.
7068 (__nss_next2): New function.
7069 (__nss_next): Now wrapper around __nss_next2.
7070 * nss/nsswitch.h: Adjust __nss_lookup prototype.
7071 Declare __nss_next2.
7072 Adjust definition of db_lookup_function type.
7073 * nss/service-lookup.c: Define NO_COMPAT.
7074 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
7075 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
7076 * inet/ether_ntoh.c: Likewise.
7077 * sunrpc/netname.c: Likewise.
7078 * sunrpc/publickey.c: Likewise.
7079 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
7080 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
7081 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7082 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7083 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7084
7085 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7086
7087 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
7088
7089 2007-10-28 Ulrich Drepper <drepper@redhat.com>
7090
7091 [BZ #5204]
7092 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7093 * crypt/sha512c-test.c: Likewise.
7094
7095 [BZ #5225]
7096 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7097 to keep track of end of %[ format string element.
7098 * stdio-common/Makefile (tests): Add bug20.
7099 * stdio-common/bug20.c: New file.
7100
7101 [BZ #5222]
7102 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7103 path elements in counting mode.
7104
7105 2007-10-27 Andreas Jaeger <aj@suse.de>
7106
7107 [BZ #5040]
7108 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7109
7110 [BZ #3112]
7111 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7112 (__cleanup): Free shared library when exiting.
7113 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7114 (__cleanup): Free shared library when exiting.
7115
7116 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
7117
7118 [BZ #2549]
7119 * math/libm-test.inc (check_float_internal): Support
7120 denormalized return.
7121
7122 2007-10-23 Andreas Jaeger <aj@suse.de>
7123
7124 [BZ #5208]
7125 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7126 __LONG_LONG_PAIR to handle little endian byte order.
7127 Suggested by abhishekrai@google.com
7128
7129 2007-10-27 Ulrich Drepper <drepper@redhat.com>
7130
7131 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7132
7133 2007-10-26 Ulrich Drepper <drepper@redhat.com>
7134
7135 * nscd/cache.c (prune_cache): Move test for modified file outside
7136 of locking.
7137
7138 2007-10-21 Andreas Jaeger <aj@suse.de>
7139
7140 * manual/texinfo.tex: Update to latest version.
7141
7142 * manual/sysinfo.texi (System Parameters): Fix Formatting.
7143
7144 * manual/arith.texi (Status bit operations): Fix formatting.
7145
7146 * manual/errno.texi (Error Messages): Fix formatting.
7147
7148 * manual/sysinfo.texi (System Parameters): Fix formatting.
7149
7150 * manual/libc.texinfo: Update VERSION and UPDATED.
7151
7152 2007-10-19 Roland McGrath <roland@redhat.com>
7153
7154 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7155
7156 2007-10-06 David S. Miller <davem@davemloft.net>
7157
7158 * configure.in: Add sparcv9v2 and sparc64v2.
7159 * scripts/config.sub: Likewise.
7160 * configure: Regenerate.
7161 * elf/elf.h (HWCAP_SPARC_N2): New.
7162 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7163 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7164 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7165 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
7166 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
7167 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
7168 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
7169
7170 2007-10-18 Ulrich Drepper <drepper@redhat.com>
7171
7172 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
7173 even if the poll result indicates there is data to read.
7174 Patch by Jeff Moyer <jmoyer@redhat.com>.
7175
7176 2007-10-18 Roland McGrath <roland@redhat.com>
7177
7178 * elf/elf.h (NT_PPC_VMX): New macro.
7179
7180 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7181
7182 * version.h (VERSION): Set to 2.7.90.
7183
7184 2007-10-17 Jakub Jelinek <jakub@redhat.com>
7185
7186 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
7187 weak_alias.
7188
7189 2007-10-17 Roland McGrath <roland@frob.com>
7190
7191 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
7192 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
7193
7194 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7195
7196 * version.h (VERSION): Bump to 2.7.
7197 * include/features.h (__GLIBC_MINOR__): Bump to 7.
7198
7199 [BZ #5186]
7200 * time/tzset.c (__tz_convert): Don't force testing for a change of
7201 TZ if not called from localtime. But then also see whether the
7202 file changed, in case __use_tzfile is set.
7203
7204 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
7205 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7206 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7207 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7208 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7209 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7210 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7211 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7212
7213 2007-10-17 Jakub Jelinek <jakub@redhat.com>
7214
7215 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
7216 and admin selects to be able to replace the gai.conf file, lock
7217 data structures around the qsort call.
7218
7219 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7220
7221 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
7222 new memset.
7223 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
7224 too high for the improvements. Implement bzero unconditionally for
7225 use in libc.
7226
7227 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7228 Jakub Jelinek <jakub@redhat.com>
7229
7230 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
7231 even when time_t is 32-bit.
7232 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
7233 timezone data read by __tzfile_default. Ensure __tzname[0] is
7234 always set after the search.
7235
7236 2007-10-16 Ulrich Drepper <drepper@redhat.com>
7237
7238 * time/tzfile.c (__tzfile_read): Help the compiler recognize
7239 unreachable code on 32-bit machines.
7240
7241 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7242
7243 [BZ #5184]
7244 * time/strftime_l.c: Include stdbool.h.
7245 (my_strftime): New wrapper, old function renamed to...
7246 (__strftime_internal): ... new function. Add tzset_called
7247 argument, pass it down to recursive calls, don't call tzset ()
7248 if already true, set to true after call to tzset ().
7249
7250 2007-10-16 Ulrich Drepper <drepper@redhat.com>
7251
7252 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7253 into account when copying TZ string.
7254
7255 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7256
7257 * time/tzfile.c (__tzfile_compute): For use_last case set i to
7258 num_transition rather than num_transitions - 1.
7259
7260 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7261
7262 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7263 PIC indirect jump.
7264
7265 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
7266 a local label rather than HIDDEN_JUMPTARGET.
7267
7268 2007-10-15 Ulrich Drepper <drepper@redhat.com>
7269
7270 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
7271 (init_cacheinfo): Initialize it.
7272 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
7273 Always define bzero.
7274 Remove non-glibc code.
7275 * sysdeps/x86_64/bzero.S: Make an empty file.
7276
7277 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
7278
7279 * sysdeps/x86_64/cacheinfo.c
7280 (__x86_64_preferred_memory_instruction): New.
7281 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7282
7283 * sysdeps/x86_64/memset.S: Rewrite.
7284
7285 2007-10-15 Roland McGrath <roland@redhat.com>
7286
7287 * po/libc.pot: Regenerated.
7288
7289 2007-10-15 Ulrich Drepper <drepper@redhat.com>
7290
7291 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
7292 pointers.
7293
7294 [BZ #3425]
7295 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
7296 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
7297 address record to T_A/T_AAAA requests.
7298
7299 2007-10-14 Ulrich Drepper <drepper@redhat.com>
7300
7301 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
7302
7303 * posix/glob.c: Add some branch prediction throughout.
7304
7305 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
7306 read from nscd.
7307
7308 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
7309 service_order.
7310 (rfc3484_sort): Make sure that even if qsort doesn't support
7311 stable sorting out sorting here is stable by comparing service_order.
7312 (getaddrinfo): Initialize service_order.
7313 * posix/tst-rfc3484.c (do_test): Adjust for addition of
7314 service_order field to sorting structure.
7315 * posix/tst-rfc3484-2.c (do_test): Likewise.
7316
7317 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
7318 * time/tzset.c (tzset_internal): Break TZ string parsing out into
7319 __tzset_parse_tz and updating of daylight, timezone, tzname into
7320 update_vars.
7321 (__tz_compute): Renamed from tz_compute. Take additional parameters.
7322 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
7323 happens in __tz_compute.
7324 * time/tzfile.c (__tzfile_read): Also read TZ string.
7325 (find_transition): Fold into __tzfile_compute.
7326 (__tzfile_compute): For times beyond the last transition try to
7327 use the TZ string.
7328 * timezone/tst-timezone.c: Information in daylight and tzname does
7329 change for Asia/Tokyo timezone with more concrete information.
7330 Remove the test.
7331
7332 * include/stdio.h: Add libc_hidden_proto for ftello.
7333 * libio/ftello.c: Add libc_hidden_def.
7334
7335 [BZ #1140]
7336 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
7337 on the specified time and not the last entries in the file. Move
7338 code to determine tzname[] to...
7339 (find_transition): ...here. Add ugly guess for times before the
7340 first transition.
7341
7342 2007-10-13 Ulrich Drepper <drepper@redhat.com>
7343
7344 [BZ #3195]
7345 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
7346 no entry.
7347 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
7348 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7349 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7350 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7351
7352 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
7353 read mechanism when there are no group members and avoid no-op
7354 read syscall in this case.
7355
7356 [BZ #3242]
7357 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
7358 (__readall): If reading failed due to EAGAIN error wait a bit
7359 and possibly try again.
7360 (__readvall): Likewise.
7361
7362 2007-10-13 Bruno Haible <bruno@clisp.org>
7363
7364 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
7365 when we cannot recode the message.
7366
7367 2007-10-13 Ulrich Drepper <drepper@redhat.com>
7368
7369 [BZ #4359]
7370 * libio/__freading.c (__freading): Don't return true for
7371 write-only streams. For read/write streams, check whether we
7372 performed a read operation already.
7373 * libio/Makefile (tests): Add tst-ext2.
7374 * libio/tst-ext2.c: New file.
7375
7376 2007-10-12 Ulrich Drepper <drepper@redhat.com>
7377
7378 * locale/programs/repertoire.c (repertoire_read): Always free
7379 memory for repertoire file name [Coverity CID 270].
7380
7381 * elf/cache.c (save_aux_cache): Free memory allocated for
7382 temporary file name [Coverity CID 267].
7383
7384 2007-10-12 Jakub Jelinek <jakub@redhat.com>
7385
7386 * misc/Makefile (headers): Add bits/error.h.
7387
7388 2007-10-12 Ulrich Drepper <drepper@redhat.com>
7389
7390 * posix/fnmatch_loop.c: Take rule index returned as part of
7391 findidx return value into account when accessing weights.
7392 * posix/regcomp.c: Likewise.
7393 * posix/regexec.c: Likewise.
7394
7395 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
7396 (skip_to): Fix problems with parameter of elifdef/elifndef.
7397
7398 2007-10-11 Ulrich Drepper <drepper@redhat.com>
7399
7400 * iconv/gconv_simple.c: Add some branch prediction.
7401
7402 2007-10-12 Jakub Jelinek <jakub@redhat.com>
7403
7404 * locale/programs/ld-collate.c (collate_read): If ignore_content
7405 and nowtok is tok_define, eat any tok_eol tokens.
7406
7407 2007-10-11 Jakub Jelinek <jakub@redhat.com>
7408
7409 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
7410 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
7411
7412 * inet/netinet/in.h: Don't include bits/socket.h.
7413 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
7414 macro.
7415 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7416
7417 2007-10-10 Ulrich Drepper <drepper@redhat.com>
7418
7419 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
7420 and tok_elifndef.
7421 * locale/programs/locfile-kw.gperf: Likewise.
7422 * locale/programs/ld-collate.c: Implement primitive preprocessor.
7423
7424 2007-10-10 Jakub Jelinek <jakub@redhat.com>
7425
7426 * stdio-common/printf-parse.h: Include string.h and wchar.h.
7427 (__find_specwc): Change into __extern_always_inline function.
7428 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
7429 (__parse_one_specmb): Remove ps argument.
7430 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
7431 Adjust __find_specmb and __parse_one_specmb callers.
7432 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
7433 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
7434 Removed.
7435 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
7436 caller.
7437
7438 2007-10-09 Ulrich Drepper <drepper@redhat.com>
7439
7440 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
7441 with some Pentium Ds.
7442
7443 2007-10-08 Ulrich Drepper <drepper@redhat.com>
7444
7445 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
7446 __read not read.
7447 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
7448 __write not write.
7449
7450 2007-10-07 Ulrich Drepper <drepper@redhat.com>
7451
7452 [BZ #181]
7453 * locale/C-time.c: Set week_1stday data to 19971201.
7454 * locale/programs/ld-time.c (time_finish): Default for
7455 first_workday is Monday.
7456
7457 [BZ #2633]
7458 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
7459
7460 [BZ #5103]
7461 * posix/glob.c (glob): Recognize patterns starting \/.
7462 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
7463 (main): Add test for pattern starting \/.
7464
7465 * misc/error.h: Use __const instead of const.
7466 * misc/bits/error.h: Likewise.
7467
7468 2007-10-07 Andreas Jaeger <aj@suse.de>
7469
7470 * include/bits/error.h: New file.
7471
7472 * misc/bits/error.h (error_at_line): Fix prototype.
7473
7474 2007-10-06 Ulrich Drepper <drepper@redhat.com>
7475
7476 [BZ #3924]
7477 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
7478 more little bugs in creating the stack frame when pltexit has to
7479 be called.
7480
7481 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
7482 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
7483
7484 [BZ #4407]
7485 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
7486 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7487 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7488 * math/libm-test.inc: Add test for this case.
7489
7490 [BZ #5010]
7491 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
7492 (svc_register): Initialize sc_mapped. Set to TRUE if call to
7493 map service succeeded.
7494 (svc_is_mapped): New function.
7495 (svc_unregister): Use it before trying to unmap service.
7496
7497 2007-10-05 Ulrich Drepper <drepper@redhat.com>
7498
7499 * timezone/zic.c: Update from tzcode2007h.
7500
7501 [BZ #5063]
7502 * timezone/africa: Update from tzdata2007h.
7503 * timezone/antarctica: Likewise.
7504 * timezone/asia: Likewise.
7505 * timezone/australasia: Likewise.
7506 * timezone/europe: Likewise.
7507 * timezone/leapseconds: Likewise.
7508 * timezone/northamerica: Likewise.
7509 * timezone/southamerica: Likewise.
7510 * timzeone/zone.tab: Likewise.
7511
7512 [BZ #5104]
7513 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
7514
7515 [BZ #5113]
7516 * string/bits/string2.h (__strdup): Cast parameters to calloc to
7517 avoid warning with -Wconversion.
7518 (__strndup): Likewise.
7519 Half the patch by Christian Iseli <christian.iseli@licr.org>.
7520
7521 [BZ #5112]
7522 * nscd/connections.c (restart): Don't resync if database is
7523 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
7524
7525 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
7526 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
7527
7528 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
7529 evetnfd_read, eventfd_write.
7530 * sysdeps/unix/sysv/linux/eventfd.c: New file.
7531 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
7532 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
7533 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
7534 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
7535 eventfd_write for GLIBC_2.7.
7536
7537 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
7538 * sysdeps/unix/sysv/linux/signalfd.c: New file.
7539 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
7540 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
7541
7542 2007-10-04 Jakub Jelinek <jakub@redhat.com>
7543
7544 * stdlib/msort.c: Include stdint.h.
7545 (struct msort_param): New type.
7546 (msort_with_tmp): Use struct msort_param pointer for unchanging
7547 parameters. Add optimized handling for several common sizes
7548 and indirect sorting mode.
7549 (qsort): Adjust msort_with_tmp callers. For big S use indirect
7550 sorting.
7551 Suggested by Belazougui Djamel .
7552
7553 * stdlib/Makefile (tests): Add tst-qsort2.
7554 * stdlib/tst-qsort2.c: New test.
7555
7556 2007-10-04 Ulrich Drepper <drepper@redhat.com>
7557
7558 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
7559 for dup2 in case another thread races with the current one. Retry
7560 in this case.
7561
7562 * misc/error.h: Remove support for use outside of libc. We have to
7563 include <features.h> now. Include <bits/error.h> if possible.
7564 * misc/bits/error.h: New file.
7565
7566 2007-10-03 Jakub Jelinek <jakub@redhat.com>
7567
7568 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
7569 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
7570 __extern_always_inline functions unconditionally, drop macros.
7571
7572 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
7573 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
7574 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
7575
7576 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
7577 add __artificial__ attribute.
7578
7579 2007-10-02 Ulrich Drepper <drepper@redhat.com>
7580
7581 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
7582 backward to forward direction.
7583
7584 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
7585
7586 [BZ #645]
7587 * locale/programs/ld-collate.c (collate_finish): Compare against last
7588 used section which is known to have rules defined.
7589 (collate_read): After order_start, correctly record order of sections
7590 and queue sections up.
7591
7592 2007-10-01 Ulrich Drepper <drepper@redhat.com>
7593
7594 [BZ #5071]
7595 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
7596 the same number of pages.
7597 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
7598
7599 * locale/programs/ld-collate.c (collate_read): After initial copy
7600 statement, continue in state 0.
7601
7602 * include/stdio_ext.h (__fsetlocking): Define as macro.
7603
7604 2007-09-30 Ulrich Drepper <drepper@redhat.com>
7605
7606 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
7607 of section order.
7608
7609 * po/pt_BR.po: Fix typo.
7610
7611 2007-09-29 Ulrich Drepper <drepper@redhat.com>
7612
7613 * iconvdata/Makefile (modules): Add ISO8859-9E.
7614 (distribute): Add iso8859-9e.c.
7615 (gen-8bit-gap-modules): Add iso8859-9e.
7616 * iconvdata/iso8859-9e.c: New file.
7617 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
7618 * iconvdata/TESTS: Likewise.
7619 * iconvdata/tst-tables.sh: Likewise.
7620
7621 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7622
7623 * locale/iso-639.def: Add several new entries.
7624
7625 2007-09-24 Jakub Jelinek <jakub@redhat.com>
7626
7627 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
7628 void * pointers instead of struct link_map **.
7629 (_dl_scope_free): Change argument type to void *.
7630 * include/link.h (struct link_map): Change type of l_reldeps
7631 to struct link_map_reldeps, move l_reldepsact into that
7632 struct too.
7633 * elf/dl-deps.c: Include atomic.h.
7634 (_dl_map_object_deps): Only change l->l_initfini when it is
7635 fully populated, use _dl_scope_free for freeing it. Optimize
7636 removal of libs from reldeps by using l_reserved flag, when
7637 some removal is needed, allocate a new list instead of
7638 reallocating and free the old with _dl_scope_free. Adjust
7639 for l_reldeps and l_reldepsact changes.
7640 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
7641 searching in l_initfini and l_reldeps without holding dl_load_lock.
7642 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
7643 l_reldepsact changes.
7644 * elf/dl-close.c (_dl_close_worker): Likewise.
7645 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
7646
7647 2007-09-28 Ulrich Drepper <drepper@redhat.com>
7648
7649 * iconvdata/Makefile (modules): Add KOI8-RU.
7650 (distribute): Add koi8-ru.c.
7651 (gen-8bit-gap-modules): Add koi8-ru.
7652 * iconvdata/koi8-ru.c: New file.
7653 * iconvdata/gconv-modules: Add entries for KOI8-RU.
7654 * iconvdata/TESTS: Likewise.
7655 * iconvdata/tst-tables.sh: Likewise.
7656
7657 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7658
7659 2007-09-26 Jakub Jelinek <jakub@redhat.com>
7660
7661 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
7662 with __warning__/__error__ attributes.
7663 (__warnattr): Define.
7664 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
7665 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
7666 __warnattr.
7667 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
7668 of __*_chk if compile time detectable overflow is found.
7669 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
7670 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
7671 with __warnattr.
7672 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
7673 instead of __*_chk if compile time detectable overflow is found.
7674 (__gets_alias): Rename to...
7675 (__gets_warn): ... this. Add __warnattr.
7676 (gets): Call __gets_warn instead of __gets_alias.
7677 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
7678 aliases with __warnattr.
7679 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
7680 time detectable overflow is found.
7681 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
7682 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
7683 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
7684 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
7685 __getdomainname_chk_warn): New aliases with __warnattr.
7686 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
7687 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
7688 __*_chk_warn instead of __*_chk if compile time detectable overflow
7689 is found.
7690 (__getgroups_chk): Rename argument to __listlen from listlen.
7691 (__getwd_alias): Rename to...
7692 (__getwd_warn): ... this. Add __warnattr.
7693 (getwd): Call __getwd_warn instead of __getwd_alias.
7694 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
7695 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
7696 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
7697 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
7698 __wcsnrtombs_chk_warn): New aliases with __warnattr.
7699 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
7700 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
7701 compile time detectable overflow is found.
7702 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
7703 to use __*_chk or not.
7704 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
7705 in comparisons which function should be called and in __*_chk*
7706 arguments. Call __*_chk_warn instead of __*_chk if compile time
7707 detectable overflow is found.
7708 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
7709 __*_chk argument.
7710 * debug/tst-chk1.c (do_test): Add a few more tests.
7711
7712 2007-09-24 Ulrich Drepper <drepper@redhat.com>
7713
7714 [BZ #5058]
7715 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
7716 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
7717 (_nl_unload_domain): Finalize conversions_lock.
7718 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
7719 handling table of known conversions.
7720
7721 2007-09-24 Jakub Jelinek <jakub@redhat.com>
7722
7723 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
7724 close_not_cancel_no_status instead of close.
7725
7726 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
7727
7728 [BZ #5028]
7729 * posix/regcomp.c (lookup_collation_sequence_value): Check that
7730 nrules != 0 for multibyte chars.
7731
7732 2007-09-23 Ulrich Drepper <drepper@redhat.com>
7733
7734 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
7735 Provide better error message in case the type is unknown.
7736
7737 [BZ #4963]
7738 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
7739 * string/stratcliff.c: Make usable to test wide char functions.
7740 * wcsmbs/wcsatcliff.c: New file.
7741 * wcsmbs/Makefiel (tests): Add wcsatcliff.
7742
7743 [BZ #4972]
7744 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
7745 (distribute): Add mac-centraleurope.c.
7746 (gen-8bit-gap-modules): Add mac-centraleurope.
7747 * iconvdata/mac-centraleurope.c: New file.
7748 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
7749 * iconvdata/TESTS: Likewise.
7750 * iconvdata/tst-tables.sh: Likewise.
7751
7752 [BZ #5043]
7753 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
7754
7755 2007-09-21 Ulrich Drepper <drepper@redhat.com>
7756
7757 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
7758 from __x86_64_core_cache_size_half.
7759 (init_cacheinfo): Compute shared cache size for AMD processors with
7760 shared L3 correctly.
7761 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
7762 name change.
7763 Patch in large parts by Evandro Menezes.
7764
7765 2007-09-19 Ulrich Drepper <drepper@redhat.com>
7766
7767 * elf/dl-lookup.c (add_dependency): Handle failing memory
7768 allocation for dependency list. Remove unnecessary check.
7769
7770 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
7771 open/close when determining source addresses.
7772
7773 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
7774 sha512-crypt, and sha512.
7775 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
7776 (distribute): Add sha256.h and sha512.h.
7777 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
7778 and call the appropriate code.
7779 * crypt/sha256-crypt.c: New file.
7780 * crypt/sha256.c: New file.
7781 * crypt/sha256.h: New file.
7782 * crypt/sha256c-test.c: New file.
7783 * crypt/sha256test.c: New file.
7784 * crypt/sha512-crypt.c: New file.
7785 * crypt/sha512.c: New file.
7786 * crypt/sha512.h: New file.
7787 * crypt/sha512c-test.c: New file.
7788 * crypt/sha512test.c: New file.
7789
7790 2007-09-19 Jakub Jelinek <jakub@redhat.com>
7791
7792 * misc/bits/syslog.h (syslog): Remove extraneous argument from
7793 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
7794 __syslog_chk.
7795
7796 2007-09-18 Jakub Jelinek <jakub@redhat.com>
7797
7798 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
7799 %as in fscanf format strings.
7800
7801 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
7802 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7803 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
7804 Likewise.
7805 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
7806 Likewise.
7807
7808 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
7809 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
7810 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
7811 * elf/dl-sym.c (do_sym): Likewise.
7812 * include/link.h (struct link_map): Add l_serial field.
7813 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
7814 * elf/dl-lookup.c (add_dependency): Add flags argument.
7815 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
7816 flags, use THREAD_GSCOPE_RESET_FLAG before and
7817 THREAD_GSCOPE_SET_FLAG after
7818 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
7819 Don't dereference map until it has been found on some list.
7820 If map->l_serial changed, return -1.
7821
7822 2007-09-17 Jakub Jelinek <jakub@redhat.com>
7823
7824 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
7825 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
7826 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
7827 libc_hidden_proto.
7828 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
7829 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
7830 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
7831 add libc_hidden_proto.
7832 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7833 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7834 conformance requested.
7835 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
7836 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7837 conformance requested.
7838 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7839 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
7840 conformance requested.
7841 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
7842 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
7843 ISO C99 or POSIX conformance requested.
7844 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
7845 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
7846 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
7847 and __isoc99_vsscanf@@GLIBC_2.7.
7848 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
7849 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
7850 (tests): Add scanf14.
7851 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
7852 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
7853 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
7854 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
7855 CFLAGS-isoc99_scanf.c): Add $(exceptions).
7856 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
7857 from using internal headers.
7858 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
7859 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
7860 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
7861 and __isoc99_vswscanf@@GLIBC_2.7.
7862 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
7863 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
7864 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
7865 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
7866 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
7867 * stdio-common/isoc99_scanf.c: New file.
7868 * stdio-common/isoc99_vsscanf.c: New file.
7869 * stdio-common/isoc99_vscanf.c: New file.
7870 * stdio-common/isoc99_vfscanf.c: New file.
7871 * stdio-common/isoc99_fscanf.c: New file.
7872 * stdio-common/isoc99_sscanf.c: New file.
7873 * wcsmbs/isoc99_fwscanf.c: New file.
7874 * wcsmbs/isoc99_vswscanf.c: New file.
7875 * wcsmbs/isoc99_swscanf.c: New file.
7876 * wcsmbs/isoc99_wscanf.c: New file.
7877 * wcsmbs/isoc99_vwscanf.c: New file.
7878 * wcsmbs/isoc99_vfwscanf.c: New file.
7879 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
7880 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
7881 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
7882 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
7883 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
7884 * stdio-common/scanf14.c: New test.
7885 * stdio-common/scanf15.c: New test.
7886 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
7887 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
7888 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
7889 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
7890 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
7891 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
7892 __nldbl___isoc99_scanf@@GLIBC_2.7,
7893 __nldbl___isoc99_fscanf@@GLIBC_2.7,
7894 __nldbl___isoc99_sscanf@@GLIBC_2.7,
7895 __nldbl___isoc99_vscanf@@GLIBC_2.7,
7896 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
7897 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
7898 __nldbl___isoc99_wscanf@@GLIBC_2.7,
7899 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
7900 __nldbl___isoc99_swscanf@@GLIBC_2.7,
7901 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
7902 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
7903 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
7904 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
7905 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
7906 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
7907 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
7908 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
7909 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7910 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
7911 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
7912 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
7913 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
7914 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
7915 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
7916 functions.
7917 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
7918 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
7919 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
7920 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
7921 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
7922 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
7923 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
7924 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
7925 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
7926 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
7927 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
7928 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
7929
7930 * stdio-common/Makefile (tests): Add scanf13.
7931 (scanf13-ENV): New.
7932 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
7933 m modifier followed by l.
7934 (STRING_ARG): Add width argument.
7935 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
7936 <case L_('C')>: Handle %mlc and %mC.
7937 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
7938 arguments.
7939 * stdio-common/scanf13.c: New test.
7940
7941 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
7942 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
7943
7944 2007-09-18 Ulrich Drepper <drepper@redhat.com>
7945
7946 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
7947 type and __THROW marker of splice, vmsplice, and tee.
7948 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7949 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7950 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7951 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7952 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7953 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7954 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7955 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
7956 as cancellation points.
7957
7958 2003-11-01 Daniel Jacobowitz <dan@debian.org>
7959
7960 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
7961 parse more than three parts of the version number.
7962
7963 2007-09-15 Ulrich Drepper <drepper@redhat.com>
7964
7965 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
7966 modifier. Patch by Jakub Jelinek.
7967
7968 2007-08-26 Jakub Jelinek <jakub@redhat.com>
7969
7970 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
7971 call_fallocate in misc subdir.
7972 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
7973 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
7974 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
7975 instead of __fallocate64.
7976 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
7977
7978 2007-09-15 Jakub Jelinek <jakub@redhat.com>
7979
7980 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
7981 * rt/Makefile (headers): Add bits/mqueue2.h.
7982 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
7983 optimizing with GCC and __va_arg_pack_len is defined.
7984 * rt/bits/mqueue2.h: New file.
7985 * rt/mq_open.c (__mq_open): Renamed from mq_open.
7986 (mq_open): New strong_alias.
7987 (__mq_open_2): New function.
7988 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
7989 (mq_open): New strong_alias.
7990 (__mq_open_2): New function.
7991 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
7992 * Versions.def (librt): Add GLIBC_2.7 version.
7993 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
7994 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
7995
7996 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
7997 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
7998 is defined rather than when not C++.
7999 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
8000 __openat64_alias): New redirects.
8001 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
8002 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
8003 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
8004 (open, open64, openat, openat64): Rewrite as __extern_always_inline
8005 functions instead of function-like macros.
8006
8007 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
8008
8009 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
8010 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
8011 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
8012
8013 2007-09-15 Mike Frysinger <vapier@gentoo.org>
8014
8015 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
8016 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
8017
8018 2007-09-14 Mike Frysinger <vapier@gentoo.org>
8019
8020 * inet/tst-network.c: Increment ERRORS for failing tests.
8021
8022 2007-09-07 Jakub Jelinek <jakub@redhat.com>
8023
8024 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
8025 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
8026 implement as __extern_always_inline function.
8027 (vsyslog): Define as __extern_always_inline function unconditionally.
8028 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
8029 When __va_arg_pack is defined, implement as __extern_always_inline
8030 functions.
8031 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8032 __extern_always_inline functions unconditionally.
8033 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
8034 bits/stdio2.h will be included.
8035 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
8036 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
8037 implement as __extern_always_inline functions.
8038 (vswprintf, vwprintf, vfwprintf): Define as
8039 __extern_always_inline functions unconditionally.
8040 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
8041
8042 2007-09-03 Jakub Jelinek <jakub@redhat.com>
8043
8044 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
8045 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
8046 attribute.
8047 * include/features.h (__USE_EXTERN_INLINES): Define only when
8048 __extern_inline is defined.
8049 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
8050 is defined instead of when not __cplusplus.
8051 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
8052 is defined instead of when not __cplusplus.
8053 * socket/sys/socket.h: Include bits/socket2.h when
8054 __extern_always_inline is defined instead of when not __cplusplus.
8055 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
8056 is defined instead of when not __cplusplus.
8057 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
8058 is defined instead of when not __cplusplus.
8059 * string/string.h: Include bits/string3.h when __extern_always_inline
8060 is defined instead of when not __cplusplus.
8061 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
8062 is defined instead of when not __cplusplus.
8063 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
8064 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
8065 is not defined.
8066 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
8067 defined __extern_always_inline instead of !defined __cplusplus.
8068 * libio/bits/stdio-ldbl.h: Likewise.
8069 * wcsmbs/bits/wchar-ldbl.h: Likewise.
8070 * misc/bits/syslog.h (syslog): Don't define for C++.
8071 (vsyslog): Use __extern_always_inline function for C++ instead of
8072 a macro.
8073 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
8074 whenever that macro is defined.
8075 (vprintf): Don't provide the inline for C++.
8076 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
8077 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
8078 define the macros for C++.
8079 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8080 __extern_always_inline functions for C++.
8081 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8082 stat64, lstat64, fstat64, fstatat64): Don't define if not
8083 __USE_EXTERN_INLINES.
8084 * wcsmbs/bits/wchar2.h: Fix #error message.
8085 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8086 (vswprintf, vwprintf, vfwprintf): Define using
8087 __extern_always_inline functions for C++.
8088 * string/bits/string3.h: Don't #undef macros if __cplusplus.
8089 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8090 strncpy, strcat, strncat): Define as __extern_always_inline
8091 functions instead of macros for C++.
8092 * math/bits/cmathcalls.h: Guard __extern_inline routines with
8093 defined __extern_inline.
8094 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8095 to __extern_inline whenever that macro is defined.
8096 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8097 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8098 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8099 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8100 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8101 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8102 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8103 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8104 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8105 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8106 prototypes. Only provide __extern_inline routines if
8107 __USE_EXTERN_INLINES.
8108 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8109 tests.
8110 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8111 For now avoid some *printf tests in C++. Skip all testing
8112 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8113 is not.
8114 * debug/tst-chk4.cc: New file.
8115 * debug/tst-chk5.cc: New file.
8116 * debug/tst-chk6.cc: New file.
8117 * debug/tst-lfschk4.cc: New file.
8118 * debug/tst-lfschk5.cc: New file.
8119 * debug/tst-lfschk6.cc: New file.
8120 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8121 prototypes in C++.
8122 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8123 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8124 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8125
8126 2007-09-13 Ulrich Drepper <drepper@redhat.com>
8127
8128 * po/cs.po: Update from translation team.
8129
8130 2007-09-11 Roland McGrath <roland@redhat.com>
8131
8132 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8133 compiling.
8134
8135 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
8136
8137 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8138
8139 2007-09-05 Roland McGrath <roland@redhat.com>
8140
8141 * manual/signal.texi (Signaling Another Process): Typo fix.
8142 From Karl Berry <karl@freefriends.org>.
8143
8144 2007-08-29 Ulrich Drepper <drepper@redhat.com>
8145
8146 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8147 zero if not defined.
8148 (make_request): Recognize optimistic addresses and treat them like
8149 deprecated addresses.
8150 Reported by Neil Horman <nhorman@redhat.com>.
8151
8152 2007-08-28 Ulrich Drepper <drepper@redhat.com>
8153
8154 * nscd/connections.c (send_ro_fd): Also transfer file size.
8155 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8156 file size don't call fstat.
8157
8158 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8159 ahead and map the file. This should always be correct and we can
8160 catch problems later.
8161
8162 2007-08-28 Jakub Jelinek <jakub@redhat.com>
8163
8164 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
8165 prototypes.
8166 (__fread_alias, __fread_unlocked_alias): New aliases.
8167 (fread): New extern inline.
8168 (fread_unlocked): Likewise. Undef macro before definition of
8169 the inline function.
8170 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
8171 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
8172 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
8173 and __fread_unlocked_chk@@GLIBC_2.7.
8174 * debug/fread_chk.c: New file.
8175 * debug/fread_u_chk.c: New file.
8176 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
8177
8178 2007-08-27 Jakub Jelinek <jakub@redhat.com>
8179
8180 * sysdeps/unix/sysv/linux/syscalls.list
8181 (personality): Change caller to EXTRA.
8182
8183 2007-08-25 Ulrich Drepper <drepper@redhat.com>
8184
8185 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
8186 to keep gcc quiet.
8187 * iconvdata/iso-2022-cn.c (BODY): Likewise.
8188
8189 * locale/programs/ld-collate.c (collate_output): Avoid warning if
8190 NDEBUG is defined.
8191
8192 * Makerules: Use -p option with mkdir.
8193
8194 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
8195 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
8196 (_xdr_directory_obj): Likewise.
8197 (xdr_entry_obj): Likewise.
8198 (xdr_group_obj): Likewise.
8199 (xdr_link_obj): Likewise.
8200 (xdr_table_obj): Likewise.
8201 (_xdr_nis_result): Likewise.
8202 (_xdr_ns_request): Likewise.
8203 (_xdr_ib_request): Likewise.
8204 (_xdr_nis_taglist): Likewise.
8205 (xdr_cback_data): Likewise.
8206 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
8207 (xdr_ypresp_maplist): Likewise.
8208
8209 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
8210
8211 * posix/regex_internal.h: Prevent some declarations and definitions
8212 to be seen when used in tests.
8213
8214 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
8215 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
8216
8217 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
8218
8219 * config.make.in (datarootdir): Add to shut up configure.
8220
8221 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
8222 associativity for fully-associative caches.
8223
8224 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
8225 requests. Fill on more associativity values for L2.
8226 Patch mostly by Evandro Menezes.
8227
8228 2007-08-24 Ulrich Drepper <drepper@redhat.com>
8229
8230 * sysdeps/unix/sysv/linux/x86_64/init-first.c
8231 (_libc_vdso_platform_setup): Avoid using exported variable by using
8232 alias.
8233
8234 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
8235
8236 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
8237 fallocate64 as EXTRA. It is not referenced if the symbol isn't
8238 defined.
8239
8240 2007-08-23 Ulrich Drepper <drepper@redhat.com>
8241
8242 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
8243 align stack for call if pltexit is to be used.
8244
8245 [BZ #3924]
8246 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8247 align for function call in case pltexit has to be called later.
8248
8249 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8250 implicit atomic operation when storing function pointer.
8251 (_dl_runtime_profile): Likewise.
8252
8253 2007-08-17 Jakub Jelinek <jakub@redhat.com>
8254
8255 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8256 NIS_NOTFOUND.
8257
8258 2007-08-21 Ulrich Drepper <drepper@redhat.com>
8259
8260 [BZ #4566]
8261 * string/strtok.c: Fix typo in comment.
8262
8263 [BZ #4582]
8264 * debug/segfault.c: Fix typos in comments.
8265
8266 [BZ #4588]
8267 * stdio-common/tempnam.c: Fix comment, it is not checked that
8268 TMPDIR points to a writable directory.
8269
8270 [BZ #4726]
8271 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
8272 memory allocated for the name server address.
8273
8274 [BZ #4946]
8275 * nscd/connections.c (handle_request): Using sendfile always
8276 requires that mmap is used for the database.
8277 Patch by Petr Baudis <pasky@suse.cz>.
8278
8279 [BZ #4905]
8280 * nscd/hstcache.c (cache_addhst): When reloading an entry which
8281 suddenly has two or more addresses, ignore it and remove the old
8282 entry.
8283
8284 [BZ #4814]
8285 * resolv/res_hconf.c: Prepare for compiling outside libc.
8286 * nscd/res_hconf.c: New file.
8287 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
8288 the new file.
8289 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
8290 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
8291
8292 * nscd/hstcache.c (cache_addhst): Minimal optimization.
8293
8294 [BZ #4925]
8295 * debug/pcprofiledump.c: Turn on internationalization by calling
8296 setlocale. Patch mostly by Benno Schulenberg.
8297
8298 [BZ #4936]
8299 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
8300 the state.
8301 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
8302 * iconvdata/bug-iconv5.c: New file.
8303
8304 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
8305
8306 [BZ #4896]
8307 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
8308 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
8309 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
8310 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
8311 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
8312 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
8313 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
8314 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
8315
8316 2007-08-21 Ulrich Drepper <drepper@redhat.com>
8317
8318 [BZ #4937]
8319 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
8320 lookup loop. Suggested by John Reiser.
8321
8322 2007-08-21 Jakub Jelinek <jakub@redhat.com>
8323
8324 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
8325
8326 2007-08-20 Ulrich Drepper <drepper@redhat.com>
8327
8328 * csu/libc-start.c: Don't handle VDSO_SETUP here.
8329 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
8330 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
8331 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
8332 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
8333 to...
8334 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
8335
8336 2007-08-18 Ulrich Drepper <drepper@redhat.com>
8337
8338 * po/nl.po: Update from translation team.
8339
8340 2007-08-16 Andreas Jaeger <aj@suse.de>
8341
8342 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
8343 Reported by Peter Festner <peter.festner@ewetel.net>.
8344
8345 2007-08-17 Jakub Jelinek <jakub@redhat.com>
8346
8347 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
8348
8349 2007-08-16 Jakub Jelinek <jakub@redhat.com>
8350
8351 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
8352 to check for undefined symbols.
8353
8354 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
8355 If the syscall fails, set errno to the actual returned error number
8356 rather than EINVAL.
8357 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
8358 arguments are incorrect, set errno to EINVAL, if the syscall
8359 fails, set errno to the actual returned error number.
8360
8361 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
8362 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
8363
8364 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
8365 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
8366 file.
8367 (ASI_PNF, ASI_BLK_P): Don't define.
8368 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
8369 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
8370 file.
8371 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
8372 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
8373 file.
8374
8375 2007-08-15 Jakub Jelinek <jakub@redhat.com>
8376
8377 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
8378 FE_UNDERFLOW on Niagara CPUs.
8379
8380 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
8381 exceptions.
8382
8383 2007-08-14 Jakub Jelinek <jakub@redhat.com>
8384
8385 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
8386 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
8387 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
8388 flush should be used or not inside of the function.
8389 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
8390
8391 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
8392 __thread_start): Use HIDDEN_JUMPTARGET.
8393 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
8394 __thread_start): Likewise.
8395 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
8396
8397 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
8398 Add libc_hidden_proto.
8399 (STRTOF): Add libc_hidden_proto.
8400 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
8401 (strtold_l, wcstold_l): Use them as second argument for
8402 long_double_symbol.
8403
8404 2007-08-14 Ulrich Drepper <drepper@redhat.com>
8405
8406 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
8407
8408 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8409
8410 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
8411
8412 2007-08-14 Ulrich Drepper <drepper@redhat.com>
8413
8414 * po/bg.po: New file. From the translation team.
8415
8416 2007-08-13 Jakub Jelinek <jakub@redhat.com>
8417
8418 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
8419 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
8420 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
8421 when each feature was introduced.
8422
8423 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
8424 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
8425 (CHECK_HASH): New macro.
8426 (PREPARE_VERSION): Use it.
8427
8428 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
8429 prototype if not __ASSUME_PSELECT.
8430 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
8431 prototype if not __ASSUME_PPOLL.
8432
8433 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
8434
8435 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
8436 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
8437 is defined.
8438
8439 2007-08-13 Ulrich Drepper <drepper@redhat.com>
8440
8441 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8442 (_libc_vdso_platform_setup): If vDSO is not available point
8443 __vdso_gettimeofday to the vsyscall.
8444 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
8445 __vdso_gettimeofday instead of vsyscall.
8446
8447 2007-08-13 Jakub Jelinek <jakub@redhat.com>
8448
8449 * nscd/servicescache.c: Include kernel-features.h.
8450 * nscd/gai.c: Likewise.
8451 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8452 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8453 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
8454 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
8455 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
8456 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
8457 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
8458 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
8459 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
8460
8461 2007-08-12 Ulrich Drepper <drepper@redhat.com>
8462
8463 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
8464 and _dl_get_origin defines anymore.
8465
8466 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
8467 Build fix for systems which might lack POSIX timer support.
8468
8469 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8470 (_libc_vdso_platform_setup): Mangle function pointers before storing
8471 them.
8472 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
8473 Demangle vdso pointer before use.
8474 (INTERNAL_VSYSCALL): Likewise.
8475
8476 * elf/cache.c (primes): Mark as const.
8477 Noted by Roland McGrath.
8478
8479 2007-08-01 Andreas Jaeger <aj@suse.de>
8480 Jakub Jelinek <jakub@redhat.com>
8481
8482 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
8483 (options): Add option.
8484 (parse_opt): Handle option.
8485 (manual_link): Adjust process_file caller. Call implicit_soname.
8486 (search_dir): Formatting. Use and populate auxiliary cache.
8487 (main): Load and save auxiliary cache.
8488 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
8489 stat64 from fstat64 to caller.
8490 (implicit_soname): New function.
8491 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
8492 leave *soname as NULL.
8493 * elf/cache.c: Include libgen.h.
8494 (print_entry, print_cache, compare, save_cache, add_to_cache):
8495 Formatting and cleanups.
8496 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
8497 aux_cache_file): New structures.
8498 (AUX_CACHEMAGIC): Define.
8499 (primes): New array.
8500 (aux_hash_size, aux_hash): New variables.
8501 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
8502 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
8503 load_aux_cache, save_aux_cache): New functions.
8504 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
8505 (init_aux_cache, search_aux_cache, add_to_aux_cache,
8506 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
8507 (process_file): Adjust prototype.
8508
8509 2007-08-12 Jakub Jelinek <jakub@redhat.com>
8510
8511 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
8512 with __need_size_t.
8513
8514 2007-08-12 Ulrich Drepper <drepper@redhat.com>
8515
8516 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
8517 r_found_version structure as second parameter.
8518 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
8519 (_dl_vdso_vsym): Change type of second parameter accordingly.
8520 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
8521 (_libc_vdso_platform_setup): Adjust.
8522 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8523 (_libc_vdso_platform_setup): Likewise.
8524
8525 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
8526 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
8527 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
8528 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
8529 * csu/libc-start.c: Pretty printing.
8530 Use VDSO_SETUP if defined.
8531 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
8532 and let generic code call into _libc_vdso_platform_setup.
8533 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
8534 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
8535 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
8536 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
8537 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
8538 for GLIBC_PRIVATE.
8539 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
8540 (sysdep_rountines): Add dl-vdso.
8541
8542 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
8543 of routines.
8544
8545 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
8546 attribute_hidden to __vdso_gettimeofday prototype.
8547
8548 2007-08-12 Roland McGrath <roland@redhat.com>
8549
8550 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
8551 From: Karl Berry <karl@freefriends.org>.
8552
8553 2007-08-11 Ulrich Drepper <drepper@redhat.com>
8554
8555 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
8556 an atime update for the files we read.
8557
8558 2007-08-10 Ulrich Drepper <drepper@redhat.com>
8559
8560 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
8561
8562 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
8563 instead of mkstemp.
8564
8565 * misc/Makefile (routines): Add mkostemp and mkostemp64.
8566 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
8567 * misc/mkostemp.c: New file.
8568 * misc/mkostemp64.c: New file.
8569 * stdlib/stdlib.h: Declare the new functions.
8570 * sysdeps/posix/tempname.c: Add new parameter which is added to
8571 the flags for open. Remove __GT_BIGFILE handling.
8572 * stdio-common/tempname.c: Likewise.
8573 * include/stdio.h: Adjust __gen_tempname prototype.
8574 Renumber __GT_* constants.
8575 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
8576 * misc/mkdtemp.c: Likewise.
8577 * misc/mkstemp.c: Likewise.
8578 * misc/mkstemp64.c: Likewise.
8579 * misc/mktemp.c: Likewise.
8580 * stdio-common/tempnam.c: Likewise.
8581 * stdio-common/tmpfile.c: Likewise.
8582 * stdio-common/tmpfile64.c: Likewise.
8583 * stdio-common/tmpnam.c: Likewise.
8584 * stdio-common/tmpnam_r.c: Likewise.
8585
8586 2007-08-10 Roland McGrath <roland@frob.com>
8587
8588 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
8589 New macros.
8590 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
8591 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8592
8593 2007-08-10 Ulrich Drepper <drepper@redhat.com>
8594
8595 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
8596 possible.
8597 * nss/nss_files/files-alias.c (internal_setent): Likewise.
8598 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
8599 * nss/nss_files/files-have_o_cloexec.c: New file.
8600
8601 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
8602 available.
8603
8604 2007-08-10 Jakub Jelinek <jakub@redhat.com>
8605
8606 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
8607 ___new_wcstold_l): New weak aliases.
8608 (strtold_l, wcstold_l): Use them as second argument for
8609 long_double_symbol.
8610
8611 2007-08-09 Ulrich Drepper <drepper@redhat.com>
8612
8613 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
8614 register in test for error.
8615
8616 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
8617 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
8618
8619 * po/sv.po: Update from translation team.
8620
8621 2007-08-06 Roland McGrath <roland@redhat.com>
8622
8623 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
8624 Remove __strto*_l inlines.
8625 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
8626 * stdlib/strtod.c: Add libc_hidden_def.
8627 * stdlib/strtod_l.c: Likewise.
8628 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
8629 for __new_strtold and __new_wcstold.
8630 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
8631 __STRTOF, STRTOF.
8632 * stdlib/strtol.c: Add libc_hidden_def.
8633 * stdlib/strtol_l.c: Likewise.
8634 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
8635 strtoq.
8636
8637 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
8638
8639 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
8640 * scripts/data/localplt-generic.data: ... here.
8641 * elf/Makefile (check-data): Get generic file if no other.
8642 ($(objpfx)check-localplt.out): Make target unconditional.
8643
8644 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
8645 Use ElfW(Nhdr).
8646
8647 2007-08-05 Ulrich Drepper <drepper@redhat.com>
8648
8649 * po/zh_CN.po: Updated translation from translation team.
8650
8651 2007-08-05 Jakub Jelinek <jakub@redhat.com>
8652
8653 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
8654 Don't use CGOTSETUP and CGOTRESTORE macros.
8655
8656 2007-08-04 Roland McGrath <roland@redhat.com>
8657
8658 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
8659
8660 2007-08-04 Jakub Jelinek <jakub@redhat.com>
8661
8662 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
8663 __extension__ around the whole statement expression.
8664
8665 2007-08-04 Ulrich Drepper <drepper@redhat.com>
8666
8667 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
8668 elements during initialization.
8669
8670 * po/pl.po: Updated translation from translation team.
8671 * po/tr.po: Likewise.
8672 * po/nl.po: Likewise.
8673
8674 2007-08-03 Ulrich Drepper <drepper@redhat.com>
8675
8676 * rt/aio.h: Add __nonnull attributes.
8677
8678 2007-08-03 Jakub Jelinek <jakub@redhat.com>
8679
8680 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
8681 * stdlib/Makefile (tests): Add tst-strtod5.
8682 (tst-strtod5-ENV): New.
8683 * stdlib/tst-strtod5.c: New file.
8684
8685 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
8686 failed.
8687 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
8688 on failure.
8689
8690 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
8691 allocated.
8692
8693 2007-08-03 Jakub Jelinek <jakub@redhat.com>
8694
8695 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
8696 numbers.
8697
8698 2007-08-02 Ulrich Drepper <drepper@redhat.com>
8699
8700 * io/Makefile (aux): Add have_o_cloexec.
8701 * include/fcntl.h: Declare __have_o_cloexec.
8702 * io/have_o_cloexec.c: New file.
8703 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
8704 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
8705 fcntl call if not necessary.
8706 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
8707 of local variable.
8708
8709 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
8710 Avoid memset, add explicit initialization.
8711 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
8712 to the end and change into zero-sized array.
8713 Move lock member to fill a hole on 64-bit platforms.
8714
8715 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
8716 inline functions.
8717 * include/stdlib.h: Add __strto*_internal prototypes here.
8718 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
8719 inline functions.
8720 * include/wchar.h: Add __wcsto*_internal prototypes.
8721 * sysdeps/generic/inttypes.h: No need to protect the declaration
8722 of the __strto*_internal and __wcsto*_internal members here.
8723
8724 * rt/mqueue.h: Change const to __const and add nonnull attributes.
8725
8726 2007-08-02 Roland McGrath <roland@redhat.com>
8727
8728 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
8729 $(inst_bindir)/getconf if possible.
8730
8731 * posix/Makefile ($(objpfx)getconf.speclist): New target.
8732 (generated): Add it.
8733 ($(inst_libexecdir)/getconf): Use it.
8734
8735 2007-08-01 Ulrich Drepper <drepper@redhat.com>
8736
8737 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
8738 /proc is faster and sufficient. /sys is still needed for
8739 __get_nprocs_conf.
8740
8741 2007-08-01 Jakub Jelinek <jakub@redhat.com>
8742
8743 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
8744 syscall as __fallocate64.
8745 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
8746 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
8747
8748 2007-07-30 Jakub Jelinek <jakub@redhat.com>
8749
8750 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
8751 value.
8752
8753 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
8754 if off_t is different rank from size_t.
8755
8756 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
8757 uw_frame_state_for): Avoid type punning warnings.
8758 * sysdeps/generic/unwind-dw2-fde-glibc.c
8759 (_Unwind_IteratePhdrCallback): Likewise.
8760 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
8761 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
8762 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
8763 pointers.
8764
8765 2007-07-31 Ulrich Drepper <drepper@redhat.com>
8766
8767 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
8768 total processors using sysfs.
8769 (__get_nprocs): Use sysfs to determine which processors are online.
8770
8771 2007-07-31 Jakub Jelinek <jakub@redhat.com>
8772
8773 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
8774 syscall arguments count.
8775
8776 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
8777
8778 2007-07-30 Roland McGrath <roland@redhat.com>
8779
8780 * manual/libc.texinfo: Update copyrights, formatting magic, and
8781 @dircategory. From Karl Berry <karl@freefriends.org>.
8782
8783 2007-07-29 Ulrich Drepper <drepper@redhat.com>
8784
8785 [BZ #4860]
8786 * io/Makefile (headers): Add bits/fcntl2.h.
8787
8788 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
8789 using gcc builtin.
8790 (__CPU_EQUAL_S): Likewise.
8791
8792 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
8793 (tests): Add tst-cpuset.
8794 * posix/sched_cpualloc.c: New file.
8795 * posix/sched_cpufree.c: New file.
8796 * posix/tst-cpuset.c: New file.
8797 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
8798 GLIBC_2.7.
8799 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
8800 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
8801 macros. Define CPU_*_S macros.
8802
8803 2007-07-28 Ulrich Drepper <drepper@redhat.com>
8804
8805 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
8806 entry.
8807
8808 [BZ #4858]
8809 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
8810 #.0g and value rounded to 1.0.
8811 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
8812
8813 2007-07-26 Jakub Jelinek <jakub@redhat.com>
8814
8815 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
8816 for int_frac_digits and frac_digits.
8817
8818 * login/logout.c (logout): Avoid aliasing violation.
8819 * login/logwtmp.c (logwtmp): Likewise.
8820
8821 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
8822
8823 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
8824 to avoid warning.
8825 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
8826 warning.
8827 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
8828 warning.
8829 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
8830 to avoid warnings.
8831
8832 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
8833 void **.
8834 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
8835
8836 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
8837 char * to avoid warning.
8838 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
8839
8840 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
8841
8842 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
8843 allocate_arrays): Cast second argument to charmap_find_symbol
8844 to char * to avoid warnings.
8845
8846 * locale/programs/repertoire.c (repertoire_new_char): Change
8847 from_nr, to_nr and cnt to unsigned long, adjust printf format
8848 string.
8849
8850 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
8851 Cast second argument to new_element to char * to avoid warnings.
8852
8853 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
8854
8855 * intl/gettextP.h (struct loaded_domain): Change plural to const
8856 struct expression *.
8857 * intl/plural-eval.c (plural_eval): Change first argument to
8858 const struct expression *.
8859 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
8860 argument to const struct expression **.
8861 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
8862 prototypes.
8863 * intl/loadmsgcat (_nl_unload_domain): Cast away const
8864 in call to __gettext_free_exp.
8865
8866 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
8867 unitialized wstring/wpattern var warnings.
8868
8869 * posix/runtests.c (struct a_test): Make data field const char *.
8870
8871 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
8872 vars if not LDBL_MANT_DIG >= 106.
8873
8874 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
8875
8876 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
8877 __find_specmb to avoid warning.
8878
8879 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
8880
8881 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
8882 to avoid warnings.
8883
8884 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
8885 initializer.
8886
8887 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
8888 tv var when it will be actually used.
8889
8890 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
8891 to avoid warnings.
8892
8893 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
8894 char array resp. pointer.
8895 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
8896 char array.
8897 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
8898 to const unsigned char **.
8899 (ucs4_to_cns11643): Change second argument to unsigned char *.
8900 * iconvdata/euc-tw.c (BODY): Change endp type to
8901 const unsigned char *.
8902 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
8903 to unsigned char *.
8904 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
8905 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
8906 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
8907 types to unsigned char pointers/arrays instead of char.
8908 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
8909 to unsigned char *.
8910 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
8911 * iconvdata/jis0212.h: Include assert.h.
8912 (ucs4_to_jisx0212): Change second argument to unsigned char *.
8913 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
8914 of trying to handle that.
8915 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
8916 shut up a warning.
8917 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
8918 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
8919 two dimensional const unsigned char arrays.
8920 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
8921 Initialize endp to inptr to shut up a warning.
8922
8923 2007-07-20 Jakub Jelinek <jakub@redhat.com>
8924
8925 [BZ #4772]
8926 * time/strptime_l.c (__strptime_internal): Silently ignore
8927 strftime modifiers and field width in recursive calls.
8928
8929 * include/time.h (enum ptime_locale_status): Remove.
8930 (__strptime_internal): Remove decided and era_cnt arguments,
8931 add statep argument.
8932 * time/strptime_l.c (__strptime_internal): Remove decided
8933 and era_cnt arguments, add statep argument. Don't recompute
8934 any fields in recursive calls, only update caller's tm
8935 and state, if recursive call fails, don't change tm nor
8936 any state.
8937 (get_alt_number): Adjust.
8938 (recursive): Adjust caller.
8939 (strptime): Likewise.
8940 * time/strptime.c (strptime): Likewise.
8941
8942 2007-07-19 Jakub Jelinek <jakub@redhat.com>
8943
8944 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
8945 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
8946 if from and to charsets are the same.
8947 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
8948 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
8949 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
8950
8951 2007-07-17 Jakub Jelinek <jakub@redhat.com>
8952
8953 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
8954 Don't define wint_t when __need_mbstate_t unless it
8955 is necessary.
8956 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
8957 in the typedef if possible.
8958 * wctype/wctype.h (wint_t): Define by including
8959 wchar.h with __need_wint_t instead of including stddef.h
8960 with __need_wint_t and as fallback definining it ourselves.
8961 * iconv/gconv.h (__need_wint_t): Define before including
8962 wchar.h.
8963 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
8964 or _GLIBCPP_USE_WCHAR_T.
8965 (__need_wchar_t): Don't define
8966 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8967 (__need_wint_t): Don't define before including stddef.h,
8968 define before including wchar.h only if _LIBC or
8969 _GLIBCPP_USE_WCHAR_T.
8970 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8971 * sysdeps/mach/hurd/_G_config.h: Likewise.
8972 * sysdeps/generic/_G_config.h: Likewise.
8973 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
8974 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
8975 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
8976 if _LIBC or _GLIBCPP_USE_WCHAR_T.
8977
8978 2007-07-28 Ulrich Drepper <drepper@redhat.com>
8979
8980 * sysdeps/posix/posix_fallocate64.c: Undefine
8981 __posix_fallocate64_l64 before alias handling.
8982 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
8983 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
8984 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
8985 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
8986
8987 * io/tst-posix_fallocate.c: Include <fcntl.h>.
8988
8989 2007-07-23 Jakub Jelinek <jakub@redhat.com>
8990
8991 * locale/programs/ld-collate.c (atwc): New variable.
8992 (add_to_tablewc): New toplevel function, moved from collate_output.
8993 (collate_output): Remove add_to_tablewc nested function.
8994
8995 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
8996 (name_insert): New function.
8997 (write_output): Remove hash_table and hash_size vars and name_insert
8998 nested function.
8999
9000 2007-07-24 Roland McGrath <roland@redhat.com>
9001
9002 * Makerules (install-others-programs-nosubdir): New target.
9003 (install-no-libc.a-nosubdir): Depend on it.
9004
9005 * iconv/Makefile (install-others-programs): Set this instead of
9006 install-others.
9007 * login/Makefile (install-others-programs): Likewise.
9008 * posix/Makefile (install-others-programs): Likewise.
9009
9010 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
9011 dependencies.
9012
9013 2007-07-23 Ulrich Drepper <drepper@redhat.com>
9014
9015 * io/Makefile (tests): Add tst-posix_fallocate.
9016 * io/tst-posix_fallocate.c: New file.
9017
9018 * sysdeps/unix/sysv/linux/kernel-features.h: Define
9019 __ASSUME_FALLOCATE.
9020
9021 2007-07-22 Roland McGrath <roland@frob.com>
9022
9023 * hurd/getdport.c: Add missing copyright year update.
9024
9025 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
9026 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
9027
9028 2007-07-22 Ulrich Drepper <drepper@redhat.com>
9029
9030 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
9031
9032 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
9033 O_CLOEXEC is needed.
9034 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
9035 Avoid additional fcntl to set O_CLOEXEC if not needed.
9036 * nis/nss_compat/compat-initgroups.c: Likewise.
9037 * nis/nss_compat/compat-pwd.c: Likewise.
9038 * nis/nss_compat/compat-spwd.c: Likewise.
9039
9040 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
9041
9042 [BZ #3665]
9043 * manual/errno.texi: Change ECANCELED value to 119.
9044
9045 [BZ #4610]
9046 * mach/lock-intern.h: Include <sys/cdefs.h>.
9047
9048 [BZ #4178]
9049 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
9050 reading A.
9051
9052 [BZ #4126]
9053 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
9054 to __sigsuspend.
9055
9056 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
9057
9058 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
9059
9060 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
9061 `__ASSEMBLER__'.
9062 * sysdeps/mach/hurd/i386/tls.h: Likewise.
9063
9064 2007-07-21 Ulrich Drepper <drepper@redhat.com>
9065
9066 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
9067 descriptor received from nscd.
9068
9069 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
9070
9071 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
9072 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9073 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9074 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9075 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9076 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9077
9078 2007-07-20 Jakub Jelinek <jakub@redhat.com>
9079
9080 [BZ #4816]
9081 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9082
9083 [BZ #4813]
9084 * login/forkpty.c (forkpty): Close master and slave fds on
9085 fork failure. Patch by
9086 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9087
9088 2007-07-18 Jakub Jelinek <jakub@redhat.com>
9089
9090 * include/features.h (__USE_ISOC95): New define.
9091 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9092 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9093 for -std=iso9899:199409.
9094 * CONFORMANCE: Remove comments about unsupported AMD1.
9095
9096 2007-07-17 Jakub Jelinek <jakub@redhat.com>
9097
9098 * sysdeps/ia64/sched_cpucount.c: New file.
9099 * sysdeps/powerpc/sched_cpucount.c: New file.
9100
9101 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9102 __BEGIN_DECLS/__END_DECLS around the prototype.
9103 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
9104 pointer to const cpu_set_t.
9105
9106 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9107 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9108 __need_size_t and include stddef.h.
9109 * sysvipc/sys/msg.h: Likewise.
9110 * posix/sched.h: Likewise.
9111 * hurd/hurd/signal.h (__need_size_t): Define.
9112
9113 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9114 neither does signal.h in pedantic ISO C namespaces. stdio.h
9115 no longer defines wint_t or wchar_t.
9116
9117 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9118 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9119 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9120 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9121 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9122 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9123 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9124 * debug/printf_chk.c (__printf_chk): Likewise.
9125 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9126 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9127
9128 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9129 Define.
9130
9131 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9132 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9133
9134 2007-07-16 Jakub Jelinek <jakub@redhat.com>
9135
9136 [BZ #4792]
9137 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9138 * malloc/malloc.h (realloc): Likewise.
9139
9140 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9141 if one of proc_file_chain streams has that fileno.
9142 * stdio-common/Makefile (tests): Add tst-popen2.
9143 * stdio-common/tst-popen2.c: New test.
9144
9145 2007-07-14 Jakub Jelinek <jakub@redhat.com>
9146
9147 * elf/ldconfig.c: Allow GPLv2 or any later version.
9148 * elf/readlib.c: Likewise.
9149 * elf/chroot_canon.c: Likewise.
9150 * elf/cache.c: Likewise.
9151 * nscd/mem.c: Likewise.
9152 * nscd/getpwuid_r.c: Likewise.
9153 * nscd/grpcache.c: Likewise.
9154 * nscd/aicache.c: Likewise.
9155 * nscd/getsrvbynm_r.c: Likewise.
9156 * nscd/nscd.c: Likewise.
9157 * nscd/servicescache.c: Likewise.
9158 * nscd/getsrvbypt_r.c: Likewise.
9159 * nscd/initgrcache.c: Likewise.
9160 * nscd/gethstbyad_r.c: Likewise.
9161 * nscd/gethstbynm2_r.c: Likewise.
9162 * nscd/getgrnam_r.c: Likewise.
9163 * nscd/nscd_setup_thread.c: Likewise.
9164 * nscd/getpwnam_r.c: Likewise.
9165 * nscd/gai.c: Likewise.
9166 * nscd/connections.c: Likewise.
9167 * nscd/dbg_log.c: Likewise.
9168 * nscd/cache.c: Likewise.
9169 * nscd/hstcache.c: Likewise.
9170 * nscd/nscd_conf.c: Likewise.
9171 * nscd/getgrgid_r.c: Likewise.
9172 * nscd/pwdcache.c: Likewise.
9173 * catgets/gencat.c: Likewise.
9174 * locale/programs/linereader.h: Likewise.
9175 * locale/programs/locarchive.c: Likewise.
9176 * locale/programs/ld-paper.c: Likewise.
9177 * locale/programs/locfile-kw.h: Likewise.
9178 * locale/programs/ld-address.c: Likewise.
9179 * locale/programs/xmalloc.c: Likewise.
9180 * locale/programs/ld-time.c: Likewise.
9181 * locale/programs/localedef.c: Likewise.
9182 * locale/programs/simple-hash.c: Likewise.
9183 * locale/programs/xstrdup.c: Likewise.
9184 * locale/programs/ld-numeric.c: Likewise.
9185 * locale/programs/locfile-kw.gperf: Likewise.
9186 * locale/programs/ld-collate.c: Likewise.
9187 * locale/programs/charmap-kw.gperf: Likewise.
9188 * locale/programs/charmap.h: Likewise.
9189 * locale/programs/charmap-kw.h: Likewise.
9190 * locale/programs/config.h: Likewise.
9191 * locale/programs/locfile.c: Likewise.
9192 * locale/programs/ld-ctype.c: Likewise.
9193 * locale/programs/charmap.c: Likewise.
9194 * locale/programs/ld-messages.c: Likewise.
9195 * locale/programs/repertoire.h: Likewise.
9196 * locale/programs/locale.c: Likewise.
9197 * locale/programs/ld-name.c: Likewise.
9198 * locale/programs/linereader.c: Likewise.
9199 * locale/programs/locfile.h: Likewise.
9200 * locale/programs/3level.h: Likewise.
9201 * locale/programs/ld-monetary.c: Likewise.
9202 * locale/programs/ld-measurement.c: Likewise.
9203 * locale/programs/charmap-dir.c: Likewise.
9204 * locale/programs/ld-identification.c: Likewise.
9205 * locale/programs/localedef.h: Likewise.
9206 * locale/programs/charmap-dir.h: Likewise.
9207 * locale/programs/repertoire.c: Likewise.
9208 * locale/programs/simple-hash.h: Likewise.
9209 * locale/programs/ld-telephone.c: Likewise.
9210 * locale/programs/locale-spec.c: Likewise.
9211 * locale/programs/locfile-token.h: Likewise.
9212 * posix/getconf.c: Likewise.
9213 * iconv/dummy-repertoire.c: Likewise.
9214 * iconv/iconv_charmap.c: Likewise.
9215 * iconv/iconvconfig.c: Likewise.
9216 * iconv/iconv_prog.c: Likewise.
9217 * malloc/memusagestat.c: Likewise.
9218 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
9219
9220 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9221
9222 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
9223 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
9224 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
9225 check for the first argument.
9226
9227 2007-07-12 Jakub Jelinek <jakub@redhat.com>
9228
9229 [BZ #4775]
9230 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
9231 (__tgmath_real_type): Fix if expr is const int or other const
9232 qualified integral type.
9233 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
9234 expressions and handle const qualified arguments.
9235 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
9236 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9237 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
9238 statement expressions.
9239 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
9240 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
9241 (__TGMATH_UNARY_IMAG): Define.
9242 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
9243 * math/Makefile (tests): Add test-tgmath2.
9244 (CFLAGS-test-tgmath2.c): Add.
9245 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9246 count_cfloat, count_cldouble): New variables.
9247 (NCCALLS): Define.
9248 (main): Check number of complex calls as well.
9249 (F(compile_test)): Add complex tests and tests with const qualified
9250 arguments.
9251 (y, z, ccount): Define.
9252 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9253 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9254 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9255 F(cproj)): New functions.
9256 * math/test-tgmath2.c: New test.
9257
9258 2007-07-11 Jakub Jelinek <jakub@redhat.com>
9259
9260 [BZ #4776]
9261 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9262 RPATH etc. as "/" rather than "", don't segfault on empty paths,
9263 instead output ".".
9264 * dlfcn/Makefile (distribute): Add glreflib3.c.
9265 (module-names): Add glreflib3.
9266 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
9267 glreflib1.so.
9268 (LDFLAGS_glreflib3.so): New.
9269 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
9270 glreflib1.so.
9271 * dlfcn/glreflib3.c: New file.
9272
9273 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
9274 returned -1, return NULL.
9275 * intl/explodename.c (_nl_explode_name): Return -1 if
9276 _nl_normalize_codeset failed.
9277
9278 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
9279
9280 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
9281 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
9282 and avoid branch misspredicts for > 31 bytes memset case.
9283 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
9284 Remove toc ref to __cache_line_size.
9285
9286 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
9287 to get ISA-V2.0 branch hints.
9288 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
9289 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
9290 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
9291 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
9292 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
9293 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
9294 Remove toc ref to __cache_line_size.
9295
9296 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
9297 Include math_ldbl_opt.h.
9298
9299 2007-07-10 Ulrich Drepper <drepper@redhat.com>
9300
9301 [BZ #4773]
9302 * time/strptime_l.c (__strptime_internal): Implement greedy
9303 matching of weekday and month names.
9304
9305 2007-07-09 Roland McGrath <roland@redhat.com>
9306
9307 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
9308 (ELF_NOTE_ABI): Use it.
9309 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
9310
9311 2007-07-09 Ulrich Drepper <drepper@redhat.com>
9312
9313 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
9314 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9315
9316 2007-07-07 Ulrich Drepper <drepper@redhat.com>
9317
9318 [BZ #4745]
9319 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
9320 in loop to look for conversion specifier to avoid testing of
9321 wrong errno value.
9322 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
9323 * stdio-common/bug18.c: New file.
9324 * stdio-common/bug18a.c: New file.
9325 * stdio-common/bug19.c: New file.
9326 * stdio-common/bug19a.c: New file.
9327
9328 2007-07-05 Mike Frysinger <vapier@gentoo.org>
9329
9330 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
9331 running awk script.
9332
9333 2007-07-01 Jakub Jelinek <jakub@redhat.com>
9334
9335 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
9336 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
9337 Return NULL if mmap failed instead of asserting it does not.
9338 (calloc): Check for integer overflow.
9339
9340 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
9341 than LONG_MAX / 10.
9342
9343 2007-07-03 Jakub Jelinek <jakub@redhat.com>
9344
9345 [BZ #4702]
9346 * nis/nss-default.c: Include errno.h.
9347 (init): Preserve errno.
9348
9349 2007-07-02 Ulrich Drepper <drepper@redhat.com>
9350
9351 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
9352
9353 2007-06-30 Ulrich Drepper <drepper@redhat.com>
9354
9355 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
9356
9357 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
9358
9359 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
9360
9361 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
9362
9363 * sysdeps/s390/dl-procinfo.c: New file.
9364 * sysdeps/s390/dl-procinfo.h: New file.
9365 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
9366
9367 2007-06-29 Jakub Jelinek <jakub@redhat.com>
9368
9369 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
9370 in PT_NOTE segments with multiple notes.
9371 * elf/readelflib.c (process_elf_file): Likewise.
9372
9373 2007-06-22 Ulrich Drepper <drepper@redhat.com>
9374
9375 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
9376 ISO C compliant.
9377
9378 2007-06-19 Ulrich Drepper <drepper@redhat.com>
9379
9380 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
9381
9382 2007-06-13 Jakub Jelinek <jakub@redhat.com>
9383
9384 * include/link.h: Don't include rtld-lowlevel.h.
9385 (struct link_map): Remove l_scope_lock.
9386 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
9387 (_dl_scope_free_list): New field (variable) in _rtld_global.
9388 (DL_LOOKUP_SCOPE_LOCK): Remove.
9389 (_dl_scope_free): New prototype.
9390 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
9391 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
9392 (_dl_profile_fixup): Likewise.
9393 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
9394 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
9395 THREAD_GSCOPE_RESET_FLAG around it.
9396 * elf/dl-close.c (_dl_close_worker): Don't use
9397 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
9398 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
9399 scopes were queued or if l_scope_mem has been abandoned.
9400 * elf/dl-open.c (_dl_scope_free): New function.
9401 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
9402 * elf/dl-support.c (_dl_scope_free_list): New variable.
9403 * elf/dl-lookup.c (add_dependency): Remove flags argument.
9404 Remove DL_LOOKUP_SCOPE_LOCK handling.
9405 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
9406 handling.
9407 * elf/dl-object.c (_dl_new_object): Don't use
9408 __rtld_mrlock_initialize.
9409
9410 2007-06-19 Ulrich Drepper <drepper@redhat.com>
9411
9412 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
9413 to fill in holes
9414 (rtld_global_ro): Likewise.
9415
9416 2007-06-18 Jakub Jelinek <jakub@redhat.com>
9417
9418 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
9419 Move PT_LOAD checking to...
9420 (_dl_addr_inside_object): ... here, new function.
9421 * elf/dl-sym.c (do_sym): If not l_contiguous,
9422 call _dl_addr_inside_object.
9423 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
9424 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
9425 * elf/dl-open.c (dl_open_worker): Likewise.
9426 (_dl_addr_inside_object): New function if IS_IN_rtld.
9427 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
9428 holes are present or are PROT_NONE protected.
9429 * include/link.h (struct link_map): Add l_contiguous field.
9430 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
9431
9432 2007-06-18 Jakub Jelinek <jakub@redhat.com>
9433 Tomas Janousek <tjanouse@redhat.com>
9434 Ulrich Drepper <drepper@redhat.com>
9435
9436 [BZ #4647]
9437 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
9438 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
9439 socket.
9440 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
9441 unused member a bitmap.
9442 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
9443 servers are configured.
9444
9445 2007-06-18 Jakub Jelinek <jakub@redhat.com>
9446
9447 * elf/rtld.c (dl_main): Don't call init_tls more than once.
9448
9449 2007-06-17 Andreas Schwab <schwab@suse.de>
9450
9451 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
9452
9453 2007-06-16 Andreas Jaeger <aj@suse.de>
9454
9455 [BZ #4125]
9456 * sysdeps/unix/sysv/linux/sys/ptrace.h
9457 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
9458 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
9459 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
9460 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
9461 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
9462 Define.
9463 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9464 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9465 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9466 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9467
9468 2007-06-16 Ulrich Drepper <drepper@redhat.com>
9469
9470 [BZ #4599]
9471 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
9472 determining whether there are IPv4/IPv6 addresses, ignore loopback
9473 addresses.
9474
9475 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
9476
9477 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
9478 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
9479 as the return type. Change type of "r" variable to CMPtype.
9480 * soft-fp/eqsf2.c (__eqsf2): Likewise.
9481 * soft-fp/eqtf2.c (__eqtf2): Likewise.
9482 * soft-fp/gedf2.c (__gedf2): Likewise.
9483 * soft-fp/gesf2.c (__gesf2): Likewise.
9484 * soft-fp/getf2.c (__getf2): Likewise.
9485 * soft-fp/ledf2.c (__ledf2): Likewise.
9486 * soft-fp/lesf2.c (__lesf2): Likewise.
9487 * soft-fp/letf2.c (__letf2): Likewise.
9488 * soft-fp/unorddf2 (__unorddf2): Likewise.
9489 * soft-fp/unordsf2 (__unordsf2): Likewise.
9490 * soft-fp/unordtf2 (__unordtf2): Likewise.
9491
9492 2007-06-09 Ulrich Drepper <drepper@redhat.com>
9493
9494 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
9495 make sure gcc doesn't mess around with this.
9496
9497 2007-06-08 Ulrich Drepper <drepper@redhat.com>
9498
9499 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
9500
9501 2007-06-08 Jakub Jelinek <jakub@redhat.com>
9502
9503 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
9504 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
9505 at most once per _dl_close_worker.
9506
9507 2007-06-08 Ulrich Drepper <drepper@redhat.com>
9508
9509 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
9510 __sched_cpucount as const.
9511 * posix/sched_cpucount.c: Adjust.
9512
9513 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
9514 instruction for counting bits.
9515 * sysdeps/x86_64/sched_cpucount.c: New file.
9516
9517 2007-06-07 Ulrich Drepper <drepper@redhat.com>
9518
9519 * configure.in: Avoid variable named BASH.
9520 * config.make.in: Likewise.
9521 Patch in part by Mike Frysinger.
9522
9523 2007-06-06 Jakub Jelinek <jakub@redhat.com>
9524
9525 [BZ #4586]
9526 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
9527 pseudo-zeros as zero.
9528 * sysdeps/x86_64/ldbl2mpn.c: New file.
9529 * sysdeps/ia64/ldbl2mpn.c: New file.
9530
9531 2007-06-04 Jakub Jelinek <jakub@redhat.com>
9532
9533 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
9534 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
9535 Remove unreachable code at the end.
9536
9537 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
9538
9539 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
9540 ldbl-128ibm in comment.
9541 (fpclassifyl): Correct classification of denormals.
9542 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
9543 return value for MIN denormal. Rewrite using long double math too
9544 correctly handle denormals and canonicalize the results.
9545
9546 2007-06-05 Jakub Jelinek <jakub@redhat.com>
9547
9548 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
9549 (__mpn_construct_long_double): Fix conversion where result ought
9550 to be smaller than __LDBL_MIN__, or the low double should be
9551 denormal. Fix decision where to negate low double - honor round
9552 to even rules.
9553 * stdio-common/tst-sprintf2.c: Include string.h.
9554 (COMPARE_LDBL): Define.
9555 (TEST): Also test whether a string hexadecimal float representation
9556 can be parsed back to the number.
9557 (main): Add a couple of further tests.
9558
9559 2007-06-04 Jakub Jelinek <jakub@redhat.com>
9560
9561 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
9562 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
9563 is non-zero, but smaller than 2 * __DBL_MIN__.
9564 * stdio-common/tst-sprintf2.c: New test.
9565 * stdio-common/Makefile (tests): Add tst-sprintf2.
9566
9567 * math/test-misc.c (main): Don't run last batch of tests with
9568 IBM long double format.
9569
9570 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
9571
9572 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
9573 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
9574 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
9575 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
9576 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9577 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
9578 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
9579 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
9580 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
9581 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9582 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
9583 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
9584 New file.
9585 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
9586 New file.
9587 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
9588 New file.
9589 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
9590 New file.
9591 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
9592 New file.
9593 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
9594 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
9595 New file.
9596 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
9597 New file.
9598 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
9599 New file.
9600 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
9601 New file.
9602 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
9603 New file.
9604
9605 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
9606
9607 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
9608 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
9609 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
9610 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
9611 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
9612 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
9613 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
9614 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
9615
9616 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
9617
9618 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
9619 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9620 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
9621 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9622 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
9623 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9624 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
9625 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9626
9627 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
9628
9629 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
9630 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
9631 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
9632 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
9633
9634 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
9635
9636 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
9637 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
9638
9639 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
9640
9641 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
9642 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
9643 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
9644 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
9645
9646 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
9647
9648 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
9649 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
9650
9651 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
9652
9653 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
9654 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
9655
9656 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
9657 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
9658 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
9659 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
9660
9661 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
9662
9663 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
9664 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
9665 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
9666 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
9667
9668 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
9669
9670 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
9671 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
9672 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
9673 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9674 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
9675 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9676
9677 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
9678
9679 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
9680 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
9681 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
9682 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
9683
9684 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
9685
9686 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
9687 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
9688 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
9689 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
9690 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
9691 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
9692 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
9693 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
9694 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
9695 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
9696 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
9697 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
9698 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
9699 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
9700 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
9701 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
9702
9703 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
9704
9705 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
9706 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
9707
9708 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
9709
9710 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
9711 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
9712
9713 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
9714
9715 * sysdeps/powerpc/powerpc32/970/Implies: New file.
9716 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
9717 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
9718 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
9719 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
9720 * sysdeps/powerpc/powerpc64/970/Implies: New file.
9721 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
9722 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
9723 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
9724 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
9725
9726 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
9727
9728 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
9729
9730 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
9731
9732 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
9733 branch miss-predicts. Ensure that cache line crossing does not impact
9734 dispatch grouping.
9735
9736 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
9737
9738 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
9739 "../../powerpc32/power4/memcopy.h".
9740 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
9741 "../../powerpc32/power4/wordcopy.c".
9742
9743 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
9744
9745 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
9746 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
9747 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
9748 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
9749 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
9750 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
9751
9752 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
9753
9754 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
9755
9756 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
9757
9758 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
9759 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
9760 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
9761 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
9762 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
9763 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
9764 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
9765 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
9766
9767 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
9768
9769 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
9770
9771 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
9772
9773 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
9774 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
9775 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
9776 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
9777 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
9778 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
9779 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
9780
9781 2007-05-29 Roland McGrath <roland@redhat.com>
9782
9783 * po/Makefile (po-sed-cmd): New variable.
9784 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
9785
9786 2007-05-29 Ulrich Drepper <drepper@redhat.com>
9787
9788 * crypt/md5-crypt.c: Fix comment.
9789
9790 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
9791 of crashing. When this is the case or if the reply is malformed,
9792 don't try to close the new file descriptor since it does not
9793 exist.
9794 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
9795
9796 2007-05-28 Jakub Jelinek <jakub@redhat.com>
9797
9798 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
9799 if __NR_utimensat is not defined.
9800
9801 2007-05-26 Ulrich Drepper <drepper@redhat.com>
9802
9803 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
9804
9805 2007-05-25 Jakub Jelinek <jakub@redhat.com>
9806
9807 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
9808 (open): Fix comment typos. Don't call __open_2 if flags
9809 is a compile time constant without O_CREAT.
9810 (__open64_2): Add nonnull attribute.
9811 (open64): Fix comment typos. Don't call __open64_2 if flags
9812 is a compile time constant without O_CREAT.
9813 (__openat_2): Add nonnull attribute, fix nonnull attribute
9814 on redirect.
9815 (openat): Fix comment typos. Don't call __openat_2 if flags
9816 is a compile time constant without O_CREAT.
9817 (__openat64_2): Add nonnull attribute, fix nonnull attribute
9818 on redirect.
9819 (openat64): Fix comment typos. Don't call __openat64_2 if flags
9820 is a compile time constant without O_CREAT.
9821
9822 2007-05-24 Ulrich Drepper <drepper@redhat.com>
9823
9824 * Makerules (sysd-rules): Define PTW for ptw-* files.
9825 * Versions: Define GLIBC_2.7 for libc.
9826 * include/stdio.h: Declare __fortify_fail.
9827 * debug/fortify_fail.c: New file.
9828 * debug/Makefile (routines): Add fortify_fail.
9829 * debug/chk_fail.c: Use __fortify_fail.
9830 * debug/stack_chk_fail.c: Likewise.
9831 * io/Versions: Export __open_2, __open64_2, __openat_2, and
9832 __openat64_2 for GLIBC_2.7.
9833 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
9834 * io/open.c: Define *_2 variant of function which checks for O_CREAT
9835 and fails if necessary.
9836 * io/open64.c: Likewise.
9837 * io/openat.c: Likewise.
9838 * io/openat64.c: Likewise.
9839 * sysdeps/unix/sysv/linux/open64.c: Likewise.
9840 * sysdeps/unix/sysv/linux/openat.c: Likewise.
9841 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
9842 * io/bits/fcntl2.h: New file.
9843 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
9844 __openat64_2.
9845 * include/bits/fcntl2.h: New file.
9846 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9847 Add open_2.
9848 * sysdeps/unix/sysv/linux/open_2.c: New file.
9849
9850 2007-05-21 Ulrich Drepper <drepper@redhat.com>
9851
9852 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
9853 as second parameter to handle_intel.
9854
9855 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
9856 the entry.
9857
9858 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
9859 handling to ...
9860 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
9861 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
9862 cacheinfo.
9863 * sysdeps/x86_64/memcpy.S: Complete rewrite.
9864 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
9865 Patch by Evandro Menezes <evandro.menezes@amd.com>.
9866
9867 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
9868
9869 2007-05-21 Jakub Jelinek <jakub@redhat.com>
9870
9871 [BZ #4525]
9872 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
9873 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
9874 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
9875
9876 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
9877
9878 [BZ #4514]
9879 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
9880 reinitialize workend at the start of each do_positional format spec
9881 loop, free workstart before do_positional loops.
9882 (printf_unknown): Fix size of work_buffer.
9883 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
9884
9885 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
9886 (public_sET_STATe): If ms->version < 3, put all chunks into
9887 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
9888 chunks.
9889
9890 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
9891 * malloc/hooks.c: Likewise.
9892 * malloc/arena.c: Likewise.
9893 * malloc/malloc.c (do_check_malloc_state): Don't assert
9894 n_mmaps is not greater than n_mmaps_max. This removes the need
9895 for the previous change.
9896
9897 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
9898 2007-05-07 commit.
9899
9900 2007-05-19 Ulrich Drepper <drepper@redhat.com>
9901
9902 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
9903 Define for kernel >= 2.6.22.
9904
9905 2007-05-18 Ulrich Drepper <drepper@redhat.com>
9906
9907 * elf/dl-close.c (_dl_close_worker): When removing object from
9908 global scope, wait for all lookups to finish afterwards.
9909 * elf/dl-open.c (add_to_global): When global scope array must
9910 grow, allocate a new one and free old array only after all
9911 lookups finish.
9912 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
9913 (_dl_lookup_symbol_x): Likewise.
9914 * elf/dl-support.c: Define _dl_wait_lookup_done.
9915 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9916 _dl_wait_lookup_done.
9917
9918 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
9919 not overlapping with arena.
9920
9921 * malloc/mcheck.c (reallochook): If size==0, free the block.
9922
9923 * rt/tst-shm.c: Use fstat64 instead of fstat.
9924
9925 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
9926 __NR_sync_file_range is not defined.
9927
9928 2007-05-17 Ulrich Drepper <drepper@redhat.com>
9929
9930 Dummy files to prevent stub versions from being used.
9931 * sysdeps/x86_64/fpu/k_cosl.c: New file.
9932 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
9933 * sysdeps/x86_64/fpu/k_sinl.c: New file.
9934 * sysdeps/x86_64/fpu/k_tanl.c: New file.
9935
9936 * version.h (VERSION): Set to 2.6.90.
9937
9938 2007-05-14 Ulrich Drepper <drepper@redhat.com>
9939
9940 * version.h (VERSION): Define to 2.6.
9941 * include/features.h (__GLIBC_MINOR__): Define to 6.
9942
9943 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
9944
9945 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
9946 sizes.
9947
9948 2007-05-13 Ulrich Drepper <drepper@redhat.com>
9949
9950 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
9951 number of mmaps. n_mmaps_max is the target.
9952 * malloc/hooks.c: Likewise.
9953 * malloc/arena.c: Likewise.
9954
9955 2007-05-12 Andreas Jaeger <aj@suse.de>
9956
9957 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
9958 getpid.
9959
9960 2007-05-11 Ulrich Drepper <drepper@redhat.com>
9961
9962 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
9963 adding new variables.
9964
9965 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
9966 optimize. Completely extend global scope array before making the
9967 new entries visible.
9968
9969 2007-05-10 Ulrich Drepper <drepper@redhat.com>
9970
9971 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
9972 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
9973 tst-getcpu.
9974
9975 * include/link.h: Move l_version and l_nversion members around to
9976 fill gaps.
9977
9978 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
9979
9980 * sysdeps/unix/sysv/linux/sched_setaffinity.c
9981 (__sched_setaffinity_new): If syscall was successful and
9982 RESET_VGETCPU_CACHE is defined, use it before returning.
9983 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
9984
9985 * io/sys/stat.h: Make sure struct timespec is defined for
9986 __USE_ATFILE.
9987
9988 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
9989 UTIME_OMIT.
9990 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
9991 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
9992 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
9993 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
9994 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
9995 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
9996 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
9997 * io/sys/stat.h: Declare utimensat, futimens.
9998 * io/utimensat.c: New file.
9999 * io/futimens.c: New file.
10000 * sysdeps/unix/sysv/linux/utimensat.c: New file.
10001 * sysdeps/unix/sysv/linux/futimens.c: New file.
10002 * io/Makefile (routines): Add utimensat, futimens.
10003 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
10004 * sysdeps/unix/sysv/linux/lutimes.c: New file.
10005 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
10006 available.
10007
10008 * include/sys/cdefs.h: Redefine __nonnull so that test for
10009 incorrect parameters in the libc code itself are not omitted.
10010
10011 2007-05-09 Jakub Jelinek <jakub@redhat.com>
10012
10013 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
10014 exception in addition to inexact when asked to raise only FE_INEXACT.
10015
10016 [BZ #3427]
10017 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
10018 in *envp.
10019
10020 2007-05-07 Ulrich Drepper <drepper@redhat.com>
10021
10022 [BZ #4403]
10023 * string/strfry.c (strfry): Make result more random.
10024
10025 2007-05-07 Richard Henderson <rth@redhat.com>
10026
10027 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
10028 if __NO_LONG_DOUBLE_MATH.
10029 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
10030 available in the compiler, add .arch directive to the assembly.
10031
10032 2007-05-07 Jakub Jelinek <jakub@redhat.com>
10033
10034 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
10035 compat_symbol to GLIBC_2_1.
10036 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
10037 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
10038 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
10039 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
10040 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
10041 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
10042 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
10043 libc, not libm.
10044 (__isnanl): New compat_symbol.
10045
10046 2007-05-07 Ulrich Drepper <drepper@redhat.com>
10047 Jakub Jelinek <jakub@redhat.com>
10048
10049 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
10050 (new_heap): Initialize mprotect_size.
10051 (grow_heap): When growing, only mprotect from mprotect_size till
10052 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
10053 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
10054
10055 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
10056 Peter Bergner <bergner@us.ibm.com>
10057
10058 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
10059 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
10060 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
10061 * sysdeps/powerpc/fpu/fe_mask.c: New file.
10062 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
10063 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
10064 Call __fe_mask_env() if all FP exceptions disabled.
10065 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
10066 from old FPSCR to new fenv to propagate DFP rounding modes.
10067 Call __fe_mask_env() if FP exceptions previously enabled.
10068 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
10069 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
10070 transitioning from all exceptions disabled to any exception enabled
10071 or visa versa.
10072 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
10073 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
10074 when transitioning from all exceptions disabled to any exception
10075 enabled or visa versa.
10076 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
10077 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
10078 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
10079 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
10080 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
10081 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10082
10083 2007-05-06 Ulrich Drepper <drepper@redhat.com>
10084
10085 [BZ #4465]
10086 * posix/unistd.h: Remove __THROW from fdatasync.
10087
10088 2007-05-06 Mike Frysinger <vapier@gentoo.org>
10089
10090 [BZ #4465]
10091 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10092
10093 2007-05-06 Ulrich Drepper <drepper@redhat.com>
10094
10095 * stdio-common/vfprintf.c (process_string_arg): Optimize
10096 ridiculous precision in wide char code printing multi-byte string.
10097 Reported by Jim Meyering <jim@meyering.net>.
10098
10099 [BZ #4131]
10100 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10101 boundaries to work around systems with overlapping binary loading.
10102 Based on a patch by Suzuki <suzuki@in.ibm.com>.
10103
10104 2007-05-04 Ulrich Drepper <drepper@redhat.com>
10105
10106 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10107 __mbsnrtowcs after last change.
10108
10109 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10110 (get_ident): Likewise.
10111
10112 2007-05-03 Jakub Jelinek <jakub@redhat.com>
10113
10114 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10115 with setting the sticky bit.
10116 * math/test-misc.c (main): Add more truncation tests.
10117
10118 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
10119
10120 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10121 double in the function declaration.
10122 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10123 double in the function declaration.
10124 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10125 float in the function declaration.
10126 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10127 float in the function declaration.
10128
10129 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10130 denormal operands. Do not generate FP_EX_DENORM exception.
10131 (FP_UNPACK_RAW_EP): Ditto.
10132 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10133 undefined _FP_UNPACK_RAW_E.
10134 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10135 undefined _FP_UNPACK_RAW_EP.
10136 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10137 undefined _FP_PACK_RAW_E.
10138 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10139 undefined _FP_PACK_RAW_EP.
10140
10141 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10142 _FP_FRAC_COPY_2.
10143 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10144 _FP_FRAC_COPY_4.
10145
10146 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
10147 Jakub Jelinek <jakub@redhat.com>
10148
10149 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10150 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
10151 this case.
10152 * soft-fp/op-common.h (FP_TRUNC): Ditto.
10153
10154 2007-05-03 Jakub Jelinek <jakub@redhat.com>
10155
10156 * math/test-misc.c (main): Add tests for rounding long double
10157 values close to smallest double denormalized value to double.
10158
10159 2007-04-30 Joseph Myers <joseph@codesourcery.com>
10160
10161 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10162 condition for truncating to 0. Set sticky bit for such
10163 truncation.
10164
10165 2007-05-02 Jakub Jelinek <jakub@redhat.com>
10166
10167 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
10168 fixed length array for ignore.
10169
10170 2007-04-30 Ulrich Drepper <drepper@redhat.com>
10171
10172 [BZ #4438]
10173 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
10174 stack for large precisions.
10175 * stdio-common/test-vfprintf.c (main): Add test for large
10176 precision.
10177
10178 2007-04-30 Jakub Jelinek <jakub@redhat.com>
10179
10180 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
10181 for exponent 0.
10182 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
10183
10184 [BZ #4439]
10185 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
10186 account in the size check.
10187 * resolv/tst-inet_ntop.c: New test.
10188 * resolv/Makefile (tests): Add tst-inet_ntop.
10189
10190 2007-04-30 Ulrich Drepper <drepper@redhat.com>
10191 Jakub Jelinek <jakub@redhat.com>
10192
10193 [BZ #4349]
10194 * malloc/malloc.c: Keep separate list for first blocks on the bin
10195 lists with a given size. This helps skipping over list elements
10196 we know won't fit in two places.
10197 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
10198
10199 2007-04-28 Ulrich Drepper <drepper@redhat.com>
10200
10201 [BZ #4102]
10202 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
10203 label to Teredo tunnel addresses 2001://32.
10204
10205 2007-04-27 Ulrich Drepper <drepper@redhat.com>
10206
10207 * locale/programs/ld-collate.c (collate_read): Allow order_start
10208 after copy.
10209
10210 * locale/programs/ld-collate.c (collate_read): Fix printing of
10211 error message.
10212
10213 [BZ #3213]
10214 * locale/C-translit.h.in: Add entry for U2044.
10215
10216 [BZ #4342]
10217 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
10218 hexa-decimal floats without exponent.
10219 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
10220
10221 2007-04-25 Ulrich Drepper <drepper@redhat.com>
10222
10223 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
10224 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
10225 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
10226 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
10227 GLIBC_2.6.
10228 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
10229 Add sched_getcpu.
10230
10231 2007-04-25 Jakub Jelinek <jakub@redhat.com>
10232
10233 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
10234 of 0 after the out_fail label.
10235
10236 2007-04-25 Ulrich Drepper <drepper@redhat.com>
10237
10238 [BZ #4406]
10239 * iconv/gconv_charset.h (strip): Allow ':'.
10240 * iconv/iconv_open.c (iconv_open): Adjust comment.
10241
10242 2007-04-25 Jakub Jelinek <jakub@redhat.com>
10243
10244 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
10245 version.
10246
10247 2007-04-23 Jakub Jelinek <jakub@redhat.com>
10248
10249 [BZ #4381]
10250 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10251 alignment of buffer and tmp_buffer.
10252 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10253 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10254 alignment of buffer.
10255 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
10256 bigger than INT_MAX.
10257 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
10258 h_errnop arguments. Fail if buflen is too small.
10259 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10260
10261 2007-04-23 Jakub Jelinek <jakub@redhat.com>
10262
10263 [BZ #4405]
10264 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10265 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
10266
10267 2007-04-22 Roland McGrath <roland@redhat.com>
10268
10269 * elf/elf.h (NT_PRXFPREG): New macro.
10270
10271 2007-04-19 Andreas Jaeger <aj@suse.de>
10272
10273 [BZ #3905]
10274 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
10275 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
10276 Added.
10277
10278 2007-04-19 Ulrich Drepper <drepper@redhat.com>
10279
10280 * include/sys/mman.h: Mark madvise hidden.
10281 * misc/madvise.c: Add libc_hidden_def.
10282
10283 2007-04-06 Jakub Jelinek <jakub@redhat.com>
10284
10285 * nis/nis_domain_of.c (__nis_domain_of): New function.
10286 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
10287 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
10288 * nis/nis_call.c (rec_dirsearch): Likewise.
10289 (first_shoot): Likewise. Remove search_parent_first argument.
10290 (struct nis_server_cache): Rename search_parent_first field
10291 to search_parent.
10292 (nis_server_cache_search, nis_server_cache_add): Rename
10293 search_parent_first argument to search_parent.
10294 (__nisfind_server): Likewise. If search_parent, call
10295 __nis_domain_of.
10296
10297 2007-04-18 Ulrich Drepper <drepper@redhat.com>
10298
10299 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
10300
10301 2007-04-17 Ulrich Drepper <drepper@redhat.com>
10302
10303 [BZ #4368]
10304 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
10305
10306 2007-04-16 Ulrich Drepper <drepper@redhat.com>
10307
10308 [BZ #4364]
10309 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
10310
10311 2007-04-15 Jakub Jelinek <jakub@redhat.com>
10312
10313 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
10314 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
10315 current number of locales in SUPPORTED.
10316 (create_archive): Initialize serial.
10317 (enlarge_archive): Preserve aliases rather than duplicating
10318 their locrecs.
10319
10320 2007-04-13 Jakub Jelinek <jakub@redhat.com>
10321
10322 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
10323 after _IO_un_link, not before it.
10324
10325 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
10326 special case handling when wcp == wstartp + 1. Fix a comment typo.
10327 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
10328
10329 2007-03-30 Jakub Jelinek <jakub@redhat.com>
10330
10331 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
10332 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
10333 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
10334 Remove __THROW.
10335 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
10336 _IO_file_xsgetn_maybe_mmap): Likewise.
10337 * libio/oldfileops.c (old_do_write): Likewise.
10338 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
10339 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
10340 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
10341 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
10342 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
10343 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
10344 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
10345 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
10346 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
10347 _IO_file_underflow, _IO_file_underflow_mmap,
10348 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
10349 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
10350 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
10351 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
10352 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
10353 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
10354 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
10355 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
10356 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
10357 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
10358 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
10359 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
10360 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
10361 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
10362 _IO_adjust_column_internal, _IO_default_uflow_internal,
10363 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
10364 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
10365 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
10366 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
10367 _IO_file_close_it_internal, _IO_file_underflow_internal,
10368 _IO_file_overflow_internal, _IO_file_attach_internal,
10369 _IO_file_fopen_internal, _IO_file_sync_internal,
10370 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
10371 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
10372 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
10373 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
10374 _IO_seekpos_unlocked): Likewise.
10375 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
10376 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
10377
10378 2007-04-16 Jakub Jelinek <jakub@redhat.com>
10379
10380 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
10381 argument in xmalloc size computation.
10382
10383 2007-04-01 Jakub Jelinek <jakub@redhat.com>
10384
10385 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
10386 math_opt_barrier and math_force_eval macros.
10387
10388 2007-03-27 Jakub Jelinek <jakub@redhat.com>
10389
10390 [BZ #3306]
10391 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
10392 * sysdeps/i386/fpu/math_private.h: New file.
10393 * sysdeps/x86_64/fpu/math_private.h: New file.
10394 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
10395 math_force_eval macros. Use "+m" constraint on asm rather than
10396 "=m" and "m".
10397 * math/s_nextafter.c (__nextafter): Likewise.
10398 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10399 Likewise.
10400 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
10401 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
10402 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10403 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
10404 math_opt_barrier and math_force_eval macros.
10405 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
10406 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
10407 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
10408 (__nexttoward): Use math_opt_barrier and
10409 math_force_eval macros. Use "+m" constraint on asm rather than
10410 "=m" and "m". Only use asm to force double result if
10411 FLT_EVAL_METHOD is 2.
10412 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
10413 (__nexttowardf): Use math_opt_barrier and
10414 math_force_eval macros. Use "+m" constraint on asm rather than
10415 "=m" and "m". Only use asm to force double result if
10416 FLT_EVAL_METHOD is not 0.
10417 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
10418 (__nexttowardf): Use math_opt_barrier and
10419 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
10420 x to float using asm.
10421 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
10422 (__nldbl_nexttowardf): Use math_opt_barrier and
10423 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
10424 x to float using asm.
10425 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
10426 (__nexttowardf): Use math_opt_barrier and math_force_eval
10427 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
10428 * math/bug-nextafter.c (zero, inf): New variables.
10429 (main): Add new tests.
10430 * math/bug-nexttoward.c (zero, inf): New variables.
10431 (main): Add new tests.
10432
10433 2007-03-22 Jakub Jelinek <jakub@redhat.com>
10434
10435 [BZ #3427]
10436 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
10437 exceptions both in SW and MXCSR.
10438 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
10439 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
10440 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10441 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10442 in MXCSR if SSE is available.
10443 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
10444 and ldsodefs.h.
10445 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
10446 Fix comment typo.
10447 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
10448 Return 0 rather than 1.
10449 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
10450 Remove incorrect part of a comment. Fix argument to feraiseexcept.
10451 * math/test-fenv.c (feholdexcept_tests): New function.
10452 (main): Call it.
10453
10454 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
10455
10456 [BZ #3427]
10457 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10458 in SW.
10459
10460 2007-04-13 Jakub Jelinek <jakub@redhat.com>
10461
10462 [BZ #4344]
10463 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
10464 Reported by David Anderson <davea42@earthlink.net>.
10465
10466 2007-04-07 Ulrich Drepper <drepper@redhat.com>
10467
10468 * posix/sys/wait.h: Remove unnecessary forward declaration.
10469
10470 2007-04-05 Jakub Jelinek <jakub@redhat.com>
10471
10472 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
10473 with obj->do_servers after first_shoot.
10474
10475 2007-04-03 Ulrich Drepper <drepper@redhat.com>
10476
10477 * posix/Makefile (routines): Add sched_cpucount.
10478 (tests): Add tst-cpucount.
10479 * posix/sched_cpucount.c: New file.
10480 * posix/tst-cpucount.c: New file.
10481 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
10482 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
10483 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10484 * posix/sched.h: Define CPU_COUNT.
10485
10486 2007-03-27 Jakub Jelinek <jakub@redhat.com>
10487
10488 * posix/fnmatch.c (STRUCT): Define.
10489 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
10490 * posix/fnmatch_loop.c (struct STRUCT): New type.
10491 (FCT): Add ends argument. If ends != NULL and normal * is
10492 seen in the pattern, store current pattern and string pointers
10493 and return. Adjust recursive calls.
10494 (EXT): Adjust FCT callers.
10495 (STRUCT): Undef at the end of the file.
10496 * posix/Makefile (tests): Add tst-fnmatch2.
10497 * posix/tst-fnmatch2.c: New test.
10498
10499 2007-04-01 Jakub Jelinek <jakub@redhat.com>
10500
10501 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
10502 and 1 on failure.
10503
10504 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
10505 Change last argument to unsigned int.
10506
10507 2007-03-23 Jakub Jelinek <jakub@redhat.com>
10508
10509 * scripts/check-local-headers.sh: Filter out sys/capability.h.
10510
10511 2007-03-22 Jakub Jelinek <jakub@redhat.com>
10512
10513 * config.h.in (HAVE_LIBCAP): Add.
10514 * nscd/selinux.h: Include sys/capability.h rather than non-existent
10515 sys/capabilities.h.
10516 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
10517 free_caps. Cast away const from 4th cap_set_flag argument.
10518
10519 2007-03-26 Ulrich Drepper <drepper@redhat.com>
10520
10521 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
10522 GLIBC_2.6.
10523 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10524 Add sync_file_range.
10525 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
10526
10527 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
10528
10529 * sysdeps/powerpc/bits/atomic.h
10530 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
10531 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
10532 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10533 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
10534 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10535 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
10536 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
10537 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10538 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10539 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10540 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
10541 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10542 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10543 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10544 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10545 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
10546 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10547 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
10548 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10549 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
10550
10551 2007-03-20 Jakub Jelinek <jakub@redhat.com>
10552
10553 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
10554 (__cache_line_size): Define the variable here. Add
10555 attribute_hidden, remove weak_extern.
10556 (__libc_start_main): Set __cache_line_size
10557 unconditionally.
10558 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
10559 (__cache_line_size): Define the variable here. Add
10560 attribute_hidden, remove weak_extern.
10561 (DL_PLATFORM_AUXV): Set __cache_line_size
10562 unconditionally.
10563 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
10564 weak_extern, add attribute_hidden.
10565 (__elf_machine_runtime_setup): Assume __cache_line_size is always
10566 defined in ld.so.
10567 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
10568 definition.
10569 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
10570
10571 2007-03-26 Jakub Jelinek <jakub@redhat.com>
10572
10573 [BZ #4276]
10574 * timezone/africa: Update from tzdata2007d.
10575 * timezone/asia: Likewise.
10576 * timezone/australasia: Likewise.
10577 * timezone/backward: Likewise.
10578 * timezone/europe: Likewise.
10579 * timezone/iso3166.tab: Likewise.
10580 * timezone/leapseconds: Likewise.
10581 * timezone/northamerica: Likewise.
10582 * timezone/southamerica: Likewise.
10583 * timezone/zone.tab: Likewise.
10584
10585 * timezone/private.h: Update from tzcode2007d.
10586 * timezone/zdump.c: Likewise.
10587 * timezone/zic.c: Likewise.
10588
10589 2007-03-21 Jakub Jelinek <jakub@redhat.com>
10590
10591 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
10592 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
10593 variables.
10594 (nis_server_cache_search, nis_server_cache_add): New functions.
10595 (__nisfind_server): Use them. Add dbp and flags argument, if
10596 call __nisbind_create.
10597 (__nisbind_create): Add server_used and current_ep arguments,
10598 only call __nis_findfastest if server_used is ~0.
10599 (__do_niscall2, __prepare_niscall): Adjust callers.
10600 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
10601 ckey_cache_euid, ckey_cache_lock): New variables.
10602 (get_ckey): New function.
10603 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
10604 __pmap_getnisport. Save __pmap_getnisport result in
10605 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
10606 key.
10607 * nis/nis_lookup.c (nis_lookup): Likewise.
10608 * nis/nis_table.c (nis_list): Likewise.
10609 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
10610 prototypes.
10611
10612 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
10613 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
10614 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
10615 _nss_nisplus_getservbyport_r): Likewise.
10616 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
10617 _nss_nisplus_getnetbyaddr_r): Likewise.
10618 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
10619 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
10620 _nss_nisplus_getntohost_r): Likewise.
10621 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
10622 _nss_nisplus_getrpcbynumber_r): Likewise.
10623
10624 2007-03-20 Jakub Jelinek <jakub@redhat.com>
10625
10626 * configure.in (libc_cv_gnu89_inline): Only do compile test.
10627 * configure: Rebuilt.
10628
10629 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
10630 bit-fields.
10631 * soft-fp/extended.h (_FP_UNION_E): Likewise.
10632
10633 2006-06-07 Joseph Myers <joseph@codesourcery.com>
10634
10635 [BZ #2831]
10636 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
10637 bit-fields.
10638
10639 2007-03-18 Jakub Jelinek <jakub@redhat.com>
10640
10641 * nscd/gai.c: Include alloca.h.
10642 (__libc_use_alloca): Define.
10643
10644 2007-03-16 Jakub Jelinek <jakub@redhat.com>
10645
10646 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
10647 smaller scopes.
10648 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
10649 (DL_DST_REQUIRED): Adjust user.
10650
10651 * include/dlfcn.h (struct link_map): New forward decl.
10652
10653 * inet/getnameinfo.c: Include stddef.h.
10654 (getnameinfo): Use offsetof.
10655
10656 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
10657
10658 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
10659
10660 * string/strerror_l.c: Include stdlib.h.
10661
10662 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
10663 * config.make.in (gnu89-inline-CFLAGS): New variable.
10664 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
10665 -std=gnu99.
10666 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
10667 * argp/argp.h: Use it.
10668 * bits/mathinline.h: Likewise.
10669 * bits/sigset.h: Likewise.
10670 * bits/string.h: Likewise.
10671 * ctype/ctype.h: Likewise.
10672 * hurd/hurd.h: Likewise.
10673 * hurd/hurd/fd.h: Likewise.
10674 * hurd/hurd/port.h: Likewise.
10675 * hurd/hurd/signal.h: Likewise.
10676 * hurd/hurd/threadvar.h: Likewise.
10677 * hurd/hurd/userlink.h: Likewise.
10678 * io/sys/stat.h: Likewise.
10679 * libio/bits/stdio.h: Likewise.
10680 * libio/bits/stdio2.h: Likewise.
10681 * mach/lock-intern.h: Likewise.
10682 * mach/mach/mig_support.h: Likewise.
10683 * math/bits/cmathcalls.h: Likewise.
10684 * posix/bits/unistd.h: Likewise.
10685 * socket/bits/socket2.h: Likewise.
10686 * stdlib/bits/stdlib.h: Likewise.
10687 * stdlib/stdlib.h: Likewise.
10688 * string/argz.h: Likewise.
10689 * string/bits/string2.h: Likewise.
10690 * string/bits/string3.h: Likewise.
10691 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
10692 * sysdeps/generic/inttypes.h: Likewise.
10693 * sysdeps/generic/machine-lock.h: Likewise.
10694 * sysdeps/generic/machine-sp.h: Likewise.
10695 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
10696 * sysdeps/i386/i486/bits/string.h: Likewise.
10697 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
10698 * sysdeps/mach/alpha/machine-lock.h: Likewise.
10699 * sysdeps/mach/alpha/machine-sp.h: Likewise.
10700 * sysdeps/mach/i386/machine-lock.h: Likewise.
10701 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10702 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
10703 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
10704 * sysdeps/s390/bits/string.h: Likewise.
10705 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
10706 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10707 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
10708 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
10709 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10710 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
10711 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
10712 * wcsmbs/bits/wchar2.h: Likewise.
10713 * wcsmbs/wchar.h: Likewise.
10714 * stdlib/gmp.h: Likewise. Include <features.h> to get
10715 __extern_inline definition.
10716
10717 2007-03-15 Jakub Jelinek <jakub@redhat.com>
10718
10719 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
10720 NULL.
10721
10722 [BZ #3919]
10723 * math/libm-test.inc (log_test): Test -Inf and NaN.
10724 (log10_test, log1p_test, log2_test): Test -Inf.
10725 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
10726 FE_INVALID when argument is qNaN.
10727 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
10728 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
10729 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
10730 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
10731 andb $1, %ah with testb $1, %ah, don't test for parity, instead
10732 testb $4, %ah and jump if non-zero.
10733 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
10734 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
10735
10736 [BZ #4101]
10737 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
10738 ancestors with the same depths.
10739 Patch by Niels Moeller <nisse@lysator.liu.se>.
10740 (filter_doc): Don't crash if argp is NULL.
10741 * argp/Makefile (tests): Add tst-argp2.
10742 * argp/tst-argp2.c: New test.
10743
10744 [BZ #4130]
10745 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
10746 open_not_cancel_2.
10747 (updwtmp_file): Likewise.
10748
10749 [BZ #4181]
10750 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
10751 (inet6_opt_append): Don't check extlen is big enough if extbuf
10752 is NULL.
10753 (inet6_opt_finish): Likewise.
10754 * inet/Makefile (tests): Add test-inet6_opt.
10755 * inet/test-inet6_opt.c: New test.
10756
10757 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
10758 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
10759 NLMSG_ERR. Instead use a page sized buffer.
10760 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
10761 buffer.
10762
10763 2007-03-14 Richard Henderson <rth@redhat.com>
10764
10765 * sysdeps/alpha/fpu/s_llround.c: New file.
10766 * sysdeps/alpha/fpu/s_llroundf.c: New file.
10767 * sysdeps/alpha/fpu/s_lround.c: New file.
10768 * sysdeps/alpha/fpu/s_lroundf.c: New file.
10769 * sysdeps/alpha/fpu/s_round.c: New file.
10770 * sysdeps/alpha/fpu/s_roundf.c: New file.
10771 * sysdeps/alpha/fpu/s_trunc.c: New file.
10772 * sysdeps/alpha/fpu/s_truncf.c: New file.
10773
10774 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
10775 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10776 * sysdeps/alpha/fpu/s_floor.c: Likewise.
10777 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10778 * sysdeps/alpha/fpu/s_rint.c: Likewise.
10779 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
10780
10781 * sysdeps/alpha/fpu/s_fmax.S: New file.
10782 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
10783 * sysdeps/alpha/fpu/s_fmin.S: New file.
10784 * sysdeps/alpha/fpu/s_fminf.S: New file.
10785 * sysdeps/alpha/fpu/s_isnan.c: New file.
10786 * sysdeps/alpha/fpu/s_isnanf.c: New file.
10787 * sysdeps/alpha/fpu/s_llrint.c: New file.
10788 * sysdeps/alpha/fpu/s_llrintf.c: New file.
10789 * sysdeps/alpha/fpu/s_lrint.c: New file.
10790 * sysdeps/alpha/fpu/s_lrintf.c: New file.
10791 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
10792 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
10793
10794 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
10795 (__fdimf, fdimf, __fdim, fdim): Remove.
10796 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
10797 (__isnanf, __isnan, __isnanl): New.
10798
10799 2007-03-13 Richard Henderson <rth@redhat.com>
10800
10801 * sysdeps/ieee754/ldbl-128/Makefile: New file.
10802
10803 2007-03-13 Richard Henderson <rth@redhat.com>
10804
10805 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
10806 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
10807 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
10808 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
10809 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
10810 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
10811
10812 2007-03-13 Richard Henderson <rth@redhat.com>
10813
10814 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
10815 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
10816 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
10817 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
10818 Move to dl-auxv.h; initialize instead of extern weak.
10819 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
10820 weak symbol.
10821 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
10822 Extern instead of initialized.
10823
10824 2007-03-13 Richard Henderson <rth@redhat.com>
10825
10826 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
10827 __sigsuspend_nocancel.
10828
10829 2007-03-06 Ulrich Drepper <drepper@redhat.com>
10830
10831 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
10832 172.16/12 address range.
10833
10834 2007-03-02 Jakub Jelinek <jakub@redhat.com>
10835
10836 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
10837 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
10838 message.
10839
10840 2007-03-01 Jakub Jelinek <jakub@redhat.com>
10841
10842 [BZ #4069]
10843 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
10844 earlier.
10845 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
10846
10847 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
10848 for x qNaN and y either +-inf or non-integer value.
10849 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
10850 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
10851 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10852
10853 2007-02-10 Mike Frysinger <vapier@gentoo.org>
10854
10855 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
10856 from sysdep_headers.
10857
10858 2007-02-28 Jakub Jelinek <jakub@redhat.com>
10859
10860 * time/tzfile.c (find_transition): Instead of a linear search try to
10861 guess the transition index, use a linear search if the result is at
10862 most 10 transitions away from the guess or binary search otherwise.
10863
10864 2007-02-27 Jakub Jelinek <jakub@redhat.com>
10865
10866 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
10867 memory reallocation.
10868
10869 2007-02-21 Ulrich Drepper <drepper@redhat.com>
10870
10871 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
10872 and fix some typos.
10873 Optimize use of TOLOWER.
10874
10875 [BZ #3325]
10876 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
10877 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10878 * sysdeps/i386/fpu/e_fmod.S: Likewise.
10879
10880 [BZ #3458]
10881 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
10882 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
10883
10884 [BZ #4076]
10885 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
10886 (open_dir_stream): Likewise.
10887 * io/Makefile (tests): Add bug-ftw5.
10888 * io/bug-ftw5.c: New file.
10889
10890 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
10891 * nscd/servicescache.c (cache_addserv): Likewise.
10892
10893 * nscd/grpcache.c (cache_addgr): In case a record changed on
10894 refresh, adjust key_copy.
10895
10896 [BZ #4074]
10897 * nscd/pwdcache.c (cache_addpw): In case a record changed on
10898 refresh, adjust key_copy.
10899
10900 [BZ #4070]
10901 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
10902 special cases.
10903 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
10904
10905 2007-02-19 Ulrich Drepper <drepper@redhat.com>
10906
10907 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
10908 optimization.
10909
10910 * stdio-common/vfscanf.c: Small cleanups throughout.
10911
10912 2007-02-18 Ulrich Drepper <drepper@redhat.com>
10913
10914 [BZ #3325]
10915 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
10916 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10917 * sysdeps/i386/fpu/e_fmod.S: Likewise.
10918 Patch by Jared Casper <jaredcasper@gmail.com>.
10919
10920 * sysdeps/unix/closedir.c: Outside libc don't use locking.
10921 * sysdeps/unix/opendir.c: Likewise.
10922 * sysdeps/unix/readdir.c: Likewise.
10923
10924 [BZ #2211]
10925 * stdio-common/vfscanf.c: Handle localized digits etc for floating
10926 point numbers.
10927 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
10928
10929 * stdio-common/vfscanf.c: Fix problems in width accounting.
10930 * stdio-common/tst-sscanf.c (double_tests): New tests.
10931 (main): Hook them up.
10932
10933 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
10934 More simplifications of floating-point reader.
10935
10936 * stdio-common/Makefile (tests): Add tst-swscanf.
10937 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
10938 testing.
10939 * stdio-common/tst-swscanf.c: New file.
10940
10941 2007-02-17 Ulrich Drepper <drepper@redhat.com>
10942
10943 [BZ #2633]
10944 * libio/stdio.h: Define struct _IO_FILE in global namespace.
10945 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
10946 Remove using for __jmp_buf_tag.
10947 * locale/locale.h (struct lconv): Also define in std namespace.
10948 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
10949
10950 [BZ #3842]
10951 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
10952 using __libc_enable_secure.
10953
10954 [BZ #3818]
10955 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
10956
10957 [BZ #3745]
10958 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
10959 of names for ellipsises.
10960
10961 [BZ #3348]
10962 * malloc/memusage.sh: Cleanups.
10963 * debug/xtrace.sh: Quoting and trap changes.
10964
10965 2007-02-16 Ulrich Drepper <drepper@redhat.com>
10966
10967 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
10968
10969 * locale/iso-3166.def: Update entry for Serbia.
10970 * locale/iso-4217.def: Define RSD, remove CSD.
10971
10972 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
10973 and 64-bit operations.
10974
10975 [BZ #4040]
10976 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
10977 16-bit operations.
10978
10979 * nscd/nscd.c (parse_opt): One more conversion to use send instead
10980 of writev.
10981
10982 2007-02-15 Ulrich Drepper <drepper@redhat.com>
10983
10984 [BZ #3991]
10985 * assert/assert.h (assert): Simplify.
10986 (assert_perror): Likewise.
10987 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
10988
10989 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
10990 reqdata.
10991
10992 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
10993 change: don't pass NULL in place of an integer.
10994
10995 2007-02-02 Bruno Haible <bruno@clisp.org>
10996
10997 [BZ #3954]
10998 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
10999 Add mapping for U+327E.
11000 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
11001 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11002 mapping of 0xD9 0xE8.
11003 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
11004 mapping of U+327E.
11005 Reported by Jungshik Shin <jungshik@google.com>.
11006
11007 [BZ #3955]
11008 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11009 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
11010 Reported by Jungshik Shin <jungshik@google.com>.
11011
11012 2007-02-14 Ulrich Drepper <drepper@redhat.com>
11013
11014 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
11015 byte variants.
11016
11017 [BZ #4040]
11018 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
11019 byte variants. Patch mostly be tom@tommay.net.
11020
11021 2007-02-14 Jakub Jelinek <jakub@redhat.com>
11022
11023 [BZ #3996]
11024 * posix/glob.c (attribute_hidden): Define if not defined.
11025 (glob): Unescape dirname, filename or username when needed and not
11026 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
11027 is NULL. Handle unescaped [ in pattern without closing ].
11028 Don't pass GLOB_CHECK down to recursive glob for directories.
11029 (__glob_pattern_type): New function.
11030 (__glob_pattern_p): Implement using __glob_pattern_type.
11031 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11032 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11033 Remove unreachable code.
11034 * posix/globtest.sh: Add a couple of new tests.
11035
11036 2007-02-13 Ulrich Drepper <drepper@redhat.com>
11037
11038 * po/ru.po: Update from translation team.
11039
11040 2007-02-12 Jakub Jelinek <jakub@redhat.com>
11041
11042 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
11043 to the list of i486+ CPUs.
11044 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11045
11046 2007-02-12 Ulrich Drepper <drepper@redhat.com>
11047
11048 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
11049 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
11050 references.
11051
11052 2007-02-09 Ulrich Drepper <drepper@redhat.com>
11053
11054 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
11055
11056 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
11057 * resolv/res_mkquery.c: Define __res_nopt.
11058 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
11059 try adding EDNS0 record.
11060 * resolv/res_send.c (send_dg): If request failed with FORMERR and
11061 EDNS0 record was send make sure we don't try it again.
11062 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
11063 * include/resolv.h: Declare __res_nopt.
11064
11065 2007-02-08 Jakub Jelinek <jakub@redhat.com>
11066
11067 [BZ #3944]
11068 * time/strptime_l.c (__strptime_internal): Set have_mon for
11069 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
11070 have been computed from tm_yday and tm_year. Don't crash
11071 in day_of_the_week or day_of_the_year if not have_mon
11072 and tm_mon contains bogus value.
11073 * time/Makefile (tests): Add tst-strptime3.
11074 * time/tst-strptime3.c: New test.
11075
11076 2007-02-05 Jakub Jelinek <jakub@redhat.com>
11077
11078 [BZ #3957]
11079 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11080 bit for RE_HAT_LISTS_NOT_NEWLINE.
11081 (build_charclass_op): Remove bogus comment.
11082 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11083 * posix/bug-regex27.c: New test.
11084 * posix/bug-regex28.c: New test.
11085
11086 2007-02-03 Ulrich Drepper <drepper@redhat.com>
11087
11088 * po/sv.po: Update from translation team.
11089
11090 2007-02-02 Ulrich Drepper <drepper@redhat.com>
11091
11092 * nscd/nscd_helper.c (open_socket): Minor size optimization.
11093
11094 2007-02-02 Jakub Jelinek <jakub@redhat.com>
11095
11096 * include/locale.h (__uselocale): Add libc_hidden_proto.
11097 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11098
11099 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11100 gettimeofday.
11101
11102 2007-02-01 Ulrich Drepper <drepper@redhat.com>
11103
11104 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11105 returning.
11106 (PTR_DEMANGLE): Real definition now that it's not the same as
11107 PRT_MANGLE anymore.
11108 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11109
11110 * string/strerror_l.c: New file.
11111 * string/Makefile (routines): Add strerror_l.
11112 * string/string.h: Declare strerror_l.
11113 * string/Versions: Export strerror_l for GLIBC_2.6.
11114
11115 2007-01-31 Ulrich Drepper <drepper@redhat.com>
11116
11117 * nscd/nscd_helper.c (open_socket): Now takes request type and key
11118 as parameter. Construct request record. Try sending request
11119 before the first poll use, it usually succeeds. Adjust all
11120 callers.
11121 * nscd/nscd-client.h: Define MAXKEYLEN.
11122 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
11123
11124 2007-01-31 Jakub Jelinek <jakub@redhat.com>
11125
11126 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11127 from return value.
11128 * nscd/nscd_helper.c: Include string.h.
11129 (__nscd_cache_search): Remove const qualifier from return value.
11130 On strict alignment architectures check hash entry and data head
11131 alignment.
11132 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11133 mmapped data during GC cycle contains garbage. If
11134 __nscd_drop_map_ref fails, decrement mapped->counter when returning
11135 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11136 dropped to 0.
11137 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11138 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11139 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11140 * nscd/nscd_getai.c (__nscd_getai): Likewise.
11141 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11142
11143 2007-01-30 Ulrich Drepper <drepper@redhat.com>
11144
11145 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11146
11147 2007-01-26 Ulrich Drepper <drepper@redhat.com>
11148
11149 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11150 names not numbers in cfi_*.
11151
11152 2007-01-26 Andreas Jaeger <aj@suse.de>
11153
11154 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
11155 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
11156 Correct values of PER_HPUX and PER_OSF4.
11157
11158 2007-01-24 Ulrich Drepper <drepper@redhat.com>
11159
11160 * elf/dl-minimal.c: Undefine _itoa first.
11161 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11162 * malloc/mtrace.c: Revert last change.
11163 * posix/wordexp.c: Likewise.
11164
11165 2007-01-24 Jakub Jelinek <jakub@redhat.com>
11166
11167 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
11168 and __geode__ to the list of i486+ CPUs.
11169 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11170
11171 2007-01-23 Ulrich Drepper <drepper@redhat.com>
11172
11173 * stdio-common/_itoa.c: Include <limits.h>.
11174 * stdio-common/_itowa.c: Likewise.
11175
11176 2007-01-22 Ulrich Drepper <drepper@redhat.com>
11177
11178 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
11179 platforms.
11180 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
11181 64-bit platforms.
11182 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
11183 possible.
11184 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
11185 if possible.
11186
11187 [BZ #3902]
11188 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
11189 * stdio-common/Makefile (tests): Add bug17.
11190 * stdio-common/bug17.c: New file.
11191
11192 2007-01-19 Ulrich Drepper <drepper@redhat.com>
11193
11194 * iconvdata/brf.c: New file.
11195 * iconvdata/testdata/BRF: New file.
11196 * iconvdata/testdata/BRF..UTF8: New file.
11197 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
11198 * iconvdata/Makefile: Add rules to build BRF.
11199 * iconvdata/TESTS: Add BRF entry.
11200 * iconvdata/gconv-modules: Likewise.
11201 * iconvdata/tst-tables.sh: Likewise.
11202
11203 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
11204
11205 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
11206 type `long long int', not `long int'.
11207 (wcstoq): Likewise.
11208
11209 2007-01-18 Ulrich Drepper <drepper@redhat.com>
11210
11211 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
11212 of values on 64-bit platforms which are too large.
11213
11214 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
11215 Joe Kerian <jkerian@us.us.ibm.com>
11216
11217 [BZ #2749]
11218 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
11219 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
11220 (__copysignl): Use signbit() for comparison.
11221 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
11222 SET_LDOUBLE_WORDS64.
11223
11224 [BZ #2423, #2749]
11225 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
11226 (__ceill): Remove calls to fegetround(), fesetround().
11227 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11228 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11229 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11230
11231 2007-01-17 Jakub Jelinek <jakub@redhat.com>
11232
11233 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
11234
11235 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
11236
11237 2007-01-17 Ulrich Drepper <drepper@redhat.com>
11238
11239 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
11240 demangle pointer.
11241 * csu/libc-start.c: Likewise.
11242
11243 2007-01-16 Ulrich Drepper <drepper@redhat.com>
11244
11245 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11246 really work anyway.
11247
11248 2007-01-15 Ulrich Drepper <drepper@redhat.com>
11249
11250 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
11251 users.
11252 (handle_request): Remove unnecessary tests.
11253
11254 * nscd/cache.c (cache_add): Record the failure to add to the cache.
11255
11256 2007-01-15 Jakub Jelinek <jakub@redhat.com>
11257
11258 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11259 workbits in semi-raw fraction.
11260
11261 * math/test-misc.c: Add new tests.
11262
11263 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
11264
11265 * math/basic-test.c: Include test-skeleton.c.
11266 (TEST_TRUNC): Define.
11267 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
11268 (main): Rename to ...
11269 (do_test): ...this. Run new tests.
11270 (TEST_FUNCTION): Define.
11271
11272 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
11273 Joe Kerian <jkerian@us.us.ibm.com>
11274
11275 [BZ #2749]
11276 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
11277 handling for high words.
11278 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
11279 and overflow for infinity.
11280
11281 2007-01-15 Ulrich Drepper <drepper@redhat.com>
11282
11283 * nscd/connections.c (handle_request): Add a __builtin_expect.
11284
11285 * nscd/connections.c (serv2db): Change type into structure which
11286 also says whether this is a request for data. Renamed to
11287 servinfo. All users changed.
11288 (handle_request): Much simpler test whether we should search the cache.
11289
11290 * nscd/connections.c (handle_request): Fix thinko in selinux test
11291 invocation.
11292
11293 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
11294 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
11295 it before getting dl_load_lock and then relock.
11296 (_dl_lookup_symbol_x): Pass flags to add_dependency.
11297 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
11298 case we unlocked the scope.
11299 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
11300 _dl_lookup_symbol_x in case we locked the scope.
11301 (_dl_profile_fixup): Likewise.
11302 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
11303 set DL_LOOKUP_SCOPE_LOCK.
11304
11305 2007-01-13 Ulrich Drepper <drepper@redhat.com>
11306
11307 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
11308 CFLAGS-getsrvbynpt_r.c.
11309 * nscd/getsrvbynm_r.c: New file.
11310 * nscd/getsrvbypt_r.c: New file.
11311 * nscd/nscd_getserv_r.c: New file.
11312 * nscd/servicescache.c: New file.
11313 * nscd/Makefile (routines): Add nscd_getserv_r.
11314 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
11315 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
11316 CFLAGS-getsrvbypt_r.c.
11317 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
11318 table. Add entries for services database.
11319 * nscd/connections.c (serv2str): Mark as const. Add entries for
11320 services database.
11321 (dbs): Add .reset_res and servdb initialization.
11322 (serv2db): Add entries for services database.
11323 (verify_persistent_db): Accept dbnr == servdb.
11324 (invalidate_cache): Rewrite database name recognition to use a table.
11325 Call res_init() if .reset_res is set for database.
11326 (handle_request): Add code to handle services database.
11327 * nscd/gai.c: Don't define __getservbyname_r.
11328 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
11329 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
11330 (serv_response_header): Define.
11331 (struct datahead): Add serv_response_header member.
11332 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
11333 using table.
11334 * nscd/nscd.conf: Add entries for services database.
11335 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
11336 Declare serv_iov_disabled.
11337 Declare addservbyname, readdservbyname, addservbyport, and
11338 readdservbyport.
11339 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
11340 (find_db): Fix error message.
11341 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
11342 __nscd_getservbyname_r, and __nscd_getservbyport_r.
11343 * nscd/selinux.c (perms): Add entries for services database.
11344 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
11345 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
11346
11347 * nscd/grpcache.c: Remove obsolete code. Cleanups.
11348 * nscd/hstcache.c: Likewise.
11349 * nscd/pwdcache.c: Likewise.
11350
11351 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
11352 computation of keylen.
11353
11354 * include/string.h: Only redefine strndupa if this is really for
11355 libc code.
11356
11357 2007-01-12 Ulrich Drepper <drepper@redhat.com>
11358
11359 * nscd/nscd_gethst_r.c: Minor cleanups.
11360
11361 * nscd/connections.c (handle_request): Check selinux permissions
11362 for all non-admin commands.
11363
11364 * sysdeps/i386/i486/bits/atomic.h: Define
11365 atomic_compare_and_exchange_val_acq,
11366 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
11367 using __sync_* built-ins for gcc >= 4.1.
11368 * sysdeps/x86_64/bits/atomic.h: Likewise.
11369
11370 [BZ #3840]
11371 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
11372 and .oS.d files.
11373
11374 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
11375
11376 * stdlib/tst-makecontext.c: Include errno.h. Change main()
11377 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
11378 (do_test): Check errno and exit(0) if ENOSYS.
11379
11380 2007-01-11 Jakub Jelinek <jakub@redhat.com>
11381
11382 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
11383 thousands separators.
11384 * stdlib/Makefile: Add rules to build and run tst-strtod4.
11385 * stdlib/tst-strtod4.c: New test.
11386
11387 [BZ #3855]
11388 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
11389 hexadecimal digit should accept just the initial 0.
11390 * stdlib/tst-strtod2.c (tests): New variable.
11391 (do_test): Run several tests rather than just one.
11392
11393 2007-01-11 Jakub Jelinek <jakub@redhat.com>
11394
11395 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
11396 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
11397
11398 2007-01-10 Ulrich Drepper <drepper@redhat.com>
11399
11400 * io/fts.c: Make sure fts_cur is always valid after return from
11401 fts_read.
11402 Patch by Miloslav Trmac <mitr@redhat.com>.
11403
11404 2006-10-27 Richard Sandiford <richard@codesourcery.com>
11405
11406 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
11407 (R_MIPS_NUM): Bump by 1.
11408
11409 2007-01-03 Jakub Jelinek <jakub@redhat.com>
11410
11411 * posix/execvp.c: Include alloca.h.
11412 (allocate_scripts_argv): Renamed to...
11413 (scripts_argv): ... this. Don't allocate buffer here nor count
11414 arguments.
11415 (execvp): Use alloca if possible.
11416 * posix/Makefile: Add rules to build and run tst-vfork3 test.
11417 * posix/tst-vfork3.c: New test.
11418
11419 2007-01-03 Ulrich Drepper <drepper@redhat.com>
11420
11421 * string/Makefile (tst-strxfrm2-ENV): Define.
11422 * stdlib/Makefile (tst-strtod3-ENV): Define.
11423
11424 2007-01-02 Ulrich Drepper <drepper@redhat.com>
11425
11426 * posix/getconf.c: Update copyright year.
11427 * nss/getent.c: Likewise.
11428 * iconv/iconvconfig.c: Likewise.
11429 * iconv/iconv_prog.c: Likewise.
11430 * elf/ldconfig.c: Likewise.
11431 * catgets/gencat.c: Likewise.
11432 * csu/version.c: Likewise.
11433 * elf/ldd.bash.in: Likewise.
11434 * elf/sprof.c (print_version): Likewise.
11435 * locale/programs/locale.c: Likewise.
11436 * locale/programs/localedef.c: Likewise.
11437 * nscd/nscd.c (print_version): Likewise.
11438 * debug/xtrace.sh: Likewise.
11439 * malloc/memusage.sh: Likewise.
11440 * malloc/mtrace.pl: Likewise.
11441 * debug/catchsegv.sh: Likewise.
11442
11443 2006-12-24 Ulrich Drepper <drepper@redhat.com>
11444
11445 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
11446 attempts.
11447
11448 2006-12-23 Ulrich Drepper <drepper@redhat.com>
11449
11450 * posix/wordexp.c: Remove some unnecessary tests.
11451
11452 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
11453
11454 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
11455 blacklist the group till after we look it up.
11456
11457 2006-12-21 Ulrich Drepper <drepper@redhat.com>
11458
11459 * include/atomic.h (atomic_forced_read): New macro.
11460
11461 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
11462
11463 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
11464
11465 2006-12-19 Jakub Jelinek <jakub@redhat.com>
11466
11467 * nss/getXXbyYY_r.c: Include atomic.h.
11468 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
11469 add atomic_write_barrier () in between.
11470
11471 * stdlib/Makefile (tests): Add tst-makecontext.
11472 * stdlib/tst-makecontext.c: New test.
11473
11474 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
11475 (__makecontext): Don't realign uc_mcontext.uc_regs.
11476
11477 2006-11-28 Jakub Jelinek <jakub@redhat.com>
11478
11479 * elf/dl-support.c: Include dl-procinfo.h.
11480 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
11481 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
11482 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
11483 Define.
11484 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
11485 hardcoded constants.
11486 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
11487 PPC_PLATFORM_* macros for array designators.
11488
11489 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
11490
11491 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
11492 names to the beginning.
11493 (_dl_powerpc_platforms): Add "power6x".
11494 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11495 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
11496 (_DL_PLATFORMS_COUNT): Increase.
11497 (_dl_string_platform): Handle power6x case.
11498 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
11499 PPC_FEATURE_POWER6_EXT): Define.
11500 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
11501
11502 2006-12-18 Jakub Jelinek <jakub@redhat.com>
11503
11504 [BZ #3747]
11505 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11506 [-2^31 .. 2^31) range.
11507 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
11508 targets.
11509 * stdlib/tst-rand48-2.c: New test.
11510 * stdlib/Makefile (tests): Add tst-rand48-2.
11511
11512 2006-12-14 Jakub Jelinek <jakub@redhat.com>
11513
11514 * misc/tst-pselect.c (do_test): Fix sigblock argument.
11515
11516 2006-12-14 Ulrich Drepper <drepper@redhat.com>
11517
11518 * misc/tst-pselect.c (do_test): Make sure the helper process is
11519 terminating when the test is aborted.
11520
11521 2006-12-13 Ulrich Drepper <drepper@redhat.com>
11522
11523 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
11524 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11525 Handle relatime mount option.
11526
11527 [BZ #2337]
11528 * libio/Makefile (tests): Add tst-setvbuf1.
11529 * libio/tst-setvbuf1.c: New file.
11530
11531 2006-12-08 Jakub Jelinek <jakub@redhat.com>
11532
11533 [BZ #2337]
11534 * libio/genops.c (__uflow): Fix a typo.
11535 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
11536 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
11537 the narrow buffer size.
11538
11539 2006-11-24 Jakub Jelinek <jakub@redhat.com>
11540
11541 [BZ #2337]
11542 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
11543 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
11544 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
11545 in _flags.
11546 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
11547 _IO_wstr_finish): Likewise.
11548 * libio/wmemstream.c (open_wmemstream): Likewise.
11549 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
11550 even for wide streams.
11551
11552 2006-12-13 Jakub Jelinek <jakub@redhat.com>
11553
11554 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
11555 kernel-features.h.
11556
11557 2006-12-11 Ulrich Drepper <drepper@redhat.com>
11558
11559 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
11560 separators also if no non-zero digits found.
11561 * stdlib/Makefile (tests): Add tst-strtod3.
11562
11563 2006-12-09 Ulrich Drepper <drepper@redhat.com>
11564
11565 [BZ #3632]
11566 * include/features.h: Fix comment about default value for
11567 _POSIX_C_SOURCE.
11568
11569 [BZ #3664]
11570 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
11571 empty parsed strings.
11572 * stdlib/Makefile (tests): Add tst-strtod2.
11573 * stdlib/tst-strtod2.c: New file.
11574
11575 [BZ #3673]
11576 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
11577 computation.
11578 * stdlib/Makefile (tests): Add tst-atof2.
11579 * stdlib/tst-atof2.c: New file.
11580
11581 [BZ #3674]
11582 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
11583 correctly if removing trailing zero of hex-float.
11584 * stdlib/Makefile (tests): Add tst-atof1.
11585 * stdlib/tst-atof1.c: New file.
11586
11587 2006-12-09 Jakub Jelinek <jakub@redhat.com>
11588
11589 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
11590 Start searching for next comma at p rather than rest.
11591 * misc/Makefile (tests): Add tst-mntent2.
11592 * misc/tst-mntent2.c: New test.
11593
11594 * misc/getusershell.c (initshells): Check for integer overflows.
11595 Make strings buffer one bigger as fgets always succeeds when second
11596 argument is 1. Don't use calloc for shells array. Disallow
11597 / as shell.
11598
11599 2006-12-08 Ulrich Drepper <drepper@redhat.com>
11600
11601 * malloc/memusage.c: Handle realloc with new size of zero and
11602 non-NULL pointer correctly.
11603 (me): Really write first record twice.
11604 (struct entry): Make format bi-arch safe.
11605 (dest): Write out more realloc statistics.
11606 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
11607
11608 2006-12-05 Jakub Jelinek <jakub@redhat.com>
11609
11610 * nis/nis_subr.c (nis_getnames): Revert last change.
11611
11612 2006-12-04 Jakub Jelinek <jakub@redhat.com>
11613
11614 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
11615 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
11616 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
11617 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
11618 ENOTTY.
11619 * io/Makefile: Add rules to build and run tst-ttyname_r test.
11620 * io/tst-ttyname_r.c: New test.
11621
11622 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11623
11624 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
11625
11626 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
11627
11628 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
11629 jump table entries.
11630
11631 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
11632
11633 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
11634 `clone' function to ensure proper unwinding stop of gdb.
11635 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11636
11637 2006-12-01 Ulrich Drepper <drepper@redhat.com>
11638
11639 * nscd/nscd.init: Remove obsolete and commented-out -S option
11640 handling.
11641
11642 2006-11-23 Jakub Jelinek <jakub@redhat.com>
11643
11644 [BZ #3514]
11645 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
11646
11647 [BZ #3515]
11648 * manual/string.texi (strtok): Remove duplicate paragraph.
11649
11650 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11651
11652 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
11653 libgcc not supporting `rflags' unwinding (register # >= 17).
11654
11655 2006-11-30 Jakub Jelinek <jakub@redhat.com>
11656
11657 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
11658 succeeded.
11659
11660 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
11661 Jakub Jelinek <jakub@redhat.com>
11662 Jan Kratochvil <jan.kratochvil@redhat.com>
11663
11664 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
11665 unwind information.
11666 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
11667 'restore_rt' even in the 'signal' directory.
11668 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
11669
11670 2006-11-27 Jakub Jelinek <jakub@redhat.com>
11671
11672 [BZ #3559]
11673 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11674 malloc crashed. Don't allocate memory unnecessarily in each
11675 loop.
11676
11677 2006-10-21 Jakub Jelinek <jakub@redhat.com>
11678
11679 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
11680
11681 2006-11-20 Ulrich Drepper <drepper@redhat.com>
11682
11683 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
11684
11685 2006-11-18 Bruno Haible <bruno@clisp.org>
11686
11687 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
11688 __sysconf only after having tried to call getgroups32.
11689
11690 2006-11-19 Ulrich Drepper <drepper@redhat.com>
11691
11692 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
11693 addresses for IPv4 queries if they can be mapped.
11694
11695 2006-11-16 Jakub Jelinek <jakub@redhat.com>
11696
11697 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
11698 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
11699 (signmask): Add .size directive.
11700 (othermask): Add .type directive.
11701
11702 2006-11-14 Ulrich Drepper <drepper@redhat.com>
11703
11704 * po/nl.po: Update from translation team.
11705
11706 * timezone/zdump.c: Redo fix for BZ #3137.
11707
11708 2006-11-14 Jakub Jelinek <jakub@redhat.com>
11709
11710 * nss/nss_files/files-alias.c (get_next_alias): Set line back
11711 to first_unused after parsing :include: file.
11712
11713 2006-11-10 Ulrich Drepper <drepper@redhat.com>
11714
11715 * timezone/africa: Update from tzdata2006o.
11716 * timezone/antarctica: Likewise.
11717 * timezone/asia: Likewise.
11718 * timezone/australasia: Likewise.
11719 * timezone/backward: Likewise.
11720 * timezone/europe: Likewise.
11721 * timezone/iso3166.tab: Likewise.
11722 * timezone/northamerica: Likewise.
11723 * timezone/southamerica: Likewise.
11724 * timezone/zone.tab: Likewise.
11725
11726 * time/tzfile.c (__tzfile_read): Extend to handle new file format
11727 on machines with 64-bit time_t.
11728
11729 * timezone/checktab.awk: Update from tzcode2006o.
11730 * timezone/ialloc.c: Likewise.
11731 * timezone/private.h: Likewise.
11732 * timezone/scheck.c: Likewise.
11733 * timezone/tzfile.h: Likewise.
11734 * timezone/tzselect.ksh: Likewise.
11735 * timezone/zdump.c: Likewise.
11736 * timezone/zic.c: Likewise.
11737
11738 [BZ #3483]
11739 * elf/ldconfig.c (main): Call setlocale and textdomain.
11740 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11741
11742 [BZ #3480]
11743 * manual/argp.texi: Fix typos.
11744 * manual/charset.texi: Likewise.
11745 * manual/errno.texi: Likewise.
11746 * manual/filesys.texi: Likewise.
11747 * manual/lang.texi: Likewise.
11748 * manual/maint.texi: Likewise.
11749 * manual/memory.texi: Likewise.
11750 * manual/message.texi: Likewise.
11751 * manual/resource.texi: Likewise.
11752 * manual/search.texi: Likewise.
11753 * manual/signal.texi: Likewise.
11754 * manual/startup.texi: Likewise.
11755 * manual/stdio.texi: Likewise.
11756 * manual/sysinfo.texi: Likewise.
11757 * manual/syslog.texi: Likewise.
11758 * manual/time.texi: Likewise.
11759 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11760
11761 [BZ #3465]
11762 * sunrpc/clnt_raw.c: Minimal message improvements.
11763 * sunrpc/pm_getmaps.c: Likewise.
11764 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11765 * nis/nis_print_group_entry.c: Likewise.
11766 * locale/programs/repertoire.c: Likewise.
11767 * locale/programs/charmap.c: Likewise.
11768 * malloc/memusage.sh: Likewise.
11769 * elf/dl-deps.c: Likewise.
11770 * locale/programs/ld-collate.c: Likewise.
11771 * libio/vswprintf.c: Likewise.
11772 * malloc/memusagestat.c: Likewise.
11773 * sunrpc/auth_unix.c: Likewise.
11774 * sunrpc/rpc_main.c: Likewise.
11775 * nscd/cache.c: Likewise.
11776 * locale/programs/repertoire.c: Unify output messages.
11777 * locale/programs/charmap.c: Likewise.
11778 * locale/programs/ld-ctype.c: Likewise.
11779 * locale/programs/ld-monetary.c: Likewise.
11780 * locale/programs/ld-numeric.c: Likewise.
11781 * locale/programs/ld-time.c: Likewise.
11782 * elf/ldconfig.c: Likewise.
11783 * nscd/selinux.c: Likewise.
11784 * elf/cache.c: Likewise.
11785 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11786
11787 [BZ #3451]
11788 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
11789 change atomic.
11790 (ceil): Likewise.
11791
11792 2006-11-10 Jakub Jelinek <jakub@redhat.com>
11793
11794 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
11795 if N is one bigger than return value.
11796 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
11797 and l1 last arguments, if buf is defined, verify the return value
11798 equals to strlen (buf) and verify no byte beyond passed length
11799 is modified.
11800
11801 2006-11-10 Ulrich Drepper <drepper@redhat.com>
11802
11803 * po/sv.po: Update from translation team.
11804
11805 2006-11-09 Ulrich Drepper <drepper@redhat.com>
11806
11807 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
11808 noinline attribute.
11809
11810 2006-11-10 Jakub Jelinek <jakub@redhat.com>
11811
11812 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
11813 noinline attribute.
11814
11815 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
11816 Use __new_sys_siglist instead of _sys_siglist_internal as
11817 second macro argument.
11818 (_old_sys_siglist): Use declare_symbol_alias macro instead of
11819 strong_alias.
11820
11821 2006-11-09 Ulrich Drepper <drepper@redhat.com>
11822
11823 [BZ #3493]
11824 * posix/unistd.h (sysconf): Remove const attribute.
11825
11826 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
11827 temporary or deprecated addresses.
11828 Patch by Sridhar Samudrala <sri@us.ibm.com>.
11829
11830 * string/Makefile (tests): Add tst-strxfrm2.
11831 * string/tst-strxfrm2.c: New file.
11832
11833 2006-10-09 Jakub Jelinek <jakub@redhat.com>
11834
11835 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
11836 rather than r->r_brk.
11837
11838 2006-11-08 Jakub Jelinek <jakub@redhat.com>
11839
11840 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
11841 optimization even if needed > n.
11842
11843 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
11844 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
11845 return false, otherwise return true.
11846 (cache_rpath): Return decompose_rpath return value.
11847
11848 2006-11-07 Jakub Jelinek <jakub@redhat.com>
11849
11850 * include/libc-symbols.h (declare_symbol): Rename to...
11851 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
11852 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
11853 .size directive.
11854 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
11855 changes.
11856 * sysdeps/gnu/siglist.c: Likewise.
11857
11858 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
11859
11860 * sysdeps/powerpc/fpu/bits/mathinline.h
11861 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
11862 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
11863
11864 2006-11-05 Ulrich Drepper <drepper@redhat.com>
11865
11866 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
11867 Update handling of cache descriptor 0x49 for new models.
11868 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
11869 Likewise.
11870
11871 2006-11-02 Jakub Jelinek <jakub@redhat.com>
11872
11873 * malloc/memusage.c (dest): Reset not_me back to false after
11874 printing statistics.
11875
11876 2006-11-02 Ulrich Drepper <drepper@redhat.com>
11877
11878 * configure.in: Work around ld --help change and avoid -z relro
11879 test completely if the architecture doesn't care about security.
11880
11881 2006-11-01 Ulrich Drepper <drepper@redhat.com>
11882
11883 * po/sv.po: Update from translation team.
11884
11885 2006-10-31 Ulrich Drepper <drepper@redhat.com>
11886
11887 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
11888 generate compatibility version.
11889
11890 2006-10-29 Ulrich Drepper <drepper@redhat.com>
11891
11892 * configure.in: Relax -z relro requirement a bit.
11893
11894 * po/sv.po: Update from translation team.
11895
11896 2006-10-29 Jakub Jelinek <jakub@redhat.com>
11897
11898 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
11899 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
11900 * elf/dl-close.c (_dl_close_worker): Likewise.
11901 * elf/dl-open.c (_dl_open_worker): Likewise.
11902 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
11903
11904 2006-10-27 Ulrich Drepper <drepper@redhat.com>
11905
11906 * configure.in: Require assembler support for visibility, compiler
11907 support for visibility and aliases, linker support for various -z
11908 options.
11909 * Makeconfig: Remove conditional code which now is unnecessary.
11910 * config.h.in: Likewise.
11911 * config.make.in: Likewise.
11912 * dlfcn/Makefile: Likewise.
11913 * elf/Makefile: Likewise.
11914 * elf/dl-load.c: Likewise.
11915 * elf/rtld.c: Likewise.
11916 * include/libc-symbols.h: Likewise.
11917 * include/stdio.h: Likewise.
11918 * io/Makefile: Likewise.
11919 * io/fstat.c: Likewise.
11920 * io/fstat64.c: Likewise.
11921 * io/fstatat.c: Likewise.
11922 * io/fstatat64.c: Likewise.
11923 * io/lstat.c: Likewise.
11924 * io/lstat64.c: Likewise.
11925 * io/mknod.c: Likewise.
11926 * io/mknodat.c: Likewise.
11927 * io/stat.c: Likewise.
11928 * io/stat64.c: Likewise.
11929 * libio/stdio.c: Likewise.
11930 * nscd/Makefile: Likewise.
11931 * stdlib/Makefile: Likewise.
11932 * stdlib/atexit.c: Likewise.
11933 * sysdeps/generic/ldsodefs.h: Likewise.
11934 * sysdeps/i386/dl-machine.h: Likewise.
11935 * sysdeps/i386/sysdep.h: Likewise.
11936 * sysdeps/i386/i686/memcmp.S: Likewise.
11937 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11938 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11939 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
11940
11941 * Makerules: USE_TLS support is now default.
11942 * tls.make.c: Likewise.
11943 * csu/Versions: Likewise.
11944 * csu/libc-start.c: Likewise.
11945 * csu/libc-tls.c: Likewise.
11946 * csu/version.c: Likewise.
11947 * dlfcn/dlinfo.c: Likewise.
11948 * elf/dl-addr.c: Likewise.
11949 * elf/dl-cache.c: Likewise.
11950 * elf/dl-close.c: Likewise.
11951 * elf/dl-iteratephdr.c: Likewise.
11952 * elf/dl-load.c: Likewise.
11953 * elf/dl-lookup.c: Likewise.
11954 * elf/dl-object.c: Likewise.
11955 * elf/dl-open.c: Likewise.
11956 * elf/dl-reloc.c: Likewise.
11957 * elf/dl-support.c: Likewise.
11958 * elf/dl-sym.c: Likewise.
11959 * elf/dl-sysdep.c: Likewise.
11960 * elf/dl-tls.c: Likewise.
11961 * elf/ldconfig.c: Likewise.
11962 * elf/rtld.c: Likewise.
11963 * elf/tst-tls-dlinfo.c: Likewise.
11964 * elf/tst-tls1.c: Likewise.
11965 * elf/tst-tls10.h: Likewise.
11966 * elf/tst-tls14.c: Likewise.
11967 * elf/tst-tls2.c: Likewise.
11968 * elf/tst-tls3.c: Likewise.
11969 * elf/tst-tls4.c: Likewise.
11970 * elf/tst-tls5.c: Likewise.
11971 * elf/tst-tls6.c: Likewise.
11972 * elf/tst-tls7.c: Likewise.
11973 * elf/tst-tls8.c: Likewise.
11974 * elf/tst-tls9.c: Likewise.
11975 * elf/tst-tlsmod1.c: Likewise.
11976 * elf/tst-tlsmod13.c: Likewise.
11977 * elf/tst-tlsmod13a.c: Likewise.
11978 * elf/tst-tlsmod14a.c: Likewise.
11979 * elf/tst-tlsmod2.c: Likewise.
11980 * elf/tst-tlsmod3.c: Likewise.
11981 * elf/tst-tlsmod4.c: Likewise.
11982 * elf/tst-tlsmod5.c: Likewise.
11983 * elf/tst-tlsmod6.c: Likewise.
11984 * include/errno.h: Likewise.
11985 * include/link.h: Likewise.
11986 * include/tls.h: Likewise.
11987 * locale/global-locale.c: Likewise.
11988 * locale/localeinfo.h: Likewise.
11989 * malloc/arena.c: Likewise.
11990 * malloc/hooks.c: Likewise.
11991 * malloc/malloc.c: Likewise.
11992 * resolv/Versions: Likewise.
11993 * sysdeps/alpha/dl-machine.h: Likewise.
11994 * sysdeps/alpha/libc-tls.c: Likewise.
11995 * sysdeps/generic/ldsodefs.h: Likewise.
11996 * sysdeps/generic/tls.h: Likewise.
11997 * sysdeps/i386/dl-machine.h: Likewise.
11998 * sysdeps/ia64/dl-machine.h: Likewise.
11999 * sysdeps/ia64/libc-tls.c: Likewise.
12000 * sysdeps/mach/hurd/fork.c: Likewise.
12001 * sysdeps/mach/hurd/i386/tls.h: Likewise.
12002 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
12003 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12004 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12005 * sysdeps/s390/libc-tls.c: Likewise.
12006 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12007 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12008 * sysdeps/sh/dl-machine.h: Likewise.
12009 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12010 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12011 * sysdeps/x86_64/dl-machine.h: Likewise.
12012
12013 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
12014 split out locking and parameter checking.
12015 (_dl_close): Call _dl_close_worker after locking and checking.
12016 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
12017 _dl_close.
12018 * elf/Makefile: Add rules to build and run tst-thrlock.
12019 * elf/tst-thrlock.c: New file.
12020
12021 [BZ #3426]
12022 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
12023 reality.
12024
12025 [BZ #3429]
12026 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
12027 we are sure we do not need it anymore for _dl_close. Also move
12028 the asserts inside the lock region.
12029 Patch mostly by Suzuki <suzuki@in.ibm.com>.
12030
12031 2006-10-27 Jakub Jelinek <jakub@redhat.com>
12032
12033 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
12034 argument.
12035 (_dl_lookup_symbol_x): Adjust caller.
12036
12037 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
12038 _ns_global_scope.
12039 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
12040
12041 * elf/dl-libc.c: Revert l_scope name changes.
12042 * elf/dl-load.c: Likewise.
12043 * elf/dl-object.c: Likewise.
12044 * elf/rtld.c: Likewise.
12045 * elf/dl-close.c (_dl_close): Likewise.
12046 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
12047 always use __rtld_mrlock_{change,done}. Always free old scope list
12048 here if not l_scope_mem.
12049 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
12050 change. Never free scope list here. Just __rtld_mrlock_lock before
12051 the lookup and __rtld_mrlock_unlock it after the lookup.
12052 * elf/dl-sym.c: Likewise.
12053 * include/link.h (struct r_scoperec): Remove.
12054 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
12055 with l_scope_mem and l_scoperec_lock with l_scope_lock.
12056
12057 2006-10-25 Ulrich Drepper <drepper@redhat.com>
12058
12059 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
12060
12061 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12062
12063 * configure.in: Disable building profile libraries by default.
12064
12065 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12066
12067 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
12068 as signed longs, check for x_base + pos overflow.
12069 * sunrpc/Makefile (tests): Add tst-xdrmem2.
12070 * sunrpc/tst-xdrmem2.c: New test.
12071
12072 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12073
12074 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
12075 _dl_lookup_symbol_x code.
12076
12077 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12078
12079 * elf/dl-runtime.c: Include sysdep-cancel.h.
12080 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
12081 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
12082 instead of catomic_* macros.
12083 * elf/dl-sym.c: Include sysdep-cancel.h.
12084 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12085 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12086 * elf/dl-close.c: Include sysdep-cancel.h.
12087 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12088 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12089 * elf/dl-open.c: Include sysdep-cancel.h.
12090 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12091 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12092
12093 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12094
12095 [BZ #3313]
12096 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12097 fastbin rather than end of fastbin array.
12098
12099 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12100
12101 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12102 body macro.
12103 * sysdeps/x86_64/bits/atomic.h
12104 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12105 (catomic_decrement): Use correct body macro.
12106
12107 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12108
12109 * include/atomic.h: Add a unique prefix to all local variables
12110 in macros.
12111 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12112
12113 2006-10-16 Ulrich Drepper <drepper@redhat.com>
12114
12115 [BZ #3369]
12116 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12117 and 7.
12118
12119 2006-10-14 Ulrich Drepper <drepper@redhat.com>
12120
12121 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12122
12123 2006-10-13 Ulrich Drepper <drepper@redhat.com>
12124
12125 [BZ #3313]
12126 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12127 determine highest fast bin to consolidate, always look into all of
12128 them.
12129 (do_check_malloc_state): Only require for empty bins for large
12130 sizes in main arena.
12131
12132 * libio/stdio.h: Add more __wur attributes.
12133
12134 * elf/dl-minimal.c (realloc): Optimize last patch.
12135
12136 2006-10-12 Richard Sandiford <richard@codesourcery.com>
12137
12138 [BZ #3352]
12139 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12140 and use memcpy() if it does.
12141
12142 2006-11-12 Andreas Jaeger <aj@suse.de>
12143
12144 [BZ #2510]
12145 * manual/search.texi (Hash Search Function): Clarify.
12146 (Array Search Function): Clarify.
12147
12148 2006-11-12 Joseph Myers <joseph@codesourcery.com>
12149
12150 [BZ #2830]
12151 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12152 shifting.
12153 * math/atest-exp2.c (read_mpn_hex): Likewise.
12154 * math/atest-sincos.c (main): Likewise.
12155
12156 2006-10-11 Ulrich Drepper <drepper@redhat.com>
12157
12158 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12159 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12160 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12161 version GLIBC_2.6.
12162 * Versions.def: Add GLIBC_2.6 for libc.
12163
12164 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
12165
12166 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
12167
12168 2006-10-11 Jakub Jelinek <jakub@redhat.com>
12169
12170 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
12171
12172 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
12173
12174 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
12175 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
12176
12177 2006-10-11 Ulrich Drepper <drepper@redhat.com>
12178
12179 * include/atomic.c: Define catomic_* operations.
12180 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
12181 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
12182 * malloc/memusage.c: Likewise.
12183 * gmon/mcount.c: Likewise.
12184 * elf/dl-close.c: Likewise.
12185 * elf/dl-open.c: Likewise.
12186 * elf/dl-profile.c: Likewise.
12187 * elf/dl-sym.c: Likewise.
12188 * elf/dl-runtime.c: Likewise.
12189 * elf/dl-fptr.c: Likewise.
12190 * resolv/res_libc.c: Likewise.
12191
12192 2006-10-10 Ulrich Drepper <drepper@redhat.com>
12193
12194 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
12195 components which lack them.
12196
12197 * nis/nis_subr.c (nis_getnames): Make sure that we always return
12198 at least one entry consisting of the parameter concatenated with
12199 the domain.
12200
12201 2006-10-10 Roland McGrath <roland@frob.com>
12202
12203 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
12204 * sysdeps/mach/hurd/futimes.c: Likewise.
12205 * sysdeps/mach/hurd/lutimes.c: Likewise.
12206
12207 2006-10-09 Ulrich Drepper <drepper@redhat.com>
12208 Jakub Jelinek <jakub@redhat.com>
12209
12210 Implement reference counting of scope records.
12211 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
12212 from the list in objects which remain. Always allocate new scope
12213 record.
12214 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
12215 don't resize, allocate a new one.
12216 * elf/dl-runtime.c: Update reference counters before using a scope
12217 array.
12218 * elf/dl-sym.c: Likewise.
12219 * elf/dl-libc.c: Adjust for l_scope name change.
12220 * elf/dl-load.c: Likewise.
12221 * elf/dl-object.c: Likewise.
12222 * elf/rtld.c: Likewise.
12223 * include/link.h: Include <rtld-lowlevel.h>. Define struct
12224 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
12225 Add l_scoperec_lock.
12226 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
12227 * sysdeps/generic/rtld-lowlevel.h: New file.
12228
12229 * include/atomic.h: Rename atomic_and to atomic_and_val and
12230 atomic_or to atomic_or_val. Define new macros atomic_and and
12231 atomic_or which do not return values.
12232 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
12233 Various cleanups.
12234 * sysdeps/i386/i486/bits/atomic.h: Likewise.
12235
12236 * po/sv.po: Update from translation team.
12237
12238 2006-10-07 Ulrich Drepper <drepper@redhat.com>
12239
12240 * Versions.def: Add GLIBC_2.6 to libpthread.
12241
12242 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
12243 (versioned_symbol): Likewise.
12244 (compat_symbol): Likewise.
12245
12246 * po/tr.po: Update from translation team.
12247
12248 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12249
12250 * nis/Banner: Removed. It's been integral part forever and the
12251 author info is incomplete anyway.
12252 * libio/Banner: Likewise.
12253
12254 * nis/nis_table.c (nis_list): If __follow_path fails in the new
12255 code, make sure the nis_freeresult call doesn't crash and that the
12256 result is reported correctly.
12257
12258 2006-09-27 Jakub Jelinek <jakub@redhat.com>
12259
12260 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12261 when callback is NULL.
12262
12263 * nis/Versions (libnss_nisplus): Add
12264 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12265 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
12266 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
12267 _nss_create_tablename): Rename to...
12268 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
12269 ... these. No longer static.
12270 (internal_setgrent): Adjust users.
12271 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
12272 Don't use locking around _nss_grp_create_tablename call.
12273 * nis/nss_nisplus/nisplus-initgroups.c: New file.
12274
12275 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12276
12277 * version.h (VERSION): Bump to 2.5.90 for new development tree.
12278
12279 2006-10-06 Andreas Jaeger <aj@suse.de>
12280
12281 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
12282
12283 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12284
12285 * po/pl.po: Update from translation team.
12286
12287 * nscd/nscd.c (main): Fix typo in message.
12288 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
12289
12290 2006-10-02 Jakub Jelinek <jakub@redhat.com>
12291
12292 [BZ #3291]
12293 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
12294 errno.h, signal.h, unistd.h and sysdep-cancel.h.
12295 (__sigprocmask): Define.
12296
12297 2006-10-02 Ulrich Drepper <drepper@redhat.com>
12298
12299 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
12300 used.
12301
12302 2006-10-02 Jakub Jelinek <jakub@redhat.com>
12303
12304 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
12305 in oldtotal and newtotal calculation.
12306 * nscd/nscd-client.h (struct mapped_database): Add datasize
12307 field.
12308 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
12309 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
12310 increased.
12311 (__nscd_cache_search): Add checks to make sure we never reference
12312 data beyond the current mapping.
12313
12314 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
12315
12316 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
12317 variables const to avoid compiler warnings.
12318
12319 * io/fts.c (fts_close): Remove redundant checks.
12320 (fts_build): Likewise.
12321 (fts_palloc): Likewise.
12322
12323 * manual/message.texi (Advanced gettext functions,
12324 Using gettextized software): Fix typos.
12325
12326 2006-09-30 Ulrich Drepper <drepper@redhat.com>
12327
12328 * posix/glob.c (glob_in_dir): Add some comments and asserts to
12329 explain why there are no leaks.
12330
12331 2006-09-29 Ulrich Drepper <drepper@redhat.com>
12332
12333 * libio/wmemstream.c: Include <wchar.h>.
12334 * libio/bug-wmemstream1.c: Likewise.
12335 * libio/tst-wmemstream1.c: Likewise.
12336 * libio/tst-wmemstream2.c: Likewise.
12337
12338 * version.h (RELEASE): Bump to 2.5.
12339 * README: Regenerated.
12340
12341 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
12342
12343 [BZ #3273]
12344 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
12345 found no group members.
12346 Patch by Petr Baudis.
12347
12348 2006-09-29 Jakub Jelinek <jakub@redhat.com>
12349
12350 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
12351 assert bootstrap_map.l_tls_modid is zero.
12352 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
12353 if USE___THREAD.
12354
12355 2006-09-27 Ulrich Drepper <drepper@redhat.com>
12356
12357 * libio/stdio.h: Move open_wmemstream prototype to ...
12358 * wcsmbs/wchar.h: ... here.
12359
12360 2006-09-25 Jakub Jelinek <jakub@redhat.com>
12361
12362 [BZ #3252]
12363 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
12364 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
12365 __{,l}chown to handle the rest.
12366 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
12367 fchownat syscall and __ASSUME_32BITUIDS case inline, call
12368 __{,l}chown to handle the rest.
12369 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
12370 i386/fchownat.c.
12371 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
12372 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
12373
12374 [BZ #3253]
12375 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
12376 time, rather allocate increasingly bigger arrays of pointers, if
12377 possible with alloca, if too large with malloc.
12378
12379 2006-09-24 Jakub Jelinek <jakub@redhat.com>
12380
12381 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
12382
12383 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
12384
12385 2006-09-24 Ulrich Drepper <drepper@redhat.com>
12386
12387 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
12388 home addresses.
12389 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
12390 IFA_F_HOMEADDRESS flag for interfaces.
12391 * include/ifaddrs.h (struct in6addrinfo): Define
12392 in6ai_homeaddress.
12393
12394 2006-09-21 Jakub Jelinek <jakub@redhat.com>
12395
12396 [BZ #3225]
12397 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
12398 PTR_DEMANGLE3): Define.
12399 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
12400 PTR_DEMANGLE3): Likewise.
12401 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
12402 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
12403 Likewise.
12404 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
12405
12406 2006-09-20 Jakub Jelinek <jakub@redhat.com>
12407
12408 * po/libc.pot: Regenerated.
12409 * po/be.po: Updated.
12410 * po/ca.po: Likewise.
12411 * po/cs.po: Likewise.
12412 * po/da.po: Likewise.
12413 * po/de.po: Likewise.
12414 * po/el.po: Likewise.
12415 * po/en_GB.po: Likewise.
12416 * po/es.po: Likewise.
12417 * po/fi.po: Likewise.
12418 * po/fr.po: Likewise.
12419 * po/gl.po: Likewise.
12420 * po/hr.po: Likewise.
12421 * po/hu.po: Likewise.
12422 * po/ja.po: Likewise.
12423 * po/ko.po: Likewise.
12424 * po/nb.po: Likewise.
12425 * po/nl.po: Likewise.
12426 * po/pl.po: Likewise.
12427 * po/pt_BR.po: Likewise.
12428 * po/ru.po: Likewise.
12429 * po/rw.po: Likewise.
12430 * po/sk.po: Likewise.
12431 * po/sv.po: Likewise.
12432 * po/tr.po: Likewise.
12433 * po/zh_CN.po: Likewise.
12434 * po/zh_TW.po: Likewise.
12435
12436 [BZ #3137]
12437 * iconv/iconv_prog.c (main): Fix spelling in error message.
12438 * iconv/iconvconfig.c (main): Likewise.
12439 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
12440 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
12441 * locale/programs/localedef.c (main): Likewise.
12442 * locale/programs/repertoire.c (repertoire_read): Likewise.
12443 * timezone/zdump.c (main): Likewise.
12444 * nscd/connections.c (handle_request): Fix spelling in log message.
12445 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
12446
12447 2006-09-20 Ulrich Drepper <drepper@redhat.com>
12448
12449 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
12450 interfaces.
12451
12452 2006-09-20 Andreas Jaeger <aj@suse.de>
12453
12454 * math/libm-test.inc (lrint_test_upward): Fix typo.
12455
12456 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
12457
12458 [BZ #2592]
12459 * math/libm-test.inc (lrint_test_tonearest): New function.
12460 (lrint_test_towardzero): New function.
12461 (lrint_test_downward): New function.
12462 (lrint_test_upward): New function.
12463 (main): Run these new tests.
12464 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
12465 of values near to 0.
12466 (two52): Use double not long double.
12467 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
12468 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
12469 (two23): Use float not double.
12470 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
12471 (two23): Use float not double.
12472 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
12473 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
12474 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
12475 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
12476
12477 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
12478
12479 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
12480 Cast sp to unsigned long to avoid compiler warning.
12481 Use __makecontext_ret function instead of a trampoline on the stack.
12482 (__makecontext_ret): New function.
12483 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
12484
12485 2006-09-19 Jakub Jelinek <jakub@redhat.com>
12486
12487 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
12488 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
12489 bits.
12490
12491 2006-09-19 Ulrich Drepper <drepper@redhat.com>
12492
12493 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
12494 sure no reference to the unloaded map's search list remains in the
12495 dependency's scope.
12496
12497 2006-09-16 Jakub Jelinek <jakub@redhat.com>
12498
12499 * elf/Makefile: Add rules to build and run unload7 test.
12500 * elf/unload7.c: New test.
12501 * elf/unload7mod1.c: New file.
12502 * elf/unload7mod2.c: New file.
12503
12504 2006-09-18 Jakub Jelinek <jakub@redhat.com>
12505
12506 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
12507 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
12508 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12509 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
12510 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12511 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
12512 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12513 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
12514 PTRACE_GETEVENTMSG): Likewise.
12515 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
12516 values.
12517
12518 2006-09-17 Mike Frysinger <vapier@gentoo.org>
12519
12520 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
12521 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12522 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
12523 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
12524
12525 2006-09-16 Jakub Jelinek <jakub@redhat.com>
12526
12527 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
12528 write '\0' to the fd.
12529 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
12530 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
12531 Change regs to unsigned long pointer from unsigned int, fix fscr
12532 offset.
12533
12534 2006-09-14 Jakub Jelinek <jakub@redhat.com>
12535
12536 * io/Makefile (CFLAGS-fstatat.c): Set.
12537 (CFLAGS-fstatat64.c): Likewise.
12538 (CFLAGS-mknodat.c): Likewise.
12539
12540 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
12541 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12542 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
12543 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
12544
12545 2006-09-14 Jakub Jelinek <jakub@redhat.com>
12546 Steven Munroe <sjmunroe@us.ibm.com>
12547
12548 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
12549 names to the beginning. Rename "cell" to "cellbe".
12550 (_dl_powerpc_platforms): New.
12551 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12552 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
12553 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
12554 (_DL_HWCAP_PLATFORM): Define to new mask.
12555 (_dl_platform_string, _dl_string_platform): New functions.
12556 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
12557 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
12558
12559 2006-09-12 Jakub Jelinek <jakub@redhat.com>
12560
12561 [BZ #2526]
12562 * README.libm: Fix a thinko in sqrt algorithm description.
12563
12564 [BZ #3143]
12565 * manual/string.texi (argz_delete): Fix prototype.
12566 Patch by <alpt@freaknet.org>.
12567
12568 2006-08-26 Joseph Myers <joseph@codesourcery.com>
12569
12570 [BZ #3138]
12571 * io/test-lfs.c (do_prepare): Give name_len type size_t.
12572 * io/tst-fcntl.c (do_prepare): Likewise.
12573 * posix/tst-exec.c (do_prepare): Likewise.
12574 * posix/tst-preadwrite.c (do_prepare): Likewise.
12575 * posix/tst-spawn.c (do_prepare): Likewise.
12576 * posix/tst-truncate.c (do_prepare): Likewise.
12577 * rt/tst-aio.c (do_prepare): Likewise.
12578 * rt/tst-aio64.c (do_prepare): Likewise.
12579 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
12580 size_t.
12581
12582 2006-09-09 Ulrich Drepper <drepper@redhat.com>
12583
12584 [BZ #2821]
12585 * time/mktime.c (guess_time_tm): Fix overflow detection.
12586 * time/Makefile (tests): Add bug-mktime1.
12587 * time/bug-mktime1.c: New file.
12588
12589 [BZ #3189, #3188]
12590 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
12591 (mremap): Likewise.
12592
12593 2006-09-07 Jakub Jelinek <jakub@redhat.com>
12594
12595 [BZ #1006]
12596 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12597 Ensure relocation doesn't clobber any bits outside of the
12598 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
12599 R_SPARC_HI22 and R_SPARC_H44.
12600
12601 [BZ #2775]
12602 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
12603 (long) (MINSIZE + nb - old_size) is positive.
12604
12605 * malloc/arena.c (grow_heap): When growing bail even if new_size
12606 is negative.
12607
12608 [BZ #3155]
12609 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
12610 stack below r1.
12611
12612 2006-09-06 Jakub Jelinek <jakub@redhat.com>
12613
12614 * posix/regex_internal.c (re_string_reconstruct): Handle
12615 offset < pstr->valid_raw_len && pstr->offsets_needed case.
12616 Ensure no bytes read before raw_mbs array. Pass a saved copy of
12617 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
12618 re_string_context_at.
12619 * posix/Makefile: Add rules to build and run bug-regex26 test.
12620 * posix/bug-regex26.c: New test.
12621
12622 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
12623 rather than col_sym_free. Move seqp declaration earlier.
12624
12625 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
12626
12627 2006-09-05 Jakub Jelinek <jakub@redhat.com>
12628
12629 * nscd/initgrcache.c (addinitgroupsX): Move any_success
12630 decl before first goto out.
12631
12632 2006-09-04 Jakub Jelinek <jakub@redhat.com>
12633
12634 * Makerules (shlib.lds): If have-hash-style, put .hash section
12635 at the end of the RO segment.
12636
12637 2006-09-04 Ulrich Drepper <drepper@redhat.com>
12638
12639 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
12640 style hash table format is used.
12641
12642 2006-09-04 Jakub Jelinek <jakub@redhat.com>
12643
12644 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
12645 randomization rather than before.
12646 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
12647
12648 2006-08-31 Jakub Jelinek <jakub@redhat.com>
12649
12650 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
12651
12652 * malloc/malloc.c (_int_malloc): Use full list insert and not
12653 shortcut which assumes the list is empty for large requests
12654 too.
12655
12656 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
12657
12658 2006-08-30 Jakub Jelinek <jakub@redhat.com>
12659
12660 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
12661 and offout arguments to the prototype.
12662 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
12663 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
12664 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
12665 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
12666 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
12667 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
12668 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
12669 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
12670
12671 2006-08-28 Ulrich Drepper <drepper@redhat.com>
12672
12673 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
12674
12675 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
12676 dlopen parameters.
12677
12678 2006-08-28 Jakub Jelinek <jakub@redhat.com>
12679
12680 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
12681 only if herrno is NETDB_INTERNAL. Handle errors other than
12682 ERANGE outside of the loops, handle TRY_AGAIN.
12683
12684 * locale/programs/ld-ctype.c (translit_flatten): Issue error
12685 if other's ctype category was missing.
12686 * locale/programs/ld-collate.c (collate_read): Return if
12687 copy_locale's collate category is missing.
12688
12689 2006-08-27 Ulrich Drepper <drepper@redhat.com>
12690
12691 [BZ #2684]
12692 * malloc/malloc.c (public_rEALLOc): Try harder by using other
12693 arenas if allocation failed.
12694 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
12695
12696 2006-08-26 Ulrich Drepper <drepper@redhat.com>
12697
12698 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
12699 waste bins[0..1].
12700 (malloc_state): Reduce bins size by 2.
12701 (_int_malloc): Fix test for large enough buffer for early termination.
12702 When no unsorted block matches perfectly and an exiting block has
12703 to be split, use full list insert and not shortcut which assumes
12704 the list is empty.
12705
12706 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
12707 failure.
12708
12709 2006-08-24 Ulrich Drepper <drepper@redhat.com>
12710
12711 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
12712 do anything.
12713
12714 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
12715 symbol require exact match (these are PLTs).
12716 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
12717 (_dl_ppc64_addr_sym_match): Likewise.
12718
12719 [BZ #2683]
12720 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
12721 If symbol has a value use it.
12722 * elf/tst-dladdr1.c: New file.
12723 * elf/Makefile: Add rules to build and run tst-addr1.
12724
12725 2006-08-24 Jakub Jelinek <jakub@redhat.com>
12726
12727 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
12728 keeps failing and heap growth or new heap creation isn't
12729 successful either.
12730 * malloc/tst-malloc.c (main): Add new tests.
12731
12732 2006-08-24 Ulrich Drepper <drepper@redhat.com>
12733
12734 [BZ #2734]
12735 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
12736 as in the x86-64 code to use bswap.
12737
12738 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
12739
12740 [BZ #2680]
12741 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
12742 __USE_UNIX98.
12743 * posix/bits/unistd.h: Likewise.
12744
12745 2006-05-15 Mike Frysinger <vapier@gentoo.org>
12746
12747 [BZ #2751]
12748 * string/strchr.c: Add cast to avoid warning.
12749
12750 2006-08-21 Ulrich Drepper <drepper@redhat.com>
12751
12752 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
12753 platforms define as 512K. For 64-bit platforms as 32MB. The lower
12754 limit is needed to avoid the exploding of the address space
12755 requirement for secondary heaps.
12756 * malloc/arena.c (HEAP_MAX_SIZE): Define using
12757 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
12758
12759 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
12760
12761 [BZ #3018]
12762 * Makerules (depfiles): Handle extra-test-objs the same as
12763 extra-objs.
12764 (common-mostlyclean): Likewise.
12765 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
12766 instead.
12767 * elf/Makefile (extra-objs): Likewise.
12768 * stdlib/Makefile (extra-objs): Likewise.
12769
12770 2006-08-14 Eric Blake <ebb9@byu.net>
12771
12772 [BZ #3044]
12773 * misc/error.h: Assume C89 or better.
12774 * misc/error.c: Likewise.
12775
12776 2006-08-21 Ulrich Drepper <drepper@redhat.com>
12777
12778 [BZ #3040]
12779 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
12780 __ASSUME_ATFCTS is defined.
12781
12782 2006-08-19 Ulrich Drepper <drepper@redhat.com>
12783
12784 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
12785 to sort in each call.
12786
12787 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
12788 is empty simply return and use next service.
12789 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
12790
12791 * locale/programs/charmap.c (charmap_read): Add new parameter. It
12792 tells us when not finding a charmap file is an error.
12793 * locale/programs/charmap.h: Adjust charmap_read prototype.
12794 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
12795 cannot find a charmap.
12796 * locale/programs/localedef.c (main): Adjust charmap_read call.
12797
12798 2006-08-15 Jakub Jelinek <jakub@redhat.com>
12799
12800 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
12801 sysdeps/posix/pause.c implementation instead.
12802
12803 2006-08-09 Jakub Jelinek <jakub@redhat.com>
12804
12805 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
12806 to EPERM.
12807
12808 2006-08-13 Andreas Schwab <schwab@suse.de>
12809
12810 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
12811 Don't clobber caller's LRSAVE.
12812 (_dl_prof_resolve): Likewise.
12813
12814 2006-08-14 Ulrich Drepper <drepper@redhat.com>
12815
12816 [BZ #1996]
12817 * libio/memstream.c (open_memstream): Allocate initial buffer with
12818 calloc.
12819 * libio/wmemstream.c (open_wmemstream): Likewise.
12820 * libio/strops.c: Pretty printing.
12821 (_IO_str_overflow): Clear uninitialized part of the new buffer.
12822 (enlarge_userbuf): New function.
12823 (_IO_str_seekoff): Call it if seek position is larger than current
12824 buffer.
12825 * libio/wstrops.c: Likewise.
12826 * libio/vasprintf.c: Add comment as to why we do not have to use
12827 calloc instead of malloc to allocate initial buffer.
12828 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
12829 * libio/bug-memstream1.c: New file.
12830 * libio/bug-wmemstream1.c: New file.
12831
12832 2006-08-13 Ulrich Drepper <drepper@redhat.com>
12833
12834 * libio/wstrops.c: Remove dead macro definitions and comments.
12835 * libio/strops.c: Likewise.
12836
12837 [BZ #2764]
12838 * login/utmpname.c (__utmpname): Remove unnecessary test.
12839
12840 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
12841
12842 [BZ #2832]
12843 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
12844 0s from integers.
12845
12846 2006-08-13 Ulrich Drepper <drepper@redhat.com>
12847
12848 [BZ #2987]
12849 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
12850 for CPU clocks.
12851 * sysdeps/unix/clock_settime.c: Add support for platform-specific
12852 setting of CPU clocks.
12853
12854 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
12855
12856 [BZ #2841]
12857 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
12858 since C99 requires the result to promote to 'int' when uint_least8_t
12859 and uint_least16_t promote to 'int'.
12860
12861 2006-08-12 Ulrich Drepper <drepper@redhat.com>
12862
12863 [BZ #3013]
12864 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
12865 lenght of one output field, correct bitmask creation.
12866 * locale/programs/ld-time.c: Add alignment.
12867
12868 [BZ #2997]
12869 * misc/error.c: Add space between program name and message if file
12870 name is missing.
12871
12872 2006-08-03 Eric Blake <ebb9@byu.net>
12873
12874 [BZ #2998]
12875 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
12876
12877 2006-08-09 Ulrich Drepper <drepper@redhat.com>
12878
12879 * malloc/memusagestat.c: Silence warnings.
12880
12881 * malloc/malloc.c: Dynamically size mmap treshold if the program
12882 frees mmaped blocks.
12883 Patch by Valerie Henson and Arjan van de Ven.
12884
12885 2006-08-08 Jakub Jelinek <jakub@redhat.com>
12886
12887 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
12888 __USE_GNU.
12889
12890 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
12891 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
12892 (DEF): Don't put the var into .gnu.linkonce.r.* section.
12893 Only provide var definitions in strtol_l (or for *ull*
12894 in strtoll_l).
12895
12896 * stdio-common/bug16.c (tests): New array.
12897 (do_tests): Allow the first hexadecimal digit
12898 to be 1, 2, 4 or 8. Do 3 additional tests.
12899
12900 * sysdeps/s390/fpu/libm-test-ulps: Update.
12901
12902 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
12903 fchownat syscall if available.
12904 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
12905 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
12906 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
12907
12908 2006-08-07 Ulrich Drepper <drepper@redhat.com>
12909
12910 * nis/nis_xdr.c: Avoid some function calls.
12911
12912 2006-08-07 Jakub Jelinek <jakub@redhat.com>
12913 Ulrich Drepper <drepper@redhat.com>
12914
12915 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
12916 short cut if only one name component is stripped away.
12917
12918 2006-08-07 Ulrich Drepper <drepper@redhat.com>
12919
12920 * nis/nis_call.c: Minor cleanups throughout.
12921 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
12922 (first_shoot): Add search_parent_first parameter. Only if it is set
12923 search parent server first.
12924 If directory for table found through cold start cache is not the same
12925 as referenced in the cache, don't use it.
12926 (__nisfind_server): Take additional parameter. Pass it on to
12927 first_shoot.
12928 (__prepare_niscall): Adjust __nisfind_server call.
12929 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
12930 * nis/nis_table.c: Adjust __nisfind_server call.
12931 * nis/nis_lookup.c: Likewise.
12932 (nis_lookup): Don't loop endlessly if name is reduced to ".".
12933
12934 2006-08-03 Ulrich Drepper <drepper@redhat.com>
12935
12936 [BZ #2182]
12937 * math/s_cacosh.c: Return values from positive branch.
12938 * math/s_cacoshf.c: Likewise.
12939 * math/s_cacoshl.c: Likewise.
12940
12941 [BZ #2883]
12942 * sysvipc/sys/msg.h: Change return value to ssize_t.
12943 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
12944 * sysvipc/msgrcv.c: Likewise.
12945 * include/sys/msg.h: Likewise.
12946
12947 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
12948 test introduced in patch for bz #661.
12949 (getgrouplist): Simplify code a bit. Don't allocate one additional
12950 element for NEWGROUPS.
12951
12952 [BZ #2908]
12953 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
12954 'f', use '1' as leading digit not '\1'.
12955 * stdio-common/Makefile (tests): Add bug16.
12956 * stdio-common/bug16.c: New file.
12957
12958 [BZ #2914]
12959 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
12960 and don't try to open it. The patch introducing the macro
12961 contained a bug and used the same file name as the new file
12962 instead of using /var/adm/hostid. Nobody complaint so I'm taking
12963 this out completely.
12964
12965 [BZ #2926]
12966 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
12967 Patch by Jerry James <Jerry.James@usu.edu>.
12968
12969 * rt/Makefile (tests): Add tst-clock2.
12970 * rt/tst-clock2.c: New file.
12971
12972 [BZ #2978]
12973 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
12974 function and its parameters and pass it to new thread.
12975 (__gai_notify): Add support for alternative waiting for completion.
12976 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
12977 waiting for completion.
12978 * resolv/getaddrinfo_a.c: Likewise.
12979 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
12980 waiting for completion is used.
12981 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
12982 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
12983 * resolv/gai_error.c: Likewise.
12984 * resolv/gai_sigqueue.c: Likewise.
12985
12986 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
12987
12988 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
12989 errno to EBADF and return MACH_PORT_NULL.
12990
12991 2006-06-23 Joseph Myers <joseph@codesourcery.com>
12992
12993 [BZ #2980]
12994 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
12995
12996 2006-08-02 Ulrich Drepper <drepper@redhat.com>
12997
12998 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
12999 walk them instead of the symbol table.
13000
13001 2006-08-01 Ulrich Drepper <drepper@redhat.com>
13002
13003 [BZ #2098]
13004 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
13005 status of NSS calls, not the number of returned entries.
13006
13007 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
13008 request_key, keyctl.
13009
13010 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13011
13012 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
13013
13014 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
13015
13016 * elf/tst-auditmod1.c: Fix typo in #error.
13017
13018 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13019
13020 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
13021
13022 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
13023
13024 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
13025
13026 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
13027 that the directory is empty even on non-POSIX filesystems.
13028
13029 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13030
13031 * elf/dl-open.c (dl_open_worker): Add branch prediction.
13032
13033 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
13034 the backend NSS module. If backend setgrent call failed, don't have
13035 internal_setgrent fail. Just remember this until it is needed.
13036 * nis/nss_compat/compat-pwd.c: Likewise.
13037 * nis/nss_compat/compat-spwd.c: Likewise.
13038
13039 2006-07-30 Roland McGrath <roland@redhat.com>
13040
13041 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
13042 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
13043 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
13044 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
13045
13046 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
13047 (nanosleep_not_cancel): New macro.
13048 (sigsuspend_not_cancel): new macro.
13049 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
13050 (do_sigsuspend): Define as inline.
13051 (__sigsuspend): Always use do_sigsuspend.
13052 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
13053 * include/signal.h: Declare __sigsuspend_nocancel.
13054 * sysdeps/posix/pause.c
13055 [! NO_CANCELLATION] (__pause_nocancel): New function.
13056
13057 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
13058 * include/time.h (__nanosleep_nocancel): Likewise.
13059
13060 2006-07-30 Ulrich Drepper <drepper@redhat.com>
13061
13062 * locale/programs/localedef.c (add_to_readlist): Rename local
13063 variables to avoid confusion.
13064
13065 * locale/programs/charmap.c (charmap_read): Emit error message if
13066 charmap couldn't be found or read.
13067
13068 2006-07-28 Ulrich Drepper <drepper@redhat.com>
13069
13070 * sysdeps/unix/sysv/linux/kernel-features.h: Define
13071 __ASSUME_FUTEX_LOCK_PI.
13072 * include/time.h: Declare __nanosleep_nocancel.
13073 * include/unistd.h: Declare __pause_nocancel.
13074
13075 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
13076 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
13077 get the __stack_chk_fail_local definition when it's needed.
13078
13079 2006-07-26 Ulrich Drepper <drepper@redhat.com>
13080
13081 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13082 * dlfcn/bug-atexit3.c: New file.
13083 * dlfcn/bug-atexit3-lib.cc: New file.
13084
13085 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13086 used when the namespace is not the base namespace.
13087
13088 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
13089
13090 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13091 (__new_exitfn): Bump it in every successful call.
13092 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13093 more exit handlers, call them right away.
13094 * stdlib/exit.h: Declare __new_exitfn_called.
13095
13096 2006-07-25 Ulrich Drepper <drepper@redhat.com>
13097
13098 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13099 calling registered handler.
13100
13101 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13102 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13103 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13104 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13105 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13106 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13107 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13108 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13109
13110 2006-07-10 Ulrich Drepper <drepper@redhat.com>
13111
13112 * elf/dl-lookup.c (dl_new_hash): New functions.
13113 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13114 value here. Compute new-style hash value. Pass new hash value
13115 and reference to variable with the old value to do_lookup_x.
13116 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13117 old-style hash table.
13118 (_dl_debug_bindings): Pass new hash value and reference to variable
13119 with the old value to do_lookup_x.
13120 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13121 new-style hash value and change old-style hash value parameter to
13122 be a reference. Reoganize functions to determine whether
13123 new-style hash table is available. Only fall back on old-style
13124 table. If old-style hash value is needed, compute it here.
13125 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13126 entry.
13127 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13128 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
13129 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13130 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13131 * Makeconfig: If linker supports --hash-style option add it to all
13132 linker command lines to build DSOs.
13133 * config.make.in: Define have-hash-style.
13134 * configure.in: Test whether linker supports --hash-style option.
13135
13136 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13137 * sysdeps/generic/ldsodefs.h: Adjust prototype.
13138
13139 2006-06-27 Ulrich Drepper <drepper@redhat.com>
13140
13141 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13142 auditing.
13143
13144 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13145 RPATH of main map twice.
13146
13147 2006-06-22 Ulrich Drepper <drepper@redhat.com>
13148
13149 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13150 look further, return original strings.
13151 (_nl_find_msg): Do not return found translation if the conversion
13152 failed. Either signal the string is unusable or that something went
13153 wrong and the original should be used.
13154
13155 2006-06-21 Ulrich Drepper <drepper@redhat.com>
13156
13157 * string/_strerror.c (__strerror_r): Add __builtin_expect.
13158
13159 2006-06-14 Jakub Jelinek <jakub@redhat.com>
13160
13161 [BZ #2766]
13162 * misc/insremque.c (insque): Handle prev == NULL.
13163 * misc/Makefile (tests): Add tst-insremque.
13164 * misc/tst-insremque.c: New test.
13165
13166 2006-06-17 Ulrich Drepper <drepper@redhat.com>
13167
13168 [BZ #2792]
13169 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
13170 conflict with DL_DST_REQUIRED.
13171
13172 2006-06-16 Ulrich Drepper <drepper@redhat.com>
13173
13174 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
13175 match what Solaris does.
13176
13177 2006-06-04 Ulrich Drepper <drepper@redhat.com>
13178
13179 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
13180 local_setegid instead of seteuid and setegid.
13181 * sysdeps/generic/local-setxid.h: New file.
13182 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
13183
13184 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
13185
13186 * string/Makefile (tests): Add bug-envz1.
13187 * string/bug-envz1.c: New file.
13188
13189 2006-06-02 Jakub Jelinek <jakub@redhat.com>
13190
13191 * posix/regex_internal.c (re_string_skip_chars): If no character has
13192 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
13193 to the byte which couldn't be converted.
13194 (re_string_reconstruct): Don't clear valid_raw_len before calling
13195 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
13196 tip_context using re_string_context_at.
13197 * posix/Makefile: Add rules to build and run bug-regex25 test.
13198 * posix/bug-regex25.c: New test.
13199
13200 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
13201
13202 [BZ #2703]
13203 * string/envz.c (envz_strip): Correct erroneously reversed src
13204 and dest parameters to memmove() invocation.
13205
13206 2006-05-30 Jakub Jelinek <jakub@redhat.com>
13207
13208 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
13209 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
13210 to make sure the database has been already invalidated.
13211 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
13212 after the cache has been invalidated. Use pthread_mutex_lock rather
13213 than pthread_mutex_trylock if fd != -1.
13214 * nscd/connections.c (invalidate_cache): Add fd argument, write
13215 response to fd if not calling prune_cache, pass fd to prune_cache.
13216 (handle_request): Adjust invalidate_cache caller.
13217 (nscd_run): Pass -1 as fd to prune_cache.
13218
13219 2006-05-30 Ulrich Drepper <drepper@redhat.com>
13220
13221 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
13222 the correct place.
13223
13224 2006-05-29 Ulrich Drepper <drepper@redhat.com>
13225
13226 * nscd/nscd.h (struct database_dyn): Add prunelock field.
13227 * nscd/cache.c (prune_cache): Take prunelock before starting the
13228 work. Just return in case it is already taken.
13229 * nscd/connections.c (dbs): Initialize .prunelock.
13230
13231 2006-05-25 Ulrich Drepper <drepper@redhat.com>
13232
13233 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
13234 copying. No need to allocate new array for group members. Just
13235 move the pointers and update the size.
13236
13237 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
13238 Avoid memory leak in case realloc fails. Simplification for
13239 better code generation.
13240
13241 Avoid deprecation warning because of libc_hidden_proto for
13242 inet6_option_alloc.
13243 * inet/inet6_option.c (option_alloc): Renamed from
13244 inet6_option_alloc. Made static.
13245 (inet6_option_alloc): Now a simple wrapper around option_alloc.
13246 (inet6_option_append): Call option_alloc.
13247 * include/netinet/in.h: Remove libc_hidden_proto for
13248 inet6_option_alloc.
13249
13250 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13251 for cleanup when cb!=NULL [Coverity CID 233].
13252
13253 2006-05-24 Ulrich Drepper <drepper@redhat.com>
13254
13255 [BZ #2693]
13256 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13257 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13258 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13259 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13260 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13261 and inet6_rth_getaddr.
13262 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13263 array.
13264 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13265 Mark inet6_option_* interfaces as deprecated.
13266 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
13267 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
13268 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
13269 inet6_rth_segments, and inet6_rth_getaddr.
13270 * inet/inet6_opt.c: New file.
13271 * inet/inet6_rth.c: New file.
13272
13273 * inet/netinet/icmp6.h: Pretty printing.
13274
13275 [BZ #2683]
13276 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
13277
13278 2006-05-23 Ulrich Drepper <drepper@redhat.com>
13279
13280 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
13281 doing it all here. When server does not know the answer do not
13282 fail immediate, try parent first.
13283
13284 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
13285 overflow test.
13286
13287 2006-05-20 Ulrich Drepper <drepper@redhat.com>
13288
13289 * nis/nis_call.c (__prepare_niscall): New function. Split out
13290 from __do_niscall.
13291 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
13292 and exported.
13293 (__follow_path): New function. Split out from nis_list.
13294 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
13295 _xdr_nis_result.
13296 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
13297 _xdr_nis_result.
13298 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
13299 and __follow_path.
13300 * nis/Versions: Export __prepare_niscall, __create_ib_request,
13301 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
13302 from libnsl for version GLIBC_PRIVATE.
13303 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
13304 Remove entry parameter from _nss_nisplus_parse_pwent and
13305 _nss_nisplus_parse_grent.
13306 * nis/nss_nisplus/nisplus-parser.c: Likewise.
13307 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
13308 again. Rewrite getpwent handling to not use nis_first_entry and
13309 nis_next_entry. Roll out own niscall handling.
13310 * nis/nss_nisplus/nisplus-grp.c: Likewise.
13311
13312 * sunrpc/xdr_rec.c: Fix typo in comment.
13313
13314 2006-05-19 Ulrich Drepper <drepper@redhat.com>
13315
13316 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
13317 handling.
13318
13319 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
13320 to allocate memory for my_pollfd. Better initialization of
13321 cb_is_running. Use TEMP_FAILURE_RETRY.
13322
13323 * malloc/memusage.sh (memusageso): Add quotes.
13324 (memusagestat): Likewise.
13325 * debug/xtrace.sh (pcprofileso): Likewise.
13326 (pcprofiledump): Likewise.
13327 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
13328 replacement.
13329 * malloc/Makefile ($(objpfx)memusage): Likewise.
13330
13331 * nis/nis_callback.c (__nis_create_callback): Calls to
13332 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
13333 asprintf call fails.
13334
13335 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
13336 no uninitialized memory is passed to sendto.
13337
13338 2006-05-18 Ulrich Drepper <drepper@redhat.com>
13339
13340 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
13341 of snprintf+strdup. Handle OOM.
13342 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
13343 cb->serv together. Remove now obsolete free calls.
13344 (__nis_destroy_callback): Remove now obsolete free call.
13345
13346 2006-05-18 David Woodhouse <dwmw2@redhat.com>
13347
13348 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
13349 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
13350 and ULA respectively). Set precedence for IPv4 address to 10 as
13351 defined in RFC3484 for preferring IPv6.
13352 * posix/gai.conf: Update to match the new default tables.
13353
13354 2006-05-18 Jakub Jelinek <jakub@redhat.com>
13355
13356 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
13357 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
13358 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
13359 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
13360
13361 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
13362 Removed.
13363 (init_nss_interface): Remove initialization of these variables.
13364
13365 2006-05-18 Ulrich Drepper <drepper@redhat.com>
13366
13367 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
13368 nis_free_directory forward to avoid duplication.
13369
13370 2006-05-17 Ulrich Drepper <drepper@redhat.com>
13371
13372 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
13373 rec_dirsearch returning NULL.
13374 (first_shoot): Handle __nis_finddirectory returning NULL.
13375 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
13376
13377 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
13378 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
13379
13380 2006-05-17 Jakub Jelinek <jakub@redhat.com>
13381
13382 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
13383 pid changed.
13384
13385 2006-05-15 Ulrich Drepper <drepper@redhat.com>
13386
13387 * include/rpc/pmap_prot.h: Mark all functions as hidden.
13388
13389 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
13390 * nscd/nscd_getgr_r.c: Likewise.
13391
13392 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
13393
13394 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
13395 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
13396
13397 * stdlib/longlong.h (__clz_tab): Mark as hidden.
13398
13399 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
13400
13401 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
13402
13403 * include/rpc/auth.h: Mark xdr_des_block_internal and
13404 xdr_opaque_auth_internal as hidden.
13405
13406 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
13407 hidden.
13408
13409 * include/rpc/xdr.h: Mark all _internal functions as hidden.
13410
13411 * misc/getusershell.c (okshells): Don't use static initializers,
13412 do it dynamically.
13413
13414 * stdlib/fmtmsg.c (keywords): Change type of len element to
13415 uint32_t to not waste space on 64bit machines.
13416
13417 * locale/setlocale.c: Change _nl_category_names into a string.
13418 Add new _nl_category_name_idxs. Change all users.
13419 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
13420 Declare _nl_category_name_idxs.
13421 * locale/findlocale.c: Adjust for _nl_category_names change.
13422 * locale/loadlocale.c: Likewise.
13423 * locale/newlocale.c: Likewise.
13424 * intl/dcigettext.c: Likewise.
13425
13426 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
13427 (add_alias2): ...here. New function.
13428 (__gconv_read_conf): Simplify builtin alias handling.
13429 (builtin_aliases): Convert to string to avoid relocations.
13430 * iconv/gconv_builtin.h: Add comment about correct formatting.
13431
13432 2006-05-15 Jakub Jelinek <jakub@redhat.com>
13433
13434 * resolv/res_debug.c (loc_ntoa): Make error const.
13435
13436 2006-05-14 Andreas Schwab <schwab@suse.de>
13437
13438 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
13439
13440 2006-05-12 Jakub Jelinek <jakub@redhat.com>
13441
13442 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
13443 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
13444 sizeof (cpu_set_t).
13445
13446 2006-05-11 Ulrich Drepper <drepper@redhat.com>
13447
13448 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
13449
13450 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
13451
13452 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
13453 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
13454
13455 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
13456 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
13457
13458 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
13459 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
13460 xdr_cback_data.
13461
13462 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
13463 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13464 xdr_ypupdate_args.
13465
13466 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
13467 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
13468
13469 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
13470 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
13471
13472 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
13473 * include/rpcsvc/nis_callback.h: New file.
13474
13475 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
13476 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
13477
13478 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13479 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13480
13481 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
13482 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
13483
13484 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13485 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13486
13487 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
13488 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13489 xdr_ypdelete_args.
13490
13491 * nis/nis_xdr.h: Mark all functions as hidden. Remove
13492 __BEGIN_DECLS and __END_DECLS, the header is not installed.
13493
13494 * nis/nis_error.c: Remove table of strings. Use position
13495 independent mechanism.
13496 * nis/nis_error.h: New file.
13497
13498 2006-05-11 Jakub Jelinek <jakub@redhat.com>
13499
13500 * locale/programs/ld-time.c (time_finish): If wide era name or
13501 format aren't provided, set both wname and wformat to L"".
13502
13503 2006-05-10 Ulrich Drepper <drepper@redhat.com>
13504
13505 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
13506 results if the call was succesful.
13507
13508 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
13509
13510 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
13511 as hidden.
13512
13513 2006-05-10 Jakub Jelinek <jakub@redhat.com>
13514
13515 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
13516
13517 2006-05-10 Ulrich Drepper <drepper@redhat.com>
13518
13519 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
13520 caller makes sure this is not the case.
13521 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
13522
13523 2006-05-09 Ulrich Drepper <drepper@redhat.com>
13524
13525 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
13526 calls.
13527
13528 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
13529 [Coverity CID 229, 230]
13530
13531 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
13532 DGETTEXT calls.
13533 (hol_help): Likewise. [Coverity CID 226, 227]
13534
13535 * string/argz-replace.c (__argz_replace): Unconditionally call
13536 free on SRC. [Coverity CID 225]
13537
13538 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
13539 the return value of __nis_default_owner and __nis_default_group,
13540 it has been especially allocated. [Coverity CID 224]
13541
13542 * nis/nis_defaults.c (searchXYX): New functions. Used by both
13543 searchgroup and searchowner. Significantly simplified.
13544 (__nis_default_owner): Remove duplication. Do not locally copy the
13545 string before duplicating it.
13546 (__nis_default_group): Likewise.
13547
13548 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
13549 we must clear the variable before calling __nisfind_server.
13550
13551 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
13552 nis_getnames. [Coverity CID 223]
13553
13554 * locale/programs/locfile.c (locfile_read): Use alloca instead of
13555 xmalloc to allocate local repertoire name. [Coverity CID 222]
13556
13557 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
13558 allocate memory for the input to add_bytes. [Coverity CID 221]
13559
13560 * posix/wordexp.c (w_addword): Free word if realloc fails and it
13561 was allocated here. [Coverity CID 219, 220]
13562
13563 * posix/getconf.c (print_all): Free confstr data after printing.
13564 [Coverity CID 218]
13565
13566 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
13567 list allocation fails. [Coverity CID 215]
13568
13569 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
13570 [Coverity CID 213]
13571
13572 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
13573 string is NULL. [Coverity CID 212]
13574 * argp/Makefile: Add rules to build and run bug-argp1.
13575 * argp/bug-argp1.c: New file.
13576
13577 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
13578 end of string.
13579 * stdlib/canonicalize.c (__realpath): Likewise.
13580
13581 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
13582 pointer. [Coverity CID 206]
13583
13584 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
13585 in statically linked code.
13586 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
13587 statically built code, be prepared to have no link map.
13588 [Coverity CID 205]
13589
13590 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
13591 dgettext calls. [Coverity CID 204]
13592
13593 * argp/argp-help.c (struct uparams): Remove valid member. Change
13594 the one user.
13595 (uparam_names): Reduce size. Avoid relative relocations.
13596 Moved to read-only segment.
13597 (fill_in_uparams): Update for new layout.
13598
13599 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
13600 assumed to always be != NULL. [Coverity CID 202]
13601
13602 * argp/argp-help.c (hol_entry_help): Remove some dead code
13603 [Coverity CID 200].
13604
13605 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
13606 away a few more unconditional yperr2nss calls.
13607 (_nss_nis_getservbyname_r): Likewise.
13608
13609 2006-05-06 Ulrich Drepper <drepper@redhat.com>
13610
13611 * sysdeps/generic/ldsodefs.h: Remove support for non-core
13612 architectures.
13613
13614 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
13615 that unused memory passed to sendto is nevertheless initialized.
13616
13617 [BZ #2499]
13618 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
13619 possibly unaligned memory accesses.
13620
13621 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
13622 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
13623 and __putlong respectively. Correct buffer overflow check for
13624 NS_NOTIFY_OP.
13625
13626 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
13627
13628 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
13629 (send_dg): Rewrite error handling to be more compact and avoid
13630 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
13631
13632 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
13633
13634 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
13635 instead of ns_get16.
13636 (res_queriesmatch): Likewise. Minor optimization.
13637
13638 [BZ #2499]
13639 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
13640 __libc_res_nsend might reallocate the buffer for the answer. In
13641 this case we have to reload the HP pointer.
13642
13643 2006-05-05 Ulrich Drepper <drepper@redhat.com>
13644
13645 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
13646 some branch prediction hints.
13647
13648 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
13649 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13650 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13651 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13652 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13653 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13654 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13655 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13656
13657 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
13658
13659 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
13660 by a GOT relocation to make Scrt1.o position independent.
13661 * sysdeps/s390/s390-64/elf/start.S: Likewise.
13662
13663 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
13664 six system call parameters.
13665 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
13666
13667 2006-05-05 Ulrich Drepper <drepper@redhat.com>
13668
13669 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
13670 malloc&bzero.
13671
13672 * sunrpc/svc_udp.c (BZERO): Remove definition.
13673 (CALLOC): Define.
13674 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
13675
13676 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
13677 (des_SPtrans): Use uint32_t type.
13678 (des_skb): Likewise.
13679
13680 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
13681
13682 2006-05-05 Jakub Jelinek <jakub@redhat.com>
13683
13684 [BZ #2509]
13685 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
13686 on 32-bit arches.
13687
13688 2006-05-05 Ulrich Drepper <drepper@redhat.com>
13689
13690 * locale/programs/ld-address.c (address_finish): Fix one more
13691 place where the iso639 array might be accessed beyond the limits.
13692
13693 2006-05-04 Ulrich Drepper <drepper@redhat.com>
13694
13695 * nis/nis_table.c (nis_list): Avoid clearing res twice before
13696 filling it for the first time.
13697
13698 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
13699 Adjust all callers.
13700 Free res object content before returning.
13701
13702 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
13703
13704 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
13705 client->cl_auth.
13706
13707 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
13708 cleanup for initial thread, just the free call on TVP.
13709
13710 * nscd/gai.c (__getline): Define.
13711
13712
13713 See ChangeLog.16 for earlier changes.