* sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
[platform/upstream/glibc.git] / ChangeLog
1 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
2
3         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4
5         [BZ #9706]
6         * nss/nss_files/files-parse.c (strtou32): New function.
7         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
8         across 32-bit and 64-bit platforms.
9         (INT_FIELD_MAYBE_NULL): Likewise.
10
11 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
12
13         [BZ #9720]
14         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
15         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
16         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
17         Likewise.
18
19 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
20
21         [BZ #697]
22         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
23         being NULL also if there are no backreferences.
24         * posix/rxspencer/tests: Add testcases.
25
26 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
27
28         [BZ #9697]
29         * posix/bug-regex17.c: Add testcases.
30         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
31         handling.
32
33 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
34
35         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
36         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
37         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
38         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
39         for elf subdir.
40         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
41         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
42         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
43         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
44         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
45         * sysdeps/unix/sysv/linux/s390/Versions: New file.
46
47 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
48
49         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
50         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
51         re_string_skip_chars, re_string_reconstruct): Likewise.
52         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
53
54 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
55
56         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
57         adjust the buffer alignment.
58
59 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
60
61         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
62         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
63         net/route.h.
64
65         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
66         flavor to description only when flavor is not NULL.
67
68         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
69         mutex after SIGIO/SIGURG lookup loop.
70
71 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
72
73         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
74
75 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
76
77         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
78         handling.
79
80 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
81
82         * sysdeps/unix/sysv/linux/kernel-features.h
83         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
84
85         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
86         if no output is written.
87
88         * version.h: Bump to 2.10 development.
89
90         * posix/getconf.c: Update copyright year.
91         * nss/getent.c: Likewise.
92         * iconv/iconvconfig.c: Likewise.
93         * iconv/iconv_prog.c: Likewise.
94         * elf/ldconfig.c: Likewise.
95         * catgets/gencat.c: Likewise.
96         * csu/version.c: Likewise.
97         * elf/ldd.bash.in: Likewise.
98         * elf/sprof.c (print_version): Likewise.
99         * locale/programs/locale.c: Likewise.
100         * locale/programs/localedef.c: Likewise.
101         * nscd/nscd.c (print_version): Likewise.
102         * debug/xtrace.sh: Likewise.
103         * malloc/memusage.sh: Likewise.
104         * malloc/mtrace.pl: Likewise.
105         * debug/catchsegv.sh: Likewise.
106
107 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
108
109         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
110         script.
111
112 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
113
114         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
115         gethostbyname4_r function call succeeded, just leave the loop.
116
117         [BZ #9694]
118         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
119         very end.
120         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
121         * wctype/Makefile (tests): Add bug-wctypeh.
122         * wctype/bug-wctypeh.c: New file.
123
124         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
125         LOCALDOMAIN is defined.
126         * nscd/nscd_getai.c (__nscd_getai): Likewise.
127
128         * sysdeps/x86_64/bits/select.h: New file.
129
130         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
131
132 2008-12-21  Bruno Haible  <bruno@clisp.org>
133
134         [BZ #9677]
135         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
136         if no output is written.
137
138 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
139
140         * login/utmp_file.c (pututline_file): Replace call to dup2 with
141         libc internal symbol __dup2 to avoid access through the PLT.
142
143 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
144
145         [BZ #6545]
146         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
147         available only for __USE_GNU.
148
149         * inet/Makefile (tests): Add tst-getni2.
150         * inet/tst-getni2.c: New file.
151
152         [BZ #7080]
153         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
154         NULL when NI_NAMEREQD is set.
155         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
156         * inet/Makefile (tests): Add tst-getni1.
157         * inet/tst-getni1.c: New file.
158
159 2008-12-03  Petr Baudis  <pasky@suse.cz>
160
161         [BZ #7067]
162         * nscd/connections.c (invalidate_cache): Use prune_run_lock
163         instead of prune_lock.
164         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
165         * nscd/nscd.h (database_dyn): Add prune_run_cache.
166
167 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
168
169         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
170         use.
171
172         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
173         handling.
174
175         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
176         after reading name server list.
177
178         [BZ #7058]
179         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
180         handling for host name aliases.
181
182 2008-11-24  Arkadiusz Miƛkiewicz  <arekm@maven.pl>
183
184         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
185         instead of doing things manually.
186
187 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
188
189         * posix/regex_internal.h (build_wcs_upper_buffer):
190         Return type is reg_error_t.
191
192 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
193
194         * posix/globtest.sh: Use mktemp to create temporary file and
195         directory.
196
197         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
198         sets correctly.
199         (__CPU_CLR_S): Likewise.
200         (__CPU_ISSET_S): Likewise.
201
202 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
203             Ulrich Drepper  <drepper@redhat.com>
204
205         * scripts/firstversion.awk: Use custom comparison function to compare
206         version numbers.
207         * scripts/versions.awk: Use sort invocation which can handle
208         multi-digit sub-version numbers.
209
210 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
211
212         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
213         * locale/iso-639.def: Add Chhattisgarhi entry.
214
215 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
216
217         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
218         ESRCH return value.
219         (_nss_dns_gethostbyname4_r): Likewise.
220         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
221         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
222         gethostbyname4_r, we don't have a separate IPv6 status, so copy
223         the no_data variable.
224
225         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
226         information at the correct index.
227
228         * socket/sys/socket.h: Declare accept4.
229         * socket/accept4.c: New file.
230         * sysdeps/unix/sysv/linux/accept4.c: New file.
231         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
232         * socket/Makefile (routines): Add accept4.
233         * socket/Versions: Export accept4 with version GLIBC_2.10.
234         * socket/paccept.c: Removed.
235         * sysdeps/unix/sysv/linux/paccept.c: Removed.
236         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
237         * Versions.def: Define GLIBC_2.10 for libc.
238         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
239
240         * nscd/connections.c: Use accept4.
241
242         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
243
244 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
245
246         * resolv/res_send.c (send_dg): Create sockets with non-blocking
247         flag already set.
248
249         * stdlib/setenv.c (unsetenv): Don't search environment if it does
250         not exist.
251         * stdlib/Makefile (tests): Add tst-unsetenv1.
252         * stdlib/tst-unsetenv1.c: New file.
253
254 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
255
256         * login/utmp_file.c (file_writable): New variable.
257         (setutent_file): Don't try to open file for writing.
258         (pututline_file): Before writing, make descriptor writable if
259         necessary.
260
261 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
262
263         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
264         to IPv4 or IPv6 if an interface has been found.
265
266 2008-11-26  Roland McGrath  <roland@redhat.com>
267
268         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
269         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
270
271         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
272         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
273         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
274
275         * elf/elf.h (NT_386_IOPERM): New macro.
276         (NT_PPC_VSX): New macro.
277
278 2008-11-25  Roland McGrath  <roland@redhat.com>
279
280         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
281         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
282         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
283         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
284         Subdirectories moved to ports repository.
285         * configure.in (base_machine): Remove alpha case.
286
287 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
288
289         * sysdeps/mach/strerror_l.c: New file.
290
291 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
292
293         [BZ #6411]
294         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
295         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
296         magic numbers.
297         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
298         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
299         (relax_fenv_state): Same as above.
300         (FPSCR_29): Reserve bit in ISA 2.05.
301         (FPSCR_NI): Provide define for compat.
302         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
303         magic numbers.
304         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
305         magic numbers.
306         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
307         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
308         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
309         access to hwcap to account for hwcap size increase to uint64_t.
310         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
311         Likewise.
312         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
313         (*setcontext): Likewise.
314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
315         New file.
316         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
317         New file.
318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
319         (*setcontext): dynamically select mtfsf insn based on
320         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
321         increase to uint64_t.
322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
323         (*swapcontext): dynamically select mtfsf insn based on
324         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
325         increase to uint64_t.
326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
327         New file.
328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
329         New file.
330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
331         (*setcontext): dynamically select mtfsf insn based on
332         PPC_FEATURE_HAS_DFP.
333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
334         (*swapcontext): dynamically select mtfsf insn based on
335         PPC_FEATURE_HAS_DFP.
336
337 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
338
339         * version.h: Bump for 2.9 release.
340         * include/features.h (__GLIBC_MINOR__): Bump to 9.
341
342         [BZ #7029]
343         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
344         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
345         all the rounding.
346
347 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
348
349         [BZ #7009]
350         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
351         unknown request types for now.
352
353 2008-11-11  Roland McGrath  <roland@redhat.com>
354
355         * sysdeps/x86_64/configure: New file.
356
357         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
358         * configure: Regenerated.
359
360 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
361
362         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
363         correct instruction to remove the stack frame.
364
365 2008-11-03  Michael Matz  <matz@suse.de>
366
367         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
368         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
369
370 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
371
372         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
373         Remove.
374
375         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
376         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
377         of the thread variable instead of void *.
378         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
379         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
380         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
381         __libc_tsd_define arguments.
382         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
383         __libc_tsd_address arguments.  Remove union hack.
384         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
385         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
386         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
387         Adjust __libc_tsd_{set,get} arguments.
388         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
389         __libc_tsd_define arguments.
390         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
391         arguments.
392         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
393         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
394         (LOCALE): Adjust __libc_tsd_define arguments.
395         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
396         arguments.
397         (LOCALE): Adjust __libc_tsd_define arguments.
398         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
399         arguments.
400         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
401         arguments.
402
403 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
404
405         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
406         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
407
408 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
409
410         [BZ #6966]
411         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
412
413 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
414             Ulrich Drepper  <drepper@redhat.com>
415
416         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
417         definition for GCC 3.1 and later.
418
419 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
420
421         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
422         refetch dtv, as it might have changed.
423         * elf/Makefile: Add rules to build and run tst-tls18.
424         * elf/tst-tls18.c: New test.
425         * elf/tst-tlsmod18a.c: New file.
426
427 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
428
429         [BZ #6875]
430         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
431
432 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
433
434         [BZ #6867]
435         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
436
437         [BZ #6919]
438         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
439         Fix length of copy operation.
440
441 2008-10-02  Pierre Habouzit <madcoder@debian.org>
442
443         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
444         and fix its calling convention.
445
446 2008-10-07  Andreas Schwab  <schwab@suse.de>
447
448         [BZ #6942]
449         * resolv/res_send.c (send_vc): Fix last change.
450         (send_dg): Align here as well.
451
452 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
453
454         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
455         return value in case rlimit is RLIM_INFINITY.
456
457         [BZ #6947]
458         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
459         for UL_SETFSIZE.
460         * resource/Makefile (tests): Add bug-ulimit1.
461         * resource/bug-ulimit1.c: New file.
462
463         [BZ #6974]
464         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
465         without dot.  Properly terminate the string with a null byte.
466         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
467
468         [BZ #6980]
469         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
470         negative sizees.
471         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
472         negative __size.
473
474         [BZ #6995]
475         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
476
477 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
478
479         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
480         abort if there is no initgroups_dyn function.
481
482         * resolv/res_send.c (send_dg): On timeout, only return nonzero
483         result if any of the queries really provided an answer.
484
485 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
486
487         * po/lt.po: Update from translation team.
488
489 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
490
491         * po/id.po: Update from translation team.
492
493 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
494
495         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
496         Fix tests for existence of second reply.
497
498 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
499
500         * po/id.po: New file.
501         Contributed by the Indonesian translation team.
502
503 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
504
505         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
506         initialization.
507
508 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
509
510         * elf/Makefile: Add rules to build and run tst-tls17.
511         * elf/tst-tls17.c: New test.
512         * elf/tst-tlsmod17a.c: New file.
513         * elf/tst-tlsmod17b.c: Likewise.
514
515 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
516
517         * stdlib/divmod_1.c: Use correct type for dummy variable.
518         * stdlib/mod_1.c: Likewise.
519
520 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
521
522         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
523
524 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
525
526         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
527         __nonnull order for C++.
528         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
529         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
530
531 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
532
533         * stdlib/longlong.h: Update from GCC.
534
535 2008-10-09  Jakub Jelinek <jakub@redhat.com>
536             David S. Miller  <davem@davemloft.net>
537
538         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
539         make sure any registers used with 64-bit 'branch-on-register'
540         instructions have their top 32-bits clear.
541         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
542         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
543
544 2008-09-18  Andreas Schwab  <schwab@suse.de>
545
546         [BZ #6942]
547         * resolv/res_send.c (send_vc): Fix use of unaligned address.
548         Properly handle partial reads.
549
550 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
551
552         * elf/elf.h (STO_MIPS_PLT): New.
553         (R_MIPS_COPY): New.
554         (R_MIPS_JUMP_SLOT): New.
555         (R_MIPS_NUM): Redefine to 128.
556         (DT_MIPS_PLTGOT): New.
557         (DT_MIPS_RWPLT): New.
558         (DT_MIPS_NUM): Redefine to 0x35.
559
560 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
561
562         * timezone/africa: Update from tzdata2008f.
563         * timezone/asia: Likewise.
564         * timezone/australasia: Likewise.
565         * timezone/europe: Likewise.
566         * timezone/leapseconds: Likewise.
567         * timezone/northamerica: Likewise.
568         * timezone/southamerica: Likewise.
569         * timezone/zone.tab: Likewise.
570
571 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
572
573         * nscd/connections.c: Disable use of paccept for now.
574
575 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
576
577         * socket/Versions: Remove paccept export for GLIBC_2.9.
578         * socket/Makefile (routines): Remove paccept.
579         * socket/sys/socket.h: Remove paccept declaration.
580
581         * po/sv.po: Update from translation team.
582
583 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
584
585         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
586         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
587
588 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
589
590         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
591         Patch by Olivier Fourdan <ofourdan@redhat.com>.
592
593 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
594
595         * sunrpc/rpc/svc.h: Declare svcfd_create.
596         Patch by Michael Solberg <msolberg@redhat.com>.
597
598 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
599             Ulrich Drepper  <drepper@redhat.com>
600
601         * malloc/malloc.c (public_vALLOc): Try other arenas in case
602         _int_valloc fails.
603         (public_pVALLOc): Likewise.
604
605 2008-09-02  Andreas Jaeger  <aj@suse.de>
606
607         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
608         commit.
609
610 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
611
612         [BZ #6860]
613         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
614
615 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
616
617         * Makefile (check-data): Check data directory in add-ons.
618         * elf/Makefile (check-data): Likewise.
619
620 2008-08-18  Roland McGrath  <roland@redhat.com>
621
622         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
623         * configure: Regenerated.
624         * config.make.in (cflags-cpu): New substituted variable.
625         (with-cpu): Variable removed.
626         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
627
628 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
629
630         [BZ #6845]
631         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
632         __signbitl definition and __LONG_DOUBLE_128__ guard from:
633         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
634         redundant.  Functions which call floating point assembler operations
635         should go into a sysdeps powerpc/fpu directory.
636
637 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
638
639         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
640         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
641
642 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
643
644         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
645
646         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
647         change related to AT_EXECFN.  We cannot use that string.
648         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
649         _dl_execfn member.
650         * elf/dl-support.c: Remove _dl_execfn variable.
651         (_dl_aux_init): Remove handling of AT_EXECFN.
652         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
653         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
654
655 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
656
657         [BZ #6544]
658         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
659         byte gets added to writes and seeks from the end use the length of
660         the buffer and not the currently terminating NUL byte.
661
662         [BZ #6634]
663         * login/utmp_file.c (getutent_r_file): Take additional parameter.
664         Set to true if locking failed.
665         (getutid_r_file): Adjust caller.
666         (pututline_file): Likewise.  Return NULL in this case.
667         Patch mostly by halesh.s@gmail.com.
668
669 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
670
671         [BZ #6589]
672         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
673         Define.
674         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
675
676 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
677
678         [BZ #6839]
679         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
680         macro since it is now available in elf/dynamic-link.h.
681
682 2008-08-12  Roland McGrath  <roland@frob.com>
683
684         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
685         in case used outside of libc.
686         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
687
688 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
689
690         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
691         directly instead of going through dn_comp.
692
693 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
694
695         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
696         Fix asm constraints.
697
698 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
699
700         [BZ #6790]
701         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
702         (IPV6_PMTUDISC_PROBE): Likewise.
703
704 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
705
706         [BZ #6791]
707         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
708
709 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
710             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
711
712         [BZ #6817]
713         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
714         Added the members 'vsx' and 'arch_2_06'.
715         (_dl_powerpc_platforms): Add the member 'power7'.
716         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
717         to reflect the changes required by VSX and ISA 2.06.
718         Modify _DL_PLATFORMS_COUNT to reflect the addition of
719         'power7'.
720         Defined PPC_PLATFORM_POWER7.
721         (_dl_string_platform): Add support for POWER7.
722         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
723         capability and ISA 2.06.
724
725 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
726
727         [BZ #6824]
728         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
729         macro to detect use of 128 bit long double.
730         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
731
732 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
733
734         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
735
736         [BZ #5794]
737         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
738         parameters.
739         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
740         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
741
742 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
743
744         * nscd/connections.c (main_loop_poll): Pass a buffer which is
745         guaranteed to be large enough to read inotify event.  Ignore
746         EAGAIN error.  Better error message.  Add branch predicition.
747         (main_loop_epoll): Likewise.
748
749 2008-08-02  Roland McGrath  <roland@frob.com>
750
751         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
752         Add memory clobbers.
753
754 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
755
756         * manual/arith.texi: Avoid @strong{Note:}.
757         * manual/creature.texi: Likewise.
758         * manual/filesys.texi: Likewise.
759         * manual/math.texi: Likewise.
760         * manual/memory.texi: Likewise.
761         * manual/resource.texi: Likewise.
762         * manual/syslog.texi: Likewise.
763         * manual/time.texi: Likewise.
764
765         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
766         to prevent warning.
767
768 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
769
770         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
771         new epoll_create1 interface.
772         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
773         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
774         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
775
776         * include/arpa/nameser.h (NS_GET16): Use const pointer.
777         (NS_GET32): Likewise.
778
779         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
780         syscalls, too.
781
782         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
783         use the AT_EXECFN value if it is no absolute path.
784         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
785         __ASSUME_AT_EXECFN.
786
787         * Versions.def: Add GLIBC_2.9 to libresolv.
788         * include/resolv.h: Remove hidden proto declarations for __ns_*
789         functions.  Add them for __dn_count_labels and __p_secstodate.
790         * include/arpa/nameser.h: Add a number of hidden proto declarations.
791         Define ns_msg_getflags macro here.
792         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
793         and __p_secstodate.
794         * resolv/Versions: Export functions from <arpa/nameser.h> from
795         libresolv in version GLIBC_2.9.
796         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
797         hidden definitions.
798         * resolv/ns_netint.c: Likewise.
799         * resolv/ns_parse.c: Likewise.
800         * resolv/ns_print.c: Likewise.
801         * resolv/ns_samedomain.c: Likewise.
802         * resolv/ns_ttl.c: Likewise.
803         * resolv/arpa/nameser_compat.h: Likewise.
804         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
805         function calls.
806         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
807         instead of ns_get16.
808         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
809         __ns_get32 instead of ns_get16 and ns_get32 respectively.
810         (gaih_getanswer_slice): Likewise.
811         * resolv/Makefile (libresolv-routines): Add ns_date.
812         * resolv/ns_date.c: New file.
813
814         * elf/Makefile (check-localplt.out): Also check libresolv and
815         libcrypt.
816
817 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
818
819         * sysdeps/unix/sysv/linux/kernel-features.h: Define
820         __ASSUME_O_CLOEXEC.
821
822 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
823
824         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
825         buffer passed to NSS functions.
826
827         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
828
829         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
830         Define.
831
832         * misc/syslog.c (openlog_internal): Fix compile problem.
833
834 2008-07-28  Roland McGrath  <roland@redhat.com>
835
836         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
837
838 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
839
840         * io/ftw.c (add_object): Remove inline to avoid warning.
841
842         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
843
844         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
845         Use it instead of locally defined resplen2 variable.
846         (res_nsend): Adjust for __libc_res_nsend interface change.
847         (send_vc): Initialize *resplen2 if necessary.  Read length of
848         package into an appropriately aligned variable.  Store converted length
849         in new variable and use it appropriately.
850         Add branch prediction help.
851         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
852         and pass it on to __libc_res_nsend.  Adjust all callers.
853         (__libc_res_nsearch): Likewise.
854         (__libc_res_nqeurydomain): Likewise.
855         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
856         change.
857         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
858         Define resplen2 variable and pass it to __libc_res_nsearch and then
859         to gaih_getanswer.
860         (getanswer_r): In case of incorrect DNS data don't overread buffer.
861         Add branch prediction.
862         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
863         (gaih_getanswer): Don't decode second slice if first one failed due
864         to a too small buffer.  Don't let not found status of second
865         decoder shadow results of the first.
866         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
867         and __libc_res_nquery interface changes
868         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
869         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
870         __libc_res_nsearch, and __libc_res_nsend.
871         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
872         change.
873         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
874         __libc_res_nsearch interface changes.
875
876 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
877
878         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
879
880         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
881         file descriptors with close-on-exec set.
882         (exec_comm_child): Fix the case where the write end of the pipe is
883         STDOUT_FILENO already.  In case it is, clear close-on-exec.
884
885         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
886         * io/pipe2.c: Likewise.
887         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
888         instead of __ASSUME_PACCEPT.
889         * include/unistd.h: Declare __have_pipe2.
890         * libio/iopopen.c: Implement "e" flag.
891         * libio/Makefile (tests): Add tst-popen1.
892         * libio/tst-popen1.c: New file.
893
894         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
895         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
896
897 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
898
899         [BZ #6771]
900         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
901         success call of _IO_SEEKOFF or calls which failed because the
902         descriptor is for a pipe.
903
904         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
905         magic number.
906
907         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
908
909         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
910         F_SETFD use if we know fopen set the flag.
911
912         * login/utmp_file.c (setutent_file): Minor optimization in case
913         O_CLOEXEC is available.
914
915 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
916
917         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
918         * elf/Makefile: Use pie-ccflag variable.
919         * nscd/Makefile: Likewise.
920         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
921
922 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
923
924         [BZ #6724]
925         * Versions.def: Add GLIBC_2.9 version tag for libutil.
926         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
927         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
928         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
929         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
930         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
931         utmp32, utmpx32 and login32.
932         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
933         versions of struct utmp functions to libc and libutil.
934         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
935         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
936         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
937         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
938         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
939         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
940         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
941         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
942         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
943         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
944         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
945         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
946         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
947         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
948         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
949         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
950         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
951         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
952         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
953         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
954         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
955         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
956
957 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
958
959         * scripts/gen-as-const.awk: Generate more widely usable code by
960         using 64-bit arithmetic.
961
962         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
963         the same treatment as narrow output code in last patch.
964
965         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
966
967         [BZ #6763]
968         * elf/dl-load.c (local_strdup): Remove inline.
969         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
970         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
971         part of the object.
972
973         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
974
975 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
976
977         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
978         the new syscalls, too.
979
980         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
981         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
982
983         [BZ #6698]
984         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
985         parameter for end of buffer.  If temporary copy is too large use
986         malloc.
987         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
988         interface change.
989         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
990         string rewrite when allocating buffer.
991
992         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
993         syscalls, too.
994
995         * nscd/connections.c (nscd_init): Clean up fcntl call.
996
997         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
998         SOCK_NONBLOCK if possible.
999
1000         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
1001         SOCK_CLOEXEC if available.
1002
1003         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
1004         __libc_clntudp_bufcreate_internal.
1005         * include/sys/socket.h: Declare __have_sock_cloexec.
1006         * socket/Makefile (aux): Add have_sock_cloexec.
1007         * socket/have_sock_cloexec.c: New file.
1008         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
1009         __libc_clntudp_bufcreate.
1010         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
1011         which takes an additional parameter.  Create socket with non-blocking
1012         mode and close-on-exec flag set, if wanted.
1013         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
1014         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
1015         instead of clntudp_create.  The socket has already the close-on-exec
1016         flag set if SOCK_CLOEXEC is defined.
1017
1018 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
1019
1020         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1021         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
1022         appropriate.
1023         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
1024         non-blocking mode by using socket, paccept, and inotify_init1.
1025
1026         * Versions.def (glibc): Add GLIBC_2.9.
1027         * io/Makefile (routines): Add dup3 and pipe2.
1028         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
1029         * io/dup3.c: New file.
1030         * io/pipe2.c: New file.
1031         * posix/unistd.h: Declare dup3 and pipe2.
1032         * socket/Makefile (routines): Add paccept.
1033         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
1034         * socket/paccept.c: New file.
1035         * socket/sys/socket.h: Declare paccept.
1036         * sysdeps/unix/syscalls.list: Add entry for dup3.
1037         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
1038         epoll_create2 and inotify_init1.
1039         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
1040         * sysdeps/unix/sysv/linux/paccept.c: New file.
1041         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
1042         possible.
1043         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
1044         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
1045         inotify_init1, and pipe2 entries.
1046         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
1047         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
1048         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
1049         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
1050         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
1051         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
1052         SOCK_NONBLOCK.
1053         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
1054         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
1055         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
1056         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
1057         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
1058         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
1059         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
1060         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
1061         EPOLL_NONBLOCK.  Declare epoll_create2.
1062         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
1063         EFD_NONBLOCK.
1064         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
1065         IN_NONBLOCK.  Declare inotify_init1.
1066         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
1067         SFD_NONBLOCK.
1068         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
1069         TFD_NONBLOCK.
1070
1071         * elf/elf.h: Define AT_EXECFN.
1072         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1073         LD_ORIGIN_PATH.
1074         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1075         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
1076         if __ASSUME_AT_EXECFN is defined.
1077         (_dl_aux_init): Handle AT_EXECFN.
1078         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1079         for 2.6.27 and up.
1080         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1081         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1082         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1083         _dl_execfn if available and avoid compatibility code if
1084         __ASSUME_AT_EXECFN is defined.
1085
1086         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1087         _dl_discover_osversion only for older kernels.
1088
1089 2008-07-22  Roland McGrath  <roland@frob.com>
1090
1091         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1092
1093 2008-07-21  Roland McGrath  <roland@frob.com>
1094
1095         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1096         returned too much data out of line.
1097
1098 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
1099
1100         * locale/setlocale.c (setname): Remove inline to avoid compiler
1101         warning.
1102
1103         [BZ #6712]
1104         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1105
1106 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
1107
1108         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1109         doesn't manage to write anything, fail.
1110
1111         * malloc/hooks.c (__malloc_check_init): Remove printf.
1112
1113 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1114
1115         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1116
1117 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
1118
1119         * nscd/connections.c (main_loop_poll): Fix handling of read errors
1120         from inotify.
1121         (main_loop_epoll): Likewise.
1122
1123 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
1124
1125         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1126
1127         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1128         if DEBUG is defined.
1129
1130         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1131         query.  Adjust buffer size computation for padding.
1132
1133 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
1134
1135         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1136         * stdio-common/tst-setvbuf1.c: New file.
1137         * stdio-common/tst-setvbuf1.expect: New file.
1138
1139         [BZ #6719]
1140         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1141         when selecting fully-buffered stream.
1142         Patch by Wang Xin <wxinee@gmail.com>.
1143
1144 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1145
1146         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1147         (__open_2): New function.
1148         (__open64_2): New alias to __open_2.
1149         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1150         (__openat_2): New function.
1151         (__openat64_2): New alias to __openat_2.
1152
1153 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
1154
1155         [BZ #6723]
1156         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1157
1158 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1159
1160         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1161         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1162         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1163         __hurd_dfail.
1164         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1165         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1166         * sysdeps/mach/hurd/send.c (__send): Likewise.
1167         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1168         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1169
1170 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1171
1172         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1173         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1174         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1175         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1176         * hurd/get-host.c (_hurd_get_host_config): Likewise.
1177         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1178
1179 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
1180
1181         [BZ #6657]
1182         * time/strptime_l.c: Don't clear s.era_cnt after successful match
1183         of %EY.
1184         Patch by Petr Baudis.
1185
1186 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
1187
1188         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
1189         Patch by Peter Jones <pjones@redhat.com>.
1190
1191 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1192
1193         [BZ #6654]
1194         * stdlib/canonicalize.c (__realpath): readlink can write too much
1195         into the buffer on platforms without PATH_MAX.
1196
1197 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
1198
1199         [BZ #6653]
1200         * posix/tst-regex.c (main): Rename to...
1201         (do_test): ... this. Remove cmdline option processing.
1202         (TIMEOUT): Define.
1203         (TEST_FUNCTION): Define.
1204         (CMDLINE_OPTIONS): Define.
1205
1206 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1207
1208         [BZ #5210]
1209         * configure.in: Add -Werror to -fstack-protector test to catch
1210         unsupported architectures.
1211         Patch by Gilles Esponasse <g.esp@free.fr>.
1212
1213 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
1214
1215         * stdlib/tst-setcontext.c: Set back_in_main before exit if
1216         getcontext returns ENOSYS.
1217
1218 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
1219
1220         * nscd/connections.c (main_loop_poll): Fix test for read error.
1221         (main_loop_epoll): Likewise.
1222
1223 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
1224
1225         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1226         better place so it is not called when nscd is used.
1227
1228         * nscd/connections.c: Also recognize and handle changes to the
1229         resolver configuration file.
1230
1231 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1232
1233         * time/strftime.c: Pass reference to tzset_called around to handle
1234         recursive calls.
1235
1236         [BZ #6612]
1237         * time/strftime.c (__strftime_internal): Call tzset() only
1238         when printing timezone-dependent values.
1239         Based on a patch by Petr Baudis <pasky@suse.cz>.
1240
1241         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1242         unconditionally use second gaih_getanswer_slice result.
1243
1244         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1245         (getaddrinfo): RES must always be non-NULL.
1246
1247 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1248
1249         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1250         cr[34] registers.
1251         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1252         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1253         Likewise.
1254         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1255         register.
1256
1257 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1258
1259         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1260         fields.
1261         * nscd/connections.c (inotify_fd): New variable.
1262         (nscd_init): Try to open an inotify descriptor.
1263         If successful, watch files for databases using inotify instead of
1264         having prune threads stat the files.
1265         (nscd_run_prune): Recognize clear_cache flag being set and call
1266         prune_cache appropriately.
1267         (main_loop_poll): Add inotify descriptor to wait set and handle the
1268         reported changes.
1269         (main_loop_epoll): Likewise.
1270         * nscd/cache.c (prune_cache): Don't stat files for databases if
1271         inotify is used.
1272         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1273         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1274
1275         * nscd/grpcache.c (cache_addgr): Correctly compute size of
1276         fixed-size portion of the record.
1277         * nscd/servicescache.c (cache_addserv): Likewise.
1278         * nscd/pwdcache.c (cache_addpw): Likewise.
1279         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1280
1281 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
1282
1283         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1284         out we don't use uninitialized memory.
1285
1286         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1287         the client.
1288
1289 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
1290
1291         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1292         ignore T_DNAME messages.
1293         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1294
1295 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
1296
1297         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1298         Avoid segfault if first GETC returns eof/'\0'/'\n'.
1299
1300 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
1301
1302         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1303         instead of portstr to nscd_getserv_r.  Patch by
1304         Roman Kagan <rkagan@mail.ru>.
1305
1306 2008-05-26  Jim Meyering  <meyering@redhat.com>
1307
1308         Remove more useless "if" tests before "free".
1309         * include/inline-hashtab.h (htab_delete): Likewise.
1310         * libio/freopen.c (freopen): Likewise.
1311         * libio/freopen64.c (freopen64): Likewise.
1312         * locale/programs/ld-collate.c (collate_read): Likewise.
1313         * misc/fstab.c (libc_freeres_fn): Likewise.
1314         * posix/glob.c (globfree): Likewise.
1315
1316 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1317
1318         * string/Makefile (strop-tests): Add memmem.
1319         * string/test-memmem.c: New file.
1320         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1321         (test_init): Size buf1 according to BUF1PAGES.
1322
1323 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
1324
1325         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1326         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1327         (CFLAGS-scanf17.c): New.
1328         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1329         * stdio-common/scanf15.c (main): Likewise.
1330         * stdio-common/scanf16.c: New file.
1331         * stdio-common/scanf17.c: New file.
1332
1333 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1334
1335         * resolv/res_send.c (send_dg): If we already have one of two
1336         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
1337         use the one answer insted of failing.
1338
1339 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
1340
1341         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1342         being executed on PowerPC as the expected result exceeds IBM
1343         long double 128 __LDBL_MAX__.
1344
1345 2008-05-21  Roland McGrath  <roland@redhat.com>
1346
1347         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1348
1349         * Makefile (check-data): Use $(abi-name) before other guesses.
1350         Look in $(add-ons) dirs before scripts/data/.
1351         * elf/Makefile (check-data): Likewise.
1352
1353         * scripts/soversions.awk: Grok ABI line.
1354         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1355         Emit definition for abi-name variable.
1356
1357 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
1358
1359         * string/endian.h: Define new fixed-size hto* and *toh macros only
1360         if [__USE_BSD].
1361
1362         * iconvdata/Depend: Add localedata.
1363
1364 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1365
1366         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1367
1368 2008-05-08  David S. Miller  <davem@davemloft.net>
1369
1370         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1371         HIDDEN_JUMPTARGET.
1372         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1373         (__SYSCALL_CLOBBERS): Remove %g* registers.
1374         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1375         (__SYSCALL_CLOBBERS): Likewise.
1376         * scripts/data/localplt-sparc-linux-gnu.data: New file.
1377         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
1378
1379 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
1380
1381         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1382         (CALL_ERRNO_LOCATION): Define.
1383         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1384         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1385         (CALL_ERRNO_LOCATION): Define.
1386         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1387         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1388         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1389
1390 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
1391
1392         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1393         variable.
1394
1395 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
1396
1397         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1398         (FIRST_FRAME_POINTER): Define.
1399
1400 2008-05-09  David S. Miller  <davem@davemloft.net>
1401
1402         * sysdeps/sparc/sparc64/backtrace.c: New file.
1403
1404 2008-05-14  David S. Miller  <davem@davemloft.net>
1405
1406         * sysdeps/sparc/machine-gmon.h: New file.
1407         * sysdeps/sparc/sparc-mcount.S: Likewise.
1408         * sysdeps/sparc/Makefile: Add sparc-mcount target to
1409         sysdep_routines in gmon directory.
1410
1411 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
1412
1413         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1414
1415 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
1416
1417         * resolv/res_query.c (__libc_res_nquery): In case one of two
1418         answer was too short don't try to read that answer's header.
1419
1420         * resolv/res_send.c (send_dg): In case of timeout and there are
1421         two queries and one has been answered, return value indicating
1422         success.
1423
1424 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
1425
1426         * nscd/cache.c (cache_add): Take additional parameter specifying
1427         whether this is in response of a cache refill.  Check alignment
1428         of package data.  Revamp waking of pruning thread.
1429         (prune_cache): Small optimization.
1430         * nscd/nscd.h: Adjust cache_add prototypes.
1431         * nscd/aicache.c: Adjust cache_add calls.
1432         * nscd/grpcache.c: Likewise.
1433         * nscd/hstcache.c: Likewise.
1434         * nscd/initgrcache.c: Likewise.
1435         * nscd/pwdcache.c: Likewise.
1436         * nscd/servicescache.c: Likewise.
1437         * nscd/connections.c (restart): Really disable cache use before
1438         exec attempt.  If it fails, reenable cache.
1439         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
1440         time to max to be able to notice concurrent cache additions.  Unlock
1441         prune_lock while performing gc.  Afterwards compute wakeup time with
1442         current wakeup_time value in mind.
1443
1444 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
1445
1446         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
1447
1448         * nscd/mem.c (gc): Correctly determine highest used array element
1449         in mark.
1450
1451         * nscd/mem.c (markrange): Add assert to check entries are all
1452         aligned.  Small cleanup in bitmap use.
1453
1454         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
1455         blockoff of type nscd_ssize_t.
1456         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
1457         (mempoll_alloc): Record block offset and not address.
1458
1459         * nscd/mem.c (gc): Fix test for stack overuse.
1460
1461         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
1462         more asserts.
1463
1464         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1465         entry is available, believe it.
1466
1467         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1468         no answers return NSS_STATUS_NOTFOUND.
1469         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1470         buffer does not have any content.
1471
1472 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
1473
1474         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1475
1476         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1477         lookup, don't assign canon unconditionally.
1478
1479 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1480
1481         * string/Makefile (distribute): Add str-two-way.h.
1482
1483 2008-03-29  Eric Blake  <ebb9@byu.net>
1484
1485         Rewrite string searches to O(n) rather than O(n^2).
1486         * string/str-two-way.h: New file.  For linear fixed-allocation
1487         string searching.
1488         * string/memmem.c: New implementation.
1489         * string/strstr.c: New implementation.
1490         * string/strcasestr.c: New implementation.
1491
1492 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
1493
1494         * posix/regcomp.c (optimize_utf8): Add a note on why we test
1495         opr.ctx_type.
1496         (calc_first): Initialize constraint field.
1497         (duplicate_node_closure): Use it instead of special casing ANCHORS.
1498         Use search_duplicated_node to avoid loops.  Fix grammar.
1499         (duplicate_node): Merge constraint field for all node types.
1500         (calc_eclosure_iter): Look at constraint field for all node types.
1501         * posix/regex_internal.c (create_cd_newstate): Don't look at
1502         create_cd_newstate.
1503
1504 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1505
1506         [BZ #6428]
1507         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
1508
1509         [BZ #6442]
1510         * string/endian.h: Add macros for fixed-size endian conversion.
1511         * bits/byteswap.h: Allow inclusion from <endian.h>.
1512         * sysdeps/i386/bits/byteswap.h: Likewise.
1513         * sysdeps/ia64/bits/byteswap.h: Likewise.
1514         * sysdeps/s390/bits/byteswap.h: Likewise.
1515         * sysdeps/x86_64/bits/byteswap.h: Likewise.
1516         * string/Makefile (tests): Add tst-endian.
1517         * string/tst-endian.c: New file.
1518
1519         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
1520         Patch by Reuben Thomas.
1521
1522 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
1523
1524         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
1525
1526 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1527
1528         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
1529
1530         [BZ #6461]
1531         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
1532         Add missing braces.
1533         (BODY for __gconv_transform_internal_ascii): Likewise.
1534
1535         [BZ #6472]
1536         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
1537         to be treated like link-local addresses.
1538         (match_prefix): Don't treat IPv4 loopback address special when
1539         converting to v4 mapped addressed.
1540
1541         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1542         if necessary.
1543         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
1544         * posix/tst-rfc3484-2.c: Likewise.
1545         * posix/tst-rfc3484-3.c: Likewise.
1546
1547         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
1548         and SCTP.
1549
1550         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
1551
1552         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
1553
1554         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
1555
1556 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
1557
1558         * po/lt.po: New file.  From Lituanian translation team.
1559
1560 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
1561
1562         Introduce TLS descriptors for i386 and x86_64.
1563         * include/inline-hashtab.h: New file, copied from 2005's
1564         libiberty, with fix for memory leak imported afterwards by
1565         Glauber de Oliveira Costa.
1566         * elf/tlsdeschtab.h: New file.
1567         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
1568         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
1569         (CHECK_STATIC_TLS): Move to...
1570         * elf/dynamic-link.h: ... this file.
1571         (TRY_STATIC_TLS): New macro.
1572         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
1573         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
1574         R_386_TLS_DESC): Define.
1575         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
1576         binutils.
1577         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
1578         R_X86_64_TLSDESC): Define.
1579         (R_386_NUM, R_X86_64_NUM): Adjust.
1580         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
1581         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1582         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1583         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1584         release tlsdesc_table.
1585         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
1586         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
1587         (elf_machine_rel): Handle R_386_TLS_DESC.
1588         (elf_machine_rela): Likewise.
1589         (elf_machine_lazy_rel): Likewise.
1590         (elf_machine_lazy_rela): Likewise.
1591         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
1592         * sysdeps/i386/dl-tlsdesc.S: New file.
1593         * sysdeps/i386/dl-tlsdesc.h: New file.
1594         * sysdeps/i386/tlsdesc.c: New file.
1595         * sysdeps/i386/tlsdesc.sym: New file.
1596         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
1597         tlsdesc_table.
1598         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
1599         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1600         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1601         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1602         release tlsdesc_table.
1603         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
1604         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
1605         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
1606         (elf_machine_rel): Handle R_X86_64_TLSDESC.
1607         (elf_machine_rela): Likewise.
1608         (elf_machine_lazy_rel): Likewise.
1609         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
1610         (__tls_get_addr): Do not declare for non-shared compiles.
1611         * sysdeps/x86_64/dl-tlsdesc.S: New file.
1612         * sysdeps/x86_64/dl-tlsdesc.h: New file.
1613         * sysdeps/x86_64/tlsdesc.c: New file.
1614         * sysdeps/x86_64/tlsdesc.sym: New file.
1615         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
1616         tlsdesc_table for both 32- and 64-bit structs.
1617
1618 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1619
1620         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
1621         its own function.  This reduces the frame setup costs and more.
1622
1623 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
1624
1625         [BZ #3406]
1626         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
1627         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
1628
1629 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1630
1631         * io/openat.c (__openat_2): Also pass fd to __openat.
1632         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
1633         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
1634
1635         * string/tester.c (test_memcmp): Add a few more tests.
1636         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
1637
1638 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1639
1640         * nscd/cache.c (cache_add): Before returning with failure and this
1641         is the first use of the record, mark it as unusable.
1642         * nscd/aicache.c: Don't touch the dataset after cache_add returns
1643         reporting a failure.
1644         * nscd/grpcache.c: Likewise
1645         * nscd/hstcache.c: Likewise.
1646         * nscd/initgrcache.c: Likewise.
1647         * nscd/pwdcache.c: Likewise.
1648         * nscd/servicescache.c: Likewise.
1649
1650 2008-05-10  Roland McGrath  <roland@redhat.com>
1651
1652         [BZ #6505]
1653         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
1654
1655 2008-05-08  David S. Miller  <davem@davemloft.net>
1656
1657         * misc/truncate64.c (truncate64): Use __truncate not truncate.
1658
1659         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
1660         (__ieee754_y0l): Likewise.
1661         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1662         (__ieee754_y1l): Likewise.
1663         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
1664         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
1665         frexpl and ldexpl.  math_private.h provides them and the latter
1666         is not even used.
1667         (__log1pl): Use __frexpl.
1668
1669 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1670
1671         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
1672         prototypes.
1673         * include/arpa/nameser_compat.h: Define T_UNSPEC.
1674         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
1675         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
1676         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
1677         af==AF_UNSPEC.
1678         (_nss_nis_gethostbyname4_r): New function.
1679         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1680         Change to also handle af==AF_UNSPEC.
1681         (get_tablename): New function.  Use it to avoid duplication.
1682         (_nss_nisplus_gethostbyname4_r): New function.
1683         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
1684         available.
1685         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
1686         * nss/nss.h: Define struct gaih_addrtuple.
1687         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
1688         af==AF_UNSPEC.
1689         (_nss_files_gethostbyname4_r): New function.
1690         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
1691         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
1692         calls.
1693         * resolv/res_query.c (__libc_res_nquery): Take two additional
1694         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
1695         look up IPv4 and IPv6.
1696         Change all callers.
1697         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
1698         for an additional query and answer buffer.  Pass to send_vc and
1699         send_dg.
1700         (send_vc): Send possibly two requests and receive two answers.
1701         (send_dg): Likewise.
1702         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
1703         __libc_res_nquery.
1704         (_nss_dns_gethostbyname4_r): New function.
1705         (gaih_getanswer_slice): Likewise.
1706         (gaih_getanswer): Likewise.
1707         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
1708         __libc_res_nquery call.
1709         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
1710         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
1711         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
1712         available.
1713
1714 2008-05-05  David S. Miller  <davem@davemloft.net>
1715
1716         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
1717         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
1718
1719 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1720
1721         Fix termios bit macros.
1722         Move *DLY definitions where they belong, in termios.h.
1723         Add *[0-3] definitions.
1724         Fixes confusion between VT and FF.
1725         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
1726         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
1727         are already defined to avoid collision with termios.h.
1728         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
1729         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
1730         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
1731         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
1732         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
1733         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
1734         VTDLY, VT0, VT1): New macros.
1735         [__USE_GNU] (OLCUC): Change value of macro.
1736         [__USE_XOPEN] (OFILL): New macro.
1737         [__USE_BSD] (CRTSCTS): Change value.
1738         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
1739         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
1740         (B7200, B14400, B28800, B76800): New macros.
1741
1742 2008-05-01  David S. Miller  <davem@davemloft.net>
1743
1744         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
1745         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
1746         (gen-as-const-headers): Add it.
1747         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
1748         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
1749         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
1750         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
1751
1752         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
1753         six system call parameters.
1754         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
1755
1756 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
1757
1758         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
1759         RUSAGE_LWP.
1760         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1761         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1762
1763 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
1764
1765         * stdlib/tst-setcontext.c: Include unistd.h.
1766
1767 2008-04-25  David S. Miller  <davem@davemloft.net>
1768
1769         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
1770         Pass "union semun" properly in to sys_ipc, it must be passed
1771         by value, not by reference.
1772
1773 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
1774
1775         * nscd/Makefile (nscd-cflags): Set back to -fpie.
1776         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
1777         * nscd/connections.c (mem_in_flight): Likewise.
1778
1779         * nscd/nscd.h (dbs): Make hidden.
1780
1781         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
1782         Avoid returning -1, return 0 instead.
1783
1784 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
1785
1786         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
1787
1788 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
1789
1790         [BZ #5209]
1791         * sysdeps/unix/sysv/linux/times.c: New file.
1792
1793         [BZ #5381]
1794         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
1795         mem_in_flight_list variables.  Add new parameter to mempool_alloc
1796         prototype.
1797         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
1798         appropriate mem_in_flight element.
1799         (gc): Take allocations which have not yet been committed to the
1800         database into account.
1801         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
1802         Reset mem_in_flight before returning.
1803         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
1804         cue it up in mem_in_flight_list.
1805         * nscd/aicache.c: Adjust mempool_alloc call.
1806         * nscd/grpcache.c: Likewise.
1807         * nscd/hstcache.c: Likewise.
1808         * nscd/initgrcache.c: Likewise.
1809         * nscd/pwdcache.c: Likewise.
1810         * nscd/servicescache.c: Likewise.
1811         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
1812         of -fpie.
1813
1814         * nscd/connections.c (handle_request): Provide better error message
1815         in case SELinux forbids the service.
1816
1817         * version.h (VERSION): Bump to 2.8.90.
1818
1819 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
1820
1821         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
1822
1823 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
1824
1825         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
1826         Also use for 32-bit.
1827         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
1828         __nextafter instead of nextafter to avoid local PLT.
1829         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
1830         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1831
1832         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
1833
1834         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
1835         __fe_nomask_env.
1836         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
1837         <fenv_libc.h> instead of <fenv.h>.
1838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
1839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
1840
1841         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
1842
1843         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
1844         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
1845         function from fegetexcept and make old name weak alias.
1846         * include/fenv.h: Declare __fegetexcept.
1847         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
1848         fegetexcept.
1849         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
1850         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
1851         to fetestexcept.
1852         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
1853         instead of frexpl to avoid local PLT.
1854         * math/s_significandl.c (__significandl): Use __ilogbl instead of
1855         ilogbl to avoid local PLT.
1856         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
1857         instead of ldexpl to avoid local PLT.
1858         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
1859         __roundl not roundl to avoid local PLT.
1860         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
1861         local PLTs.  Use __sincosl instead of separate sinl and cosl
1862         calls.
1863         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1864
1865         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
1866         version for ppc64 to 2.4.21 since without it makecontext will fail.
1867
1868         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
1869         to the ABI in use.
1870         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
1871         .__tls_get_addr.
1872         [__powerpc64__] (TLS_GD): Likewise.
1873
1874 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
1875
1876         [BZ #4997]
1877         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
1878         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
1879         mantissa.
1880         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1881         Likewise.  Also account for when x is an odd number between 2^52
1882         and 2^53-1.
1883         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
1884         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1885         * math/libm-test.inc (lround_test, llround_test): Added test cases to
1886         detect aforementioned erroneous conditions.
1887
1888 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
1889
1890         * configure.in: Check for -fno-section-anchors in addition to
1891         -fno-toplevel-reorder.
1892
1893 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
1894
1895         * include/features.h (__GLIBC_MINOR__): Bump to 8.
1896
1897         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
1898         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
1899         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
1900         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
1901         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
1902         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
1903
1904 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
1905
1906         [BZ #5443]
1907         * time/era.c: Transform __libc_setlocale_lock into rwlock.
1908         * time/alt_digit.c: Likewise.
1909         * wcsmbs/wcsmbsload.c: Likewise.
1910
1911 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
1912
1913         * version.h (VERSION): Bump to 2.8.
1914
1915         * timzeone/asia: Update from tzdata2008b.
1916         * timezone/backward: Likewise.
1917         * timezone/europe: Likewise.
1918         * timezone/northamerica: Likewise.
1919         * timezone/southamerica: Likewise.
1920         * timezone/iso3166.tab: Likewise.
1921         * timezone/leapseconds: Likewise.
1922         * timezone/zone.tab: Likewise.
1923         * timezone/private.h: Update from tzcode2008a.
1924         * timezone/zdump.c: Likewise.
1925         * timezone/zic.c: Likewise.
1926
1927 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
1928
1929         [BZ #5741]
1930         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
1931         Define additonal Data Cache Block instruction macros.
1932         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
1933         Replace dcbst with dcbf and sync with sync/isync.
1934
1935 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
1936
1937         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
1938         Always set ELF_RTYPE_CLASS_PLT.
1939         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
1940
1941 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
1942
1943         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
1944         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
1945         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
1946         For ISA 2.01 and later replace mftb with mfspr 268.
1947
1948 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
1949
1950         [BZ #5768]
1951         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
1952         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
1953
1954 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
1955
1956         [BZ #5768]
1957         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
1958         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
1959         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
1960         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
1961
1962 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
1963
1964         * stdlib/tst-makecontext.c (othervar): New variable.
1965         (cf): Test sign extending the argument to long.
1966
1967 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
1968
1969         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
1970         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
1971         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
1972         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
1973         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
1974         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
1975         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
1976
1977 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
1978
1979         * elf/Makefile (tests): Substitute tests-vis-yes here.
1980         (tests-vis-yes): Delete.
1981         (modules-name, modules-vis-yes): Similarly.
1982
1983 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
1984
1985         [BZ #4407]
1986         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
1987         Preserve sign in signgamp when x is zero.
1988
1989 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
1990
1991         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
1992         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
1993         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
1994         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
1995         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
1996         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
1997
1998 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
1999
2000         [BZ #4314]
2001         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
2002         buffers.
2003
2004         [BZ #5209]
2005         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
2006         a reserved error value.
2007
2008         * stdlib/tst-makecontext.c: Change parameter to cf to negative
2009         value to check for correct sign extension.
2010
2011         [BZ #5436]
2012         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2013         Copy 64-bit parameter values even though this is not required in
2014         the standard.
2015
2016         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
2017         PC save.
2018
2019 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
2020
2021         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
2022         PC save.
2023
2024 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
2025
2026         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
2027
2028 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2029
2030         [BZ #5998]
2031         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
2032         in line-buffered stream failed.
2033         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2034
2035 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
2036
2037         [BZ #6024]
2038         * scripts/abi-versions.awk: If the version specified by
2039         --enable-oldest-abi is older than the first version for this
2040         architecture, use the default version.
2041
2042         * locale/programs/ld-collate.c (collate_read): Ignore script lines
2043         as well when ignoring the whole category.
2044
2045 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2046
2047         [BZ #6042]
2048         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
2049         ETHERTYPE_* definitions.
2050         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
2051
2052 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2053
2054         * stdlib/mbtowc.c (__no_r_state): Remove.
2055         (mbtowc): New static state variable.  Use it instead of
2056         __no_r_state.
2057         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
2058         (__wctomb_state): New hidden variable.
2059         (wctomb): Use __wctomb_state instead of __no_r_state.
2060         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
2061         (__wctomb_state): New extern decl.
2062         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
2063
2064 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2065
2066         [BZ #5475]
2067         * resolv/res_init.c: Handle scope IDs in resolv.conf.
2068
2069 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2070
2071         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2072
2073 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
2074
2075         * po/nl.po: Update from translation team.
2076
2077 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
2078
2079         [BZ #6007]
2080         * string/strfry.c: Handle empty strings again.
2081
2082 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2083
2084         [BZ #5443]
2085         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2086         before looking for translation.
2087         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2088         * locale/freelocale.c: Likewise.
2089         * locale/newlocale.c: Likewise.
2090         * locale/setlocale.c: Likewise.
2091         Based partially on a patch by ryo@np.css.fujitsu.com.
2092
2093 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
2094
2095         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2096         acquiring wrlock.  Do conv_tab allocation while holding lock.
2097         * intl/Makefile: Add rules to build and run tst-gettext6.
2098         * intl/tst-gettext6.c: New test.
2099         * intl/tst-gettext6.sh: New file.
2100
2101 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2102
2103         * po/nl.po: Update from translation team.
2104
2105         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2106         provided through st_blksize, try the default size before giving up.
2107
2108 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
2109
2110         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2111
2112         [BZ #5939]
2113         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2114
2115         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2116         error message.  POSIX today does not require the messages to be in
2117         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
2118
2119         [BZ #5979]
2120         * sunrpc/auth_unix.c: Unify printed strings.
2121         * sunrpc/clnt_tcp.c: Likewise.
2122         * sunrpc/clnt_udp.c: Likewise.
2123         * sunrpc/clnt_unix.c: Likewise.
2124         * sunrpc/svc_tcp.c: Likewise.
2125         * sunrpc/svc_udp.c: Likewise.
2126         * sunrpc/svc_unix.c: Likewise.
2127         * sunrpc/xdr.c: Likewise.
2128         * sunrpc/xdr_array.c: Likewise.
2129         * sunrpc/xdr_rec.c: Likewise.
2130         * sunrpc/xdr_ref.c: Likewise.
2131         * locale/programs/ld-time.c (time_finish): Unify messages.
2132         * locale/programs/locfile.c (handle_copy): Fix typo.
2133         * nscd/nscd.c (options): Fix typo.
2134
2135         [BZ #5995]
2136         * stdlib/strtod_l.c: Use correct sign for result in one more
2137         underflow case.
2138         Patch by Eric Blake <ebb9@byu.net>.
2139
2140 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
2141
2142         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2143         and creat system calls.
2144         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2145         call.
2146         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2147         system calls.
2148         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2149         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2150         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2151
2152 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
2153
2154         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2155         <linux/limits.h> has defined it.
2156         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2157         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2158         headers.
2159         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2160         it instead of ARG_MAX.
2161
2162 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
2163
2164         * posix/gai.conf: Fix comment for scope nullbits.
2165         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2166         default to 128 bits for v4 mapped addresses.
2167
2168 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2169
2170         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2171         ptrace call to get the ieee_instruction_pointer from the kernel.
2172         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2173         ptrace call to set the ieee_instructtion_pointer.
2174         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2175         Add comment that ieee_instruction_pointer is always 0.
2176
2177 2008-03-09  Andreas Jaeger  <aj@suse.de>
2178
2179         [BZ #5857]
2180         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2181         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2182         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2183
2184         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2185         (rint_test): Likewise.
2186
2187 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
2188
2189         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2190         call.
2191         (__nisfind_server): Similar for open readColdStartFile call.
2192         Patch partially by Jim Meyering.
2193         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2194         around internal_setent call.
2195
2196         * po/vi.po: New Vietnamese translation.
2197
2198         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2199         ADJ_OFFSET_SS_READ.
2200
2201         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2202         remove CLONE_STOPPED.
2203
2204 2008-02-10  Jim Meyering  <meyering@redhat.com>
2205
2206         Remove useless "if" before "free":
2207         * elf/ldconfig.c (parse_conf_include): Likewise.
2208         * gmon/gmon.c (weak_alias): Likewise.
2209         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2210         * inet/rcmd.c (__validuser2_sa): Likewise.
2211         * intl/bindtextdom.c (set_binding_values): Likewise.
2212         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2213         * libio/genops.c (save_for_backup): Likewise.
2214         * libio/wgenops.c (save_for_wbackup): Likewise.
2215         * locale/programs/ld-collate.c (collate_read): Likewise.
2216         * locale/programs/linereader.c (get_string): Likewise.
2217         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2218         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2219         * resolv/res_debug.c (do_section): Likewise.
2220         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2221         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2222         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2223         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2224         * time/tzset.c (tzset_internal): Likewise.
2225
2226 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2227
2228         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2229         of ASSEMBLER.
2230
2231 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
2232
2233         [BZ #5903]
2234         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2235         not stream for output file.  Open output file here.
2236         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2237         and output file name.
2238         (process_fd): Likewise.
2239         (process_file): Likewise.
2240         (main): Adjust callers of changed functions.
2241         * iconv/iconv_prog.h: Adjust prototype.
2242
2243 2008-03-09  Andreas Jaeger  <aj@suse.de>
2244
2245         [BZ #5753]
2246         * sysdeps/ia64/ieee754.h: Use protected namespace
2247         __BIG_ENDIAN/__LITTLE_ENDIAN.
2248         * sysdeps/ieee754/ieee754.h: Likewise.
2249         Patch by Aurelien Jarno <aurelien@aurel32.net>.
2250
2251 2008-03-08  Roland McGrath  <roland@frob.com>
2252
2253         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2254         ignore a signal that came from a machine exception, treat it as a
2255         fatal core-dump signal instead.
2256         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2257
2258         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2259         Clear DF bit in thread state's eflags.
2260         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2261
2262 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
2263
2264         [BZ #5774]
2265         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
2266         of NAN(...) sequence.
2267         * stdlib/Makefile (tests): Add tst-strtod6.
2268         * stdlib/tst-strtod6.c: New file.
2269
2270         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2271
2272         [BZ #5762]
2273         * posix/getopt.c (_getopt_internal_r): Clarify error message by
2274         putting offending option character in quotes.  Clean up error
2275         messages.
2276         * po/be.po: Adjust msgstr in translation file.
2277         * po/bg.po: Likewise.
2278         * po/ca.po: Likewise.
2279         * po/cs.po: Likewise.
2280         * po/da.po: Likewise.
2281         * po/de.po: Likewise.
2282         * po/es.po: Likewise.
2283         * po/fr.po: Likewise.
2284         * po/hr.po: Likewise.
2285         * po/ko.po: Likewise.
2286         * po/nl.po: Likewise.
2287         * po/rw.po: Likewise.
2288         * po/sk.po: Likewise.
2289         * po/sv.po: Likewise.
2290         * po/tr.po: Likewise.
2291         * po/zh_CN.po: Likewise.
2292         * po/zh_TW.po: Likewise.
2293
2294         [BZ #5760]
2295         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2296         Patch by Roland Bless <roland@bless.de>.
2297
2298         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2299         .o file.
2300         * elf/Makefile (routines): Add dl-sysdep.
2301         (elide-routines.os): Likewise.
2302
2303 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
2304
2305         [BZ #5786]
2306         * elf/dl-sysdep.c: Undefine ROUND after use.
2307         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2308         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2309         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2310         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2311         to ...
2312         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2313         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2314         if necessary.
2315         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2316
2317         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2318         _dl_tls_get_addr_soft element.
2319         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2320         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2321         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2322         GLRO.
2323         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2324         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2325         of internal_function.
2326
2327         * stdlib/Makefile (aux): Add tens_in_limb.
2328         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2329         * stdlib/tens_in_limb.c: ...here.  New file.
2330
2331         [BZ #5778]
2332         * sysdeps/unix/sysv/linux/pathconf.h: Declare
2333         __statfs_chown_restricted.
2334         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2335         for _PC_CHOWN_RESTRICTED.
2336         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2337         Implement __statfs_chown_restricted.
2338         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2339         _POSIX_CHOWN_RESTRICTED value to zero.
2340         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2341         defined to zero.
2342
2343         * sysdeps/x86_64/rtld-memset.c: New file.
2344
2345 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
2346
2347         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2348
2349         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2350         Barcelona machine.  Make default fall through branch of
2351         __x86_64_preferred_memory_instruction check as the integer code path.
2352
2353 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2354
2355         * sysdeps/x86_64/cacheinfo.c
2356         (__x86_64_preferred_memory_instruction): New variable.
2357         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2358
2359         * sysdeps/x86_64/memset.S: Rewrite.
2360
2361 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
2362
2363         * include/stdio.h (__asprintf_chk, __dprintf_chk,
2364         __obstack_printf_chk): New prototypes.
2365         (__vasprintf_chk, __vdprintf_chk,
2366         __obstack_vprintf_chk): Likewise.
2367         Add libc_hidden_proto.
2368         * libio/obprintf.c
2369         (_IO_obstack_jumps): No longer static, add attribute_hidden.
2370         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2371         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2372         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2373         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2374         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2375         __obstack_vprintf_chk): New prototypes.
2376         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2377         obstack_vprintf): New inlines.
2378         * debug/dprintf_chk.c: New file.
2379         * debug/vdprintf_chk.c: New file.
2380         * debug/asprintf_chk.c: New file.
2381         * debug/vasprintf_chk.c: New file.
2382         * debug/obprintf_chk.c: New file.
2383         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2384         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2385         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2386         @@GLIBC_2.8.
2387         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2388         vdprintf_chk and obprintf_chk, set CFLAGS for them.
2389         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2390         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2391         libc_hidden_proto.
2392         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2393         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2394         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2395         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2396         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2397         @@GLIBC_2.8.
2398         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2399         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2400         obstack_vprintf_chk.
2401         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2402         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2403         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2404         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2405         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2406         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2407
2408 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
2409
2410         [BZ #5779]
2411         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2412         Patch by Roy Marples <roy@marples.name>.
2413
2414         [BZ #5736]
2415         * malloc/malloc.c: Fix typo in comment.
2416
2417         [BZ #5627]
2418         * locale/iso-639.def: Add Shuswap.
2419
2420 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
2421
2422         [BZ #5790]
2423         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2424         overwrite *h_errnop/*errnop values from getanswer_r in case of
2425         failure.
2426
2427 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
2428
2429         [BZ #5818]
2430         * nscd/connections.c (dbs): Add initializers for .suggested_module.
2431         (verify_persistent_db): Remove one unnecessary test and add a new one
2432         for bad configuration.
2433         (nscd_init): Improve error reported when persistent database cannot
2434         be reused.
2435         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
2436         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
2437         .suggested_module and .max_db_size and case config file says the
2438         values are zero.
2439         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
2440
2441         [BZ #5854]
2442         * nis/ypclnt.c (yp_order): Fix handling of return value of
2443         do_ypcall_tr call.
2444         Patch by Jeff Moyer <jmoyer@redhat.com>.
2445
2446         * po/fr.po: Update from translation team.
2447
2448 2008-02-22  Andreas Jaeger  <aj@suse.de>,
2449             Carlos O'Donell <carlos@systemhalted.org>
2450
2451         [BZ #5012]
2452         * FAQ.in: Describe why glibc needs to be compiled with
2453         optimization.
2454
2455 2008-02-19  Roland McGrath  <roland@redhat.com>
2456
2457         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
2458
2459 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
2460
2461         [BZ #5737]
2462         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
2463         __USE_MISC is defined.
2464
2465 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
2466
2467         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2468         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2469         sys/timerfd.h.
2470         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2471         timerfd_gettime, timerfd_settime.
2472         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2473         timerfd_gettime, timerfd_settime for GLIBC_2.8.
2474
2475 2008-02-08  Roland McGrath  <roland@redhat.com>
2476
2477         * elf/elf.h (NT_PPC_SPE): New macro.
2478
2479 2008-02-06  Roland McGrath  <roland@redhat.com>
2480
2481         * Makerules ($(common-objpfx)sysd-rules):
2482         Depend on $(sysdep-makeconfigs).
2483
2484 2008-01-31  Roland McGrath  <roland@redhat.com>
2485
2486         [BZ #5442]
2487         * configure.in: Use -print-file-name if it yields a directory,
2488         for each of include and include-fixed.
2489         * configure: Regenerated.
2490
2491         * Makeconfig (sysd-rules-targets): New variable.
2492         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2493         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2494
2495 2008-01-30  Roland McGrath  <roland@redhat.com>
2496
2497         * manual/libc.texinfo: Update back-cover text.
2498
2499         * elf/elf.h (NT_386_TLS): New macro.
2500
2501 2008-01-29  Roland McGrath  <roland@redhat.com>
2502
2503         * Makeconfig (sysd-rules-patterns): New variable.
2504         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
2505         (check-inhibit-asm): New canned sequence, replaces ...
2506         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
2507         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
2508         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
2509         (CFLAGS-rtld): Variable removed.
2510
2511 2008-01-24  Roland McGrath  <roland@redhat.com>
2512
2513         * configure.in: Let configure fragments set base_os.
2514         * configure: Regenerated.
2515
2516 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
2517
2518         * po/ko.po: Update from translation team.
2519
2520 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
2521
2522         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
2523
2524 2008-01-12  Andreas Jaeger  <aj@suse.de>
2525
2526         [BZ #5040]
2527         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
2528         Add EPOLLRDHUP.
2529
2530 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2531
2532         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
2533         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
2534         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
2535
2536 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
2537
2538         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
2539         * elf/dl-close.c (_dl_close): Check for it.
2540         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
2541         (_dl_allocate_static_tls): Likewise.
2542         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2543         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
2544         to it.
2545         * elf/tst-tls16.c: New file.
2546         * elf/tst-tlsmod16a.c: New file.
2547         * elf/tst-tlsmod16b.c: New file.
2548         * elf/Makefile: Add rules to build and run tst-tls16.
2549
2550 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
2551
2552         [BZ #5628]
2553         * bits/shm.h: Fix comment describing shmid_ds.
2554         * sysdeps/gnu/bits/shm.h: Likewise.
2555         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2556         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2557         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2558         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2559         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2560         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2561         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2562         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2563         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
2564
2565         [BZ #5607]
2566         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
2567         prototypes.
2568         * conform/data/limits.h-data: Adjust limits changed in v6 and add
2569         additional suffixes.
2570         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
2571         Add optional functions mq_timedreceive and mq_timedsend.
2572         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
2573         * conform/data/pthread.h-data: Fix prototype of
2574         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
2575         * conform/data/semaphore.h-data: Allow time.h definitions.
2576         * conform/data/signal.h-data: Likewise.
2577         * conform/data/stdio.h-data: getw and putw are not required in v6.
2578         * conform/data/stdlib.h-data: Change setstate prototype.
2579         * conform/data/string.h-data: Fix strerror_r prototype.
2580         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
2581         * conform/data/unistd.h-data: pthread_atfork not required in v6.
2582         Fix readlink prototype.
2583         * conform/data/netinet/in.h-data: Add const to in6addr_any and
2584         in6addr_loopback.
2585         * inet/netinet/in.h: Cleanup namespace.
2586         * posix/regex.h: Likewise.
2587         * resolv/netdb.h: Likewise.
2588         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
2589         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2590         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2591         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
2592         of names of in in6_addr.
2593         (default_precedence): Likewise.
2594         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
2595         NULL definition.
2596
2597 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
2598
2599         * conform/data/fmtmsg.h-data: Add missing allows.
2600         * conform/data/ftw.h-data: Likewise.
2601         * conform/data/inttypes.h-data: Likewise.
2602         * conform/data/math.h-data: Likewise.
2603         * conform/data/signal.h-data: Likewise.
2604         * conform/data/net/if.h-data: Likewise.
2605         * conform/data/netinet/in.h-data: Likewise.
2606         * conform/data/sys/socket.h-data: Likewise.
2607
2608         [BZ #5614]
2609         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
2610         (__strtok_r): Simplify.
2611         * string/tester.c (test_strtok_r): Add test case for futile search
2612         with single-character seach string.
2613
2614 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
2615
2616         * po/ko.po: Update from translation team.
2617
2618 2008-01-11  Andreas Jaeger  <aj@suse.de>
2619
2620         [BZ #5600]
2621         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
2622         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
2623         kernel header.
2624
2625 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
2626
2627         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
2628         native interface lookup in all the relevant places.
2629
2630 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
2631             Ulrich Drepper  <drepper@redhat.com>
2632
2633         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
2634         field.  Use sockaddr_in6 for source_addr.
2635         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
2636         (match_prefix): Likewise.
2637         (get_label): Likewise.
2638         (get_precedence): Likewise.
2639         (rfc3484_sort): Change to use indirect access to results array.
2640         Adjust to use of sockaddr_in6.  Replace service_order test with
2641         simple index comparison.
2642         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
2643         service_order field.  Adjust qsort_t calls.  Access sorted result
2644         array indirectly through order array.
2645         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
2646         * posix/tst-rfc3484-2.c: Likewise.
2647         * posix/tst-rfc3484-3.c: Likewise.
2648
2649 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
2650
2651         [BZ #5541]
2652         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
2653         pollfd structures.
2654         Patch by AndrĂ© Cruz.
2655
2656         [BZ #5545]
2657         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
2658         (clnt_spcreateerror): Likewise.
2659
2660         [BZ #5553]
2661         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
2662         (public_mEMALIGn): Likewise.
2663         Patch mostly by Daniel Jacobowitz.
2664
2665 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
2666
2667         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
2668         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
2669         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
2670         * stdlib/tst-makecontext2.c: New test.
2671
2672 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
2673
2674         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
2675         defined.
2676         (REINIT_PARAMS): Likewise.  Undefine before end of file.
2677         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
2678         transliteration hooks and REINIT_PARAMS afterwards.
2679         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
2680         status.
2681         (REINIT_PARAMS): Define.
2682         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
2683         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
2684         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
2685         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
2686         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
2687         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
2688         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
2689         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
2690         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
2691         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
2692         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
2693         * iconvdata/tst-iconv7.c: New test.
2694
2695 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
2696
2697         * libio/stdio.h (vscanf): Fix definition for loser compilers.
2698
2699 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
2700
2701         [BZ #5112]
2702         * nscd/connections.c (restart): Fix condition.
2703
2704 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
2705
2706         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
2707         __ctype_toupper_loc): Add __THROW.
2708
2709 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
2710
2711         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
2712         recognition of interface family.
2713
2714         * posix/getconf.c: Update copyright year.
2715         * nss/getent.c: Likewise.
2716         * iconv/iconvconfig.c: Likewise.
2717         * iconv/iconv_prog.c: Likewise.
2718         * elf/ldconfig.c: Likewise.
2719         * catgets/gencat.c: Likewise.
2720         * csu/version.c: Likewise.
2721         * elf/ldd.bash.in: Likewise.
2722         * elf/sprof.c (print_version): Likewise.
2723         * locale/programs/locale.c: Likewise.
2724         * locale/programs/localedef.c: Likewise.
2725         * nscd/nscd.c (print_version): Likewise.
2726         * debug/xtrace.sh: Likewise.
2727         * malloc/memusage.sh: Likewise.
2728         * malloc/mtrace.pl: Likewise.
2729         * debug/catchsegv.sh: Likewise.
2730
2731 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
2732
2733         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
2734         second lookup.
2735
2736 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
2737
2738         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
2739         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2740
2741 2007-12-17  Roland McGrath  <roland@redhat.com>
2742
2743         * inet/ether_line.c (ether_line): Remove unused variable.
2744
2745 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2746
2747         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
2748         and winp.
2749         * login/openpty.c (openpty): Likewise.
2750         * login/pty.h (openpty, forkpty): Likewise.
2751         * manual/terminal.texi (openpty, forkpty): Likewise.
2752
2753 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
2754
2755         * malloc/malloc.c (public_cALLOc): For arenas other than
2756         main_arena, count all bytes inside the mprotect_size range of the
2757         heap as uninitialized.
2758
2759 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
2760
2761         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
2762         executable stacks.
2763
2764         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
2765         mTRIm for all of them.
2766         (mTRIm): Additionally iterate over all free blocks and use madvise
2767         to free memory for all those blocks which contain at least one
2768         memory page.
2769         * malloc/tst-trim1.c: New file.
2770         * malloc/Makefile (tests): Add tst-trim1.
2771
2772         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
2773
2774 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
2775
2776         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2777         First cast argument to long
2778         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
2779         Return long.
2780         (__vdso_clock_gettime): Likewise.
2781         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
2782         return long.
2783
2784 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
2785
2786         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
2787         * locale/nl_langinfo_l.c: Real implementation, copied from
2788         nl_langinfo.c.
2789         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
2790
2791 2007-12-01  Jim Meyering  <meyering@redhat.com>
2792
2793         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2794         that would inhibit utf8-optimization of a regexp containing line-
2795         or buffer-anchors, e.g., `^', `$'.
2796
2797 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
2798
2799         * time/bug-getdate1.c (do_test): Don't use century values which
2800         aren't valid on 32-bit systems.
2801
2802 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
2803
2804         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
2805         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
2806         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
2807         __strcat_g, __strncat_g): Add __asm__.
2808
2809 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
2810
2811         [BZ #5477]
2812         * io/fchmodat.c: Fix typo in stub_warning use.
2813         Patch by Petr Salinger.
2814
2815 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
2816
2817         * iconvdata/hp-thai8.c: New file.
2818         * iconvdata/Makefile: Add rules for hp-thai8.c.
2819         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
2820         * iconvdata/gconv-modules: Likewise.
2821
2822         [BZ #5464]
2823         * iconvdata/hp-greek8.c: New file.
2824         * iconvdata/Makefile: Add rules for hp-greek8.c.
2825         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
2826         * iconvdata/gconv-modules: Likewise.
2827
2828         [BZ #5463]
2829         * iconvdata/hp-turkish8.c: New file.
2830         * iconvdata/Makefile: Add rules for hp-turkish8.c.
2831         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
2832         * iconvdata/gconv-modules: Likewise.
2833
2834         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
2835         (shrink_heap): ... this new function.
2836         (heap_trim): Call shrink_heap instead of grow_heap.
2837
2838         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
2839         case don't call alloc_perturb.
2840
2841 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
2842
2843         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
2844         possible.
2845         * sysdeps/unix/sysv/linux/kernel-features.h
2846         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
2847         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
2848
2849 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
2850
2851         [BZ #5424]
2852         * stdio-common/vfprintf.c: Do not overflow when adding to done.
2853         * stdio-common/Makefile (tests): Add bug22.
2854         * stdio-common/bug22.c: New file.
2855
2856         [BZ #5451]
2857         * time/getdate.c: Fix filling in default values.
2858         * time/bug-getdate1.c: New file.
2859         * time/Makefile: Add rules to build and run bug-getdate1.
2860
2861         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
2862         * iconvdata/ebcdic-es.c: Likewise.
2863         * iconvdata/ebcdic-es-a.c: Likewise.
2864         * iconvdata/ebcdic-uk.c: Likewise.
2865         * iconvdata/iso8859-16.c: Likewise.
2866         * iconvdata/viscii.c: Likewise.
2867         * iconvdata/iso8859-9e.c: Likewise.
2868         * iconvdata/Makefile: Adjust appropriately.
2869
2870         [BZ #5428]
2871         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
2872         __need_wint_t.
2873
2874 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
2875
2876         [BZ #5427]
2877         * iconvdata/hp-roman9.c: New file.
2878         * iconvdata/Makefile: Add rules for hp-roman9.c.
2879         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
2880         * iconvdata/gconv-modules: Likewise.
2881
2882         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
2883         * iconvdata/Makefile: Adjust appropriately.
2884
2885         [BZ #5441]
2886         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
2887         structure, it's allocated with alloca.
2888         * stdio-common/Makefile (tests): Add bug21.
2889         * stdio-common/bug21.c: New file.
2890
2891 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
2892
2893         [BZ #5452]
2894         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
2895         keyword for gcc's braced-groups.
2896
2897 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
2898
2899         [BZ #5454]
2900         * inet/ether_line.c: Strip hostname of whitespaces.
2901         * inet/Makefile (tests): Add tst-ether_line.
2902         * inet/tst-ether_line.c: New file.
2903
2904 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
2905
2906         [BZ #5439]
2907         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
2908
2909         [BZ #5435]
2910         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
2911
2912         * stdlib/tst-setcontext.c: Catch the case where the links gets
2913         messed up and we do not reach main again.
2914
2915         * po/ca.po: Update from translation team.
2916
2917 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
2918
2919         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
2920         * posix/regex.h (REG_ENOSYS): Likewise.
2921         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
2922
2923 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
2924
2925         * nscd/nscd.h (MAX_STACK_USE): Define.
2926         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
2927         (gc): Initialize stack_used based on allocation in prune_cache.
2928         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
2929         Clear array before use.
2930
2931         * nscd/aicache.c (addhstaiX): Update statistics counter in case
2932         memory allocation failed.
2933         * nscd/hstcache.c (cache_addhst): Likewise.
2934         * nscd/grpcache.c (cache_addgr): Likewise.
2935         * nscd/servicescache.c (cache_addserv): Likewise.
2936         * nscd/pwdcache.c (cache_addpw): Likewise.
2937         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2938
2939 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
2940
2941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
2942         and creat system calls.
2943
2944         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
2945
2946 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2947
2948         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
2949         Add netiucv/iucv.h.
2950         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
2951         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
2952         protocol.
2953         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
2954         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
2955         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
2956
2957 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2958
2959         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
2960         strncat): Define as macros to avoid compile errors.
2961
2962         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
2963         creat entries.
2964
2965 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
2966
2967         [BZ #5382]
2968         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
2969         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
2970         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
2971         overflow it.
2972         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
2973
2974         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
2975         Return zero in case the thread library is not NPTL.
2976
2977         [BZ #5375]
2978         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
2979         initializing interface list.
2980
2981         [BZ #5378]
2982         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
2983         use result of nss_getgrgid_r if nothing was found.  For other
2984         error return with a failure.
2985         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
2986
2987         * locale/programs/ld-collate.c (collate_read): Fix loop to match
2988         macro name.
2989
2990 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
2991
2992         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
2993         (get_scope): For IPv4 scope, use scopes table.
2994         (fini): Free scopes table if necessary.
2995         (free_scopelist): New function.
2996         (scopecmp): New function.
2997         (gaiconf_init): Also handle scopev4 entries.
2998         * posix/tst-rfc3484.c (do_test): Initialize scopes.
2999         * posix/tst-rfc3484-2.c (do_test): Likewise.
3000         * posix/gai.conf: Document scopev4 defaults.
3001         * posix/Makefile (tests): Add tst-rfc3484-3.
3002         * posix/tst-rfc3484-3.c: New file.
3003
3004         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
3005         Teredo tunnels.
3006         * posix/gai.conf: Update for current default tables.
3007
3008 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3009
3010         * po/tr.po: Update from translation team.
3011
3012 2007-11-18  Roland McGrath  <roland@frob.com>
3013
3014         * manual/arith.texi (Remainder Functions): Spelling fix.
3015         From Shaun Silk <genix@mysoul.com.au>.
3016
3017         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
3018
3019 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
3020
3021         * po/zh_CN.po: Update from translation team.
3022
3023         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3024         Add sys/signalfd.h and sys/eventfd.h.
3025
3026 2007-11-15  Bruno Haible  <bruno@clisp.org>
3027
3028         [BZ #5346]
3029         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
3030         union.
3031         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
3032         (DCIGETTEXT): Change the allocation of the 'search' variable so that
3033         it needs only fixed stack space. Delay the initialization of
3034         msgid_len until it is needed.
3035
3036 2007-11-15  Andreas Jaeger  <aj@suse.de>
3037
3038         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
3039         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
3040
3041 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
3042
3043         * po/ko.po: Update from translation team.
3044
3045 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
3046
3047         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
3048         significantly.  The device type is also part of the ifinfomsg data.
3049
3050         * po/sv.po: Update from translation team.
3051         * po/nl.po: Likewise.
3052
3053         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
3054         to wake up in 24 hours.
3055
3056         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
3057
3058 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
3059
3060         * po/cs.po: Update from translation team.
3061         * po/pl.po: Likewise.
3062
3063         * include/ifaddrs.h: Remove in6ai_temporary.
3064         (struct in6addrinfo): Add index element.
3065         Declare __check_native.
3066         * inet/Makefile (aux): Add check_native.
3067         * sysdeps/unix/sysv/linux/check_native.c: New file.
3068         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
3069         IFA_F_TEMPORARY.  Pass back ifa_index.
3070         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3071         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
3072         call __check_native if necessary.
3073         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
3074         to sort addresses.  Pass information about the results.
3075         * posix/tst-rfc3484.c: Adjust for addition of index field and change
3076         of rfc3484_sort interface.
3077         * posix/tst-rfc3484-2.c: Likewise.
3078
3079         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
3080         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3081         for _quicksort.
3082         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3083         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
3084         on as third parameter to compare function and _quicksort.
3085         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3086         to the compare function.
3087         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3088         * Versions.def: Add GLIBC_2.8 for libc.
3089
3090         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3091         * posix/tst-rfc3484-2.c: Likewise.
3092
3093         * include/kernel-features.h: Moved to...
3094         * sysdeps/mach/hurd/kernel-features.h: ...here.
3095
3096 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3097
3098         * sysdeps/i386/i586/memcpy_chk.S: New file.
3099         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3100         * sysdeps/i386/i586/memset_chk.S: Likewise.
3101
3102 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
3103
3104         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3105         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3106         list of interfaces.  Also store prefix length.
3107         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3108         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3109         prefix if source and destination address are in the same subnet.
3110         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
3111         Always look for matching record in in6ai list.
3112         Correct source_addr_len value for IPv6->IPv4 converted records.
3113
3114 2007-11-11  Roland McGrath  <roland@frob.com>
3115
3116         * include/kernel-features.h: New file.
3117
3118 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
3119
3120         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3121         complications for 64-bit platforms.
3122
3123         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3124         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
3125         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3126         open64_2.
3127         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3128         entries.
3129         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3130         * sysdeps/wordsize-64/alphasort.c: New file.
3131         * sysdeps/wordsize-64/alphasort64.c: New file.
3132         * sysdeps/wordsize-64/fseeko.c: New file.
3133         * sysdeps/wordsize-64/fseeko64.c: New file.
3134         * sysdeps/wordsize-64/ftello.c: New file.
3135         * sysdeps/wordsize-64/ftello64.c: New file.
3136         * sysdeps/wordsize-64/ftw.c: New file.
3137         * sysdeps/wordsize-64/ftw64.c: New file.
3138         * sysdeps/wordsize-64/iofgetpos.c: New file.
3139         * sysdeps/wordsize-64/iofgetpos64.c: New file.
3140         * sysdeps/wordsize-64/iofopen.c: New file.
3141         * sysdeps/wordsize-64/iofopen64.c: New file.
3142         * sysdeps/wordsize-64/iofsetpos.c: New file.
3143         * sysdeps/wordsize-64/iofsetpos64.c: New file.
3144         * sysdeps/wordsize-64/lockf.c: New file.
3145         * sysdeps/wordsize-64/lockf64.c: New file.
3146         * sysdeps/wordsize-64/mkostemp.c: New file.
3147         * sysdeps/wordsize-64/mkostemp64.c: New file.
3148         * sysdeps/wordsize-64/mkstemp.c: New file.
3149         * sysdeps/wordsize-64/mkstemp64.c: New file.
3150         * sysdeps/wordsize-64/scandir.c: New file.
3151         * sysdeps/wordsize-64/scandir64.c: New file.
3152         * sysdeps/wordsize-64/tmpfile.c: New file.
3153         * sysdeps/wordsize-64/tmpfile64.c: New file.
3154         * sysdeps/wordsize-64/versionsort.c: New file.
3155         * sysdeps/wordsize-64/versionsort64.c: New file.
3156         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3157         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3158         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3159         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3160         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3161         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3162         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3163         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3164         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3165         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3166         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3167         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3168
3169         * crypt/sha256-crypt.c: Fix a comment.
3170         * crypt/sha512-crypt.c: Likewise.
3171
3172 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
3173
3174         * sysdeps/x86_64/memset.S: Add sfence after movnti.
3175
3176 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
3177
3178         [BZ #5277]
3179         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3180         because output buffer is too small break, don't loop.
3181         * iconvdata/Makefile (tests): Add bug-iconv6.
3182         * iconvdata/bug-iconv6.c: New file.
3183
3184 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
3185
3186         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3187         with size_t type.
3188         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3189         size_t.  Add casts where needed.
3190
3191         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3192         old headers, don't call avc_has_perm if we don't have the
3193         permission information.
3194
3195 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
3196
3197         * elf/rtld.c (dl_main): Use the page size to find the map start.
3198
3199 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
3200
3201         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3202         Patch by Szymon Siwek <sls@poczta.wp.pl>.
3203
3204         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3205         when the lookup call failed.
3206
3207         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3208         Add prune_cond and wakeup_time.
3209         (CACHE_PRUNE_INTERNAL): Define.
3210         Update declarations of prune_cache and setup_thread.
3211         * nscd/connections.c (dbs): Update initializers.
3212         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3213         (nscd_init): Default number of threads is now 4.
3214         (invalidate_cache): Take lock before calling prune_cache.
3215         (handle_request): If SELinux forbids the request, say so.
3216         (readylist_cond): Use static initializer.
3217         (nscd_run_prune): New function.  Used only by pruning threads.
3218         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
3219         here.
3220         (fd_ready): Update nscd_run reference.
3221         (start_threads): No need to initialize readylist_cond.
3222         Start pruning threads separately.
3223         * nscd/nscd_setup_thread.c: Change return value type to int and always
3224         return 0.
3225         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3226         to int and return nonzero value if we can use the TID address hack.
3227         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3228         the database is later than the new entry's timeout, update the
3229         wakeup time and wake the cleanup thread.
3230         (prune_cache): Return seconds the next entry in the database is still
3231         valid.  Remove locking for pruning here.
3232         * nscd/nscd.conf: Document default number of threads.
3233
3234 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
3235
3236         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3237         stack is properly aligned for the target function.
3238         Correct unwind info.
3239
3240         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3241         when using auditing libraries.
3242
3243 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
3244
3245         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3246         _nss_dns_getnetbyaddr2_r.
3247         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
3248         extra parameter to getanswer_r.
3249         (_nss_dns_getnetbyaddr_r): Now a wrapper around
3250         _nss_dns_getnetbyaddr2_r.
3251
3252         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3253         gethstbynm3_r.
3254         * nscd/gethstbynm2_r.c: Remove.
3255         * nscd/gethstbynm3_r.c: New file.
3256         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3257         __gethostbyaddr_r.
3258         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
3259         __gethostbyaddr_r compatibility wrapper.
3260         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
3261         determining timeout of entry.
3262         (lookup): Take new parameter and pass it to __gethostbyname3_r and
3263         __gethostbyaddr2_r.
3264         (addhstbyX): Pass reference to variable for TTL to lookup and
3265         cache_addhst.
3266         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3267         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3268         and __nss_next2.  Remove __nss_services_lookup.
3269         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
3270         Add compat wrapper.
3271         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3272         __nss_next2.
3273         * nss/getXXent_r.c: Likewise.
3274         * nss/getnssent_r.c: Likewise.
3275         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
3276         does not exist in module, try the optional second name.
3277         (__nss_next2): New function.
3278         (__nss_next): Now wrapper around __nss_next2.
3279         * nss/nsswitch.h: Adjust __nss_lookup prototype.
3280         Declare __nss_next2.
3281         Adjust definition of db_lookup_function type.
3282         * nss/service-lookup.c: Define NO_COMPAT.
3283         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3284         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3285         * inet/ether_ntoh.c: Likewise.
3286         * sunrpc/netname.c: Likewise.
3287         * sunrpc/publickey.c: Likewise.
3288         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
3289         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3290         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3291         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3292         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3293
3294         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3295
3296         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
3297
3298 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
3299
3300         [BZ #5204]
3301         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3302         * crypt/sha512c-test.c: Likewise.
3303
3304         [BZ #5225]
3305         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3306         to keep track of end of %[ format string element.
3307         * stdio-common/Makefile (tests): Add bug20.
3308         * stdio-common/bug20.c: New file.
3309
3310         [BZ #5222]
3311         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3312         path elements in counting mode.
3313
3314 2007-10-27  Andreas Jaeger  <aj@suse.de>
3315
3316         [BZ #5040]
3317         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3318
3319         [BZ #3112]
3320         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3321         (__cleanup): Free shared library when exiting.
3322         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3323         (__cleanup): Free shared library when exiting.
3324
3325 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3326
3327         [BZ #2549]
3328         * math/libm-test.inc (check_float_internal): Support
3329         denormalized return.
3330
3331 2007-10-23  Andreas Jaeger  <aj@suse.de>
3332
3333         [BZ #5208]
3334         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3335         __LONG_LONG_PAIR to handle little endian byte order.
3336         Suggested by abhishekrai@google.com
3337
3338 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
3339
3340         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3341
3342 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
3343
3344         * nscd/cache.c (prune_cache): Move test for modified file outside
3345         of locking.
3346
3347 2007-10-21  Andreas Jaeger  <aj@suse.de>
3348
3349         * manual/texinfo.tex: Update to latest version.
3350
3351         * manual/sysinfo.texi (System Parameters): Fix Formatting.
3352
3353         * manual/arith.texi (Status bit operations): Fix formatting.
3354
3355         * manual/errno.texi (Error Messages): Fix formatting.
3356
3357         * manual/sysinfo.texi (System Parameters): Fix formatting.
3358
3359         * manual/libc.texinfo: Update VERSION and UPDATED.
3360
3361 2007-10-19  Roland McGrath  <roland@redhat.com>
3362
3363         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3364
3365 2007-10-06  David S. Miller  <davem@davemloft.net>
3366
3367         * configure.in: Add sparcv9v2 and sparc64v2.
3368         * scripts/config.sub: Likewise.
3369         * configure: Regenerate.
3370         * elf/elf.h (HWCAP_SPARC_N2): New.
3371         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3372         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3373         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3374         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3375         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3376         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3377         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3378
3379 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
3380
3381         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3382         even if the poll result indicates there is data to read.
3383         Patch by Jeff Moyer <jmoyer@redhat.com>.
3384
3385 2007-10-18  Roland McGrath  <roland@redhat.com>
3386
3387         * elf/elf.h (NT_PPC_VMX): New macro.
3388
3389 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3390
3391         * version.h (VERSION): Set to 2.7.90.
3392
3393 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3394
3395         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
3396         weak_alias.
3397
3398 2007-10-17  Roland McGrath  <roland@frob.com>
3399
3400         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3401         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3402
3403 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3404
3405         * version.h (VERSION): Bump to 2.7.
3406         * include/features.h (__GLIBC_MINOR__): Bump to 7.
3407
3408         [BZ #5186]
3409         * time/tzset.c (__tz_convert): Don't force testing for a change of
3410         TZ if not called from localtime.  But then also see whether the
3411         file changed, in case __use_tzfile is set.
3412
3413         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3414         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3415         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3416         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3417         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3418         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3419         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
3420         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3421
3422 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3423
3424         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3425         and admin selects to be able to replace the gai.conf file, lock
3426         data structures around the qsort call.
3427
3428 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3429
3430         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3431         new memset.
3432         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
3433         too high for the improvements.  Implement bzero unconditionally for
3434         use in libc.
3435
3436 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3437             Jakub Jelinek  <jakub@redhat.com>
3438
3439         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
3440         even when time_t is 32-bit.
3441         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
3442         timezone data read by __tzfile_default.  Ensure __tzname[0] is
3443         always set after the search.
3444
3445 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3446
3447         * time/tzfile.c (__tzfile_read): Help the compiler recognize
3448         unreachable code on 32-bit machines.
3449
3450 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3451
3452         [BZ #5184]
3453         * time/strftime_l.c: Include stdbool.h.
3454         (my_strftime): New wrapper, old function renamed to...
3455         (__strftime_internal): ... new function.  Add tzset_called
3456         argument, pass it down to recursive calls, don't call tzset ()
3457         if already true, set to true after call to tzset ().
3458
3459 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3460
3461         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
3462         into account when copying TZ string.
3463
3464 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3465
3466         * time/tzfile.c (__tzfile_compute): For use_last case set i to
3467         num_transition rather than num_transitions - 1.
3468
3469 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3470
3471         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3472         PIC indirect jump.
3473
3474         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3475         a local label rather than HIDDEN_JUMPTARGET.
3476
3477 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3478
3479         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3480         (init_cacheinfo): Initialize it.
3481         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3482         Always define bzero.
3483         Remove non-glibc code.
3484         * sysdeps/x86_64/bzero.S: Make an empty file.
3485
3486 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3487
3488         * sysdeps/x86_64/cacheinfo.c
3489         (__x86_64_preferred_memory_instruction): New.
3490         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3491
3492         * sysdeps/x86_64/memset.S: Rewrite.
3493
3494 2007-10-15  Roland McGrath  <roland@redhat.com>
3495
3496         * po/libc.pot: Regenerated.
3497
3498 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3499
3500         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
3501         pointers.
3502
3503         [BZ #3425]
3504         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
3505         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
3506         address record to T_A/T_AAAA requests.
3507
3508 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
3509
3510         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
3511
3512         * posix/glob.c: Add some branch prediction throughout.
3513
3514         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
3515         read from nscd.
3516
3517         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
3518         service_order.
3519         (rfc3484_sort): Make sure that even if qsort doesn't support
3520         stable sorting out sorting here is stable by comparing service_order.
3521         (getaddrinfo): Initialize service_order.
3522         * posix/tst-rfc3484.c (do_test): Adjust for addition of
3523         service_order field to sorting structure.
3524         * posix/tst-rfc3484-2.c (do_test): Likewise.
3525
3526         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
3527         * time/tzset.c (tzset_internal): Break TZ string parsing out into
3528         __tzset_parse_tz and updating of daylight, timezone, tzname into
3529         update_vars.
3530         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
3531         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
3532         happens in __tz_compute.
3533         * time/tzfile.c (__tzfile_read): Also read TZ string.
3534         (find_transition): Fold into __tzfile_compute.
3535         (__tzfile_compute): For times beyond the last transition try to
3536         use the TZ string.
3537         * timezone/tst-timezone.c: Information in daylight and tzname does
3538         change for Asia/Tokyo timezone with more concrete information.
3539         Remove the test.
3540
3541         * include/stdio.h: Add libc_hidden_proto for ftello.
3542         * libio/ftello.c: Add libc_hidden_def.
3543
3544         [BZ #1140]
3545         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
3546         on the specified time and not the last entries in the file.  Move
3547         code to determine tzname[] to...
3548         (find_transition): ...here.  Add ugly guess for times before the
3549         first transition.
3550
3551 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3552
3553         [BZ #3195]
3554         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
3555         no entry.
3556         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
3557         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3558         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3559         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3560
3561         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
3562         read mechanism when there are no group members and avoid no-op
3563         read syscall in this case.
3564
3565         [BZ #3242]
3566         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
3567         (__readall): If reading failed due to EAGAIN error wait a bit
3568         and possibly try again.
3569         (__readvall): Likewise.
3570
3571 2007-10-13  Bruno Haible  <bruno@clisp.org>
3572
3573         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
3574         when we cannot recode the message.
3575
3576 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3577
3578         [BZ #4359]
3579         * libio/__freading.c (__freading): Don't return true for
3580         write-only streams.  For read/write streams, check whether we
3581         performed a read operation already.
3582         * libio/Makefile (tests): Add tst-ext2.
3583         * libio/tst-ext2.c: New file.
3584
3585 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3586
3587         * locale/programs/repertoire.c (repertoire_read): Always free
3588         memory for repertoire file name [Coverity CID 270].
3589
3590         * elf/cache.c (save_aux_cache): Free memory allocated for
3591         temporary file name [Coverity CID 267].
3592
3593 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3594
3595         * misc/Makefile (headers): Add bits/error.h.
3596
3597 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3598
3599         * posix/fnmatch_loop.c: Take rule index returned as part of
3600         findidx return value into account when accessing weights.
3601         * posix/regcomp.c: Likewise.
3602         * posix/regexec.c: Likewise.
3603
3604         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
3605         (skip_to): Fix problems with parameter of elifdef/elifndef.
3606
3607 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
3608
3609         * iconv/gconv_simple.c: Add some branch prediction.
3610
3611 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3612
3613         * locale/programs/ld-collate.c (collate_read): If ignore_content
3614         and nowtok is tok_define, eat any tok_eol tokens.
3615
3616 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
3617
3618         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
3619         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
3620
3621         * inet/netinet/in.h: Don't include bits/socket.h.
3622         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
3623         macro.
3624         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3625
3626 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
3627
3628         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
3629         and tok_elifndef.
3630         * locale/programs/locfile-kw.gperf: Likewise.
3631         * locale/programs/ld-collate.c: Implement primitive preprocessor.
3632
3633 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
3634
3635         * stdio-common/printf-parse.h: Include string.h and wchar.h.
3636         (__find_specwc): Change into __extern_always_inline function.
3637         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
3638         (__parse_one_specmb): Remove ps argument.
3639         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
3640         Adjust __find_specmb and __parse_one_specmb callers.
3641         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
3642         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
3643         Removed.
3644         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
3645         caller.
3646
3647 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
3648
3649         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
3650         with some Pentium Ds.
3651
3652 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
3653
3654         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
3655         __read not read.
3656         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
3657         __write not write.
3658
3659 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
3660
3661         [BZ #181]
3662         * locale/C-time.c: Set week_1stday data to 19971201.
3663         * locale/programs/ld-time.c (time_finish): Default for
3664         first_workday is Monday.
3665
3666         [BZ #2633]
3667         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
3668
3669         [BZ #5103]
3670         * posix/glob.c (glob): Recognize patterns starting \/.
3671         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
3672         (main): Add test for pattern starting \/.
3673
3674         * misc/error.h: Use __const instead of const.
3675         * misc/bits/error.h: Likewise.
3676
3677 2007-10-07  Andreas Jaeger  <aj@suse.de>
3678
3679         * include/bits/error.h: New file.
3680
3681         * misc/bits/error.h (error_at_line): Fix prototype.
3682
3683 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
3684
3685         [BZ #3924]
3686         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
3687         more little bugs in creating the stack frame when pltexit has to
3688         be called.
3689
3690         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
3691         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
3692
3693         [BZ #4407]
3694         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
3695         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3696         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3697         * math/libm-test.inc: Add test for this case.
3698
3699         [BZ #5010]
3700         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
3701         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
3702         map service succeeded.
3703         (svc_is_mapped): New function.
3704         (svc_unregister): Use it before trying to unmap service.
3705
3706 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
3707
3708         * timezone/zic.c: Update from tzcode2007h.
3709
3710         [BZ #5063]
3711         * timezone/africa: Update from tzdata2007h.
3712         * timezone/antarctica: Likewise.
3713         * timezone/asia: Likewise.
3714         * timezone/australasia: Likewise.
3715         * timezone/europe: Likewise.
3716         * timezone/leapseconds: Likewise.
3717         * timezone/northamerica: Likewise.
3718         * timezone/southamerica: Likewise.
3719         * timzeone/zone.tab: Likewise.
3720
3721         [BZ #5104]
3722         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
3723
3724         [BZ #5113]
3725         * string/bits/string2.h (__strdup): Cast parameters to calloc to
3726         avoid warning with -Wconversion.
3727         (__strndup): Likewise.
3728         Half the patch by Christian Iseli <christian.iseli@licr.org>.
3729
3730         [BZ #5112]
3731         * nscd/connections.c (restart): Don't resync if database is
3732         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
3733
3734         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
3735         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
3736
3737         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
3738         evetnfd_read, eventfd_write.
3739         * sysdeps/unix/sysv/linux/eventfd.c: New file.
3740         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
3741         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
3742         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
3743         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
3744         eventfd_write for GLIBC_2.7.
3745
3746         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
3747         * sysdeps/unix/sysv/linux/signalfd.c: New file.
3748         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
3749         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
3750
3751 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
3752
3753         * stdlib/msort.c: Include stdint.h.
3754         (struct msort_param): New type.
3755         (msort_with_tmp): Use struct msort_param pointer for unchanging
3756         parameters.  Add optimized handling for several common sizes
3757         and indirect sorting mode.
3758         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
3759         sorting.
3760         Suggested by Belazougui Djamel .
3761
3762         * stdlib/Makefile (tests): Add tst-qsort2.
3763         * stdlib/tst-qsort2.c: New test.
3764
3765 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
3766
3767         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
3768         for dup2 in case another thread races with the current one.  Retry
3769         in this case.
3770
3771         * misc/error.h: Remove support for use outside of libc.  We have to
3772         include <features.h> now.  Include <bits/error.h> if possible.
3773         * misc/bits/error.h: New file.
3774
3775 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
3776
3777         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
3778         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
3779         __extern_always_inline functions unconditionally, drop macros.
3780
3781         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
3782         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
3783         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
3784
3785         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
3786         add __artificial__ attribute.
3787
3788 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
3789
3790         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
3791         backward to forward direction.
3792
3793         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
3794
3795         [BZ #645]
3796         * locale/programs/ld-collate.c (collate_finish): Compare against last
3797         used section which is known to have rules defined.
3798         (collate_read): After order_start, correctly record order of sections
3799         and queue sections up.
3800
3801 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
3802
3803         [BZ #5071]
3804         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
3805         the same number of pages.
3806         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
3807
3808         * locale/programs/ld-collate.c (collate_read): After initial copy
3809         statement, continue in state 0.
3810
3811         * include/stdio_ext.h (__fsetlocking): Define as macro.
3812
3813 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
3814
3815         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
3816         of section order.
3817
3818         * po/pt_BR.po: Fix typo.
3819
3820 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
3821
3822         * iconvdata/Makefile (modules): Add ISO8859-9E.
3823         (distribute): Add iso8859-9e.c.
3824         (gen-8bit-gap-modules): Add iso8859-9e.
3825         * iconvdata/iso8859-9e.c: New file.
3826         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
3827         * iconvdata/TESTS: Likewise.
3828         * iconvdata/tst-tables.sh: Likewise.
3829
3830         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3831
3832         * locale/iso-639.def: Add several new entries.
3833
3834 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
3835
3836         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
3837         void * pointers instead of struct link_map **.
3838         (_dl_scope_free): Change argument type to void *.
3839         * include/link.h (struct link_map): Change type of l_reldeps
3840         to struct link_map_reldeps, move l_reldepsact into that
3841         struct too.
3842         * elf/dl-deps.c: Include atomic.h.
3843         (_dl_map_object_deps): Only change l->l_initfini when it is
3844         fully populated, use _dl_scope_free for freeing it.  Optimize
3845         removal of libs from reldeps by using l_reserved flag, when
3846         some removal is needed, allocate a new list instead of
3847         reallocating and free the old with _dl_scope_free.  Adjust
3848         for l_reldeps and l_reldepsact changes.
3849         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
3850         searching in l_initfini and l_reldeps without holding dl_load_lock.
3851         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
3852         l_reldepsact changes.
3853         * elf/dl-close.c (_dl_close_worker): Likewise.
3854         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
3855
3856 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
3857
3858         * iconvdata/Makefile (modules): Add KOI8-RU.
3859         (distribute): Add koi8-ru.c.
3860         (gen-8bit-gap-modules): Add koi8-ru.
3861         * iconvdata/koi8-ru.c: New file.
3862         * iconvdata/gconv-modules: Add entries for KOI8-RU.
3863         * iconvdata/TESTS: Likewise.
3864         * iconvdata/tst-tables.sh: Likewise.
3865
3866         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3867
3868 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
3869
3870         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
3871         with __warning__/__error__ attributes.
3872         (__warnattr): Define.
3873         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
3874         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
3875         __warnattr.
3876         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
3877         of __*_chk if compile time detectable overflow is found.
3878         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
3879         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
3880         with __warnattr.
3881         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
3882         instead of __*_chk if compile time detectable overflow is found.
3883         (__gets_alias): Rename to...
3884         (__gets_warn): ... this.  Add __warnattr.
3885         (gets): Call __gets_warn instead of __gets_alias.
3886         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
3887         aliases with __warnattr.
3888         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
3889         time detectable overflow is found.
3890         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
3891         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
3892         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
3893         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
3894         __getdomainname_chk_warn): New aliases with __warnattr.
3895         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
3896         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
3897         __*_chk_warn instead of __*_chk if compile time detectable overflow
3898         is found.
3899         (__getgroups_chk): Rename argument to __listlen from listlen.
3900         (__getwd_alias): Rename to...
3901         (__getwd_warn): ... this.  Add __warnattr.
3902         (getwd): Call __getwd_warn instead of __getwd_alias.
3903         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
3904         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
3905         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
3906         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
3907         __wcsnrtombs_chk_warn): New aliases with __warnattr.
3908         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
3909         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
3910         compile time detectable overflow is found.
3911         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
3912         to use __*_chk or not.
3913         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
3914         in comparisons which function should be called and in __*_chk*
3915         arguments.  Call __*_chk_warn instead of __*_chk if compile time
3916         detectable overflow is found.
3917         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
3918         __*_chk argument.
3919         * debug/tst-chk1.c (do_test): Add a few more tests.
3920
3921 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
3922
3923         [BZ #5058]
3924         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
3925         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
3926         (_nl_unload_domain): Finalize conversions_lock.
3927         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
3928         handling table of known conversions.
3929
3930 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
3931
3932         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
3933         close_not_cancel_no_status instead of close.
3934
3935 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
3936
3937         [BZ #5028]
3938         * posix/regcomp.c (lookup_collation_sequence_value): Check that
3939         nrules != 0 for multibyte chars.
3940
3941 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
3942
3943         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
3944         Provide better error message in case the type is unknown.
3945
3946         [BZ #4963]
3947         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
3948         * string/stratcliff.c: Make usable to test wide char functions.
3949         * wcsmbs/wcsatcliff.c: New file.
3950         * wcsmbs/Makefiel (tests): Add wcsatcliff.
3951
3952         [BZ #4972]
3953         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
3954         (distribute): Add mac-centraleurope.c.
3955         (gen-8bit-gap-modules): Add mac-centraleurope.
3956         * iconvdata/mac-centraleurope.c: New file.
3957         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
3958         * iconvdata/TESTS: Likewise.
3959         * iconvdata/tst-tables.sh: Likewise.
3960
3961         [BZ #5043]
3962         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
3963
3964 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
3965
3966         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
3967         from __x86_64_core_cache_size_half.
3968         (init_cacheinfo): Compute shared cache size for AMD processors with
3969         shared L3 correctly.
3970         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
3971         name change.
3972         Patch in large parts by Evandro Menezes.
3973
3974 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
3975
3976         * elf/dl-lookup.c (add_dependency): Handle failing memory
3977         allocation for dependency list.  Remove unnecessary check.
3978
3979         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
3980         open/close when determining source addresses.
3981
3982         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
3983         sha512-crypt, and sha512.
3984         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
3985         (distribute): Add sha256.h and sha512.h.
3986         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
3987         and call the appropriate code.
3988         * crypt/sha256-crypt.c: New file.
3989         * crypt/sha256.c: New file.
3990         * crypt/sha256.h: New file.
3991         * crypt/sha256c-test.c: New file.
3992         * crypt/sha256test.c: New file.
3993         * crypt/sha512-crypt.c: New file.
3994         * crypt/sha512.c: New file.
3995         * crypt/sha512.h: New file.
3996         * crypt/sha512c-test.c: New file.
3997         * crypt/sha512test.c: New file.
3998
3999 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
4000
4001         * misc/bits/syslog.h (syslog): Remove extraneous argument from
4002         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
4003         __syslog_chk.
4004
4005 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
4006
4007         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
4008         %as in fscanf format strings.
4009
4010         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
4011         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4012         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
4013         Likewise.
4014         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
4015         Likewise.
4016
4017         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
4018         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
4019         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
4020         * elf/dl-sym.c (do_sym): Likewise.
4021         * include/link.h (struct link_map): Add l_serial field.
4022         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
4023         * elf/dl-lookup.c (add_dependency): Add flags argument.
4024         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
4025         flags, use THREAD_GSCOPE_RESET_FLAG before and
4026         THREAD_GSCOPE_SET_FLAG after
4027         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
4028         Don't dereference map until it has been found on some list.
4029         If map->l_serial changed, return -1.
4030
4031 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
4032
4033         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
4034         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
4035         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
4036         libc_hidden_proto.
4037         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
4038         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
4039         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
4040         add libc_hidden_proto.
4041         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4042         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4043         conformance requested.
4044         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
4045         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4046         conformance requested.
4047         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4048         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
4049         conformance requested.
4050         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
4051         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
4052         ISO C99 or POSIX conformance requested.
4053         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
4054         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
4055         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
4056         and __isoc99_vsscanf@@GLIBC_2.7.
4057         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
4058         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
4059         (tests): Add scanf14.
4060         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
4061         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
4062         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
4063         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
4064         CFLAGS-isoc99_scanf.c): Add $(exceptions).
4065         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
4066         from using internal headers.
4067         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
4068         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
4069         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4070         and __isoc99_vswscanf@@GLIBC_2.7.
4071         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4072         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4073         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4074         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4075         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4076         * stdio-common/isoc99_scanf.c: New file.
4077         * stdio-common/isoc99_vsscanf.c: New file.
4078         * stdio-common/isoc99_vscanf.c: New file.
4079         * stdio-common/isoc99_vfscanf.c: New file.
4080         * stdio-common/isoc99_fscanf.c: New file.
4081         * stdio-common/isoc99_sscanf.c: New file.
4082         * wcsmbs/isoc99_fwscanf.c: New file.
4083         * wcsmbs/isoc99_vswscanf.c: New file.
4084         * wcsmbs/isoc99_swscanf.c: New file.
4085         * wcsmbs/isoc99_wscanf.c: New file.
4086         * wcsmbs/isoc99_vwscanf.c: New file.
4087         * wcsmbs/isoc99_vfwscanf.c: New file.
4088         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4089         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4090         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4091         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4092         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4093         * stdio-common/scanf14.c: New test.
4094         * stdio-common/scanf15.c: New test.
4095         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4096         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4097         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4098         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4099         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4100         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4101         __nldbl___isoc99_scanf@@GLIBC_2.7,
4102         __nldbl___isoc99_fscanf@@GLIBC_2.7,
4103         __nldbl___isoc99_sscanf@@GLIBC_2.7,
4104         __nldbl___isoc99_vscanf@@GLIBC_2.7,
4105         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4106         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4107         __nldbl___isoc99_wscanf@@GLIBC_2.7,
4108         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4109         __nldbl___isoc99_swscanf@@GLIBC_2.7,
4110         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4111         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4112         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4113         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4114         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4115         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4116         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4117         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4118         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4119         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4120         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4121         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4122         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4123         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4124         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4125         functions.
4126         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4127         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4128         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4129         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4130         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4131         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4132         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4133         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4134         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4135         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4136         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4137         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4138
4139         * stdio-common/Makefile (tests): Add scanf13.
4140         (scanf13-ENV): New.
4141         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4142         m modifier followed by l.
4143         (STRING_ARG): Add width argument.
4144         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4145         <case L_('C')>: Handle %mlc and %mC.
4146         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4147         arguments.
4148         * stdio-common/scanf13.c: New test.
4149
4150         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4151         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4152
4153 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
4154
4155         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
4156         type and __THROW marker of splice, vmsplice, and tee.
4157         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4158         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4159         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4160         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4161         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4162         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4163         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4164         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4165         as cancellation points.
4166
4167 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
4168
4169         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4170         parse more than three parts of the version number.
4171
4172 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
4173
4174         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4175         modifier.  Patch by Jakub Jelinek.
4176
4177 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
4178
4179         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4180         call_fallocate in misc subdir.
4181         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4182         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4183         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4184         instead of __fallocate64.
4185         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4186
4187 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
4188
4189         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4190         * rt/Makefile (headers): Add bits/mqueue2.h.
4191         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4192         optimizing with GCC and __va_arg_pack_len is defined.
4193         * rt/bits/mqueue2.h: New file.
4194         * rt/mq_open.c (__mq_open): Renamed from mq_open.
4195         (mq_open): New strong_alias.
4196         (__mq_open_2): New function.
4197         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4198         (mq_open): New strong_alias.
4199         (__mq_open_2): New function.
4200         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4201         * Versions.def (librt): Add GLIBC_2.7 version.
4202         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4203         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4204
4205         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4206         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4207         is defined rather than when not C++.
4208         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4209         __openat64_alias): New redirects.
4210         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4211         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4212         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4213         (open, open64, openat, openat64): Rewrite as __extern_always_inline
4214         functions instead of function-like macros.
4215
4216 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
4217
4218         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4219         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4220         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4221
4222 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
4223
4224         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4225         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4226
4227 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
4228
4229         * inet/tst-network.c: Increment ERRORS for failing tests.
4230
4231 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
4232
4233         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4234         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4235         implement as __extern_always_inline function.
4236         (vsyslog): Define as __extern_always_inline function unconditionally.
4237         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4238         When __va_arg_pack is defined, implement as __extern_always_inline
4239         functions.
4240         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4241         __extern_always_inline functions unconditionally.
4242         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4243         bits/stdio2.h will be included.
4244         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4245         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4246         implement as __extern_always_inline functions.
4247         (vswprintf, vwprintf, vfwprintf): Define as
4248         __extern_always_inline functions unconditionally.
4249         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4250
4251 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
4252
4253         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4254         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4255         attribute.
4256         * include/features.h (__USE_EXTERN_INLINES): Define only when
4257         __extern_inline is defined.
4258         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4259         is defined instead of when not __cplusplus.
4260         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4261         is defined instead of when not __cplusplus.
4262         * socket/sys/socket.h: Include bits/socket2.h when
4263         __extern_always_inline is defined instead of when not __cplusplus.
4264         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4265         is defined instead of when not __cplusplus.
4266         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4267         is defined instead of when not __cplusplus.
4268         * string/string.h: Include bits/string3.h when __extern_always_inline
4269         is defined instead of when not __cplusplus.
4270         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4271         is defined instead of when not __cplusplus.
4272         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4273         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4274         is not defined.
4275         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4276         defined __extern_always_inline instead of !defined __cplusplus.
4277         * libio/bits/stdio-ldbl.h: Likewise.
4278         * wcsmbs/bits/wchar-ldbl.h: Likewise.
4279         * misc/bits/syslog.h (syslog): Don't define for C++.
4280         (vsyslog): Use __extern_always_inline function for C++ instead of
4281         a macro.
4282         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4283         whenever that macro is defined.
4284         (vprintf): Don't provide the inline for C++.
4285         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4286         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4287         define the macros for C++.
4288         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4289         __extern_always_inline functions for C++.
4290         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4291         stat64, lstat64, fstat64, fstatat64): Don't define if not
4292         __USE_EXTERN_INLINES.
4293         * wcsmbs/bits/wchar2.h: Fix #error message.
4294         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4295         (vswprintf, vwprintf, vfwprintf): Define using
4296         __extern_always_inline functions for C++.
4297         * string/bits/string3.h: Don't #undef macros if __cplusplus.
4298         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4299         strncpy, strcat, strncat): Define as __extern_always_inline
4300         functions instead of macros for C++.
4301         * math/bits/cmathcalls.h: Guard __extern_inline routines with
4302         defined __extern_inline.
4303         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4304         to __extern_inline whenever that macro is defined.
4305         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4306         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4307         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4308         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4309         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4310         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4311         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4312         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4313         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4314         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4315         prototypes.  Only provide __extern_inline routines if
4316         __USE_EXTERN_INLINES.
4317         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4318         tests.
4319         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4320         For now avoid some *printf tests in C++.  Skip all testing
4321         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4322         is not.
4323         * debug/tst-chk4.cc: New file.
4324         * debug/tst-chk5.cc: New file.
4325         * debug/tst-chk6.cc: New file.
4326         * debug/tst-lfschk4.cc: New file.
4327         * debug/tst-lfschk5.cc: New file.
4328         * debug/tst-lfschk6.cc: New file.
4329         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4330         prototypes in C++.
4331         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4332         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4333         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4334
4335 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
4336
4337         * po/cs.po: Update from translation team.
4338
4339 2007-09-11  Roland McGrath  <roland@redhat.com>
4340
4341         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4342         compiling.
4343
4344 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4345
4346         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4347
4348 2007-09-05  Roland McGrath  <roland@redhat.com>
4349
4350         * manual/signal.texi (Signaling Another Process): Typo fix.
4351         From Karl Berry <karl@freefriends.org>.
4352
4353 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
4354
4355         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4356         zero if not defined.
4357         (make_request): Recognize optimistic addresses and treat them like
4358         deprecated addresses.
4359         Reported by Neil Horman <nhorman@redhat.com>.
4360
4361 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
4362
4363         * nscd/connections.c (send_ro_fd): Also transfer file size.
4364         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4365         file size don't call fstat.
4366
4367         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4368         ahead and map the file.  This should always be correct and we can
4369         catch problems later.
4370
4371 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
4372
4373         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4374         prototypes.
4375         (__fread_alias, __fread_unlocked_alias): New aliases.
4376         (fread): New extern inline.
4377         (fread_unlocked): Likewise.  Undef macro before definition of
4378         the inline function.
4379         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4380         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4381         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4382         and __fread_unlocked_chk@@GLIBC_2.7.
4383         * debug/fread_chk.c: New file.
4384         * debug/fread_u_chk.c: New file.
4385         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4386
4387 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
4388
4389         * sysdeps/unix/sysv/linux/syscalls.list
4390         (personality): Change caller to EXTRA.
4391
4392 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
4393
4394         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4395         to keep gcc quiet.
4396         * iconvdata/iso-2022-cn.c (BODY): Likewise.
4397
4398         * locale/programs/ld-collate.c (collate_output): Avoid warning if
4399         NDEBUG is defined.
4400
4401         * Makerules: Use -p option with mkdir.
4402
4403         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4404         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
4405         (_xdr_directory_obj): Likewise.
4406         (xdr_entry_obj): Likewise.
4407         (xdr_group_obj): Likewise.
4408         (xdr_link_obj): Likewise.
4409         (xdr_table_obj): Likewise.
4410         (_xdr_nis_result): Likewise.
4411         (_xdr_ns_request): Likewise.
4412         (_xdr_ib_request): Likewise.
4413         (_xdr_nis_taglist): Likewise.
4414         (xdr_cback_data): Likewise.
4415         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
4416         (xdr_ypresp_maplist): Likewise.
4417
4418         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4419
4420         * posix/regex_internal.h: Prevent some declarations and definitions
4421         to be seen when used in tests.
4422
4423         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4424         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4425
4426         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4427
4428         * config.make.in (datarootdir): Add to shut up configure.
4429
4430         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4431         associativity for fully-associative caches.
4432
4433         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
4434         requests.  Fill on more associativity values for L2.
4435         Patch mostly by Evandro Menezes.
4436
4437 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
4438
4439         * sysdeps/unix/sysv/linux/x86_64/init-first.c
4440         (_libc_vdso_platform_setup): Avoid using exported variable by using
4441         alias.
4442
4443         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
4444
4445         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
4446         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
4447         defined.
4448
4449 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
4450
4451         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
4452         align stack for call if pltexit is to be used.
4453
4454         [BZ #3924]
4455         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
4456         align for function call in case pltexit has to be called later.
4457
4458         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
4459         implicit atomic operation when storing function pointer.
4460         (_dl_runtime_profile): Likewise.
4461
4462 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4463
4464         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4465         NIS_NOTFOUND.
4466
4467 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4468
4469         [BZ #4566]
4470         * string/strtok.c: Fix typo in comment.
4471
4472         [BZ #4582]
4473         * debug/segfault.c: Fix typos in comments.
4474
4475         [BZ #4588]
4476         * stdio-common/tempnam.c: Fix comment, it is not checked that
4477         TMPDIR points to a writable directory.
4478
4479         [BZ #4726]
4480         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4481         memory allocated for the name server address.
4482
4483         [BZ #4946]
4484         * nscd/connections.c (handle_request): Using sendfile always
4485         requires that mmap is used for the database.
4486         Patch by Petr Baudis <pasky@suse.cz>.
4487
4488         [BZ #4905]
4489         * nscd/hstcache.c (cache_addhst): When reloading an entry which
4490         suddenly has two or more addresses, ignore it and remove the old
4491         entry.
4492
4493         [BZ #4814]
4494         * resolv/res_hconf.c: Prepare for compiling outside libc.
4495         * nscd/res_hconf.c: New file.
4496         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
4497         the new file.
4498         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
4499         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
4500
4501         * nscd/hstcache.c (cache_addhst): Minimal optimization.
4502
4503         [BZ #4925]
4504         * debug/pcprofiledump.c: Turn on internationalization by calling
4505         setlocale.  Patch mostly by Benno Schulenberg.
4506
4507         [BZ #4936]
4508         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
4509         the state.
4510         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
4511         * iconvdata/bug-iconv5.c: New file.
4512
4513 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
4514
4515         [BZ #4896]
4516         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
4517         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
4518         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
4519         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
4520         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
4521         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
4522         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
4523         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
4524
4525 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4526
4527         [BZ #4937]
4528         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
4529         lookup loop.  Suggested by John Reiser.
4530
4531 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
4532
4533         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
4534
4535 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
4536
4537         * csu/libc-start.c: Don't handle VDSO_SETUP here.
4538         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
4539         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
4540         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
4541         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
4542         to...
4543         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
4544
4545 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
4546
4547         * po/nl.po: Update from translation team.
4548
4549 2007-08-16  Andreas Jaeger  <aj@suse.de>
4550
4551         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
4552         Reported by Peter Festner <peter.festner@ewetel.net>.
4553
4554 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4555
4556         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
4557
4558 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
4559
4560         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
4561         to check for undefined symbols.
4562
4563         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
4564         If the syscall fails, set errno to the actual returned error number
4565         rather than EINVAL.
4566         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
4567         arguments are incorrect, set errno to EINVAL, if the syscall
4568         fails, set errno to the actual returned error number.
4569
4570         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
4571         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
4572
4573         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
4574         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
4575         file.
4576         (ASI_PNF, ASI_BLK_P): Don't define.
4577         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
4578         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
4579         file.
4580         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
4581         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
4582         file.
4583
4584 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
4585
4586         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
4587         FE_UNDERFLOW on Niagara CPUs.
4588
4589         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
4590         exceptions.
4591
4592 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
4593
4594         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
4595         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
4596         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
4597         flush should be used or not inside of the function.
4598         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
4599
4600         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
4601         __thread_start): Use HIDDEN_JUMPTARGET.
4602         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
4603         __thread_start): Likewise.
4604         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
4605
4606         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
4607         Add libc_hidden_proto.
4608         (STRTOF): Add libc_hidden_proto.
4609         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
4610         (strtold_l, wcstold_l): Use them as second argument for
4611         long_double_symbol.
4612
4613 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4614
4615         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
4616
4617 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4618
4619         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
4620
4621 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4622
4623         * po/bg.po: New file.  From the translation team.
4624
4625 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4626
4627         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
4628         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
4629         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
4630         when each feature was introduced.
4631
4632         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
4633         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
4634         (CHECK_HASH): New macro.
4635         (PREPARE_VERSION): Use it.
4636
4637         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
4638         prototype if not __ASSUME_PSELECT.
4639         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
4640         prototype if not __ASSUME_PPOLL.
4641
4642         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
4643
4644         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
4645         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
4646         is defined.
4647
4648 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
4649
4650         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4651         (_libc_vdso_platform_setup): If vDSO is not available point
4652         __vdso_gettimeofday to the vsyscall.
4653         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
4654         __vdso_gettimeofday instead of vsyscall.
4655
4656 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4657
4658         * nscd/servicescache.c: Include kernel-features.h.
4659         * nscd/gai.c: Likewise.
4660         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
4661         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
4662         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
4663         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
4664         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
4665         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
4666         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
4667         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
4668         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4669
4670 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
4671
4672         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
4673         and _dl_get_origin defines anymore.
4674
4675         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
4676         Build fix for systems which might lack POSIX timer support.
4677
4678         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4679         (_libc_vdso_platform_setup): Mangle function pointers before storing
4680         them.
4681         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
4682         Demangle vdso pointer before use.
4683         (INTERNAL_VSYSCALL): Likewise.
4684
4685         * elf/cache.c (primes): Mark as const.
4686         Noted by Roland McGrath.
4687
4688 2007-08-01  Andreas Jaeger  <aj@suse.de>
4689             Jakub Jelinek  <jakub@redhat.com>
4690
4691         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
4692         (options): Add option.
4693         (parse_opt): Handle option.
4694         (manual_link): Adjust process_file caller.  Call implicit_soname.
4695         (search_dir): Formatting.  Use and populate auxiliary cache.
4696         (main): Load and save auxiliary cache.
4697         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
4698         stat64 from fstat64 to caller.
4699         (implicit_soname): New function.
4700         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
4701         leave *soname as NULL.
4702         * elf/cache.c: Include libgen.h.
4703         (print_entry, print_cache, compare, save_cache, add_to_cache):
4704         Formatting and cleanups.
4705         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
4706         aux_cache_file): New structures.
4707         (AUX_CACHEMAGIC): Define.
4708         (primes): New array.
4709         (aux_hash_size, aux_hash): New variables.
4710         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
4711         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
4712         load_aux_cache, save_aux_cache): New functions.
4713         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
4714         (init_aux_cache, search_aux_cache, add_to_aux_cache,
4715         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
4716         (process_file): Adjust prototype.
4717
4718 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
4719
4720         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
4721         with __need_size_t.
4722
4723 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
4724
4725         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
4726         r_found_version structure as second parameter.
4727         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
4728         (_dl_vdso_vsym): Change type of second parameter accordingly.
4729         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
4730         (_libc_vdso_platform_setup): Adjust.
4731         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
4732         (_libc_vdso_platform_setup): Likewise.
4733
4734         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
4735         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
4736         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
4737         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
4738         * csu/libc-start.c: Pretty printing.
4739         Use VDSO_SETUP if defined.
4740         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
4741         and let generic code call into _libc_vdso_platform_setup.
4742         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
4743         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
4744         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
4745         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
4746         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
4747         for GLIBC_PRIVATE.
4748         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
4749         (sysdep_rountines): Add dl-vdso.
4750
4751         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
4752         of routines.
4753
4754         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
4755         attribute_hidden to __vdso_gettimeofday prototype.
4756
4757 2007-08-12  Roland McGrath  <roland@redhat.com>
4758
4759         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
4760         From: Karl Berry <karl@freefriends.org>.
4761
4762 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
4763
4764         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
4765         an atime update for the files we read.
4766
4767 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
4768
4769         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
4770
4771         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
4772         instead of mkstemp.
4773
4774         * misc/Makefile (routines): Add mkostemp and mkostemp64.
4775         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
4776         * misc/mkostemp.c: New file.
4777         * misc/mkostemp64.c: New file.
4778         * stdlib/stdlib.h: Declare the new functions.
4779         * sysdeps/posix/tempname.c: Add new parameter which is added to
4780         the flags for open.  Remove __GT_BIGFILE handling.
4781         * stdio-common/tempname.c: Likewise.
4782         * include/stdio.h: Adjust __gen_tempname prototype.
4783         Renumber __GT_* constants.
4784         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
4785         * misc/mkdtemp.c: Likewise.
4786         * misc/mkstemp.c: Likewise.
4787         * misc/mkstemp64.c: Likewise.
4788         * misc/mktemp.c: Likewise.
4789         * stdio-common/tempnam.c: Likewise.
4790         * stdio-common/tmpfile.c: Likewise.
4791         * stdio-common/tmpfile64.c: Likewise.
4792         * stdio-common/tmpnam.c: Likewise.
4793         * stdio-common/tmpnam_r.c: Likewise.
4794
4795 2007-08-10  Roland McGrath  <roland@frob.com>
4796
4797         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
4798         New macros.
4799         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
4800         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4801
4802 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
4803
4804         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
4805         possible.
4806         * nss/nss_files/files-alias.c (internal_setent): Likewise.
4807         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
4808         * nss/nss_files/files-have_o_cloexec.c: New file.
4809
4810         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
4811         available.
4812
4813 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
4814
4815         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
4816         ___new_wcstold_l): New weak aliases.
4817         (strtold_l, wcstold_l): Use them as second argument for
4818         long_double_symbol.
4819
4820 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
4821
4822         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
4823         register in test for error.
4824
4825         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
4826         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
4827
4828         * po/sv.po: Update from translation team.
4829
4830 2007-08-06  Roland McGrath  <roland@redhat.com>
4831
4832         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
4833         Remove __strto*_l inlines.
4834         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
4835         * stdlib/strtod.c: Add libc_hidden_def.
4836         * stdlib/strtod_l.c: Likewise.
4837         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
4838         for __new_strtold and __new_wcstold.
4839         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
4840         __STRTOF, STRTOF.
4841         * stdlib/strtol.c: Add libc_hidden_def.
4842         * stdlib/strtol_l.c: Likewise.
4843         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
4844         strtoq.
4845
4846         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
4847
4848         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
4849         * scripts/data/localplt-generic.data: ... here.
4850         * elf/Makefile (check-data): Get generic file if no other.
4851         ($(objpfx)check-localplt.out): Make target unconditional.
4852
4853         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
4854         Use ElfW(Nhdr).
4855
4856 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
4857
4858         * po/zh_CN.po: Updated translation from translation team.
4859
4860 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
4861
4862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
4863         Don't use CGOTSETUP and CGOTRESTORE macros.
4864
4865 2007-08-04  Roland McGrath  <roland@redhat.com>
4866
4867         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
4868
4869 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
4870
4871         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
4872         __extension__ around the whole statement expression.
4873
4874 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
4875
4876         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
4877         elements during initialization.
4878
4879         * po/pl.po: Updated translation from translation team.
4880         * po/tr.po: Likewise.
4881         * po/nl.po: Likewise.
4882
4883 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
4884
4885         * rt/aio.h: Add __nonnull attributes.
4886
4887 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
4888
4889         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
4890         * stdlib/Makefile (tests): Add tst-strtod5.
4891         (tst-strtod5-ENV): New.
4892         * stdlib/tst-strtod5.c: New file.
4893
4894         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
4895         failed.
4896         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
4897         on failure.
4898
4899         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
4900         allocated.
4901
4902 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
4903
4904         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
4905         numbers.
4906
4907 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
4908
4909         * io/Makefile (aux): Add have_o_cloexec.
4910         * include/fcntl.h: Declare __have_o_cloexec.
4911         * io/have_o_cloexec.c: New file.
4912         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
4913         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
4914         fcntl call if not necessary.
4915         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
4916         of local variable.
4917
4918         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
4919         Avoid memset, add explicit initialization.
4920         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
4921         to the end and change into zero-sized array.
4922         Move lock member to fill a hole on 64-bit platforms.
4923
4924         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
4925         inline functions.
4926         * include/stdlib.h: Add __strto*_internal prototypes here.
4927         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
4928         inline functions.
4929         * include/wchar.h: Add __wcsto*_internal prototypes.
4930         * sysdeps/generic/inttypes.h: No need to protect the declaration
4931         of the __strto*_internal and __wcsto*_internal members here.
4932
4933         * rt/mqueue.h: Change const to __const and add nonnull attributes.
4934
4935 2007-08-02  Roland McGrath  <roland@redhat.com>
4936
4937         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
4938         $(inst_bindir)/getconf if possible.
4939
4940         * posix/Makefile ($(objpfx)getconf.speclist): New target.
4941         (generated): Add it.
4942         ($(inst_libexecdir)/getconf): Use it.
4943
4944 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
4945
4946         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
4947         /proc is faster and sufficient.  /sys is still needed for
4948         __get_nprocs_conf.
4949
4950 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
4951
4952         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
4953         syscall as __fallocate64.
4954         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
4955         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
4956
4957 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
4958
4959         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
4960         value.
4961
4962         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
4963         if off_t is different rank from size_t.
4964
4965         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
4966         uw_frame_state_for): Avoid type punning warnings.
4967         * sysdeps/generic/unwind-dw2-fde-glibc.c
4968         (_Unwind_IteratePhdrCallback): Likewise.
4969         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
4970         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
4971         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
4972         pointers.
4973
4974 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
4975
4976         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
4977         total processors using sysfs.
4978         (__get_nprocs): Use sysfs to determine which processors are online.
4979
4980 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
4981
4982         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
4983         syscall arguments count.
4984
4985         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
4986
4987 2007-07-30  Roland McGrath  <roland@redhat.com>
4988
4989         * manual/libc.texinfo: Update copyrights, formatting magic, and
4990         @dircategory.  From Karl Berry <karl@freefriends.org>.
4991
4992 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
4993
4994         [BZ #4860]
4995         * io/Makefile (headers): Add bits/fcntl2.h.
4996
4997         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
4998         using gcc builtin.
4999         (__CPU_EQUAL_S): Likewise.
5000
5001         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
5002         (tests): Add tst-cpuset.
5003         * posix/sched_cpualloc.c: New file.
5004         * posix/sched_cpufree.c: New file.
5005         * posix/tst-cpuset.c: New file.
5006         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
5007         GLIBC_2.7.
5008         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
5009         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
5010         macros.  Define CPU_*_S macros.
5011
5012 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5013
5014         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
5015         entry.
5016
5017         [BZ #4858]
5018         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
5019         #.0g and value rounded to 1.0.
5020         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
5021
5022 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
5023
5024         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
5025         for int_frac_digits and frac_digits.
5026
5027         * login/logout.c (logout): Avoid aliasing violation.
5028         * login/logwtmp.c (logwtmp): Likewise.
5029
5030         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
5031
5032         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
5033         to avoid warning.
5034         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
5035         warning.
5036         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
5037         warning.
5038         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
5039         to avoid warnings.
5040
5041         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
5042         void **.
5043         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
5044
5045         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
5046         char * to avoid warning.
5047         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
5048
5049         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
5050
5051         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
5052         allocate_arrays): Cast second argument to charmap_find_symbol
5053         to char * to avoid warnings.
5054
5055         * locale/programs/repertoire.c (repertoire_new_char): Change
5056         from_nr, to_nr and cnt to unsigned long, adjust printf format
5057         string.
5058
5059         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
5060         Cast second argument to new_element to char * to avoid warnings.
5061
5062         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
5063
5064         * intl/gettextP.h (struct loaded_domain): Change plural to const
5065         struct expression *.
5066         * intl/plural-eval.c (plural_eval): Change first argument to
5067         const struct expression *.
5068         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
5069         argument to const struct expression **.
5070         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5071         prototypes.
5072         * intl/loadmsgcat (_nl_unload_domain): Cast away const
5073         in call to __gettext_free_exp.
5074
5075         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5076         unitialized wstring/wpattern var warnings.
5077
5078         * posix/runtests.c (struct a_test): Make data field const char *.
5079
5080         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5081         vars if not LDBL_MANT_DIG >= 106.
5082
5083         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5084
5085         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5086         __find_specmb to avoid warning.
5087
5088         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5089
5090         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5091         to avoid warnings.
5092
5093         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5094         initializer.
5095
5096         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5097         tv var when it will be actually used.
5098
5099         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5100         to avoid warnings.
5101
5102         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5103         char array resp. pointer.
5104         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5105         char array.
5106         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5107         to const unsigned char **.
5108         (ucs4_to_cns11643): Change second argument to unsigned char *.
5109         * iconvdata/euc-tw.c (BODY): Change endp type to
5110         const unsigned char *.
5111         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5112         to unsigned char *.
5113         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5114         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5115         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5116         types to unsigned char pointers/arrays instead of char.
5117         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5118         to unsigned char *.
5119         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5120         * iconvdata/jis0212.h: Include assert.h.
5121         (ucs4_to_jisx0212): Change second argument to unsigned char *.
5122         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5123         of trying to handle that.
5124         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5125         shut up a warning.
5126         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5127         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5128         two dimensional const unsigned char arrays.
5129         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5130         Initialize endp to inptr to shut up a warning.
5131
5132 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5133
5134         [BZ #4772]
5135         * time/strptime_l.c (__strptime_internal): Silently ignore
5136         strftime modifiers and field width in recursive calls.
5137
5138         * include/time.h (enum ptime_locale_status): Remove.
5139         (__strptime_internal): Remove decided and era_cnt arguments,
5140         add statep argument.
5141         * time/strptime_l.c (__strptime_internal): Remove decided
5142         and era_cnt arguments, add statep argument.  Don't recompute
5143         any fields in recursive calls, only update caller's tm
5144         and state, if recursive call fails, don't change tm nor
5145         any state.
5146         (get_alt_number): Adjust.
5147         (recursive): Adjust caller.
5148         (strptime): Likewise.
5149         * time/strptime.c (strptime): Likewise.
5150
5151 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
5152
5153         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5154         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5155         if from and to charsets are the same.
5156         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5157         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5158         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5159
5160 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5161
5162         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5163         Don't define wint_t when __need_mbstate_t unless it
5164         is necessary.
5165         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5166         in the typedef if possible.
5167         * wctype/wctype.h (wint_t): Define by including
5168         wchar.h with __need_wint_t instead of including stddef.h
5169         with __need_wint_t and as fallback definining it ourselves.
5170         * iconv/gconv.h (__need_wint_t): Define before including
5171         wchar.h.
5172         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5173         or _GLIBCPP_USE_WCHAR_T.
5174         (__need_wchar_t): Don't define
5175         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5176         (__need_wint_t): Don't define before including stddef.h,
5177         define before including wchar.h only if _LIBC or
5178         _GLIBCPP_USE_WCHAR_T.
5179         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5180         * sysdeps/mach/hurd/_G_config.h: Likewise.
5181         * sysdeps/generic/_G_config.h: Likewise.
5182         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5183         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5184         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5185         if _LIBC or _GLIBCPP_USE_WCHAR_T.
5186
5187 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5188
5189         * sysdeps/posix/posix_fallocate64.c: Undefine
5190         __posix_fallocate64_l64 before alias handling.
5191         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5192         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5193         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5194         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5195
5196         * io/tst-posix_fallocate.c: Include <fcntl.h>.
5197
5198 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
5199
5200         * locale/programs/ld-collate.c (atwc): New variable.
5201         (add_to_tablewc): New toplevel function, moved from collate_output.
5202         (collate_output): Remove add_to_tablewc nested function.
5203
5204         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5205         (name_insert): New function.
5206         (write_output): Remove hash_table and hash_size vars and name_insert
5207         nested function.
5208
5209 2007-07-24  Roland McGrath  <roland@redhat.com>
5210
5211         * Makerules (install-others-programs-nosubdir): New target.
5212         (install-no-libc.a-nosubdir): Depend on it.
5213
5214         * iconv/Makefile (install-others-programs): Set this instead of
5215         install-others.
5216         * login/Makefile (install-others-programs): Likewise.
5217         * posix/Makefile (install-others-programs): Likewise.
5218
5219         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5220         dependencies.
5221
5222 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
5223
5224         * io/Makefile (tests): Add tst-posix_fallocate.
5225         * io/tst-posix_fallocate.c: New file.
5226
5227         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5228         __ASSUME_FALLOCATE.
5229
5230 2007-07-22  Roland McGrath  <roland@frob.com>
5231
5232         * hurd/getdport.c: Add missing copyright year update.
5233
5234         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5235         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5236
5237 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
5238
5239         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5240
5241         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5242         O_CLOEXEC is needed.
5243         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5244         Avoid additional fcntl to set O_CLOEXEC if not needed.
5245         * nis/nss_compat/compat-initgroups.c: Likewise.
5246         * nis/nss_compat/compat-pwd.c: Likewise.
5247         * nis/nss_compat/compat-spwd.c: Likewise.
5248
5249 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5250
5251         [BZ #3665]
5252         * manual/errno.texi: Change ECANCELED value to 119.
5253
5254         [BZ #4610]
5255         * mach/lock-intern.h: Include <sys/cdefs.h>.
5256
5257         [BZ #4178]
5258         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5259         reading A.
5260
5261         [BZ #4126]
5262         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5263         to __sigsuspend.
5264
5265         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5266
5267 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
5268
5269         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5270         `__ASSEMBLER__'.
5271         * sysdeps/mach/hurd/i386/tls.h: Likewise.
5272
5273 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
5274
5275         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5276         descriptor received from nscd.
5277
5278         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5279
5280         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5281         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5282         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5283         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5284         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5285         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5286
5287 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5288
5289         [BZ #4816]
5290         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5291
5292         [BZ #4813]
5293         * login/forkpty.c (forkpty): Close master and slave fds on
5294         fork failure.  Patch by
5295         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5296
5297 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
5298
5299         * include/features.h (__USE_ISOC95): New define.
5300         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5301         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5302         for -std=iso9899:199409.
5303         * CONFORMANCE: Remove comments about unsupported AMD1.
5304
5305 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5306
5307         * sysdeps/ia64/sched_cpucount.c: New file.
5308         * sysdeps/powerpc/sched_cpucount.c: New file.
5309
5310         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5311         __BEGIN_DECLS/__END_DECLS around the prototype.
5312         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
5313         pointer to const cpu_set_t.
5314
5315         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5316         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5317         __need_size_t and include stddef.h.
5318         * sysvipc/sys/msg.h: Likewise.
5319         * posix/sched.h: Likewise.
5320         * hurd/hurd/signal.h (__need_size_t): Define.
5321
5322         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5323         neither does signal.h in pedantic ISO C namespaces.  stdio.h
5324         no longer defines wint_t or wchar_t.
5325
5326         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5327         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5328         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5329         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5330         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5331         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5332         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5333         * debug/printf_chk.c (__printf_chk): Likewise.
5334         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5335         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5336
5337         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5338         Define.
5339
5340         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5341         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5342
5343 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
5344
5345         [BZ #4792]
5346         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5347         * malloc/malloc.h (realloc): Likewise.
5348
5349         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5350         if one of proc_file_chain streams has that fileno.
5351         * stdio-common/Makefile (tests): Add tst-popen2.
5352         * stdio-common/tst-popen2.c: New test.
5353
5354 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
5355
5356         * elf/ldconfig.c: Allow GPLv2 or any later version.
5357         * elf/readlib.c: Likewise.
5358         * elf/chroot_canon.c: Likewise.
5359         * elf/cache.c: Likewise.
5360         * nscd/mem.c: Likewise.
5361         * nscd/getpwuid_r.c: Likewise.
5362         * nscd/grpcache.c: Likewise.
5363         * nscd/aicache.c: Likewise.
5364         * nscd/getsrvbynm_r.c: Likewise.
5365         * nscd/nscd.c: Likewise.
5366         * nscd/servicescache.c: Likewise.
5367         * nscd/getsrvbypt_r.c: Likewise.
5368         * nscd/initgrcache.c: Likewise.
5369         * nscd/gethstbyad_r.c: Likewise.
5370         * nscd/gethstbynm2_r.c: Likewise.
5371         * nscd/getgrnam_r.c: Likewise.
5372         * nscd/nscd_setup_thread.c: Likewise.
5373         * nscd/getpwnam_r.c: Likewise.
5374         * nscd/gai.c: Likewise.
5375         * nscd/connections.c: Likewise.
5376         * nscd/dbg_log.c: Likewise.
5377         * nscd/cache.c: Likewise.
5378         * nscd/hstcache.c: Likewise.
5379         * nscd/nscd_conf.c: Likewise.
5380         * nscd/getgrgid_r.c: Likewise.
5381         * nscd/pwdcache.c: Likewise.
5382         * catgets/gencat.c: Likewise.
5383         * locale/programs/linereader.h: Likewise.
5384         * locale/programs/locarchive.c: Likewise.
5385         * locale/programs/ld-paper.c: Likewise.
5386         * locale/programs/locfile-kw.h: Likewise.
5387         * locale/programs/ld-address.c: Likewise.
5388         * locale/programs/xmalloc.c: Likewise.
5389         * locale/programs/ld-time.c: Likewise.
5390         * locale/programs/localedef.c: Likewise.
5391         * locale/programs/simple-hash.c: Likewise.
5392         * locale/programs/xstrdup.c: Likewise.
5393         * locale/programs/ld-numeric.c: Likewise.
5394         * locale/programs/locfile-kw.gperf: Likewise.
5395         * locale/programs/ld-collate.c: Likewise.
5396         * locale/programs/charmap-kw.gperf: Likewise.
5397         * locale/programs/charmap.h: Likewise.
5398         * locale/programs/charmap-kw.h: Likewise.
5399         * locale/programs/config.h: Likewise.
5400         * locale/programs/locfile.c: Likewise.
5401         * locale/programs/ld-ctype.c: Likewise.
5402         * locale/programs/charmap.c: Likewise.
5403         * locale/programs/ld-messages.c: Likewise.
5404         * locale/programs/repertoire.h: Likewise.
5405         * locale/programs/locale.c: Likewise.
5406         * locale/programs/ld-name.c: Likewise.
5407         * locale/programs/linereader.c: Likewise.
5408         * locale/programs/locfile.h: Likewise.
5409         * locale/programs/3level.h: Likewise.
5410         * locale/programs/ld-monetary.c: Likewise.
5411         * locale/programs/ld-measurement.c: Likewise.
5412         * locale/programs/charmap-dir.c: Likewise.
5413         * locale/programs/ld-identification.c: Likewise.
5414         * locale/programs/localedef.h: Likewise.
5415         * locale/programs/charmap-dir.h: Likewise.
5416         * locale/programs/repertoire.c: Likewise.
5417         * locale/programs/simple-hash.h: Likewise.
5418         * locale/programs/ld-telephone.c: Likewise.
5419         * locale/programs/locale-spec.c: Likewise.
5420         * locale/programs/locfile-token.h: Likewise.
5421         * posix/getconf.c: Likewise.
5422         * iconv/dummy-repertoire.c: Likewise.
5423         * iconv/iconv_charmap.c: Likewise.
5424         * iconv/iconvconfig.c: Likewise.
5425         * iconv/iconv_prog.c: Likewise.
5426         * malloc/memusagestat.c: Likewise.
5427         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5428
5429 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5430
5431         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
5432         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
5433         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
5434         check for the first argument.
5435
5436 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
5437
5438         [BZ #4775]
5439         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
5440         (__tgmath_real_type): Fix if expr is const int or other const
5441         qualified integral type.
5442         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
5443         expressions and handle const qualified arguments.
5444         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
5445         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5446         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
5447         statement expressions.
5448         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
5449         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
5450         (__TGMATH_UNARY_IMAG): Define.
5451         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
5452         * math/Makefile (tests): Add test-tgmath2.
5453         (CFLAGS-test-tgmath2.c): Add.
5454         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
5455         count_cfloat, count_cldouble): New variables.
5456         (NCCALLS): Define.
5457         (main): Check number of complex calls as well.
5458         (F(compile_test)): Add complex tests and tests with const qualified
5459         arguments.
5460         (y, z, ccount): Define.
5461         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
5462         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
5463         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
5464         F(cproj)): New functions.
5465         * math/test-tgmath2.c: New test.
5466
5467 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
5468
5469         [BZ #4776]
5470         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5471         RPATH etc. as "/" rather than "", don't segfault on empty paths,
5472         instead output ".".
5473         * dlfcn/Makefile (distribute): Add glreflib3.c.
5474         (module-names): Add glreflib3.
5475         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5476         glreflib1.so.
5477         (LDFLAGS_glreflib3.so): New.
5478         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5479         glreflib1.so.
5480         * dlfcn/glreflib3.c: New file.
5481
5482         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5483         returned -1, return NULL.
5484         * intl/explodename.c (_nl_explode_name): Return -1 if
5485         _nl_normalize_codeset failed.
5486
5487 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
5488
5489         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5490         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
5491         and avoid branch misspredicts for > 31 bytes memset case.
5492         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5493         Remove toc ref to __cache_line_size.
5494
5495         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
5496         to get ISA-V2.0 branch hints.
5497         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
5498         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
5499         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5500         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5501         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5502         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5503         Remove toc ref to __cache_line_size.
5504
5505         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
5506         Include math_ldbl_opt.h.
5507
5508 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
5509
5510         [BZ #4773]
5511         * time/strptime_l.c (__strptime_internal): Implement greedy
5512         matching of weekday and month names.
5513
5514 2007-07-09  Roland McGrath  <roland@redhat.com>
5515
5516         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
5517         (ELF_NOTE_ABI): Use it.
5518         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
5519
5520 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
5521
5522         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
5523         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5524
5525 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
5526
5527         [BZ #4745]
5528         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
5529         in loop to look for conversion specifier to avoid testing of
5530         wrong errno value.
5531         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
5532         * stdio-common/bug18.c: New file.
5533         * stdio-common/bug18a.c: New file.
5534         * stdio-common/bug19.c: New file.
5535         * stdio-common/bug19a.c: New file.
5536
5537 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
5538
5539         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
5540         running awk script.
5541
5542 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
5543
5544         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
5545         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
5546         Return NULL if mmap failed instead of asserting it does not.
5547         (calloc): Check for integer overflow.
5548
5549         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
5550         than LONG_MAX / 10.
5551
5552 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
5553
5554         [BZ #4702]
5555         * nis/nss-default.c: Include errno.h.
5556         (init): Preserve errno.
5557
5558 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
5559
5560         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
5561
5562 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
5563
5564         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
5565
5566 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5567
5568         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
5569
5570 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5571
5572         * sysdeps/s390/dl-procinfo.c: New file.
5573         * sysdeps/s390/dl-procinfo.h: New file.
5574         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
5575
5576 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
5577
5578         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
5579         in PT_NOTE segments with multiple notes.
5580         * elf/readelflib.c (process_elf_file): Likewise.
5581
5582 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
5583
5584         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
5585         ISO C compliant.
5586
5587 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5588
5589         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
5590
5591 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
5592
5593         * include/link.h: Don't include rtld-lowlevel.h.
5594         (struct link_map): Remove l_scope_lock.
5595         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
5596         (_dl_scope_free_list): New field (variable) in _rtld_global.
5597         (DL_LOOKUP_SCOPE_LOCK): Remove.
5598         (_dl_scope_free): New prototype.
5599         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
5600         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
5601         (_dl_profile_fixup): Likewise.
5602         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
5603         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
5604         THREAD_GSCOPE_RESET_FLAG around it.
5605         * elf/dl-close.c (_dl_close_worker): Don't use
5606         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
5607         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
5608         scopes were queued or if l_scope_mem has been abandoned.
5609         * elf/dl-open.c (_dl_scope_free): New function.
5610         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
5611         * elf/dl-support.c (_dl_scope_free_list): New variable.
5612         * elf/dl-lookup.c (add_dependency): Remove flags argument.
5613         Remove DL_LOOKUP_SCOPE_LOCK handling.
5614         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
5615         handling.
5616         * elf/dl-object.c (_dl_new_object): Don't use
5617         __rtld_mrlock_initialize.
5618
5619 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5620
5621         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
5622         to fill in holes
5623         (rtld_global_ro): Likewise.
5624
5625 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5626
5627         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
5628         Move PT_LOAD checking to...
5629         (_dl_addr_inside_object): ... here, new function.
5630         * elf/dl-sym.c (do_sym): If not l_contiguous,
5631         call _dl_addr_inside_object.
5632         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5633         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5634         * elf/dl-open.c (dl_open_worker): Likewise.
5635         (_dl_addr_inside_object): New function if IS_IN_rtld.
5636         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
5637         holes are present or are PROT_NONE protected.
5638         * include/link.h (struct link_map): Add l_contiguous field.
5639         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
5640
5641 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5642             Tomas Janousek  <tjanouse@redhat.com>
5643             Ulrich Drepper  <drepper@redhat.com>
5644
5645         [BZ #4647]
5646         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
5647         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
5648         socket.
5649         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
5650         unused member a bitmap.
5651         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
5652         servers are configured.
5653
5654 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5655
5656         * elf/rtld.c (dl_main): Don't call init_tls more than once.
5657
5658 2007-06-17  Andreas Schwab  <schwab@suse.de>
5659
5660         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
5661
5662 2007-06-16  Andreas Jaeger  <aj@suse.de>
5663
5664         [BZ #4125]
5665         * sysdeps/unix/sysv/linux/sys/ptrace.h
5666         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
5667         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
5668         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
5669         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
5670         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
5671         Define.
5672         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5673         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5674         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5675         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5676
5677 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
5678
5679         [BZ #4599]
5680         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
5681         determining whether there are IPv4/IPv6 addresses, ignore loopback
5682         addresses.
5683
5684 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
5685
5686         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
5687         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
5688         as the return type.  Change type of "r" variable to CMPtype.
5689         * soft-fp/eqsf2.c (__eqsf2): Likewise.
5690         * soft-fp/eqtf2.c (__eqtf2): Likewise.
5691         * soft-fp/gedf2.c (__gedf2): Likewise.
5692         * soft-fp/gesf2.c (__gesf2): Likewise.
5693         * soft-fp/getf2.c (__getf2): Likewise.
5694         * soft-fp/ledf2.c (__ledf2): Likewise.
5695         * soft-fp/lesf2.c (__lesf2): Likewise.
5696         * soft-fp/letf2.c (__letf2): Likewise.
5697         * soft-fp/unorddf2 (__unorddf2): Likewise.
5698         * soft-fp/unordsf2 (__unordsf2): Likewise.
5699         * soft-fp/unordtf2 (__unordtf2): Likewise.
5700
5701 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
5702
5703         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
5704         make sure gcc doesn't mess around with this.
5705
5706 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
5707
5708         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
5709
5710 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
5711
5712         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
5713         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
5714         at most once per _dl_close_worker.
5715
5716 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
5717
5718         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
5719         __sched_cpucount as const.
5720         * posix/sched_cpucount.c: Adjust.
5721
5722         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
5723         instruction for counting bits.
5724         * sysdeps/x86_64/sched_cpucount.c: New file.
5725
5726 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
5727
5728         * configure.in: Avoid variable named BASH.
5729         * config.make.in: Likewise.
5730         Patch in part by Mike Frysinger.
5731
5732 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
5733
5734         [BZ #4586]
5735         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
5736         pseudo-zeros as zero.
5737         * sysdeps/x86_64/ldbl2mpn.c: New file.
5738         * sysdeps/ia64/ldbl2mpn.c: New file.
5739
5740 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
5741
5742         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
5743         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
5744         Remove unreachable code at the end.
5745
5746 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
5747
5748         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
5749         ldbl-128ibm in comment.
5750         (fpclassifyl): Correct classification of denormals.
5751         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
5752         return value for MIN denormal. Rewrite using long double math too
5753         correctly handle denormals and canonicalize the results.
5754
5755 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
5756
5757         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5758         (__mpn_construct_long_double): Fix conversion where result ought
5759         to be smaller than __LDBL_MIN__, or the low double should be
5760         denormal.  Fix decision where to negate low double - honor round
5761         to even rules.
5762         * stdio-common/tst-sprintf2.c: Include string.h.
5763         (COMPARE_LDBL): Define.
5764         (TEST): Also test whether a string hexadecimal float representation
5765         can be parsed back to the number.
5766         (main): Add a couple of further tests.
5767
5768 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
5769
5770         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5771         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
5772         is non-zero, but smaller than 2 * __DBL_MIN__.
5773         * stdio-common/tst-sprintf2.c: New test.
5774         * stdio-common/Makefile (tests): Add tst-sprintf2.
5775
5776         * math/test-misc.c (main): Don't run last batch of tests with
5777         IBM long double format.
5778
5779 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5780
5781         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
5782         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
5783         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
5784         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
5785         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5786         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
5787         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
5788         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
5789         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
5790         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
5792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
5793         New file.
5794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
5795         New file.
5796         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
5797         New file.
5798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
5799         New file.
5800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
5801         New file.
5802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
5803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
5804         New file.
5805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
5806         New file.
5807         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
5808         New file.
5809         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
5810         New file.
5811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
5812         New file.
5813
5814 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5815
5816         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
5817         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
5818         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
5819         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
5820         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
5821         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
5822         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
5823         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
5824
5825 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
5826
5827         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
5828         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5829         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
5830         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5831         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
5832         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5833         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
5834         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5835
5836 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
5837
5838         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
5839         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
5840         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
5841         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
5842
5843 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
5844
5845         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
5846         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
5847
5848 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
5849
5850         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
5851         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
5852         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
5853         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
5854
5855 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
5856
5857         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
5858         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
5859
5860 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
5861
5862         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
5863         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
5864
5865         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
5866         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
5867         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
5868         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5869
5870 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
5871
5872         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
5873         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
5874         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
5875         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
5876
5877 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
5878
5879         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
5880         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
5881         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
5882         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5883         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
5884         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5885
5886 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
5887
5888         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
5889         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
5890         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
5891         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
5892
5893 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
5894
5895         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
5896         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
5897         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
5898         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
5899         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
5900         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
5901         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
5902         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
5903         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
5904         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
5905         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
5906         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
5907         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
5908         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
5909         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
5910         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
5911
5912 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
5913
5914         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
5915         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
5916
5917 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
5918
5919         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
5920         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
5921
5922 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5923
5924         * sysdeps/powerpc/powerpc32/970/Implies: New file.
5925         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
5926         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
5927         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
5928         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
5929         * sysdeps/powerpc/powerpc64/970/Implies: New file.
5930         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
5931         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
5932         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
5933         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
5934
5935 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
5936
5937         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
5938
5939 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
5940
5941         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
5942         branch miss-predicts. Ensure that cache line crossing does not impact
5943         dispatch grouping.
5944
5945 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
5946
5947         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
5948         "../../powerpc32/power4/memcopy.h".
5949         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
5950         "../../powerpc32/power4/wordcopy.c".
5951
5952 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
5953
5954         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
5955         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
5956         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
5957         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
5958         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
5959         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
5960
5961 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
5962
5963         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
5964
5965 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
5966
5967         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
5968         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
5969         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
5970         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
5971         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
5972         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
5973         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
5974         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
5975
5976 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
5977
5978         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
5979
5980 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
5981
5982         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
5983         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
5984         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
5985         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
5986         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
5987         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
5988         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
5989
5990 2007-05-29  Roland McGrath  <roland@redhat.com>
5991
5992         * po/Makefile (po-sed-cmd): New variable.
5993         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
5994
5995 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
5996
5997         * crypt/md5-crypt.c: Fix comment.
5998
5999         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
6000         of crashing.  When this is the case or if the reply is malformed,
6001         don't try to close the new file descriptor since it does not
6002         exist.
6003         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
6004
6005 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
6006
6007         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
6008         if __NR_utimensat is not defined.
6009
6010 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
6011
6012         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
6013
6014 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
6015
6016         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
6017         (open): Fix comment typos.  Don't call __open_2 if flags
6018         is a compile time constant without O_CREAT.
6019         (__open64_2): Add nonnull attribute.
6020         (open64): Fix comment typos.  Don't call __open64_2 if flags
6021         is a compile time constant without O_CREAT.
6022         (__openat_2): Add nonnull attribute, fix nonnull attribute
6023         on redirect.
6024         (openat): Fix comment typos.  Don't call __openat_2 if flags
6025         is a compile time constant without O_CREAT.
6026         (__openat64_2): Add nonnull attribute, fix nonnull attribute
6027         on redirect.
6028         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
6029         is a compile time constant without O_CREAT.
6030
6031 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
6032
6033         * Makerules (sysd-rules): Define PTW for ptw-* files.
6034         * Versions: Define GLIBC_2.7 for libc.
6035         * include/stdio.h: Declare __fortify_fail.
6036         * debug/fortify_fail.c: New file.
6037         * debug/Makefile (routines): Add fortify_fail.
6038         * debug/chk_fail.c: Use __fortify_fail.
6039         * debug/stack_chk_fail.c: Likewise.
6040         * io/Versions: Export __open_2, __open64_2, __openat_2, and
6041         __openat64_2 for GLIBC_2.7.
6042         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
6043         * io/open.c: Define *_2 variant of function which checks for O_CREAT
6044         and fails if necessary.
6045         * io/open64.c: Likewise.
6046         * io/openat.c: Likewise.
6047         * io/openat64.c: Likewise.
6048         * sysdeps/unix/sysv/linux/open64.c: Likewise.
6049         * sysdeps/unix/sysv/linux/openat.c: Likewise.
6050         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
6051         * io/bits/fcntl2.h: New file.
6052         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
6053         __openat64_2.
6054         * include/bits/fcntl2.h: New file.
6055         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6056         Add open_2.
6057         * sysdeps/unix/sysv/linux/open_2.c: New file.
6058
6059 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
6060
6061         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
6062         as second parameter to handle_intel.
6063
6064         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
6065         the entry.
6066
6067         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
6068         handling to ...
6069         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
6070         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6071         cacheinfo.
6072         * sysdeps/x86_64/memcpy.S: Complete rewrite.
6073         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6074         Patch by Evandro Menezes <evandro.menezes@amd.com>.
6075
6076         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6077
6078 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
6079
6080         [BZ #4525]
6081         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6082         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6083         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6084
6085         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6086
6087         [BZ #4514]
6088         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6089         reinitialize workend at the start of each do_positional format spec
6090         loop, free workstart before do_positional loops.
6091         (printf_unknown): Fix size of work_buffer.
6092         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6093
6094         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6095         (public_sET_STATe): If ms->version < 3, put all chunks into
6096         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6097         chunks.
6098
6099         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6100         * malloc/hooks.c: Likewise.
6101         * malloc/arena.c: Likewise.
6102         * malloc/malloc.c (do_check_malloc_state): Don't assert
6103         n_mmaps is not greater than n_mmaps_max.  This removes the need
6104         for the previous change.
6105
6106         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6107         2007-05-07 commit.
6108
6109 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
6110
6111         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6112         Define for kernel >= 2.6.22.
6113
6114 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
6115
6116         * elf/dl-close.c (_dl_close_worker): When removing object from
6117         global scope, wait for all lookups to finish afterwards.
6118         * elf/dl-open.c (add_to_global): When global scope array must
6119         grow, allocate a new one and free old array only after all
6120         lookups finish.
6121         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6122         (_dl_lookup_symbol_x): Likewise.
6123         * elf/dl-support.c: Define _dl_wait_lookup_done.
6124         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6125         _dl_wait_lookup_done.
6126
6127         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6128         not overlapping with arena.
6129
6130         * malloc/mcheck.c (reallochook): If size==0, free the block.
6131
6132         * rt/tst-shm.c: Use fstat64 instead of fstat.
6133
6134         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6135         __NR_sync_file_range is not defined.
6136
6137 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
6138
6139         Dummy files to prevent stub versions from being used.
6140         * sysdeps/x86_64/fpu/k_cosl.c: New file.
6141         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6142         * sysdeps/x86_64/fpu/k_sinl.c: New file.
6143         * sysdeps/x86_64/fpu/k_tanl.c: New file.
6144
6145         * version.h (VERSION): Set to 2.6.90.
6146
6147 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
6148
6149         * version.h (VERSION): Define to 2.6.
6150         * include/features.h (__GLIBC_MINOR__): Define to 6.
6151
6152         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6153
6154         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6155         sizes.
6156
6157 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
6158
6159         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6160         number of mmaps.  n_mmaps_max is the target.
6161         * malloc/hooks.c: Likewise.
6162         * malloc/arena.c: Likewise.
6163
6164 2007-05-12  Andreas Jaeger  <aj@suse.de>
6165
6166         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6167         getpid.
6168
6169 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
6170
6171         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6172         adding new variables.
6173
6174         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
6175         optimize.  Completely extend global scope array before making the
6176         new entries visible.
6177
6178 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
6179
6180         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6181         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6182         tst-getcpu.
6183
6184         * include/link.h: Move l_version and l_nversion members around to
6185         fill gaps.
6186
6187         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6188
6189         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6190         (__sched_setaffinity_new): If syscall was successful and
6191         RESET_VGETCPU_CACHE is defined, use it before returning.
6192         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6193
6194         * io/sys/stat.h: Make sure struct timespec is defined for
6195         __USE_ATFILE.
6196
6197         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6198         UTIME_OMIT.
6199         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6200         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6201         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6202         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6203         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6204         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6205         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6206         * io/sys/stat.h: Declare utimensat, futimens.
6207         * io/utimensat.c: New file.
6208         * io/futimens.c: New file.
6209         * sysdeps/unix/sysv/linux/utimensat.c: New file.
6210         * sysdeps/unix/sysv/linux/futimens.c: New file.
6211         * io/Makefile (routines): Add utimensat, futimens.
6212         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6213         * sysdeps/unix/sysv/linux/lutimes.c: New file.
6214         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6215         available.
6216
6217         * include/sys/cdefs.h: Redefine __nonnull so that test for
6218         incorrect parameters in the libc code itself are not omitted.
6219
6220 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
6221
6222         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6223         exception in addition to inexact when asked to raise only FE_INEXACT.
6224
6225         [BZ #3427]
6226         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6227         in *envp.
6228
6229 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6230
6231         [BZ #4403]
6232         * string/strfry.c (strfry): Make result more random.
6233
6234 2007-05-07  Richard Henderson  <rth@redhat.com>
6235
6236         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6237         if __NO_LONG_DOUBLE_MATH.
6238         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
6239         available in the compiler, add .arch directive to the assembly.
6240
6241 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
6242
6243         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6244         compat_symbol to GLIBC_2_1.
6245         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6246         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6247         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6248         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6249         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6250         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6251         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6252         libc, not libm.
6253         (__isnanl): New compat_symbol.
6254
6255 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6256             Jakub Jelinek  <jakub@redhat.com>
6257
6258         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6259         (new_heap): Initialize mprotect_size.
6260         (grow_heap): When growing, only mprotect from mprotect_size till
6261         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
6262         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6263
6264 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
6265             Peter Bergner  <bergner@us.ibm.com>
6266
6267         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6268         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
6269         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6270         * sysdeps/powerpc/fpu/fe_mask.c: New file.
6271         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6272         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6273         Call __fe_mask_env() if all FP exceptions disabled.
6274         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6275         from old FPSCR to new fenv to propagate DFP rounding modes.
6276         Call __fe_mask_env() if FP exceptions previously enabled.
6277         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6278         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
6279         transitioning from all exceptions disabled to any exception enabled
6280         or visa versa.
6281         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6282         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
6283         when transitioning from all exceptions disabled to any exception
6284         enabled or visa versa.
6285         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6286         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6289         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6291
6292 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6293
6294         [BZ #4465]
6295         * posix/unistd.h: Remove __THROW from fdatasync.
6296
6297 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
6298
6299         [BZ #4465]
6300         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6301
6302 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6303
6304         * stdio-common/vfprintf.c (process_string_arg): Optimize
6305         ridiculous precision in wide char code printing multi-byte string.
6306         Reported by Jim Meyering <jim@meyering.net>.
6307
6308         [BZ #4131]
6309         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6310         boundaries to work around systems with overlapping binary loading.
6311         Based on a patch by Suzuki <suzuki@in.ibm.com>.
6312
6313 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
6314
6315         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6316         __mbsnrtowcs after last change.
6317
6318         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6319         (get_ident): Likewise.
6320
6321 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6322
6323         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6324         with setting the sticky bit.
6325         * math/test-misc.c (main): Add more truncation tests.
6326
6327 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
6328
6329         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6330         double in the function declaration.
6331         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6332         double in the function declaration.
6333         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6334         float in the function declaration.
6335         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6336         float in the function declaration.
6337
6338         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6339         denormal operands.  Do not generate FP_EX_DENORM exception.
6340         (FP_UNPACK_RAW_EP): Ditto.
6341         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6342         undefined _FP_UNPACK_RAW_E.
6343         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6344         undefined _FP_UNPACK_RAW_EP.
6345         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6346         undefined _FP_PACK_RAW_E.
6347         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6348         undefined _FP_PACK_RAW_EP.
6349
6350         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6351         _FP_FRAC_COPY_2.
6352         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6353         _FP_FRAC_COPY_4.
6354
6355 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
6356             Jakub Jelinek  <jakub@redhat.com>
6357
6358         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6359         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
6360         this case.
6361         * soft-fp/op-common.h (FP_TRUNC): Ditto.
6362
6363 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6364
6365         * math/test-misc.c (main): Add tests for rounding long double
6366         values close to smallest double denormalized value to double.
6367
6368 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
6369
6370         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6371         condition for truncating to 0.  Set sticky bit for such
6372         truncation.
6373
6374 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
6375
6376         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6377         fixed length array for ignore.
6378
6379 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6380
6381         [BZ #4438]
6382         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6383         stack for large precisions.
6384         * stdio-common/test-vfprintf.c (main): Add test for large
6385         precision.
6386
6387 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
6388
6389         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6390         for exponent 0.
6391         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6392
6393         [BZ #4439]
6394         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6395         account in the size check.
6396         * resolv/tst-inet_ntop.c: New test.
6397         * resolv/Makefile (tests): Add tst-inet_ntop.
6398
6399 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6400             Jakub Jelinek  <jakub@redhat.com>
6401
6402         [BZ #4349]
6403         * malloc/malloc.c: Keep separate list for first blocks on the bin
6404         lists with a given size.  This helps skipping over list elements
6405         we know won't fit in two places.
6406         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6407
6408 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
6409
6410         [BZ #4102]
6411         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6412         label to Teredo tunnel addresses 2001://32.
6413
6414 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
6415
6416         * locale/programs/ld-collate.c (collate_read): Allow order_start
6417         after copy.
6418
6419         * locale/programs/ld-collate.c (collate_read): Fix printing of
6420         error message.
6421
6422         [BZ #3213]
6423         * locale/C-translit.h.in: Add entry for U2044.
6424
6425         [BZ #4342]
6426         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6427         hexa-decimal floats without exponent.
6428         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6429
6430 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6431
6432         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
6433         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
6434         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
6435         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
6436         GLIBC_2.6.
6437         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
6438         Add sched_getcpu.
6439
6440 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6441
6442         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
6443         of 0 after the out_fail label.
6444
6445 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6446
6447         [BZ #4406]
6448         * iconv/gconv_charset.h (strip): Allow ':'.
6449         * iconv/iconv_open.c (iconv_open): Adjust comment.
6450
6451 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6452
6453         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
6454         version.
6455
6456 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6457
6458         [BZ #4381]
6459         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
6460         alignment of buffer and tmp_buffer.
6461         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
6462         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
6463         alignment of buffer.
6464         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
6465         bigger than INT_MAX.
6466         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
6467         h_errnop arguments.  Fail if buflen is too small.
6468         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6469
6470 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6471
6472         [BZ #4405]
6473         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6474         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
6475
6476 2007-04-22  Roland McGrath  <roland@redhat.com>
6477
6478         * elf/elf.h (NT_PRXFPREG): New macro.
6479
6480 2007-04-19  Andreas Jaeger  <aj@suse.de>
6481
6482         [BZ #3905]
6483         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6484         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6485         Added.
6486
6487 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
6488
6489         * include/sys/mman.h: Mark madvise hidden.
6490         * misc/madvise.c: Add libc_hidden_def.
6491
6492 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
6493
6494         * nis/nis_domain_of.c (__nis_domain_of): New function.
6495         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
6496         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6497         * nis/nis_call.c (rec_dirsearch): Likewise.
6498         (first_shoot): Likewise.  Remove search_parent_first argument.
6499         (struct nis_server_cache): Rename search_parent_first field
6500         to search_parent.
6501         (nis_server_cache_search, nis_server_cache_add): Rename
6502         search_parent_first argument to search_parent.
6503         (__nisfind_server): Likewise.  If search_parent, call
6504         __nis_domain_of.
6505
6506 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
6507
6508         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
6509
6510 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
6511
6512         [BZ #4368]
6513         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
6514
6515 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
6516
6517         [BZ #4364]
6518         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
6519
6520 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
6521
6522         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
6523         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
6524         current number of locales in SUPPORTED.
6525         (create_archive): Initialize serial.
6526         (enlarge_archive): Preserve aliases rather than duplicating
6527         their locrecs.
6528
6529 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6530
6531         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
6532         after _IO_un_link, not before it.
6533
6534         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
6535         special case handling when wcp == wstartp + 1.  Fix a comment typo.
6536         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
6537
6538 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
6539
6540         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
6541         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
6542         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
6543         Remove __THROW.
6544         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
6545         _IO_file_xsgetn_maybe_mmap): Likewise.
6546         * libio/oldfileops.c (old_do_write): Likewise.
6547         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
6548         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
6549         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
6550         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
6551         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
6552         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
6553         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
6554         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
6555         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
6556         _IO_file_underflow, _IO_file_underflow_mmap,
6557         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
6558         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
6559         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
6560         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
6561         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
6562         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
6563         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
6564         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
6565         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
6566         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
6567         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
6568         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
6569         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
6570         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
6571         _IO_adjust_column_internal, _IO_default_uflow_internal,
6572         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
6573         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
6574         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
6575         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
6576         _IO_file_close_it_internal, _IO_file_underflow_internal,
6577         _IO_file_overflow_internal, _IO_file_attach_internal,
6578         _IO_file_fopen_internal, _IO_file_sync_internal,
6579         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
6580         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
6581         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
6582         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
6583         _IO_seekpos_unlocked): Likewise.
6584         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
6585         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
6586
6587 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
6588
6589         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
6590         argument in xmalloc size computation.
6591
6592 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
6593
6594         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
6595         math_opt_barrier and math_force_eval macros.
6596
6597 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6598
6599         [BZ #3306]
6600         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
6601         * sysdeps/i386/fpu/math_private.h: New file.
6602         * sysdeps/x86_64/fpu/math_private.h: New file.
6603         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
6604         math_force_eval macros.  Use "+m" constraint on asm rather than
6605         "=m" and "m".
6606         * math/s_nextafter.c (__nextafter): Likewise.
6607         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
6608         Likewise.
6609         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6610         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
6611         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6612         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
6613         math_opt_barrier and math_force_eval macros.
6614         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
6615         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
6616         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
6617         (__nexttoward): Use math_opt_barrier and
6618         math_force_eval macros.  Use "+m" constraint on asm rather than
6619         "=m" and "m".  Only use asm to force double result if
6620         FLT_EVAL_METHOD is 2.
6621         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
6622         (__nexttowardf): Use math_opt_barrier and
6623         math_force_eval macros.  Use "+m" constraint on asm rather than
6624         "=m" and "m".  Only use asm to force double result if
6625         FLT_EVAL_METHOD is not 0.
6626         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
6627         (__nexttowardf): Use math_opt_barrier and
6628         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6629         x to float using asm.
6630         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
6631         (__nldbl_nexttowardf): Use math_opt_barrier and
6632         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6633         x to float using asm.
6634         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
6635         (__nexttowardf): Use math_opt_barrier and math_force_eval
6636         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
6637         * math/bug-nextafter.c (zero, inf): New variables.
6638         (main): Add new tests.
6639         * math/bug-nexttoward.c (zero, inf): New variables.
6640         (main): Add new tests.
6641
6642 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
6643
6644         [BZ #3427]
6645         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
6646         exceptions both in SW and MXCSR.
6647         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
6648         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
6649         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6650         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6651         in MXCSR if SSE is available.
6652         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
6653         and ldsodefs.h.
6654         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
6655         Fix comment typo.
6656         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
6657         Return 0 rather than 1.
6658         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
6659         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
6660         * math/test-fenv.c (feholdexcept_tests): New function.
6661         (main): Call it.
6662
6663 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
6664
6665         [BZ #3427]
6666         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6667         in SW.
6668
6669 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6670
6671         [BZ #4344]
6672         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
6673         Reported by David Anderson <davea42@earthlink.net>.
6674
6675 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
6676
6677         * posix/sys/wait.h: Remove unnecessary forward declaration.
6678
6679 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
6680
6681         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
6682         with obj->do_servers after first_shoot.
6683
6684 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
6685
6686         * posix/Makefile (routines): Add sched_cpucount.
6687         (tests): Add tst-cpucount.
6688         * posix/sched_cpucount.c: New file.
6689         * posix/tst-cpucount.c: New file.
6690         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
6691         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
6692         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6693         * posix/sched.h: Define CPU_COUNT.
6694
6695 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6696
6697         * posix/fnmatch.c (STRUCT): Define.
6698         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
6699         * posix/fnmatch_loop.c (struct STRUCT): New type.
6700         (FCT): Add ends argument.  If ends != NULL and normal * is
6701         seen in the pattern, store current pattern and string pointers
6702         and return.  Adjust recursive calls.
6703         (EXT): Adjust FCT callers.
6704         (STRUCT): Undef at the end of the file.
6705         * posix/Makefile (tests): Add tst-fnmatch2.
6706         * posix/tst-fnmatch2.c: New test.
6707
6708 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
6709
6710         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
6711         and 1 on failure.
6712
6713         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
6714         Change last argument to unsigned int.
6715
6716 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
6717
6718         * scripts/check-local-headers.sh: Filter out sys/capability.h.
6719
6720 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
6721
6722         * config.h.in (HAVE_LIBCAP): Add.
6723         * nscd/selinux.h: Include sys/capability.h rather than non-existent
6724         sys/capabilities.h.
6725         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
6726         free_caps.  Cast away const from 4th cap_set_flag argument.
6727
6728 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
6729
6730         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
6731         GLIBC_2.6.
6732         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6733         Add sync_file_range.
6734         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
6735
6736 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
6737
6738         * sysdeps/powerpc/bits/atomic.h
6739         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
6740         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
6741         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6742         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
6743         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6744         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
6745         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
6746         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6747         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6748         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6749         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
6750         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6751         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6752         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6753         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6754         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
6755         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6756         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
6757         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6758         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
6759
6760 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
6761
6762         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6763         (__cache_line_size): Define the variable here.  Add
6764         attribute_hidden, remove weak_extern.
6765         (__libc_start_main): Set __cache_line_size
6766         unconditionally.
6767         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
6768         (__cache_line_size): Define the variable here.  Add
6769         attribute_hidden, remove weak_extern.
6770         (DL_PLATFORM_AUXV): Set __cache_line_size
6771         unconditionally.
6772         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
6773         weak_extern, add attribute_hidden.
6774         (__elf_machine_runtime_setup): Assume __cache_line_size is always
6775         defined in ld.so.
6776         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
6777         definition.
6778         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
6779
6780 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
6781
6782         [BZ #4276]
6783         * timezone/africa: Update from tzdata2007d.
6784         * timezone/asia: Likewise.
6785         * timezone/australasia: Likewise.
6786         * timezone/backward: Likewise.
6787         * timezone/europe: Likewise.
6788         * timezone/iso3166.tab: Likewise.
6789         * timezone/leapseconds: Likewise.
6790         * timezone/northamerica: Likewise.
6791         * timezone/southamerica: Likewise.
6792         * timezone/zone.tab: Likewise.
6793
6794         * timezone/private.h: Update from tzcode2007d.
6795         * timezone/zdump.c: Likewise.
6796         * timezone/zic.c: Likewise.
6797
6798 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
6799
6800         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
6801         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
6802         variables.
6803         (nis_server_cache_search, nis_server_cache_add): New functions.
6804         (__nisfind_server): Use them.  Add dbp and flags argument, if
6805         call __nisbind_create.
6806         (__nisbind_create): Add server_used and current_ep arguments,
6807         only call __nis_findfastest if server_used is ~0.
6808         (__do_niscall2, __prepare_niscall): Adjust callers.
6809         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
6810         ckey_cache_euid, ckey_cache_lock): New variables.
6811         (get_ckey): New function.
6812         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
6813         __pmap_getnisport.  Save __pmap_getnisport result in
6814         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
6815         key.
6816         * nis/nis_lookup.c (nis_lookup): Likewise.
6817         * nis/nis_table.c (nis_list): Likewise.
6818         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
6819         prototypes.
6820
6821         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
6822         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
6823         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
6824         _nss_nisplus_getservbyport_r): Likewise.
6825         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
6826         _nss_nisplus_getnetbyaddr_r): Likewise.
6827         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
6828         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
6829         _nss_nisplus_getntohost_r): Likewise.
6830         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
6831         _nss_nisplus_getrpcbynumber_r): Likewise.
6832
6833 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
6834
6835         * configure.in (libc_cv_gnu89_inline): Only do compile test.
6836         * configure: Rebuilt.
6837
6838         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
6839         bit-fields.
6840         * soft-fp/extended.h (_FP_UNION_E): Likewise.
6841
6842 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
6843
6844         [BZ #2831]
6845         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
6846         bit-fields.
6847
6848 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
6849
6850         * nscd/gai.c: Include alloca.h.
6851         (__libc_use_alloca): Define.
6852
6853 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
6854
6855         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
6856         smaller scopes.
6857         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
6858         (DL_DST_REQUIRED): Adjust user.
6859
6860         * include/dlfcn.h (struct link_map): New forward decl.
6861
6862         * inet/getnameinfo.c: Include stddef.h.
6863         (getnameinfo): Use offsetof.
6864
6865         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
6866
6867         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
6868
6869         * string/strerror_l.c: Include stdlib.h.
6870
6871         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
6872         * config.make.in (gnu89-inline-CFLAGS): New variable.
6873         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
6874         -std=gnu99.
6875         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
6876         * argp/argp.h: Use it.
6877         * bits/mathinline.h: Likewise.
6878         * bits/sigset.h: Likewise.
6879         * bits/string.h: Likewise.
6880         * ctype/ctype.h: Likewise.
6881         * hurd/hurd.h: Likewise.
6882         * hurd/hurd/fd.h: Likewise.
6883         * hurd/hurd/port.h: Likewise.
6884         * hurd/hurd/signal.h: Likewise.
6885         * hurd/hurd/threadvar.h: Likewise.
6886         * hurd/hurd/userlink.h: Likewise.
6887         * io/sys/stat.h: Likewise.
6888         * libio/bits/stdio.h: Likewise.
6889         * libio/bits/stdio2.h: Likewise.
6890         * mach/lock-intern.h: Likewise.
6891         * mach/mach/mig_support.h: Likewise.
6892         * math/bits/cmathcalls.h: Likewise.
6893         * posix/bits/unistd.h: Likewise.
6894         * socket/bits/socket2.h: Likewise.
6895         * stdlib/bits/stdlib.h: Likewise.
6896         * stdlib/stdlib.h: Likewise.
6897         * string/argz.h: Likewise.
6898         * string/bits/string2.h: Likewise.
6899         * string/bits/string3.h: Likewise.
6900         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
6901         * sysdeps/generic/inttypes.h: Likewise.
6902         * sysdeps/generic/machine-lock.h: Likewise.
6903         * sysdeps/generic/machine-sp.h: Likewise.
6904         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6905         * sysdeps/i386/i486/bits/string.h: Likewise.
6906         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
6907         * sysdeps/mach/alpha/machine-lock.h: Likewise.
6908         * sysdeps/mach/alpha/machine-sp.h: Likewise.
6909         * sysdeps/mach/i386/machine-lock.h: Likewise.
6910         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
6911         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
6912         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6913         * sysdeps/s390/bits/string.h: Likewise.
6914         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
6915         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6916         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6917         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
6918         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6919         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
6920         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6921         * wcsmbs/bits/wchar2.h: Likewise.
6922         * wcsmbs/wchar.h: Likewise.
6923         * stdlib/gmp.h: Likewise.  Include <features.h> to get
6924         __extern_inline definition.
6925
6926 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
6927
6928         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
6929         NULL.
6930
6931         [BZ #3919]
6932         * math/libm-test.inc (log_test): Test -Inf and NaN.
6933         (log10_test, log1p_test, log2_test): Test -Inf.
6934         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
6935         FE_INVALID when argument is qNaN.
6936         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
6937         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
6938         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
6939         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
6940         andb $1, %ah with testb $1, %ah, don't test for parity, instead
6941         testb $4, %ah and jump if non-zero.
6942         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
6943         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
6944
6945         [BZ #4101]
6946         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
6947         ancestors with the same depths.
6948         Patch by Niels Moeller <nisse@lysator.liu.se>.
6949         (filter_doc): Don't crash if argp is NULL.
6950         * argp/Makefile (tests): Add tst-argp2.
6951         * argp/tst-argp2.c: New test.
6952
6953         [BZ #4130]
6954         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
6955         open_not_cancel_2.
6956         (updwtmp_file): Likewise.
6957
6958         [BZ #4181]
6959         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
6960         (inet6_opt_append): Don't check extlen is big enough if extbuf
6961         is NULL.
6962         (inet6_opt_finish): Likewise.
6963         * inet/Makefile (tests): Add test-inet6_opt.
6964         * inet/test-inet6_opt.c: New test.
6965
6966         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
6967         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
6968         NLMSG_ERR.  Instead use a page sized buffer.
6969         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
6970         buffer.
6971
6972 2007-03-14  Richard Henderson  <rth@redhat.com>
6973
6974         * sysdeps/alpha/fpu/s_llround.c: New file.
6975         * sysdeps/alpha/fpu/s_llroundf.c: New file.
6976         * sysdeps/alpha/fpu/s_lround.c: New file.
6977         * sysdeps/alpha/fpu/s_lroundf.c: New file.
6978         * sysdeps/alpha/fpu/s_round.c: New file.
6979         * sysdeps/alpha/fpu/s_roundf.c: New file.
6980         * sysdeps/alpha/fpu/s_trunc.c: New file.
6981         * sysdeps/alpha/fpu/s_truncf.c: New file.
6982
6983         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
6984         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
6985         * sysdeps/alpha/fpu/s_floor.c: Likewise.
6986         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
6987         * sysdeps/alpha/fpu/s_rint.c: Likewise.
6988         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6989
6990         * sysdeps/alpha/fpu/s_fmax.S: New file.
6991         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
6992         * sysdeps/alpha/fpu/s_fmin.S: New file.
6993         * sysdeps/alpha/fpu/s_fminf.S: New file.
6994         * sysdeps/alpha/fpu/s_isnan.c: New file.
6995         * sysdeps/alpha/fpu/s_isnanf.c: New file.
6996         * sysdeps/alpha/fpu/s_llrint.c: New file.
6997         * sysdeps/alpha/fpu/s_llrintf.c: New file.
6998         * sysdeps/alpha/fpu/s_lrint.c: New file.
6999         * sysdeps/alpha/fpu/s_lrintf.c: New file.
7000         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
7001         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
7002
7003         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
7004         (__fdimf, fdimf, __fdim, fdim): Remove.
7005         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
7006         (__isnanf, __isnan, __isnanl): New.
7007
7008 2007-03-13  Richard Henderson  <rth@redhat.com>
7009
7010         * sysdeps/ieee754/ldbl-128/Makefile: New file.
7011
7012 2007-03-13  Richard Henderson  <rth@redhat.com>
7013
7014         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
7015         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
7016         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
7017         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
7018         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
7019         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
7020
7021 2007-03-13  Richard Henderson  <rth@redhat.com>
7022
7023         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
7024         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
7025         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
7026         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
7027         Move to dl-auxv.h; initialize instead of extern weak.
7028         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
7029         weak symbol.
7030         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
7031         Extern instead of initialized.
7032
7033 2007-03-13  Richard Henderson  <rth@redhat.com>
7034
7035         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
7036         __sigsuspend_nocancel.
7037
7038 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
7039
7040         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
7041         172.16/12 address range.
7042
7043 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
7044
7045         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
7046         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
7047         message.
7048
7049 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
7050
7051         [BZ #4069]
7052         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
7053         earlier.
7054         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
7055
7056         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
7057         for x qNaN and y either +-inf or non-integer value.
7058         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
7059         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
7060         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7061
7062 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
7063
7064         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
7065         from sysdep_headers.
7066
7067 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
7068
7069         * time/tzfile.c (find_transition): Instead of a linear search try to
7070         guess the transition index, use a linear search if the result is at
7071         most 10 transitions away from the guess or binary search otherwise.
7072
7073 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
7074
7075         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7076         memory reallocation.
7077
7078 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
7079
7080         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7081         and fix some typos.
7082         Optimize use of TOLOWER.
7083
7084         [BZ #3325]
7085         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7086         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7087         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7088
7089         [BZ #3458]
7090         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7091         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7092
7093         [BZ #4076]
7094         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7095         (open_dir_stream): Likewise.
7096         * io/Makefile (tests): Add bug-ftw5.
7097         * io/bug-ftw5.c: New file.
7098
7099         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7100         * nscd/servicescache.c (cache_addserv): Likewise.
7101
7102         * nscd/grpcache.c (cache_addgr): In case a record changed on
7103         refresh, adjust key_copy.
7104
7105         [BZ #4074]
7106         * nscd/pwdcache.c (cache_addpw): In case a record changed on
7107         refresh, adjust key_copy.
7108
7109         [BZ #4070]
7110         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
7111         special cases.
7112         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
7113
7114 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
7115
7116         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7117         optimization.
7118
7119         * stdio-common/vfscanf.c: Small cleanups throughout.
7120
7121 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
7122
7123         [BZ #3325]
7124         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7125         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7126         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7127         Patch by Jared Casper <jaredcasper@gmail.com>.
7128
7129         * sysdeps/unix/closedir.c: Outside libc don't use locking.
7130         * sysdeps/unix/opendir.c: Likewise.
7131         * sysdeps/unix/readdir.c: Likewise.
7132
7133         [BZ #2211]
7134         * stdio-common/vfscanf.c: Handle localized digits etc for floating
7135         point numbers.
7136         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7137
7138         * stdio-common/vfscanf.c: Fix problems in width accounting.
7139         * stdio-common/tst-sscanf.c (double_tests): New tests.
7140         (main): Hook them up.
7141
7142         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
7143         More simplifications of floating-point reader.
7144
7145         * stdio-common/Makefile (tests): Add tst-swscanf.
7146         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7147         testing.
7148         * stdio-common/tst-swscanf.c: New file.
7149
7150 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
7151
7152         [BZ #2633]
7153         * libio/stdio.h: Define struct _IO_FILE in global namespace.
7154         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7155         Remove using for __jmp_buf_tag.
7156         * locale/locale.h (struct lconv): Also define in std namespace.
7157         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7158
7159         [BZ #3842]
7160         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7161         using __libc_enable_secure.
7162
7163         [BZ #3818]
7164         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7165
7166         [BZ #3745]
7167         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7168         of names for ellipsises.
7169
7170         [BZ #3348]
7171         * malloc/memusage.sh: Cleanups.
7172         * debug/xtrace.sh: Quoting and trap changes.
7173
7174 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
7175
7176         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7177
7178         * locale/iso-3166.def: Update entry for Serbia.
7179         * locale/iso-4217.def: Define RSD, remove CSD.
7180
7181         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7182         and 64-bit operations.
7183
7184         [BZ #4040]
7185         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7186         16-bit operations.
7187
7188         * nscd/nscd.c (parse_opt): One more conversion to use send instead
7189         of writev.
7190
7191 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
7192
7193         [BZ #3991]
7194         * assert/assert.h (assert): Simplify.
7195         (assert_perror): Likewise.
7196         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7197
7198         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7199         reqdata.
7200
7201         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7202         change: don't pass NULL in place of an integer.
7203
7204 2007-02-02  Bruno Haible  <bruno@clisp.org>
7205
7206         [BZ #3954]
7207         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7208         Add mapping for U+327E.
7209         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7210         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7211         mapping of 0xD9 0xE8.
7212         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7213         mapping of U+327E.
7214         Reported by Jungshik Shin <jungshik@google.com>.
7215
7216         [BZ #3955]
7217         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7218         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7219         Reported by Jungshik Shin <jungshik@google.com>.
7220
7221 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
7222
7223         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7224         byte variants.
7225
7226         [BZ #4040]
7227         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7228         byte variants.  Patch mostly be tom@tommay.net.
7229
7230 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
7231
7232         [BZ #3996]
7233         * posix/glob.c (attribute_hidden): Define if not defined.
7234         (glob): Unescape dirname, filename or username when needed and not
7235         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
7236         is NULL.  Handle unescaped [ in pattern without closing ].
7237         Don't pass GLOB_CHECK down to recursive glob for directories.
7238         (__glob_pattern_type): New function.
7239         (__glob_pattern_p): Implement using __glob_pattern_type.
7240         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7241         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7242         Remove unreachable code.
7243         * posix/globtest.sh: Add a couple of new tests.
7244
7245 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
7246
7247         * po/ru.po: Update from translation team.
7248
7249 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
7250
7251         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7252         to the list of i486+ CPUs.
7253         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7254
7255 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
7256
7257         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7258         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7259         references.
7260
7261 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
7262
7263         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7264
7265         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7266         * resolv/res_mkquery.c: Define __res_nopt.
7267         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7268         try adding EDNS0 record.
7269         * resolv/res_send.c (send_dg): If request failed with FORMERR and
7270         EDNS0 record was send make sure we don't try it again.
7271         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7272         * include/resolv.h: Declare __res_nopt.
7273
7274 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
7275
7276         [BZ #3944]
7277         * time/strptime_l.c (__strptime_internal): Set have_mon for
7278         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
7279         have been computed from tm_yday and tm_year.  Don't crash
7280         in day_of_the_week or day_of_the_year if not have_mon
7281         and tm_mon contains bogus value.
7282         * time/Makefile (tests): Add tst-strptime3.
7283         * time/tst-strptime3.c: New test.
7284
7285 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
7286
7287         [BZ #3957]
7288         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7289         bit for RE_HAT_LISTS_NOT_NEWLINE.
7290         (build_charclass_op): Remove bogus comment.
7291         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7292         * posix/bug-regex27.c: New test.
7293         * posix/bug-regex28.c: New test.
7294
7295 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
7296
7297         * po/sv.po: Update from translation team.
7298
7299 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
7300
7301         * nscd/nscd_helper.c (open_socket): Minor size optimization.
7302
7303 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
7304
7305         * include/locale.h (__uselocale): Add libc_hidden_proto.
7306         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7307
7308         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7309         gettimeofday.
7310
7311 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
7312
7313         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7314         returning.
7315         (PTR_DEMANGLE): Real definition now that it's not the same as
7316         PRT_MANGLE anymore.
7317         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7318
7319         * string/strerror_l.c: New file.
7320         * string/Makefile (routines): Add strerror_l.
7321         * string/string.h: Declare strerror_l.
7322         * string/Versions: Export strerror_l for GLIBC_2.6.
7323
7324 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
7325
7326         * nscd/nscd_helper.c (open_socket): Now takes request type and key
7327         as parameter.  Construct request record.  Try sending request
7328         before the first poll use, it usually succeeds.  Adjust all
7329         callers.
7330         * nscd/nscd-client.h: Define MAXKEYLEN.
7331         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
7332
7333 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
7334
7335         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7336         from return value.
7337         * nscd/nscd_helper.c: Include string.h.
7338         (__nscd_cache_search): Remove const qualifier from return value.
7339         On strict alignment architectures check hash entry and data head
7340         alignment.
7341         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7342         mmapped data during GC cycle contains garbage.  If
7343         __nscd_drop_map_ref fails, decrement mapped->counter when returning
7344         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7345         dropped to 0.
7346         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7347         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7348         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7349         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7350         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7351
7352 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
7353
7354         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7355
7356 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
7357
7358         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7359         names not numbers in cfi_*.
7360
7361 2007-01-26  Andreas Jaeger  <aj@suse.de>
7362
7363         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
7364         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
7365         Correct values of PER_HPUX and PER_OSF4.
7366
7367 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
7368
7369         * elf/dl-minimal.c: Undefine _itoa first.
7370         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7371         * malloc/mtrace.c: Revert last change.
7372         * posix/wordexp.c: Likewise.
7373
7374 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
7375
7376         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7377         and __geode__ to the list of i486+ CPUs.
7378         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7379
7380 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
7381
7382         * stdio-common/_itoa.c: Include <limits.h>.
7383         * stdio-common/_itowa.c: Likewise.
7384
7385 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
7386
7387         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7388         platforms.
7389         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7390         64-bit platforms.
7391         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7392         possible.
7393         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7394         if possible.
7395
7396         [BZ #3902]
7397         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7398         * stdio-common/Makefile (tests): Add bug17.
7399         * stdio-common/bug17.c: New file.
7400
7401 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
7402
7403         * iconvdata/brf.c: New file.
7404         * iconvdata/testdata/BRF: New file.
7405         * iconvdata/testdata/BRF..UTF8: New file.
7406         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7407         * iconvdata/Makefile: Add rules to build BRF.
7408         * iconvdata/TESTS: Add BRF entry.
7409         * iconvdata/gconv-modules: Likewise.
7410         * iconvdata/tst-tables.sh: Likewise.
7411
7412 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
7413
7414         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7415         type `long long int', not `long int'.
7416         (wcstoq): Likewise.
7417
7418 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
7419
7420         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7421         of values on 64-bit platforms which are too large.
7422
7423 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
7424             Joe Kerian  <jkerian@us.us.ibm.com>
7425
7426         [BZ #2749]
7427         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7428         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
7429         (__copysignl): Use signbit() for comparison.
7430         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7431         SET_LDOUBLE_WORDS64.
7432
7433         [BZ #2423, #2749]
7434         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
7435         (__ceill): Remove calls to fegetround(), fesetround().
7436         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7437         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7438         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7439
7440 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
7441
7442         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
7443
7444         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
7445
7446 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
7447
7448         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
7449         demangle pointer.
7450         * csu/libc-start.c: Likewise.
7451
7452 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
7453
7454         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
7455         really work anyway.
7456
7457 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7458
7459         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
7460         users.
7461         (handle_request): Remove unnecessary tests.
7462
7463         * nscd/cache.c (cache_add): Record the failure to add to the cache.
7464
7465 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
7466
7467         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7468         workbits in semi-raw fraction.
7469
7470         * math/test-misc.c: Add new tests.
7471
7472 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
7473
7474         * math/basic-test.c: Include test-skeleton.c.
7475         (TEST_TRUNC): Define.
7476         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7477         (main): Rename to ...
7478         (do_test): ...this.  Run new tests.
7479         (TEST_FUNCTION): Define.
7480
7481 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
7482             Joe Kerian  <jkerian@us.us.ibm.com>
7483
7484         [BZ #2749]
7485         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7486         handling for high words.
7487         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7488         and overflow for infinity.
7489
7490 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7491
7492         * nscd/connections.c (handle_request): Add a __builtin_expect.
7493
7494         * nscd/connections.c (serv2db): Change type into structure which
7495         also says whether this is a request for data.  Renamed to
7496         servinfo.  All users changed.
7497         (handle_request): Much simpler test whether we should search the cache.
7498
7499         * nscd/connections.c (handle_request): Fix thinko in selinux test
7500         invocation.
7501
7502         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7503         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7504         it before getting dl_load_lock and then relock.
7505         (_dl_lookup_symbol_x): Pass flags to add_dependency.
7506         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
7507         case we unlocked the scope.
7508         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
7509         _dl_lookup_symbol_x in case we locked the scope.
7510         (_dl_profile_fixup): Likewise.
7511         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
7512         set DL_LOOKUP_SCOPE_LOCK.
7513
7514 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
7515
7516         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
7517         CFLAGS-getsrvbynpt_r.c.
7518         * nscd/getsrvbynm_r.c: New file.
7519         * nscd/getsrvbypt_r.c: New file.
7520         * nscd/nscd_getserv_r.c: New file.
7521         * nscd/servicescache.c: New file.
7522         * nscd/Makefile (routines): Add nscd_getserv_r.
7523         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
7524         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
7525         CFLAGS-getsrvbypt_r.c.
7526         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
7527         table.  Add entries for services database.
7528         * nscd/connections.c (serv2str): Mark as const.  Add entries for
7529         services database.
7530         (dbs): Add .reset_res and servdb initialization.
7531         (serv2db): Add entries for services database.
7532         (verify_persistent_db): Accept dbnr == servdb.
7533         (invalidate_cache): Rewrite database name recognition to use a table.
7534         Call res_init() if .reset_res is set for database.
7535         (handle_request): Add code to handle services database.
7536         * nscd/gai.c: Don't define __getservbyname_r.
7537         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
7538         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
7539         (serv_response_header): Define.
7540         (struct datahead): Add serv_response_header member.
7541         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
7542         using table.
7543         * nscd/nscd.conf: Add entries for services database.
7544         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
7545         Declare serv_iov_disabled.
7546         Declare addservbyname, readdservbyname, addservbyport, and
7547         readdservbyport.
7548         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
7549         (find_db): Fix error message.
7550         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
7551         __nscd_getservbyname_r, and __nscd_getservbyport_r.
7552         * nscd/selinux.c (perms): Add entries for services database.
7553         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
7554         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
7555
7556         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
7557         * nscd/hstcache.c: Likewise.
7558         * nscd/pwdcache.c: Likewise.
7559
7560         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
7561         computation of keylen.
7562
7563         * include/string.h: Only redefine strndupa if this is really for
7564         libc code.
7565
7566 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
7567
7568         * nscd/nscd_gethst_r.c: Minor cleanups.
7569
7570         * nscd/connections.c (handle_request): Check selinux permissions
7571         for all non-admin commands.
7572
7573         * sysdeps/i386/i486/bits/atomic.h: Define
7574         atomic_compare_and_exchange_val_acq,
7575         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
7576         using __sync_* built-ins for gcc >= 4.1.
7577         * sysdeps/x86_64/bits/atomic.h: Likewise.
7578
7579         [BZ #3840]
7580         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
7581         and .oS.d files.
7582
7583 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
7584
7585         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
7586         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
7587         (do_test): Check errno and exit(0) if ENOSYS.
7588
7589 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7590
7591         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
7592         thousands separators.
7593         * stdlib/Makefile: Add rules to build and run tst-strtod4.
7594         * stdlib/tst-strtod4.c: New test.
7595
7596         [BZ #3855]
7597         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
7598         hexadecimal digit should accept just the initial 0.
7599         * stdlib/tst-strtod2.c (tests): New variable.
7600         (do_test): Run several tests rather than just one.
7601
7602 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7603
7604         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
7605         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
7606
7607 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
7608
7609         * io/fts.c: Make sure fts_cur is always valid after return from
7610         fts_read.
7611         Patch by Miloslav Trmac <mitr@redhat.com>.
7612
7613 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
7614
7615         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
7616         (R_MIPS_NUM): Bump by 1.
7617
7618 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
7619
7620         * posix/execvp.c: Include alloca.h.
7621         (allocate_scripts_argv): Renamed to...
7622         (scripts_argv): ... this.  Don't allocate buffer here nor count
7623         arguments.
7624         (execvp): Use alloca if possible.
7625         * posix/Makefile: Add rules to build and run tst-vfork3 test.
7626         * posix/tst-vfork3.c: New test.
7627
7628 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
7629
7630         * string/Makefile (tst-strxfrm2-ENV): Define.
7631         * stdlib/Makefile (tst-strtod3-ENV): Define.
7632
7633 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
7634
7635         * posix/getconf.c: Update copyright year.
7636         * nss/getent.c: Likewise.
7637         * iconv/iconvconfig.c: Likewise.
7638         * iconv/iconv_prog.c: Likewise.
7639         * elf/ldconfig.c: Likewise.
7640         * catgets/gencat.c: Likewise.
7641         * csu/version.c: Likewise.
7642         * elf/ldd.bash.in: Likewise.
7643         * elf/sprof.c (print_version): Likewise.
7644         * locale/programs/locale.c: Likewise.
7645         * locale/programs/localedef.c: Likewise.
7646         * nscd/nscd.c (print_version): Likewise.
7647         * debug/xtrace.sh: Likewise.
7648         * malloc/memusage.sh: Likewise.
7649         * malloc/mtrace.pl: Likewise.
7650         * debug/catchsegv.sh: Likewise.
7651
7652 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
7653
7654         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
7655         attempts.
7656
7657 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
7658
7659         * posix/wordexp.c: Remove some unnecessary tests.
7660
7661 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
7662
7663         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
7664         blacklist the group till after we look it up.
7665
7666 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
7667
7668         * include/atomic.h (atomic_forced_read): New macro.
7669
7670 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
7671
7672         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
7673
7674 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
7675
7676         * nss/getXXbyYY_r.c: Include atomic.h.
7677         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
7678         add atomic_write_barrier () in between.
7679
7680         * stdlib/Makefile (tests): Add tst-makecontext.
7681         * stdlib/tst-makecontext.c: New test.
7682
7683         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
7684         (__makecontext): Don't realign uc_mcontext.uc_regs.
7685
7686 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
7687
7688         * elf/dl-support.c: Include dl-procinfo.h.
7689         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
7690         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
7691         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
7692         Define.
7693         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
7694         hardcoded constants.
7695         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
7696         PPC_PLATFORM_* macros for array designators.
7697
7698 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
7699
7700         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
7701         names to the beginning.
7702         (_dl_powerpc_platforms): Add "power6x".
7703         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
7704         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
7705         (_DL_PLATFORMS_COUNT): Increase.
7706         (_dl_string_platform): Handle power6x case.
7707         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
7708         PPC_FEATURE_POWER6_EXT): Define.
7709         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
7710
7711 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
7712
7713         [BZ #3747]
7714         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
7715         [-2^31 .. 2^31) range.
7716         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
7717         targets.
7718         * stdlib/tst-rand48-2.c: New test.
7719         * stdlib/Makefile (tests): Add tst-rand48-2.
7720
7721 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
7722
7723         * misc/tst-pselect.c (do_test): Fix sigblock argument.
7724
7725 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
7726
7727         * misc/tst-pselect.c (do_test): Make sure the helper process is
7728         terminating when the test is aborted.
7729
7730 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
7731
7732         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
7733         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7734         Handle relatime mount option.
7735
7736         [BZ #2337]
7737         * libio/Makefile (tests): Add tst-setvbuf1.
7738         * libio/tst-setvbuf1.c: New file.
7739
7740 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
7741
7742         [BZ #2337]
7743         * libio/genops.c (__uflow): Fix a typo.
7744         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
7745         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
7746         the narrow buffer size.
7747
7748 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
7749
7750         [BZ #2337]
7751         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
7752         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
7753         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
7754         in _flags.
7755         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
7756         _IO_wstr_finish): Likewise.
7757         * libio/wmemstream.c (open_wmemstream): Likewise.
7758         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
7759         even for wide streams.
7760
7761 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
7762
7763         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
7764         kernel-features.h.
7765
7766 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
7767
7768         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
7769         separators also if no non-zero digits found.
7770         * stdlib/Makefile (tests): Add tst-strtod3.
7771
7772 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
7773
7774         [BZ #3632]
7775         * include/features.h: Fix comment about default value for
7776         _POSIX_C_SOURCE.
7777
7778         [BZ #3664]
7779         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
7780         empty parsed strings.
7781         * stdlib/Makefile (tests): Add tst-strtod2.
7782         * stdlib/tst-strtod2.c: New file.
7783
7784         [BZ #3673]
7785         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
7786         computation.
7787         * stdlib/Makefile (tests): Add tst-atof2.
7788         * stdlib/tst-atof2.c: New file.
7789
7790         [BZ #3674]
7791         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
7792         correctly if removing trailing zero of hex-float.
7793         * stdlib/Makefile (tests): Add tst-atof1.
7794         * stdlib/tst-atof1.c: New file.
7795
7796 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
7797
7798         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
7799         Start searching for next comma at p rather than rest.
7800         * misc/Makefile (tests): Add tst-mntent2.
7801         * misc/tst-mntent2.c: New test.
7802
7803         * misc/getusershell.c (initshells): Check for integer overflows.
7804         Make strings buffer one bigger as fgets always succeeds when second
7805         argument is 1.  Don't use calloc for shells array.  Disallow
7806         / as shell.
7807
7808 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
7809
7810         * malloc/memusage.c: Handle realloc with new size of zero and
7811         non-NULL pointer correctly.
7812         (me): Really write first record twice.
7813         (struct entry): Make format bi-arch safe.
7814         (dest): Write out more realloc statistics.
7815         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
7816
7817 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
7818
7819         * nis/nis_subr.c (nis_getnames): Revert last change.
7820
7821 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
7822
7823         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
7824         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
7825         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
7826         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
7827         ENOTTY.
7828         * io/Makefile: Add rules to build and run tst-ttyname_r test.
7829         * io/tst-ttyname_r.c: New test.
7830
7831 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7832
7833         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
7834
7835 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
7836
7837         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
7838         jump table entries.
7839
7840 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
7841
7842         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
7843         `clone' function to ensure proper unwinding stop of gdb.
7844         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
7845
7846 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
7847
7848         * nscd/nscd.init: Remove obsolete and commented-out -S option
7849         handling.
7850
7851 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
7852
7853         [BZ #3514]
7854         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
7855
7856         [BZ #3515]
7857         * manual/string.texi (strtok): Remove duplicate paragraph.
7858
7859 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
7860
7861         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
7862         libgcc not supporting `rflags' unwinding (register # >= 17).
7863
7864 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
7865
7866         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
7867         succeeded.
7868
7869 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
7870             Jakub Jelinek  <jakub@redhat.com>
7871             Jan Kratochvil  <jan.kratochvil@redhat.com>
7872
7873         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
7874         unwind information.
7875         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
7876         'restore_rt' even in the 'signal' directory.
7877         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
7878
7879 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
7880
7881         [BZ #3559]
7882         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
7883         malloc crashed.  Don't allocate memory unnecessarily in each
7884         loop.
7885
7886 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
7887
7888         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
7889
7890 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
7891
7892         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
7893
7894 2006-11-18  Bruno Haible  <bruno@clisp.org>
7895
7896         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
7897         __sysconf only after having tried to call getgroups32.
7898
7899 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
7900
7901         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
7902         addresses for IPv4 queries if they can be mapped.
7903
7904 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
7905
7906         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
7907         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
7908         (signmask): Add .size directive.
7909         (othermask): Add .type directive.
7910
7911 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
7912
7913         * po/nl.po: Update from translation team.
7914
7915         * timezone/zdump.c: Redo fix for BZ #3137.
7916
7917 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
7918
7919         * nss/nss_files/files-alias.c (get_next_alias): Set line back
7920         to first_unused after parsing :include: file.
7921
7922 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
7923
7924         * timezone/africa: Update from tzdata2006o.
7925         * timezone/antarctica: Likewise.
7926         * timezone/asia: Likewise.
7927         * timezone/australasia: Likewise.
7928         * timezone/backward: Likewise.
7929         * timezone/europe: Likewise.
7930         * timezone/iso3166.tab: Likewise.
7931         * timezone/northamerica: Likewise.
7932         * timezone/southamerica: Likewise.
7933         * timezone/zone.tab: Likewise.
7934
7935         * time/tzfile.c (__tzfile_read): Extend to handle new file format
7936         on machines with 64-bit time_t.
7937
7938         * timezone/checktab.awk: Update from tzcode2006o.
7939         * timezone/ialloc.c: Likewise.
7940         * timezone/private.h: Likewise.
7941         * timezone/scheck.c: Likewise.
7942         * timezone/tzfile.h: Likewise.
7943         * timezone/tzselect.ksh: Likewise.
7944         * timezone/zdump.c: Likewise.
7945         * timezone/zic.c: Likewise.
7946
7947         [BZ #3483]
7948         * elf/ldconfig.c (main): Call setlocale and textdomain.
7949         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
7950
7951         [BZ #3480]
7952         * manual/argp.texi: Fix typos.
7953         * manual/charset.texi: Likewise.
7954         * manual/errno.texi: Likewise.
7955         * manual/filesys.texi: Likewise.
7956         * manual/lang.texi: Likewise.
7957         * manual/maint.texi: Likewise.
7958         * manual/memory.texi: Likewise.
7959         * manual/message.texi: Likewise.
7960         * manual/resource.texi: Likewise.
7961         * manual/search.texi: Likewise.
7962         * manual/signal.texi: Likewise.
7963         * manual/startup.texi: Likewise.
7964         * manual/stdio.texi: Likewise.
7965         * manual/sysinfo.texi: Likewise.
7966         * manual/syslog.texi: Likewise.
7967         * manual/time.texi: Likewise.
7968         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7969
7970         [BZ #3465]
7971         * sunrpc/clnt_raw.c: Minimal message improvements.
7972         * sunrpc/pm_getmaps.c: Likewise.
7973         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
7974         * nis/nis_print_group_entry.c: Likewise.
7975         * locale/programs/repertoire.c: Likewise.
7976         * locale/programs/charmap.c: Likewise.
7977         * malloc/memusage.sh: Likewise.
7978         * elf/dl-deps.c: Likewise.
7979         * locale/programs/ld-collate.c: Likewise.
7980         * libio/vswprintf.c: Likewise.
7981         * malloc/memusagestat.c: Likewise.
7982         * sunrpc/auth_unix.c: Likewise.
7983         * sunrpc/rpc_main.c: Likewise.
7984         * nscd/cache.c: Likewise.
7985         * locale/programs/repertoire.c: Unify output messages.
7986         * locale/programs/charmap.c: Likewise.
7987         * locale/programs/ld-ctype.c: Likewise.
7988         * locale/programs/ld-monetary.c: Likewise.
7989         * locale/programs/ld-numeric.c: Likewise.
7990         * locale/programs/ld-time.c: Likewise.
7991         * elf/ldconfig.c: Likewise.
7992         * nscd/selinux.c: Likewise.
7993         * elf/cache.c: Likewise.
7994         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
7995
7996         [BZ #3451]
7997         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
7998         change atomic.
7999         (ceil): Likewise.
8000
8001 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8002
8003         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
8004         if N is one bigger than return value.
8005         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
8006         and l1 last arguments, if buf is defined, verify the return value
8007         equals to strlen (buf) and verify no byte beyond passed length
8008         is modified.
8009
8010 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8011
8012         * po/sv.po: Update from translation team.
8013
8014 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8015
8016         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
8017         noinline attribute.
8018
8019 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8020
8021         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
8022         noinline attribute.
8023
8024         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
8025         Use __new_sys_siglist instead of _sys_siglist_internal as
8026         second macro argument.
8027         (_old_sys_siglist): Use declare_symbol_alias macro instead of
8028         strong_alias.
8029
8030 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8031
8032         [BZ #3493]
8033         * posix/unistd.h (sysconf): Remove const attribute.
8034
8035         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
8036         temporary or deprecated addresses.
8037         Patch by Sridhar Samudrala <sri@us.ibm.com>.
8038
8039         * string/Makefile (tests): Add tst-strxfrm2.
8040         * string/tst-strxfrm2.c: New file.
8041
8042 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
8043
8044         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
8045         rather than r->r_brk.
8046
8047 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
8048
8049         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
8050         optimization even if needed > n.
8051
8052         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
8053         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
8054         return false, otherwise return true.
8055         (cache_rpath): Return decompose_rpath return value.
8056
8057 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
8058
8059         * include/libc-symbols.h (declare_symbol): Rename to...
8060         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
8061         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
8062         .size directive.
8063         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
8064         changes.
8065         * sysdeps/gnu/siglist.c: Likewise.
8066
8067 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
8068
8069         * sysdeps/powerpc/fpu/bits/mathinline.h
8070         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8071         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
8072
8073 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
8074
8075         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8076         Update handling of cache descriptor 0x49 for new models.
8077         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8078         Likewise.
8079
8080 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
8081
8082         * malloc/memusage.c (dest): Reset not_me back to false after
8083         printing statistics.
8084
8085 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
8086
8087         * configure.in: Work around ld --help change and avoid -z relro
8088         test completely if the architecture doesn't care about security.
8089
8090 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
8091
8092         * po/sv.po: Update from translation team.
8093
8094 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
8095
8096         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8097         generate compatibility version.
8098
8099 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
8100
8101         * configure.in: Relax -z relro requirement a bit.
8102
8103         * po/sv.po: Update from translation team.
8104
8105 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
8106
8107         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8108         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8109         * elf/dl-close.c (_dl_close_worker): Likewise.
8110         * elf/dl-open.c (_dl_open_worker): Likewise.
8111         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8112
8113 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
8114
8115         * configure.in: Require assembler support for visibility, compiler
8116         support for visibility and aliases, linker support for various -z
8117         options.
8118         * Makeconfig: Remove conditional code which now is unnecessary.
8119         * config.h.in: Likewise.
8120         * config.make.in: Likewise.
8121         * dlfcn/Makefile: Likewise.
8122         * elf/Makefile: Likewise.
8123         * elf/dl-load.c: Likewise.
8124         * elf/rtld.c: Likewise.
8125         * include/libc-symbols.h: Likewise.
8126         * include/stdio.h: Likewise.
8127         * io/Makefile: Likewise.
8128         * io/fstat.c: Likewise.
8129         * io/fstat64.c: Likewise.
8130         * io/fstatat.c: Likewise.
8131         * io/fstatat64.c: Likewise.
8132         * io/lstat.c: Likewise.
8133         * io/lstat64.c: Likewise.
8134         * io/mknod.c: Likewise.
8135         * io/mknodat.c: Likewise.
8136         * io/stat.c: Likewise.
8137         * io/stat64.c: Likewise.
8138         * libio/stdio.c: Likewise.
8139         * nscd/Makefile: Likewise.
8140         * stdlib/Makefile: Likewise.
8141         * stdlib/atexit.c: Likewise.
8142         * sysdeps/generic/ldsodefs.h: Likewise.
8143         * sysdeps/i386/dl-machine.h: Likewise.
8144         * sysdeps/i386/sysdep.h: Likewise.
8145         * sysdeps/i386/i686/memcmp.S: Likewise.
8146         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8147         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8148         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8149
8150         * Makerules: USE_TLS support is now default.
8151         * tls.make.c: Likewise.
8152         * csu/Versions: Likewise.
8153         * csu/libc-start.c: Likewise.
8154         * csu/libc-tls.c: Likewise.
8155         * csu/version.c: Likewise.
8156         * dlfcn/dlinfo.c: Likewise.
8157         * elf/dl-addr.c: Likewise.
8158         * elf/dl-cache.c: Likewise.
8159         * elf/dl-close.c: Likewise.
8160         * elf/dl-iteratephdr.c: Likewise.
8161         * elf/dl-load.c: Likewise.
8162         * elf/dl-lookup.c: Likewise.
8163         * elf/dl-object.c: Likewise.
8164         * elf/dl-open.c: Likewise.
8165         * elf/dl-reloc.c: Likewise.
8166         * elf/dl-support.c: Likewise.
8167         * elf/dl-sym.c: Likewise.
8168         * elf/dl-sysdep.c: Likewise.
8169         * elf/dl-tls.c: Likewise.
8170         * elf/ldconfig.c: Likewise.
8171         * elf/rtld.c: Likewise.
8172         * elf/tst-tls-dlinfo.c: Likewise.
8173         * elf/tst-tls1.c: Likewise.
8174         * elf/tst-tls10.h: Likewise.
8175         * elf/tst-tls14.c: Likewise.
8176         * elf/tst-tls2.c: Likewise.
8177         * elf/tst-tls3.c: Likewise.
8178         * elf/tst-tls4.c: Likewise.
8179         * elf/tst-tls5.c: Likewise.
8180         * elf/tst-tls6.c: Likewise.
8181         * elf/tst-tls7.c: Likewise.
8182         * elf/tst-tls8.c: Likewise.
8183         * elf/tst-tls9.c: Likewise.
8184         * elf/tst-tlsmod1.c: Likewise.
8185         * elf/tst-tlsmod13.c: Likewise.
8186         * elf/tst-tlsmod13a.c: Likewise.
8187         * elf/tst-tlsmod14a.c: Likewise.
8188         * elf/tst-tlsmod2.c: Likewise.
8189         * elf/tst-tlsmod3.c: Likewise.
8190         * elf/tst-tlsmod4.c: Likewise.
8191         * elf/tst-tlsmod5.c: Likewise.
8192         * elf/tst-tlsmod6.c: Likewise.
8193         * include/errno.h: Likewise.
8194         * include/link.h: Likewise.
8195         * include/tls.h: Likewise.
8196         * locale/global-locale.c: Likewise.
8197         * locale/localeinfo.h: Likewise.
8198         * malloc/arena.c: Likewise.
8199         * malloc/hooks.c: Likewise.
8200         * malloc/malloc.c: Likewise.
8201         * resolv/Versions: Likewise.
8202         * sysdeps/alpha/dl-machine.h: Likewise.
8203         * sysdeps/alpha/libc-tls.c: Likewise.
8204         * sysdeps/generic/ldsodefs.h: Likewise.
8205         * sysdeps/generic/tls.h: Likewise.
8206         * sysdeps/i386/dl-machine.h: Likewise.
8207         * sysdeps/ia64/dl-machine.h: Likewise.
8208         * sysdeps/ia64/libc-tls.c: Likewise.
8209         * sysdeps/mach/hurd/fork.c: Likewise.
8210         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8211         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8212         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8213         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8214         * sysdeps/s390/libc-tls.c: Likewise.
8215         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8216         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8217         * sysdeps/sh/dl-machine.h: Likewise.
8218         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8219         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8220         * sysdeps/x86_64/dl-machine.h: Likewise.
8221
8222         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8223         split out locking and parameter checking.
8224         (_dl_close): Call _dl_close_worker after locking and checking.
8225         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8226         _dl_close.
8227         * elf/Makefile: Add rules to build and run tst-thrlock.
8228         * elf/tst-thrlock.c:  New file.
8229
8230         [BZ #3426]
8231         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8232         reality.
8233
8234         [BZ #3429]
8235         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
8236         we are sure we do not need it anymore for _dl_close.  Also move
8237         the asserts inside the lock region.
8238         Patch mostly by Suzuki <suzuki@in.ibm.com>.
8239
8240 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
8241
8242         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8243         argument.
8244         (_dl_lookup_symbol_x): Adjust caller.
8245
8246         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8247         _ns_global_scope.
8248         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8249
8250         * elf/dl-libc.c: Revert l_scope name changes.
8251         * elf/dl-load.c: Likewise.
8252         * elf/dl-object.c: Likewise.
8253         * elf/rtld.c: Likewise.
8254         * elf/dl-close.c (_dl_close): Likewise.
8255         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
8256         always use __rtld_mrlock_{change,done}.  Always free old scope list
8257         here if not l_scope_mem.
8258         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8259         change.  Never free scope list here.  Just __rtld_mrlock_lock before
8260         the lookup and __rtld_mrlock_unlock it after the lookup.
8261         * elf/dl-sym.c: Likewise.
8262         * include/link.h (struct r_scoperec): Remove.
8263         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8264         with l_scope_mem and l_scoperec_lock with l_scope_lock.
8265
8266 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
8267
8268         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8269
8270 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8271
8272         * configure.in: Disable building profile libraries by default.
8273
8274 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8275
8276         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8277         as signed longs, check for x_base + pos overflow.
8278         * sunrpc/Makefile (tests): Add tst-xdrmem2.
8279         * sunrpc/tst-xdrmem2.c: New test.
8280
8281 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8282
8283         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8284         _dl_lookup_symbol_x code.
8285
8286 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8287
8288         * elf/dl-runtime.c: Include sysdep-cancel.h.
8289         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8290         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
8291         instead of catomic_* macros.
8292         * elf/dl-sym.c: Include sysdep-cancel.h.
8293         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8294         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8295         * elf/dl-close.c: Include sysdep-cancel.h.
8296         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8297         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8298         * elf/dl-open.c: Include sysdep-cancel.h.
8299         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8300         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8301
8302 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8303
8304         [BZ #3313]
8305         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8306         fastbin rather than end of fastbin array.
8307
8308 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8309
8310         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8311         body macro.
8312         * sysdeps/x86_64/bits/atomic.h
8313         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8314         (catomic_decrement): Use correct body macro.
8315
8316 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8317
8318         * include/atomic.h: Add a unique prefix to all local variables
8319         in macros.
8320         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8321
8322 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
8323
8324         [BZ #3369]
8325         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8326         and 7.
8327
8328 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
8329
8330         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8331
8332 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
8333
8334         [BZ #3313]
8335         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8336         determine highest fast bin to consolidate, always look into all of
8337         them.
8338         (do_check_malloc_state): Only require for empty bins for large
8339         sizes in main arena.
8340
8341         * libio/stdio.h: Add more __wur attributes.
8342
8343         * elf/dl-minimal.c (realloc): Optimize last patch.
8344
8345 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
8346
8347         [BZ #3352]
8348         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8349         and use memcpy() if it does.
8350
8351 2006-11-12  Andreas Jaeger  <aj@suse.de>
8352
8353         [BZ #2510]
8354         * manual/search.texi (Hash Search Function): Clarify.
8355         (Array Search Function): Clarify.
8356
8357 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
8358
8359         [BZ #2830]
8360         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8361         shifting.
8362         * math/atest-exp2.c (read_mpn_hex): Likewise.
8363         * math/atest-sincos.c (main): Likewise.
8364
8365 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8366
8367         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8368         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8369         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8370         version GLIBC_2.6.
8371         * Versions.def: Add GLIBC_2.6 for libc.
8372
8373         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8374
8375         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8376
8377 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
8378
8379         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8380
8381         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8382
8383         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8384         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8385
8386 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8387
8388         * include/atomic.c: Define catomic_* operations.
8389         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
8390         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8391         * malloc/memusage.c: Likewise.
8392         * gmon/mcount.c: Likewise.
8393         * elf/dl-close.c: Likewise.
8394         * elf/dl-open.c: Likewise.
8395         * elf/dl-profile.c: Likewise.
8396         * elf/dl-sym.c: Likewise.
8397         * elf/dl-runtime.c: Likewise.
8398         * elf/dl-fptr.c: Likewise.
8399         * resolv/res_libc.c: Likewise.
8400
8401 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
8402
8403         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8404         components which lack them.
8405
8406         * nis/nis_subr.c (nis_getnames): Make sure that we always return
8407         at least one entry consisting of the parameter concatenated with
8408         the domain.
8409
8410 2006-10-10  Roland McGrath  <roland@frob.com>
8411
8412         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8413         * sysdeps/mach/hurd/futimes.c: Likewise.
8414         * sysdeps/mach/hurd/lutimes.c: Likewise.
8415
8416 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
8417             Jakub Jelinek  <jakub@redhat.com>
8418
8419         Implement reference counting of scope records.
8420         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8421         from the list in objects which remain.  Always allocate new scope
8422         record.
8423         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8424         don't resize, allocate a new one.
8425         * elf/dl-runtime.c: Update reference counters before using a scope
8426         array.
8427         * elf/dl-sym.c: Likewise.
8428         * elf/dl-libc.c: Adjust for l_scope name change.
8429         * elf/dl-load.c: Likewise.
8430         * elf/dl-object.c: Likewise.
8431         * elf/rtld.c: Likewise.
8432         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
8433         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
8434         Add l_scoperec_lock.
8435         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
8436         * sysdeps/generic/rtld-lowlevel.h: New file.
8437
8438         * include/atomic.h: Rename atomic_and to atomic_and_val and
8439         atomic_or to atomic_or_val.  Define new macros atomic_and and
8440         atomic_or which do not return values.
8441         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
8442         Various cleanups.
8443         * sysdeps/i386/i486/bits/atomic.h: Likewise.
8444
8445         * po/sv.po: Update from translation team.
8446
8447 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
8448
8449         * Versions.def: Add GLIBC_2.6 to libpthread.
8450
8451         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
8452         (versioned_symbol): Likewise.
8453         (compat_symbol): Likewise.
8454
8455         * po/tr.po: Update from translation team.
8456
8457 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8458
8459         * nis/Banner: Removed.  It's been integral part forever and the
8460         author info is incomplete anyway.
8461         * libio/Banner: Likewise.
8462
8463         * nis/nis_table.c (nis_list): If __follow_path fails in the new
8464         code, make sure the nis_freeresult call doesn't crash and that the
8465         result is reported correctly.
8466
8467 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
8468
8469         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8470         when callback is NULL.
8471
8472         * nis/Versions (libnss_nisplus): Add
8473         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8474         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8475         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8476         _nss_create_tablename): Rename to...
8477         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8478         ... these.  No longer static.
8479         (internal_setgrent): Adjust users.
8480         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8481         Don't use locking around _nss_grp_create_tablename call.
8482         * nis/nss_nisplus/nisplus-initgroups.c: New file.
8483
8484 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8485
8486         * version.h (VERSION): Bump to 2.5.90 for new development tree.
8487
8488 2006-10-06  Andreas Jaeger  <aj@suse.de>
8489
8490         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8491
8492 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8493
8494         * po/pl.po: Update from translation team.
8495
8496         * nscd/nscd.c (main): Fix typo in message.
8497         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
8498
8499 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8500
8501         [BZ #3291]
8502         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8503         errno.h, signal.h, unistd.h and sysdep-cancel.h.
8504         (__sigprocmask): Define.
8505
8506 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
8507
8508         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
8509         used.
8510
8511 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8512
8513         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
8514         in oldtotal and newtotal calculation.
8515         * nscd/nscd-client.h (struct mapped_database): Add datasize
8516         field.
8517         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
8518         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
8519         increased.
8520         (__nscd_cache_search): Add checks to make sure we never reference
8521         data beyond the current mapping.
8522
8523 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
8524
8525         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
8526         variables const to avoid compiler warnings.
8527
8528         * io/fts.c (fts_close): Remove redundant checks.
8529         (fts_build): Likewise.
8530         (fts_palloc): Likewise.
8531
8532         * manual/message.texi (Advanced gettext functions,
8533         Using gettextized software): Fix typos.
8534
8535 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
8536
8537         * posix/glob.c (glob_in_dir): Add some comments and asserts to
8538         explain why there are no leaks.
8539
8540 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
8541
8542         * libio/wmemstream.c: Include <wchar.h>.
8543         * libio/bug-wmemstream1.c: Likewise.
8544         * libio/tst-wmemstream1.c: Likewise.
8545         * libio/tst-wmemstream2.c: Likewise.
8546
8547         * version.h (RELEASE): Bump to 2.5.
8548         * README: Regenerated.
8549
8550         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
8551
8552         [BZ #3273]
8553         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
8554         found no group members.
8555         Patch by Petr Baudis.
8556
8557 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
8558
8559         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
8560         assert bootstrap_map.l_tls_modid is zero.
8561         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
8562         if USE___THREAD.
8563
8564 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
8565
8566         * libio/stdio.h: Move open_wmemstream prototype to ...
8567         * wcsmbs/wchar.h: ... here.
8568
8569 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
8570
8571         [BZ #3252]
8572         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
8573         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
8574         __{,l}chown to handle the rest.
8575         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
8576         fchownat syscall and __ASSUME_32BITUIDS case inline, call
8577         __{,l}chown to handle the rest.
8578         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
8579         i386/fchownat.c.
8580         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
8581         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
8582
8583         [BZ #3253]
8584         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8585         time, rather allocate increasingly bigger arrays of pointers, if
8586         possible with alloca, if too large with malloc.
8587
8588 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
8589
8590         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
8591
8592         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
8593
8594 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
8595
8596         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
8597         home addresses.
8598         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
8599         IFA_F_HOMEADDRESS flag for interfaces.
8600         * include/ifaddrs.h (struct in6addrinfo): Define
8601         in6ai_homeaddress.
8602
8603 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
8604
8605         [BZ #3225]
8606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
8607         PTR_DEMANGLE3): Define.
8608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
8609         PTR_DEMANGLE3): Likewise.
8610         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
8611         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
8612         Likewise.
8613         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8614
8615 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
8616
8617         * po/libc.pot: Regenerated.
8618         * po/be.po: Updated.
8619         * po/ca.po: Likewise.
8620         * po/cs.po: Likewise.
8621         * po/da.po: Likewise.
8622         * po/de.po: Likewise.
8623         * po/el.po: Likewise.
8624         * po/en_GB.po: Likewise.
8625         * po/es.po: Likewise.
8626         * po/fi.po: Likewise.
8627         * po/fr.po: Likewise.
8628         * po/gl.po: Likewise.
8629         * po/hr.po: Likewise.
8630         * po/hu.po: Likewise.
8631         * po/ja.po: Likewise.
8632         * po/ko.po: Likewise.
8633         * po/nb.po: Likewise.
8634         * po/nl.po: Likewise.
8635         * po/pl.po: Likewise.
8636         * po/pt_BR.po: Likewise.
8637         * po/ru.po: Likewise.
8638         * po/rw.po: Likewise.
8639         * po/sk.po: Likewise.
8640         * po/sv.po: Likewise.
8641         * po/tr.po: Likewise.
8642         * po/zh_CN.po: Likewise.
8643         * po/zh_TW.po: Likewise.
8644
8645         [BZ #3137]
8646         * iconv/iconv_prog.c (main): Fix spelling in error message.
8647         * iconv/iconvconfig.c (main): Likewise.
8648         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
8649         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
8650         * locale/programs/localedef.c (main): Likewise.
8651         * locale/programs/repertoire.c (repertoire_read): Likewise.
8652         * timezone/zdump.c (main): Likewise.
8653         * nscd/connections.c (handle_request): Fix spelling in log message.
8654         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
8655
8656 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
8657
8658         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
8659         interfaces.
8660
8661 2006-09-20  Andreas Jaeger  <aj@suse.de>
8662
8663         * math/libm-test.inc (lrint_test_upward): Fix typo.
8664
8665 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
8666
8667         [BZ #2592]
8668         * math/libm-test.inc (lrint_test_tonearest): New function.
8669         (lrint_test_towardzero): New function.
8670         (lrint_test_downward): New function.
8671         (lrint_test_upward): New function.
8672         (main): Run these new tests.
8673         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
8674         of values near to 0.
8675         (two52): Use double not long double.
8676         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8677         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8678         (two23): Use float not double.
8679         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8680         (two23): Use float not double.
8681         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8682         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8683         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8684         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8685
8686 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8687
8688         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
8689         Cast sp to unsigned long to avoid compiler warning.
8690         Use __makecontext_ret function instead of a trampoline on the stack.
8691         (__makecontext_ret): New function.
8692         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
8693
8694 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
8695
8696         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
8697         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
8698         bits.
8699
8700 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
8701
8702         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
8703         sure no reference to the unloaded map's search list remains in the
8704         dependency's scope.
8705
8706 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
8707
8708         * elf/Makefile: Add rules to build and run unload7 test.
8709         * elf/unload7.c: New test.
8710         * elf/unload7mod1.c: New file.
8711         * elf/unload7mod2.c: New file.
8712
8713 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
8714
8715         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
8716         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
8717         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8718         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
8719         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8720         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
8721         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8722         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
8723         PTRACE_GETEVENTMSG): Likewise.
8724         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
8725         values.
8726
8727 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
8728
8729         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
8730         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8731         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
8732         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
8733
8734 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
8735
8736         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
8737         write '\0' to the fd.
8738         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
8739         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
8740         Change regs to unsigned long pointer from unsigned int, fix fscr
8741         offset.
8742
8743 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
8744
8745         * io/Makefile (CFLAGS-fstatat.c): Set.
8746         (CFLAGS-fstatat64.c): Likewise.
8747         (CFLAGS-mknodat.c): Likewise.
8748
8749         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
8750         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8751         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
8752         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
8753
8754 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
8755             Steven Munroe  <sjmunroe@us.ibm.com>
8756
8757         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
8758         names to the beginning.  Rename "cell" to "cellbe".
8759         (_dl_powerpc_platforms): New.
8760         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8761         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
8762         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
8763         (_DL_HWCAP_PLATFORM): Define to new mask.
8764         (_dl_platform_string, _dl_string_platform): New functions.
8765         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
8766         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
8767
8768 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
8769
8770         [BZ #2526]
8771         * README.libm: Fix a thinko in sqrt algorithm description.
8772
8773         [BZ #3143]
8774         * manual/string.texi (argz_delete): Fix prototype.
8775         Patch by <alpt@freaknet.org>.
8776
8777 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
8778
8779         [BZ #3138]
8780         * io/test-lfs.c (do_prepare): Give name_len type size_t.
8781         * io/tst-fcntl.c (do_prepare): Likewise.
8782         * posix/tst-exec.c (do_prepare): Likewise.
8783         * posix/tst-preadwrite.c (do_prepare): Likewise.
8784         * posix/tst-spawn.c (do_prepare): Likewise.
8785         * posix/tst-truncate.c (do_prepare): Likewise.
8786         * rt/tst-aio.c (do_prepare): Likewise.
8787         * rt/tst-aio64.c (do_prepare): Likewise.
8788         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
8789         size_t.
8790
8791 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
8792
8793         [BZ #2821]
8794         * time/mktime.c (guess_time_tm): Fix overflow detection.
8795         * time/Makefile (tests): Add bug-mktime1.
8796         * time/bug-mktime1.c: New file.
8797
8798         [BZ #3189, #3188]
8799         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
8800         (mremap): Likewise.
8801
8802 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
8803
8804         [BZ #1006]
8805         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8806         Ensure relocation doesn't clobber any bits outside of the
8807         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
8808         R_SPARC_HI22 and R_SPARC_H44.
8809
8810         [BZ #2775]
8811         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
8812         (long) (MINSIZE + nb - old_size) is positive.
8813
8814         * malloc/arena.c (grow_heap): When growing bail even if new_size
8815         is negative.
8816
8817         [BZ #3155]
8818         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
8819         stack below r1.
8820
8821 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
8822
8823         * posix/regex_internal.c (re_string_reconstruct): Handle
8824         offset < pstr->valid_raw_len && pstr->offsets_needed case.
8825         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
8826         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
8827         re_string_context_at.
8828         * posix/Makefile: Add rules to build and run bug-regex26 test.
8829         * posix/bug-regex26.c: New test.
8830
8831         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
8832         rather than col_sym_free.  Move seqp declaration earlier.
8833
8834         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
8835
8836 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
8837
8838         * nscd/initgrcache.c (addinitgroupsX): Move any_success
8839         decl before first goto out.
8840
8841 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
8842
8843         * Makerules (shlib.lds): If have-hash-style, put .hash section
8844         at the end of the RO segment.
8845
8846 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
8847
8848         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
8849         style hash table format is used.
8850
8851 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
8852
8853         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
8854         randomization rather than before.
8855         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
8856
8857 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
8858
8859         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
8860
8861         * malloc/malloc.c (_int_malloc): Use full list insert and not
8862         shortcut which assumes the list is empty for large requests
8863         too.
8864
8865         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
8866
8867 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
8868
8869         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
8870         and offout arguments to the prototype.
8871         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
8872         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
8873         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
8874         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
8875         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
8876         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
8877         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
8878         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
8879
8880 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
8881
8882         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
8883
8884         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
8885         dlopen parameters.
8886
8887 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
8888
8889         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
8890         only if herrno is NETDB_INTERNAL.  Handle errors other than
8891         ERANGE outside of the loops, handle TRY_AGAIN.
8892
8893         * locale/programs/ld-ctype.c (translit_flatten): Issue error
8894         if other's ctype category was missing.
8895         * locale/programs/ld-collate.c (collate_read): Return if
8896         copy_locale's collate category is missing.
8897
8898 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
8899
8900         [BZ #2684]
8901         * malloc/malloc.c (public_rEALLOc): Try harder by using other
8902         arenas if allocation failed.
8903         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
8904
8905 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
8906
8907         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
8908         waste bins[0..1].
8909         (malloc_state): Reduce bins size by 2.
8910         (_int_malloc): Fix test for large enough buffer for early termination.
8911         When no unsorted block matches perfectly and an exiting block has
8912         to be split, use full list insert and not shortcut which assumes
8913         the list is empty.
8914
8915         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
8916         failure.
8917
8918 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
8919
8920         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
8921         do anything.
8922
8923         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
8924         symbol require exact match (these are PLTs).
8925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
8926         (_dl_ppc64_addr_sym_match): Likewise.
8927
8928         [BZ #2683]
8929         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
8930         If symbol has a value use it.
8931         * elf/tst-dladdr1.c: New file.
8932         * elf/Makefile: Add rules to build and run tst-addr1.
8933
8934 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
8935
8936         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
8937         keeps failing and heap growth or new heap creation isn't
8938         successful either.
8939         * malloc/tst-malloc.c (main): Add new tests.
8940
8941 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
8942
8943         [BZ #2734]
8944         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
8945         as in the x86-64 code to use bswap.
8946
8947 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
8948
8949         [BZ #2680]
8950         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
8951         __USE_UNIX98.
8952         * posix/bits/unistd.h: Likewise.
8953
8954 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
8955
8956         [BZ #2751]
8957         * string/strchr.c: Add cast to avoid warning.
8958
8959 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
8960
8961         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
8962         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
8963         limit is needed to avoid the exploding of the address space
8964         requirement for secondary heaps.
8965         * malloc/arena.c (HEAP_MAX_SIZE): Define using
8966         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
8967
8968 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
8969
8970         [BZ #3018]
8971         * Makerules (depfiles): Handle extra-test-objs the same as
8972         extra-objs.
8973         (common-mostlyclean): Likewise.
8974         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
8975         instead.
8976         * elf/Makefile (extra-objs): Likewise.
8977         * stdlib/Makefile (extra-objs): Likewise.
8978
8979 2006-08-14  Eric Blake  <ebb9@byu.net>
8980
8981         [BZ #3044]
8982         * misc/error.h: Assume C89 or better.
8983         * misc/error.c: Likewise.
8984
8985 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
8986
8987         [BZ #3040]
8988         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
8989         __ASSUME_ATFCTS is defined.
8990
8991 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
8992
8993         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
8994         to sort in each call.
8995
8996         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
8997         is empty simply return and use next service.
8998         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
8999
9000         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
9001         tells us when not finding a charmap file is an error.
9002         * locale/programs/charmap.h: Adjust charmap_read prototype.
9003         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
9004         cannot find a charmap.
9005         * locale/programs/localedef.c (main): Adjust charmap_read call.
9006
9007 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
9008
9009         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
9010         sysdeps/posix/pause.c implementation instead.
9011
9012 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
9013
9014         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
9015         to EPERM.
9016
9017 2006-08-13  Andreas Schwab  <schwab@suse.de>
9018
9019         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
9020         Don't clobber caller's LRSAVE.
9021         (_dl_prof_resolve): Likewise.
9022
9023 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
9024
9025         [BZ #1996]
9026         * libio/memstream.c (open_memstream): Allocate initial buffer with
9027         calloc.
9028         * libio/wmemstream.c (open_wmemstream): Likewise.
9029         * libio/strops.c: Pretty printing.
9030         (_IO_str_overflow): Clear uninitialized part of the new buffer.
9031         (enlarge_userbuf): New function.
9032         (_IO_str_seekoff): Call it if seek position is larger than current
9033         buffer.
9034         * libio/wstrops.c: Likewise.
9035         * libio/vasprintf.c: Add comment as to why we do not have to use
9036         calloc instead of malloc to allocate initial buffer.
9037         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
9038         * libio/bug-memstream1.c: New file.
9039         * libio/bug-wmemstream1.c: New file.
9040
9041 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9042
9043         * libio/wstrops.c: Remove dead macro definitions and comments.
9044         * libio/strops.c: Likewise.
9045
9046         [BZ #2764]
9047         * login/utmpname.c (__utmpname): Remove unnecessary test.
9048
9049 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
9050
9051         [BZ #2832]
9052         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
9053         0s from integers.
9054
9055 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9056
9057         [BZ #2987]
9058         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
9059         for CPU clocks.
9060         * sysdeps/unix/clock_settime.c: Add support for platform-specific
9061         setting of CPU clocks.
9062
9063 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9064
9065         [BZ #2841]
9066         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
9067         since C99 requires the result to promote to 'int' when uint_least8_t
9068         and uint_least16_t promote to 'int'.
9069
9070 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
9071
9072         [BZ #3013]
9073         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9074         lenght of one output field, correct bitmask creation.
9075         * locale/programs/ld-time.c: Add alignment.
9076
9077         [BZ #2997]
9078         * misc/error.c: Add space between program name and message if file
9079         name is missing.
9080
9081 2006-08-03  Eric Blake  <ebb9@byu.net>
9082
9083         [BZ #2998]
9084         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9085
9086 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
9087
9088         * malloc/memusagestat.c: Silence warnings.
9089
9090         * malloc/malloc.c: Dynamically size mmap treshold if the program
9091         frees mmaped blocks.
9092         Patch by Valerie Henson and Arjan van de Ven.
9093
9094 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
9095
9096         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9097         __USE_GNU.
9098
9099         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9100         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9101         (DEF): Don't put the var into .gnu.linkonce.r.* section.
9102         Only provide var definitions in strtol_l (or for *ull*
9103         in strtoll_l).
9104
9105         * stdio-common/bug16.c (tests): New array.
9106         (do_tests): Allow the first hexadecimal digit
9107         to be 1, 2, 4 or 8.  Do 3 additional tests.
9108
9109         * sysdeps/s390/fpu/libm-test-ulps: Update.
9110
9111         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9112         fchownat syscall if available.
9113         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9114         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9115         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9116
9117 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9118
9119         * nis/nis_xdr.c: Avoid some function calls.
9120
9121 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
9122             Ulrich Drepper  <drepper@redhat.com>
9123
9124         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9125         short cut if only one name component is stripped away.
9126
9127 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9128
9129         * nis/nis_call.c: Minor cleanups throughout.
9130         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
9131         (first_shoot): Add search_parent_first parameter.  Only if it is set
9132         search parent server first.
9133         If directory for table found through cold start cache is not the same
9134         as referenced in the cache, don't use it.
9135         (__nisfind_server): Take additional parameter.  Pass it on to
9136         first_shoot.
9137         (__prepare_niscall): Adjust __nisfind_server call.
9138         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9139         * nis/nis_table.c: Adjust __nisfind_server call.
9140         * nis/nis_lookup.c: Likewise.
9141         (nis_lookup): Don't loop endlessly if name is reduced to ".".
9142
9143 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
9144
9145         [BZ #2182]
9146         * math/s_cacosh.c: Return values from positive branch.
9147         * math/s_cacoshf.c: Likewise.
9148         * math/s_cacoshl.c: Likewise.
9149
9150         [BZ #2883]
9151         * sysvipc/sys/msg.h: Change return value to ssize_t.
9152         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9153         * sysvipc/msgrcv.c: Likewise.
9154         * include/sys/msg.h: Likewise.
9155
9156         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9157         test introduced in patch for bz #661.
9158         (getgrouplist): Simplify code a bit.  Don't allocate one additional
9159         element for NEWGROUPS.
9160
9161         [BZ #2908]
9162         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9163         'f', use '1' as leading digit not '\1'.
9164         * stdio-common/Makefile (tests): Add bug16.
9165         * stdio-common/bug16.c: New file.
9166
9167         [BZ #2914]
9168         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9169         and don't try to open it.  The patch introducing the macro
9170         contained a bug and used the same file name as the new file
9171         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
9172         this out completely.
9173
9174         [BZ #2926]
9175         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9176         Patch by Jerry James <Jerry.James@usu.edu>.
9177
9178         * rt/Makefile (tests): Add tst-clock2.
9179         * rt/tst-clock2.c: New file.
9180
9181         [BZ #2978]
9182         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9183         function and its parameters and pass it to new thread.
9184         (__gai_notify): Add support for alternative waiting for completion.
9185         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9186         waiting for completion.
9187         * resolv/getaddrinfo_a.c: Likewise.
9188         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9189         waiting for completion is used.
9190         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9191         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9192         * resolv/gai_error.c: Likewise.
9193         * resolv/gai_sigqueue.c: Likewise.
9194
9195 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
9196
9197         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
9198         errno to EBADF and return MACH_PORT_NULL.
9199
9200 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
9201
9202         [BZ #2980]
9203         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
9204
9205 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
9206
9207         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9208         walk them instead of the symbol table.
9209
9210 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
9211
9212         [BZ #2098]
9213         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9214         status of NSS calls, not the number of returned entries.
9215
9216         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9217         request_key, keyctl.
9218
9219 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9220
9221         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9222
9223 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
9224
9225         * elf/tst-auditmod1.c: Fix typo in #error.
9226
9227 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9228
9229         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9230
9231         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9232
9233 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
9234
9235         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
9236         that the directory is empty even on non-POSIX filesystems.
9237
9238 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9239
9240         * elf/dl-open.c (dl_open_worker): Add branch prediction.
9241
9242         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9243         the backend NSS module.  If backend setgrent call failed, don't have
9244         internal_setgrent fail.  Just remember this until it is needed.
9245         * nis/nss_compat/compat-pwd.c: Likewise.
9246         * nis/nss_compat/compat-spwd.c: Likewise.
9247
9248 2006-07-30  Roland McGrath  <roland@redhat.com>
9249
9250         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9251         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9252         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9253         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9254
9255         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9256         (nanosleep_not_cancel): New macro.
9257         (sigsuspend_not_cancel): new macro.
9258         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9259         (do_sigsuspend): Define as inline.
9260         (__sigsuspend): Always use do_sigsuspend.
9261         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9262         * include/signal.h: Declare __sigsuspend_nocancel.
9263         * sysdeps/posix/pause.c
9264         [! NO_CANCELLATION] (__pause_nocancel): New function.
9265
9266         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9267         * include/time.h (__nanosleep_nocancel): Likewise.
9268
9269 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
9270
9271         * locale/programs/localedef.c (add_to_readlist): Rename local
9272         variables to avoid confusion.
9273
9274         * locale/programs/charmap.c (charmap_read): Emit error message if
9275         charmap couldn't be found or read.
9276
9277 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
9278
9279         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9280         __ASSUME_FUTEX_LOCK_PI.
9281         * include/time.h: Declare __nanosleep_nocancel.
9282         * include/unistd.h: Declare __pause_nocancel.
9283
9284         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9285         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
9286         get the __stack_chk_fail_local definition when it's needed.
9287
9288 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
9289
9290         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9291         * dlfcn/bug-atexit3.c: New file.
9292         * dlfcn/bug-atexit3-lib.cc: New file.
9293
9294         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9295         used when the namespace is not the base namespace.
9296
9297 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
9298
9299         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9300         (__new_exitfn): Bump it in every successful call.
9301         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9302         more exit handlers, call them right away.
9303         * stdlib/exit.h: Declare __new_exitfn_called.
9304
9305 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
9306
9307         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9308         calling registered handler.
9309
9310         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9311         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9312         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9313         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9314         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9315         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9316         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9317         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9318
9319 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
9320
9321         * elf/dl-lookup.c (dl_new_hash): New functions.
9322         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9323         value here.  Compute new-style hash value.  Pass new hash value
9324         and reference to variable with the old value to do_lookup_x.
9325         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9326         old-style hash table.
9327         (_dl_debug_bindings): Pass new hash value and reference to variable
9328         with the old value to do_lookup_x.
9329         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9330         new-style hash value and change old-style hash value parameter to
9331         be a reference.  Reoganize functions to determine whether
9332         new-style hash table is available.  Only fall back on old-style
9333         table.  If old-style hash value is needed, compute it here.
9334         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9335         entry.
9336         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9337         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
9338         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9339         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9340         * Makeconfig: If linker supports --hash-style option add it to all
9341         linker command lines to build DSOs.
9342         * config.make.in: Define have-hash-style.
9343         * configure.in: Test whether linker supports --hash-style option.
9344
9345         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9346         * sysdeps/generic/ldsodefs.h: Adjust prototype.
9347
9348 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
9349
9350         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9351         auditing.
9352
9353         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9354         RPATH of main map twice.
9355
9356 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
9357
9358         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9359         look further, return original strings.
9360         (_nl_find_msg): Do not return found translation if the conversion
9361         failed.  Either signal the string is unusable or that something went
9362         wrong and the original should be used.
9363
9364 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
9365
9366         * string/_strerror.c (__strerror_r): Add __builtin_expect.
9367
9368 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
9369
9370         [BZ #2766]
9371         * misc/insremque.c (insque): Handle prev == NULL.
9372         * misc/Makefile (tests): Add tst-insremque.
9373         * misc/tst-insremque.c: New test.
9374
9375 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
9376
9377         [BZ #2792]
9378         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9379         conflict with DL_DST_REQUIRED.
9380
9381 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
9382
9383         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9384         match what Solaris does.
9385
9386 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
9387
9388         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9389         local_setegid instead of seteuid and setegid.
9390         * sysdeps/generic/local-setxid.h: New file.
9391         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9392
9393         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9394
9395         * string/Makefile (tests): Add bug-envz1.
9396         * string/bug-envz1.c: New file.
9397
9398 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
9399
9400         * posix/regex_internal.c (re_string_skip_chars): If no character has
9401         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
9402         to the byte which couldn't be converted.
9403         (re_string_reconstruct): Don't clear valid_raw_len before calling
9404         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
9405         tip_context using re_string_context_at.
9406         * posix/Makefile: Add rules to build and run bug-regex25 test.
9407         * posix/bug-regex25.c: New test.
9408
9409 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
9410
9411         [BZ #2703]
9412         * string/envz.c (envz_strip): Correct erroneously reversed src
9413         and dest parameters to memmove() invocation.
9414
9415 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
9416
9417         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9418         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9419         to make sure the database has been already invalidated.
9420         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
9421         after the cache has been invalidated.  Use pthread_mutex_lock rather
9422         than pthread_mutex_trylock if fd != -1.
9423         * nscd/connections.c (invalidate_cache): Add fd argument, write
9424         response to fd if not calling prune_cache, pass fd to prune_cache.
9425         (handle_request): Adjust invalidate_cache caller.
9426         (nscd_run): Pass -1 as fd to prune_cache.
9427
9428 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
9429
9430         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9431         the correct place.
9432
9433 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
9434
9435         * nscd/nscd.h (struct database_dyn): Add prunelock field.
9436         * nscd/cache.c (prune_cache): Take prunelock before starting the
9437         work.  Just return in case it is already taken.
9438         * nscd/connections.c (dbs): Initialize .prunelock.
9439
9440 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
9441
9442         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
9443         copying.  No need to allocate new array for group members.  Just
9444         move the pointers and update the size.
9445
9446         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
9447         Avoid memory leak in case realloc fails.  Simplification for
9448         better code generation.
9449
9450         Avoid deprecation warning because of libc_hidden_proto for
9451         inet6_option_alloc.
9452         * inet/inet6_option.c (option_alloc): Renamed from
9453         inet6_option_alloc.  Made static.
9454         (inet6_option_alloc): Now a simple wrapper around option_alloc.
9455         (inet6_option_append): Call option_alloc.
9456         * include/netinet/in.h: Remove libc_hidden_proto for
9457         inet6_option_alloc.
9458
9459         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
9460         for cleanup when cb!=NULL [Coverity CID 233].
9461
9462 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
9463
9464         [BZ #2693]
9465         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9466         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9467         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9468         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9469         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9470         and inet6_rth_getaddr.
9471         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9472         array.
9473         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9474         Mark inet6_option_* interfaces as deprecated.
9475         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9476         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9477         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9478         inet6_rth_segments, and inet6_rth_getaddr.
9479         * inet/inet6_opt.c: New file.
9480         * inet/inet6_rth.c: New file.
9481
9482         * inet/netinet/icmp6.h: Pretty printing.
9483
9484         [BZ #2683]
9485         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9486
9487 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
9488
9489         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9490         doing it all here.  When server does not know the answer do not
9491         fail immediate, try parent first.
9492
9493         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9494         overflow test.
9495
9496 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
9497
9498         * nis/nis_call.c (__prepare_niscall): New function.  Split out
9499         from __do_niscall.
9500         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
9501         and exported.
9502         (__follow_path): New function.  Split out from nis_list.
9503         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9504         _xdr_nis_result.
9505         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
9506         _xdr_nis_result.
9507         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
9508         and __follow_path.
9509         * nis/Versions: Export __prepare_niscall, __create_ib_request,
9510         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
9511         from libnsl for version GLIBC_PRIVATE.
9512         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
9513         Remove entry parameter from _nss_nisplus_parse_pwent and
9514         _nss_nisplus_parse_grent.
9515         * nis/nss_nisplus/nisplus-parser.c: Likewise.
9516         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
9517         again.  Rewrite getpwent handling to not use nis_first_entry and
9518         nis_next_entry.  Roll out own niscall handling.
9519         * nis/nss_nisplus/nisplus-grp.c: Likewise.
9520
9521         * sunrpc/xdr_rec.c: Fix typo in comment.
9522
9523 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
9524
9525         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
9526         handling.
9527
9528         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
9529         to allocate memory for my_pollfd.  Better initialization of
9530         cb_is_running.  Use TEMP_FAILURE_RETRY.
9531
9532         * malloc/memusage.sh (memusageso): Add quotes.
9533         (memusagestat): Likewise.
9534         * debug/xtrace.sh (pcprofileso): Likewise.
9535         (pcprofiledump): Likewise.
9536         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
9537         replacement.
9538         * malloc/Makefile ($(objpfx)memusage): Likewise.
9539
9540         * nis/nis_callback.c (__nis_create_callback): Calls to
9541         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
9542         asprintf call fails.
9543
9544         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
9545         no uninitialized memory is passed to sendto.
9546
9547 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9548
9549         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
9550         of snprintf+strdup.  Handle OOM.
9551         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
9552         cb->serv together.  Remove now obsolete free calls.
9553         (__nis_destroy_callback): Remove now obsolete free call.
9554
9555 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
9556
9557         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
9558         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
9559         and ULA respectively). Set precedence for IPv4 address to 10 as
9560         defined in RFC3484 for preferring IPv6.
9561         * posix/gai.conf: Update to match the new default tables.
9562
9563 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
9564
9565         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
9566         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
9567         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
9568         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
9569
9570         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
9571         Removed.
9572         (init_nss_interface): Remove initialization of these variables.
9573
9574 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9575
9576         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
9577         nis_free_directory forward to avoid duplication.
9578
9579 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
9580
9581         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
9582         rec_dirsearch returning NULL.
9583         (first_shoot): Handle __nis_finddirectory returning NULL.
9584         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
9585
9586         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
9587         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
9588
9589 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
9590
9591         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
9592         pid changed.
9593
9594 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
9595
9596         * include/rpc/pmap_prot.h: Mark all functions as hidden.
9597
9598         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
9599         * nscd/nscd_getgr_r.c: Likewise.
9600
9601         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
9602
9603         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
9604         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
9605
9606         * stdlib/longlong.h (__clz_tab): Mark as hidden.
9607
9608         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
9609
9610         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
9611
9612         * include/rpc/auth.h: Mark xdr_des_block_internal and
9613         xdr_opaque_auth_internal as hidden.
9614
9615         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
9616         hidden.
9617
9618         * include/rpc/xdr.h: Mark all _internal functions as hidden.
9619
9620         * misc/getusershell.c (okshells): Don't use static initializers,
9621         do it dynamically.
9622
9623         * stdlib/fmtmsg.c (keywords): Change type of len element to
9624         uint32_t to not waste space on 64bit machines.
9625
9626         * locale/setlocale.c: Change _nl_category_names into a string.
9627         Add new _nl_category_name_idxs.  Change all users.
9628         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
9629         Declare _nl_category_name_idxs.
9630         * locale/findlocale.c: Adjust for _nl_category_names change.
9631         * locale/loadlocale.c: Likewise.
9632         * locale/newlocale.c: Likewise.
9633         * intl/dcigettext.c: Likewise.
9634
9635         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
9636         (add_alias2): ...here.  New function.
9637         (__gconv_read_conf): Simplify builtin alias handling.
9638         (builtin_aliases): Convert to string to avoid relocations.
9639         * iconv/gconv_builtin.h: Add comment about correct formatting.
9640
9641 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
9642
9643         * resolv/res_debug.c (loc_ntoa): Make error const.
9644
9645 2006-05-14  Andreas Schwab  <schwab@suse.de>
9646
9647         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
9648
9649 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
9650
9651         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
9652         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
9653         sizeof (cpu_set_t).
9654
9655 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
9656
9657         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
9658
9659         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
9660
9661         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
9662         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
9663
9664         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
9665         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
9666
9667         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
9668         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
9669         xdr_cback_data.
9670
9671         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
9672         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9673         xdr_ypupdate_args.
9674
9675         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
9676         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
9677
9678         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
9679         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
9680
9681         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
9682         * include/rpcsvc/nis_callback.h: New file.
9683
9684         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
9685         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
9686
9687         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9688         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9689
9690         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
9691         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
9692
9693         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9694         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9695
9696         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
9697         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9698         xdr_ypdelete_args.
9699
9700         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
9701         __BEGIN_DECLS and __END_DECLS, the header is not installed.
9702
9703         * nis/nis_error.c: Remove table of strings.  Use position
9704         independent mechanism.
9705         * nis/nis_error.h: New file.
9706
9707 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
9708
9709         * locale/programs/ld-time.c (time_finish): If wide era name or
9710         format aren't provided, set both wname and wformat to L"".
9711
9712 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
9713
9714         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
9715         results if the call was succesful.
9716
9717         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
9718
9719         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
9720         as hidden.
9721
9722 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
9723
9724         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
9725
9726 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
9727
9728         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
9729         caller makes sure this is not the case.
9730         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
9731
9732 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
9733
9734         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
9735         calls.
9736
9737         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
9738         [Coverity CID 229, 230]
9739
9740         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
9741         DGETTEXT calls.
9742         (hol_help): Likewise.  [Coverity CID 226, 227]
9743
9744         * string/argz-replace.c (__argz_replace): Unconditionally call
9745         free on SRC.  [Coverity CID 225]
9746
9747         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
9748         the return value of __nis_default_owner and __nis_default_group,
9749         it has been especially allocated.  [Coverity CID 224]
9750
9751         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
9752         searchgroup and searchowner.  Significantly simplified.
9753         (__nis_default_owner): Remove duplication.  Do not locally copy the
9754         string before duplicating it.
9755         (__nis_default_group): Likewise.
9756
9757         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
9758         we must clear the variable before calling __nisfind_server.
9759
9760         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
9761         nis_getnames.  [Coverity CID 223]
9762
9763         * locale/programs/locfile.c (locfile_read): Use alloca instead of
9764         xmalloc to allocate local repertoire name.  [Coverity CID 222]
9765
9766         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
9767         allocate memory for the input to add_bytes.  [Coverity CID 221]
9768
9769         * posix/wordexp.c (w_addword): Free word if realloc fails and it
9770         was allocated here.  [Coverity CID 219, 220]
9771
9772         * posix/getconf.c (print_all): Free confstr data after printing.
9773         [Coverity CID 218]
9774
9775         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
9776         list allocation fails.  [Coverity CID 215]
9777
9778         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
9779         [Coverity CID 213]
9780
9781         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
9782         string is NULL.  [Coverity CID 212]
9783         * argp/Makefile: Add rules to build and run bug-argp1.
9784         * argp/bug-argp1.c: New file.
9785
9786         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
9787         end of string.
9788         * stdlib/canonicalize.c (__realpath): Likewise.
9789
9790         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
9791         pointer.  [Coverity CID 206]
9792
9793         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
9794         in statically linked code.
9795         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
9796         statically built code, be prepared to have no link map.
9797         [Coverity CID 205]
9798
9799         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
9800         dgettext calls. [Coverity CID 204]
9801
9802         * argp/argp-help.c (struct uparams): Remove valid member.  Change
9803         the one user.
9804         (uparam_names): Reduce size.  Avoid relative relocations.
9805         Moved to read-only segment.
9806         (fill_in_uparams): Update for new layout.
9807
9808         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
9809         assumed to always be != NULL. [Coverity CID 202]
9810
9811         * argp/argp-help.c (hol_entry_help): Remove some dead code
9812         [Coverity CID 200].
9813
9814         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
9815         away a few more unconditional yperr2nss calls.
9816         (_nss_nis_getservbyname_r): Likewise.
9817
9818 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
9819
9820         * sysdeps/generic/ldsodefs.h: Remove support for non-core
9821         architectures.
9822
9823         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
9824         that unused memory passed to sendto is nevertheless initialized.
9825
9826         [BZ #2499]
9827         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
9828         possibly unaligned memory accesses.
9829
9830         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
9831         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
9832         and __putlong respectively.  Correct buffer overflow check for
9833         NS_NOTIFY_OP.
9834
9835         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
9836
9837         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
9838         (send_dg): Rewrite error handling to be more compact and avoid
9839         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
9840
9841         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
9842
9843         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
9844         instead of ns_get16.
9845         (res_queriesmatch): Likewise.  Minor optimization.
9846
9847         [BZ #2499]
9848         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
9849         __libc_res_nsend might reallocate the buffer for the answer.  In
9850         this case we have to reload the HP pointer.
9851
9852 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9853
9854         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
9855         some branch prediction hints.
9856
9857         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
9858         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9859         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9860         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9861         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9862         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9863         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9864         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9865
9866 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9867
9868         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
9869         by a GOT relocation to make Scrt1.o position independent.
9870         * sysdeps/s390/s390-64/elf/start.S: Likewise.
9871
9872         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
9873         six system call parameters.
9874         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9875
9876 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9877
9878         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
9879         malloc&bzero.
9880
9881         * sunrpc/svc_udp.c (BZERO): Remove definition.
9882         (CALLOC): Define.
9883         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
9884
9885         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
9886         (des_SPtrans): Use uint32_t type.
9887         (des_skb): Likewise.
9888
9889         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
9890
9891 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
9892
9893         [BZ #2509]
9894         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
9895         on 32-bit arches.
9896
9897 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9898
9899         * locale/programs/ld-address.c (address_finish): Fix one more
9900         place where the iso639 array might be accessed beyond the limits.
9901
9902 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
9903
9904         * nis/nis_table.c (nis_list): Avoid clearing res twice before
9905         filling it for the first time.
9906
9907         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
9908         Adjust all callers.
9909         Free res object content before returning.
9910
9911         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
9912
9913         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
9914         client->cl_auth.
9915
9916         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
9917         cleanup for initial thread, just the free call on TVP.
9918
9919         * nscd/gai.c (__getline): Define.
9920
9921
9922 See ChangeLog.16 for earlier changes.