[BZ #9706]
[platform/upstream/glibc.git] / ChangeLog
1 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
2
3         [BZ #9706]
4         * nss/nss_files/files-parse.c (strtou32): New function.
5         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
6         across 32-bit and 64-bit platforms.
7         (INT_FIELD_MAYBE_NULL): Likewise.
8
9 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
10
11         [BZ #9720]
12         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
13         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
14         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
15         Likewise.
16
17 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
18
19         [BZ #697]
20         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
21         being NULL also if there are no backreferences.
22         * posix/rxspencer/tests: Add testcases.
23
24 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
25
26         [BZ #9697]
27         * posix/bug-regex17.c: Add testcases.
28         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
29         handling.
30
31 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
32
33         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
34         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
35         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
36         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
37         for elf subdir.
38         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
39         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
40         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
41         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
42         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
43         * sysdeps/unix/sysv/linux/s390/Versions: New file.
44
45 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
46
47         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
49         re_string_skip_chars, re_string_reconstruct): Likewise.
50         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
51
52 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
53
54         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
55         adjust the buffer alignment.
56
57 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
58
59         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
60         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
61         net/route.h.
62
63         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
64         flavor to description only when flavor is not NULL.
65
66         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
67         mutex after SIGIO/SIGURG lookup loop.
68
69 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70
71         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
72
73 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
74
75         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
76         handling.
77
78 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
79
80         * sysdeps/unix/sysv/linux/kernel-features.h
81         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
82
83         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
84         if no output is written.
85
86         * version.h: Bump to 2.10 development.
87
88         * posix/getconf.c: Update copyright year.
89         * nss/getent.c: Likewise.
90         * iconv/iconvconfig.c: Likewise.
91         * iconv/iconv_prog.c: Likewise.
92         * elf/ldconfig.c: Likewise.
93         * catgets/gencat.c: Likewise.
94         * csu/version.c: Likewise.
95         * elf/ldd.bash.in: Likewise.
96         * elf/sprof.c (print_version): Likewise.
97         * locale/programs/locale.c: Likewise.
98         * locale/programs/localedef.c: Likewise.
99         * nscd/nscd.c (print_version): Likewise.
100         * debug/xtrace.sh: Likewise.
101         * malloc/memusage.sh: Likewise.
102         * malloc/mtrace.pl: Likewise.
103         * debug/catchsegv.sh: Likewise.
104
105 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
106
107         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
108         script.
109
110 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
111
112         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
113         gethostbyname4_r function call succeeded, just leave the loop.
114
115         [BZ #9694]
116         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
117         very end.
118         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
119         * wctype/Makefile (tests): Add bug-wctypeh.
120         * wctype/bug-wctypeh.c: New file.
121
122         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
123         LOCALDOMAIN is defined.
124         * nscd/nscd_getai.c (__nscd_getai): Likewise.
125
126         * sysdeps/x86_64/bits/select.h: New file.
127
128         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
129
130 2008-12-21  Bruno Haible  <bruno@clisp.org>
131
132         [BZ #9677]
133         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
134         if no output is written.
135
136 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
137
138         * login/utmp_file.c (pututline_file): Replace call to dup2 with
139         libc internal symbol __dup2 to avoid access through the PLT.
140
141 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
142
143         [BZ #6545]
144         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
145         available only for __USE_GNU.
146
147         * inet/Makefile (tests): Add tst-getni2.
148         * inet/tst-getni2.c: New file.
149
150         [BZ #7080]
151         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
152         NULL when NI_NAMEREQD is set.
153         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
154         * inet/Makefile (tests): Add tst-getni1.
155         * inet/tst-getni1.c: New file.
156
157 2008-12-03  Petr Baudis  <pasky@suse.cz>
158
159         [BZ #7067]
160         * nscd/connections.c (invalidate_cache): Use prune_run_lock
161         instead of prune_lock.
162         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
163         * nscd/nscd.h (database_dyn): Add prune_run_cache.
164
165 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
166
167         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
168         use.
169
170         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
171         handling.
172
173         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
174         after reading name server list.
175
176         [BZ #7058]
177         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
178         handling for host name aliases.
179
180 2008-11-24  Arkadiusz Miƛkiewicz  <arekm@maven.pl>
181
182         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
183         instead of doing things manually.
184
185 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
186
187         * posix/regex_internal.h (build_wcs_upper_buffer):
188         Return type is reg_error_t.
189
190 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
191
192         * posix/globtest.sh: Use mktemp to create temporary file and
193         directory.
194
195         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
196         sets correctly.
197         (__CPU_CLR_S): Likewise.
198         (__CPU_ISSET_S): Likewise.
199
200 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
201             Ulrich Drepper  <drepper@redhat.com>
202
203         * scripts/firstversion.awk: Use custom comparison function to compare
204         version numbers.
205         * scripts/versions.awk: Use sort invocation which can handle
206         multi-digit sub-version numbers.
207
208 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
209
210         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
211         * locale/iso-639.def: Add Chhattisgarhi entry.
212
213 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
214
215         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
216         ESRCH return value.
217         (_nss_dns_gethostbyname4_r): Likewise.
218         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
219         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
220         gethostbyname4_r, we don't have a separate IPv6 status, so copy
221         the no_data variable.
222
223         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
224         information at the correct index.
225
226         * socket/sys/socket.h: Declare accept4.
227         * socket/accept4.c: New file.
228         * sysdeps/unix/sysv/linux/accept4.c: New file.
229         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
230         * socket/Makefile (routines): Add accept4.
231         * socket/Versions: Export accept4 with version GLIBC_2.10.
232         * socket/paccept.c: Removed.
233         * sysdeps/unix/sysv/linux/paccept.c: Removed.
234         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
235         * Versions.def: Define GLIBC_2.10 for libc.
236         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
237
238         * nscd/connections.c: Use accept4.
239
240         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
241
242 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
243
244         * resolv/res_send.c (send_dg): Create sockets with non-blocking
245         flag already set.
246
247         * stdlib/setenv.c (unsetenv): Don't search environment if it does
248         not exist.
249         * stdlib/Makefile (tests): Add tst-unsetenv1.
250         * stdlib/tst-unsetenv1.c: New file.
251
252 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
253
254         * login/utmp_file.c (file_writable): New variable.
255         (setutent_file): Don't try to open file for writing.
256         (pututline_file): Before writing, make descriptor writable if
257         necessary.
258
259 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
260
261         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
262         to IPv4 or IPv6 if an interface has been found.
263
264 2008-11-26  Roland McGrath  <roland@redhat.com>
265
266         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
267         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
268
269         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
270         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
271         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
272
273         * elf/elf.h (NT_386_IOPERM): New macro.
274         (NT_PPC_VSX): New macro.
275
276 2008-11-25  Roland McGrath  <roland@redhat.com>
277
278         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
279         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
280         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
281         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
282         Subdirectories moved to ports repository.
283         * configure.in (base_machine): Remove alpha case.
284
285 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
286
287         * sysdeps/mach/strerror_l.c: New file.
288
289 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
290
291         [BZ #6411]
292         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
293         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
294         magic numbers.
295         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
296         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
297         (relax_fenv_state): Same as above.
298         (FPSCR_29): Reserve bit in ISA 2.05.
299         (FPSCR_NI): Provide define for compat.
300         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
301         magic numbers.
302         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
303         magic numbers.
304         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
305         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
306         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
307         access to hwcap to account for hwcap size increase to uint64_t.
308         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
309         Likewise.
310         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
311         (*setcontext): Likewise.
312         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
313         New file.
314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
315         New file.
316         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
317         (*setcontext): dynamically select mtfsf insn based on
318         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
319         increase to uint64_t.
320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
321         (*swapcontext): dynamically select mtfsf insn based on
322         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
323         increase to uint64_t.
324         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
325         New file.
326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
327         New file.
328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
329         (*setcontext): dynamically select mtfsf insn based on
330         PPC_FEATURE_HAS_DFP.
331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
332         (*swapcontext): dynamically select mtfsf insn based on
333         PPC_FEATURE_HAS_DFP.
334
335 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
336
337         * version.h: Bump for 2.9 release.
338         * include/features.h (__GLIBC_MINOR__): Bump to 9.
339
340         [BZ #7029]
341         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
342         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
343         all the rounding.
344
345 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
346
347         [BZ #7009]
348         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
349         unknown request types for now.
350
351 2008-11-11  Roland McGrath  <roland@redhat.com>
352
353         * sysdeps/x86_64/configure: New file.
354
355         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
356         * configure: Regenerated.
357
358 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
359
360         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
361         correct instruction to remove the stack frame.
362
363 2008-11-03  Michael Matz  <matz@suse.de>
364
365         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
366         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
367
368 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
369
370         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
371         Remove.
372
373         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
374         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
375         of the thread variable instead of void *.
376         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
377         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
378         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
379         __libc_tsd_define arguments.
380         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
381         __libc_tsd_address arguments.  Remove union hack.
382         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
383         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
384         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
385         Adjust __libc_tsd_{set,get} arguments.
386         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
387         __libc_tsd_define arguments.
388         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
389         arguments.
390         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
391         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
392         (LOCALE): Adjust __libc_tsd_define arguments.
393         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
394         arguments.
395         (LOCALE): Adjust __libc_tsd_define arguments.
396         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
397         arguments.
398         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
399         arguments.
400
401 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
402
403         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
404         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
405
406 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
407
408         [BZ #6966]
409         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
410
411 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
412             Ulrich Drepper  <drepper@redhat.com>
413
414         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
415         definition for GCC 3.1 and later.
416
417 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
418
419         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
420         refetch dtv, as it might have changed.
421         * elf/Makefile: Add rules to build and run tst-tls18.
422         * elf/tst-tls18.c: New test.
423         * elf/tst-tlsmod18a.c: New file.
424
425 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
426
427         [BZ #6875]
428         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
429
430 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
431
432         [BZ #6867]
433         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
434
435         [BZ #6919]
436         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
437         Fix length of copy operation.
438
439 2008-10-02  Pierre Habouzit <madcoder@debian.org>
440
441         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
442         and fix its calling convention.
443
444 2008-10-07  Andreas Schwab  <schwab@suse.de>
445
446         [BZ #6942]
447         * resolv/res_send.c (send_vc): Fix last change.
448         (send_dg): Align here as well.
449
450 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
451
452         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
453         return value in case rlimit is RLIM_INFINITY.
454
455         [BZ #6947]
456         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
457         for UL_SETFSIZE.
458         * resource/Makefile (tests): Add bug-ulimit1.
459         * resource/bug-ulimit1.c: New file.
460
461         [BZ #6974]
462         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
463         without dot.  Properly terminate the string with a null byte.
464         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
465
466         [BZ #6980]
467         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
468         negative sizees.
469         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
470         negative __size.
471
472         [BZ #6995]
473         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
474
475 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
476
477         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
478         abort if there is no initgroups_dyn function.
479
480         * resolv/res_send.c (send_dg): On timeout, only return nonzero
481         result if any of the queries really provided an answer.
482
483 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
484
485         * po/lt.po: Update from translation team.
486
487 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
488
489         * po/id.po: Update from translation team.
490
491 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
492
493         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
494         Fix tests for existence of second reply.
495
496 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
497
498         * po/id.po: New file.
499         Contributed by the Indonesian translation team.
500
501 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
502
503         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
504         initialization.
505
506 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
507
508         * elf/Makefile: Add rules to build and run tst-tls17.
509         * elf/tst-tls17.c: New test.
510         * elf/tst-tlsmod17a.c: New file.
511         * elf/tst-tlsmod17b.c: Likewise.
512
513 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
514
515         * stdlib/divmod_1.c: Use correct type for dummy variable.
516         * stdlib/mod_1.c: Likewise.
517
518 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
519
520         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
521
522 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
523
524         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
525         __nonnull order for C++.
526         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
527         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
528
529 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
530
531         * stdlib/longlong.h: Update from GCC.
532
533 2008-10-09  Jakub Jelinek <jakub@redhat.com>
534             David S. Miller  <davem@davemloft.net>
535
536         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
537         make sure any registers used with 64-bit 'branch-on-register'
538         instructions have their top 32-bits clear.
539         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
540         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
541
542 2008-09-18  Andreas Schwab  <schwab@suse.de>
543
544         [BZ #6942]
545         * resolv/res_send.c (send_vc): Fix use of unaligned address.
546         Properly handle partial reads.
547
548 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
549
550         * elf/elf.h (STO_MIPS_PLT): New.
551         (R_MIPS_COPY): New.
552         (R_MIPS_JUMP_SLOT): New.
553         (R_MIPS_NUM): Redefine to 128.
554         (DT_MIPS_PLTGOT): New.
555         (DT_MIPS_RWPLT): New.
556         (DT_MIPS_NUM): Redefine to 0x35.
557
558 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
559
560         * timezone/africa: Update from tzdata2008f.
561         * timezone/asia: Likewise.
562         * timezone/australasia: Likewise.
563         * timezone/europe: Likewise.
564         * timezone/leapseconds: Likewise.
565         * timezone/northamerica: Likewise.
566         * timezone/southamerica: Likewise.
567         * timezone/zone.tab: Likewise.
568
569 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
570
571         * nscd/connections.c: Disable use of paccept for now.
572
573 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
574
575         * socket/Versions: Remove paccept export for GLIBC_2.9.
576         * socket/Makefile (routines): Remove paccept.
577         * socket/sys/socket.h: Remove paccept declaration.
578
579         * po/sv.po: Update from translation team.
580
581 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
582
583         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
584         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
585
586 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
587
588         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
589         Patch by Olivier Fourdan <ofourdan@redhat.com>.
590
591 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
592
593         * sunrpc/rpc/svc.h: Declare svcfd_create.
594         Patch by Michael Solberg <msolberg@redhat.com>.
595
596 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
597             Ulrich Drepper  <drepper@redhat.com>
598
599         * malloc/malloc.c (public_vALLOc): Try other arenas in case
600         _int_valloc fails.
601         (public_pVALLOc): Likewise.
602
603 2008-09-02  Andreas Jaeger  <aj@suse.de>
604
605         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
606         commit.
607
608 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
609
610         [BZ #6860]
611         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
612
613 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
614
615         * Makefile (check-data): Check data directory in add-ons.
616         * elf/Makefile (check-data): Likewise.
617
618 2008-08-18  Roland McGrath  <roland@redhat.com>
619
620         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
621         * configure: Regenerated.
622         * config.make.in (cflags-cpu): New substituted variable.
623         (with-cpu): Variable removed.
624         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
625
626 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
627
628         [BZ #6845]
629         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
630         __signbitl definition and __LONG_DOUBLE_128__ guard from:
631         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
632         redundant.  Functions which call floating point assembler operations
633         should go into a sysdeps powerpc/fpu directory.
634
635 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
636
637         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
638         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
639
640 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
641
642         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
643
644         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
645         change related to AT_EXECFN.  We cannot use that string.
646         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
647         _dl_execfn member.
648         * elf/dl-support.c: Remove _dl_execfn variable.
649         (_dl_aux_init): Remove handling of AT_EXECFN.
650         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
651         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
652
653 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
654
655         [BZ #6544]
656         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
657         byte gets added to writes and seeks from the end use the length of
658         the buffer and not the currently terminating NUL byte.
659
660         [BZ #6634]
661         * login/utmp_file.c (getutent_r_file): Take additional parameter.
662         Set to true if locking failed.
663         (getutid_r_file): Adjust caller.
664         (pututline_file): Likewise.  Return NULL in this case.
665         Patch mostly by halesh.s@gmail.com.
666
667 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
668
669         [BZ #6589]
670         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
671         Define.
672         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
673
674 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
675
676         [BZ #6839]
677         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
678         macro since it is now available in elf/dynamic-link.h.
679
680 2008-08-12  Roland McGrath  <roland@frob.com>
681
682         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
683         in case used outside of libc.
684         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
685
686 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
687
688         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
689         directly instead of going through dn_comp.
690
691 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
692
693         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
694         Fix asm constraints.
695
696 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
697
698         [BZ #6790]
699         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
700         (IPV6_PMTUDISC_PROBE): Likewise.
701
702 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
703
704         [BZ #6791]
705         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
706
707 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
708             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
709
710         [BZ #6817]
711         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
712         Added the members 'vsx' and 'arch_2_06'.
713         (_dl_powerpc_platforms): Add the member 'power7'.
714         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
715         to reflect the changes required by VSX and ISA 2.06.
716         Modify _DL_PLATFORMS_COUNT to reflect the addition of
717         'power7'.
718         Defined PPC_PLATFORM_POWER7.
719         (_dl_string_platform): Add support for POWER7.
720         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
721         capability and ISA 2.06.
722
723 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
724
725         [BZ #6824]
726         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
727         macro to detect use of 128 bit long double.
728         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
729
730 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
731
732         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
733
734         [BZ #5794]
735         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
736         parameters.
737         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
738         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
739
740 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
741
742         * nscd/connections.c (main_loop_poll): Pass a buffer which is
743         guaranteed to be large enough to read inotify event.  Ignore
744         EAGAIN error.  Better error message.  Add branch predicition.
745         (main_loop_epoll): Likewise.
746
747 2008-08-02  Roland McGrath  <roland@frob.com>
748
749         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
750         Add memory clobbers.
751
752 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
753
754         * manual/arith.texi: Avoid @strong{Note:}.
755         * manual/creature.texi: Likewise.
756         * manual/filesys.texi: Likewise.
757         * manual/math.texi: Likewise.
758         * manual/memory.texi: Likewise.
759         * manual/resource.texi: Likewise.
760         * manual/syslog.texi: Likewise.
761         * manual/time.texi: Likewise.
762
763         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
764         to prevent warning.
765
766 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
767
768         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
769         new epoll_create1 interface.
770         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
771         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
772         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
773
774         * include/arpa/nameser.h (NS_GET16): Use const pointer.
775         (NS_GET32): Likewise.
776
777         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
778         syscalls, too.
779
780         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
781         use the AT_EXECFN value if it is no absolute path.
782         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
783         __ASSUME_AT_EXECFN.
784
785         * Versions.def: Add GLIBC_2.9 to libresolv.
786         * include/resolv.h: Remove hidden proto declarations for __ns_*
787         functions.  Add them for __dn_count_labels and __p_secstodate.
788         * include/arpa/nameser.h: Add a number of hidden proto declarations.
789         Define ns_msg_getflags macro here.
790         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
791         and __p_secstodate.
792         * resolv/Versions: Export functions from <arpa/nameser.h> from
793         libresolv in version GLIBC_2.9.
794         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
795         hidden definitions.
796         * resolv/ns_netint.c: Likewise.
797         * resolv/ns_parse.c: Likewise.
798         * resolv/ns_print.c: Likewise.
799         * resolv/ns_samedomain.c: Likewise.
800         * resolv/ns_ttl.c: Likewise.
801         * resolv/arpa/nameser_compat.h: Likewise.
802         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
803         function calls.
804         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
805         instead of ns_get16.
806         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
807         __ns_get32 instead of ns_get16 and ns_get32 respectively.
808         (gaih_getanswer_slice): Likewise.
809         * resolv/Makefile (libresolv-routines): Add ns_date.
810         * resolv/ns_date.c: New file.
811
812         * elf/Makefile (check-localplt.out): Also check libresolv and
813         libcrypt.
814
815 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
816
817         * sysdeps/unix/sysv/linux/kernel-features.h: Define
818         __ASSUME_O_CLOEXEC.
819
820 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
821
822         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
823         buffer passed to NSS functions.
824
825         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
826
827         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
828         Define.
829
830         * misc/syslog.c (openlog_internal): Fix compile problem.
831
832 2008-07-28  Roland McGrath  <roland@redhat.com>
833
834         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
835
836 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
837
838         * io/ftw.c (add_object): Remove inline to avoid warning.
839
840         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
841
842         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
843         Use it instead of locally defined resplen2 variable.
844         (res_nsend): Adjust for __libc_res_nsend interface change.
845         (send_vc): Initialize *resplen2 if necessary.  Read length of
846         package into an appropriately aligned variable.  Store converted length
847         in new variable and use it appropriately.
848         Add branch prediction help.
849         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
850         and pass it on to __libc_res_nsend.  Adjust all callers.
851         (__libc_res_nsearch): Likewise.
852         (__libc_res_nqeurydomain): Likewise.
853         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
854         change.
855         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
856         Define resplen2 variable and pass it to __libc_res_nsearch and then
857         to gaih_getanswer.
858         (getanswer_r): In case of incorrect DNS data don't overread buffer.
859         Add branch prediction.
860         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
861         (gaih_getanswer): Don't decode second slice if first one failed due
862         to a too small buffer.  Don't let not found status of second
863         decoder shadow results of the first.
864         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
865         and __libc_res_nquery interface changes
866         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
867         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
868         __libc_res_nsearch, and __libc_res_nsend.
869         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
870         change.
871         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
872         __libc_res_nsearch interface changes.
873
874 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
875
876         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
877
878         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
879         file descriptors with close-on-exec set.
880         (exec_comm_child): Fix the case where the write end of the pipe is
881         STDOUT_FILENO already.  In case it is, clear close-on-exec.
882
883         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
884         * io/pipe2.c: Likewise.
885         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
886         instead of __ASSUME_PACCEPT.
887         * include/unistd.h: Declare __have_pipe2.
888         * libio/iopopen.c: Implement "e" flag.
889         * libio/Makefile (tests): Add tst-popen1.
890         * libio/tst-popen1.c: New file.
891
892         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
893         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
894
895 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
896
897         [BZ #6771]
898         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
899         success call of _IO_SEEKOFF or calls which failed because the
900         descriptor is for a pipe.
901
902         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
903         magic number.
904
905         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
906
907         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
908         F_SETFD use if we know fopen set the flag.
909
910         * login/utmp_file.c (setutent_file): Minor optimization in case
911         O_CLOEXEC is available.
912
913 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
914
915         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
916         * elf/Makefile: Use pie-ccflag variable.
917         * nscd/Makefile: Likewise.
918         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
919
920 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
921
922         [BZ #6724]
923         * Versions.def: Add GLIBC_2.9 version tag for libutil.
924         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
925         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
926         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
927         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
928         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
929         utmp32, utmpx32 and login32.
930         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
931         versions of struct utmp functions to libc and libutil.
932         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
933         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
934         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
935         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
936         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
937         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
938         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
939         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
940         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
941         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
942         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
943         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
944         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
945         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
946         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
947         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
948         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
949         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
950         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
951         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
952         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
953         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
954
955 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
956
957         * scripts/gen-as-const.awk: Generate more widely usable code by
958         using 64-bit arithmetic.
959
960         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
961         the same treatment as narrow output code in last patch.
962
963         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
964
965         [BZ #6763]
966         * elf/dl-load.c (local_strdup): Remove inline.
967         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
968         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
969         part of the object.
970
971         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
972
973 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
974
975         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
976         the new syscalls, too.
977
978         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
979         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
980
981         [BZ #6698]
982         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
983         parameter for end of buffer.  If temporary copy is too large use
984         malloc.
985         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
986         interface change.
987         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
988         string rewrite when allocating buffer.
989
990         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
991         syscalls, too.
992
993         * nscd/connections.c (nscd_init): Clean up fcntl call.
994
995         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
996         SOCK_NONBLOCK if possible.
997
998         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
999         SOCK_CLOEXEC if available.
1000
1001         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
1002         __libc_clntudp_bufcreate_internal.
1003         * include/sys/socket.h: Declare __have_sock_cloexec.
1004         * socket/Makefile (aux): Add have_sock_cloexec.
1005         * socket/have_sock_cloexec.c: New file.
1006         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
1007         __libc_clntudp_bufcreate.
1008         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
1009         which takes an additional parameter.  Create socket with non-blocking
1010         mode and close-on-exec flag set, if wanted.
1011         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
1012         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
1013         instead of clntudp_create.  The socket has already the close-on-exec
1014         flag set if SOCK_CLOEXEC is defined.
1015
1016 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
1017
1018         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1019         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
1020         appropriate.
1021         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
1022         non-blocking mode by using socket, paccept, and inotify_init1.
1023
1024         * Versions.def (glibc): Add GLIBC_2.9.
1025         * io/Makefile (routines): Add dup3 and pipe2.
1026         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
1027         * io/dup3.c: New file.
1028         * io/pipe2.c: New file.
1029         * posix/unistd.h: Declare dup3 and pipe2.
1030         * socket/Makefile (routines): Add paccept.
1031         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
1032         * socket/paccept.c: New file.
1033         * socket/sys/socket.h: Declare paccept.
1034         * sysdeps/unix/syscalls.list: Add entry for dup3.
1035         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
1036         epoll_create2 and inotify_init1.
1037         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
1038         * sysdeps/unix/sysv/linux/paccept.c: New file.
1039         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
1040         possible.
1041         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
1042         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
1043         inotify_init1, and pipe2 entries.
1044         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
1045         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
1046         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
1047         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
1048         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
1049         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
1050         SOCK_NONBLOCK.
1051         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
1052         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
1053         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
1054         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
1055         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
1056         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
1057         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
1058         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
1059         EPOLL_NONBLOCK.  Declare epoll_create2.
1060         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
1061         EFD_NONBLOCK.
1062         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
1063         IN_NONBLOCK.  Declare inotify_init1.
1064         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
1065         SFD_NONBLOCK.
1066         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
1067         TFD_NONBLOCK.
1068
1069         * elf/elf.h: Define AT_EXECFN.
1070         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1071         LD_ORIGIN_PATH.
1072         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1073         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
1074         if __ASSUME_AT_EXECFN is defined.
1075         (_dl_aux_init): Handle AT_EXECFN.
1076         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1077         for 2.6.27 and up.
1078         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1079         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1080         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1081         _dl_execfn if available and avoid compatibility code if
1082         __ASSUME_AT_EXECFN is defined.
1083
1084         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1085         _dl_discover_osversion only for older kernels.
1086
1087 2008-07-22  Roland McGrath  <roland@frob.com>
1088
1089         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1090
1091 2008-07-21  Roland McGrath  <roland@frob.com>
1092
1093         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1094         returned too much data out of line.
1095
1096 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
1097
1098         * locale/setlocale.c (setname): Remove inline to avoid compiler
1099         warning.
1100
1101         [BZ #6712]
1102         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1103
1104 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
1105
1106         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1107         doesn't manage to write anything, fail.
1108
1109         * malloc/hooks.c (__malloc_check_init): Remove printf.
1110
1111 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1112
1113         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1114
1115 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
1116
1117         * nscd/connections.c (main_loop_poll): Fix handling of read errors
1118         from inotify.
1119         (main_loop_epoll): Likewise.
1120
1121 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
1122
1123         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1124
1125         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1126         if DEBUG is defined.
1127
1128         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1129         query.  Adjust buffer size computation for padding.
1130
1131 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
1132
1133         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1134         * stdio-common/tst-setvbuf1.c: New file.
1135         * stdio-common/tst-setvbuf1.expect: New file.
1136
1137         [BZ #6719]
1138         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1139         when selecting fully-buffered stream.
1140         Patch by Wang Xin <wxinee@gmail.com>.
1141
1142 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1143
1144         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1145         (__open_2): New function.
1146         (__open64_2): New alias to __open_2.
1147         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1148         (__openat_2): New function.
1149         (__openat64_2): New alias to __openat_2.
1150
1151 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
1152
1153         [BZ #6723]
1154         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1155
1156 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1157
1158         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1159         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1160         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1161         __hurd_dfail.
1162         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1163         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1164         * sysdeps/mach/hurd/send.c (__send): Likewise.
1165         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1166         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1167
1168 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1169
1170         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1171         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1172         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1173         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1174         * hurd/get-host.c (_hurd_get_host_config): Likewise.
1175         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1176
1177 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
1178
1179         [BZ #6657]
1180         * time/strptime_l.c: Don't clear s.era_cnt after successful match
1181         of %EY.
1182         Patch by Petr Baudis.
1183
1184 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
1185
1186         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
1187         Patch by Peter Jones <pjones@redhat.com>.
1188
1189 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1190
1191         [BZ #6654]
1192         * stdlib/canonicalize.c (__realpath): readlink can write too much
1193         into the buffer on platforms without PATH_MAX.
1194
1195 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
1196
1197         [BZ #6653]
1198         * posix/tst-regex.c (main): Rename to...
1199         (do_test): ... this. Remove cmdline option processing.
1200         (TIMEOUT): Define.
1201         (TEST_FUNCTION): Define.
1202         (CMDLINE_OPTIONS): Define.
1203
1204 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1205
1206         [BZ #5210]
1207         * configure.in: Add -Werror to -fstack-protector test to catch
1208         unsupported architectures.
1209         Patch by Gilles Esponasse <g.esp@free.fr>.
1210
1211 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
1212
1213         * stdlib/tst-setcontext.c: Set back_in_main before exit if
1214         getcontext returns ENOSYS.
1215
1216 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
1217
1218         * nscd/connections.c (main_loop_poll): Fix test for read error.
1219         (main_loop_epoll): Likewise.
1220
1221 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
1222
1223         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1224         better place so it is not called when nscd is used.
1225
1226         * nscd/connections.c: Also recognize and handle changes to the
1227         resolver configuration file.
1228
1229 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1230
1231         * time/strftime.c: Pass reference to tzset_called around to handle
1232         recursive calls.
1233
1234         [BZ #6612]
1235         * time/strftime.c (__strftime_internal): Call tzset() only
1236         when printing timezone-dependent values.
1237         Based on a patch by Petr Baudis <pasky@suse.cz>.
1238
1239         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1240         unconditionally use second gaih_getanswer_slice result.
1241
1242         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1243         (getaddrinfo): RES must always be non-NULL.
1244
1245 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1246
1247         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1248         cr[34] registers.
1249         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1250         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1251         Likewise.
1252         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1253         register.
1254
1255 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1256
1257         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1258         fields.
1259         * nscd/connections.c (inotify_fd): New variable.
1260         (nscd_init): Try to open an inotify descriptor.
1261         If successful, watch files for databases using inotify instead of
1262         having prune threads stat the files.
1263         (nscd_run_prune): Recognize clear_cache flag being set and call
1264         prune_cache appropriately.
1265         (main_loop_poll): Add inotify descriptor to wait set and handle the
1266         reported changes.
1267         (main_loop_epoll): Likewise.
1268         * nscd/cache.c (prune_cache): Don't stat files for databases if
1269         inotify is used.
1270         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1271         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1272
1273         * nscd/grpcache.c (cache_addgr): Correctly compute size of
1274         fixed-size portion of the record.
1275         * nscd/servicescache.c (cache_addserv): Likewise.
1276         * nscd/pwdcache.c (cache_addpw): Likewise.
1277         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1278
1279 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
1280
1281         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1282         out we don't use uninitialized memory.
1283
1284         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1285         the client.
1286
1287 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
1288
1289         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1290         ignore T_DNAME messages.
1291         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1292
1293 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
1294
1295         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1296         Avoid segfault if first GETC returns eof/'\0'/'\n'.
1297
1298 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
1299
1300         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1301         instead of portstr to nscd_getserv_r.  Patch by
1302         Roman Kagan <rkagan@mail.ru>.
1303
1304 2008-05-26  Jim Meyering  <meyering@redhat.com>
1305
1306         Remove more useless "if" tests before "free".
1307         * include/inline-hashtab.h (htab_delete): Likewise.
1308         * libio/freopen.c (freopen): Likewise.
1309         * libio/freopen64.c (freopen64): Likewise.
1310         * locale/programs/ld-collate.c (collate_read): Likewise.
1311         * misc/fstab.c (libc_freeres_fn): Likewise.
1312         * posix/glob.c (globfree): Likewise.
1313
1314 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1315
1316         * string/Makefile (strop-tests): Add memmem.
1317         * string/test-memmem.c: New file.
1318         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1319         (test_init): Size buf1 according to BUF1PAGES.
1320
1321 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
1322
1323         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1324         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1325         (CFLAGS-scanf17.c): New.
1326         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1327         * stdio-common/scanf15.c (main): Likewise.
1328         * stdio-common/scanf16.c: New file.
1329         * stdio-common/scanf17.c: New file.
1330
1331 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1332
1333         * resolv/res_send.c (send_dg): If we already have one of two
1334         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
1335         use the one answer insted of failing.
1336
1337 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
1338
1339         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1340         being executed on PowerPC as the expected result exceeds IBM
1341         long double 128 __LDBL_MAX__.
1342
1343 2008-05-21  Roland McGrath  <roland@redhat.com>
1344
1345         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1346
1347         * Makefile (check-data): Use $(abi-name) before other guesses.
1348         Look in $(add-ons) dirs before scripts/data/.
1349         * elf/Makefile (check-data): Likewise.
1350
1351         * scripts/soversions.awk: Grok ABI line.
1352         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1353         Emit definition for abi-name variable.
1354
1355 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
1356
1357         * string/endian.h: Define new fixed-size hto* and *toh macros only
1358         if [__USE_BSD].
1359
1360         * iconvdata/Depend: Add localedata.
1361
1362 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1363
1364         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1365
1366 2008-05-08  David S. Miller  <davem@davemloft.net>
1367
1368         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1369         HIDDEN_JUMPTARGET.
1370         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1371         (__SYSCALL_CLOBBERS): Remove %g* registers.
1372         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1373         (__SYSCALL_CLOBBERS): Likewise.
1374         * scripts/data/localplt-sparc-linux-gnu.data: New file.
1375         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
1376
1377 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
1378
1379         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1380         (CALL_ERRNO_LOCATION): Define.
1381         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1382         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1383         (CALL_ERRNO_LOCATION): Define.
1384         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1385         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1386         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1387
1388 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
1389
1390         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1391         variable.
1392
1393 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
1394
1395         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1396         (FIRST_FRAME_POINTER): Define.
1397
1398 2008-05-09  David S. Miller  <davem@davemloft.net>
1399
1400         * sysdeps/sparc/sparc64/backtrace.c: New file.
1401
1402 2008-05-14  David S. Miller  <davem@davemloft.net>
1403
1404         * sysdeps/sparc/machine-gmon.h: New file.
1405         * sysdeps/sparc/sparc-mcount.S: Likewise.
1406         * sysdeps/sparc/Makefile: Add sparc-mcount target to
1407         sysdep_routines in gmon directory.
1408
1409 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
1410
1411         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1412
1413 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
1414
1415         * resolv/res_query.c (__libc_res_nquery): In case one of two
1416         answer was too short don't try to read that answer's header.
1417
1418         * resolv/res_send.c (send_dg): In case of timeout and there are
1419         two queries and one has been answered, return value indicating
1420         success.
1421
1422 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
1423
1424         * nscd/cache.c (cache_add): Take additional parameter specifying
1425         whether this is in response of a cache refill.  Check alignment
1426         of package data.  Revamp waking of pruning thread.
1427         (prune_cache): Small optimization.
1428         * nscd/nscd.h: Adjust cache_add prototypes.
1429         * nscd/aicache.c: Adjust cache_add calls.
1430         * nscd/grpcache.c: Likewise.
1431         * nscd/hstcache.c: Likewise.
1432         * nscd/initgrcache.c: Likewise.
1433         * nscd/pwdcache.c: Likewise.
1434         * nscd/servicescache.c: Likewise.
1435         * nscd/connections.c (restart): Really disable cache use before
1436         exec attempt.  If it fails, reenable cache.
1437         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
1438         time to max to be able to notice concurrent cache additions.  Unlock
1439         prune_lock while performing gc.  Afterwards compute wakeup time with
1440         current wakeup_time value in mind.
1441
1442 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
1443
1444         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
1445
1446         * nscd/mem.c (gc): Correctly determine highest used array element
1447         in mark.
1448
1449         * nscd/mem.c (markrange): Add assert to check entries are all
1450         aligned.  Small cleanup in bitmap use.
1451
1452         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
1453         blockoff of type nscd_ssize_t.
1454         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
1455         (mempoll_alloc): Record block offset and not address.
1456
1457         * nscd/mem.c (gc): Fix test for stack overuse.
1458
1459         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
1460         more asserts.
1461
1462         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1463         entry is available, believe it.
1464
1465         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1466         no answers return NSS_STATUS_NOTFOUND.
1467         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1468         buffer does not have any content.
1469
1470 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
1471
1472         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1473
1474         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1475         lookup, don't assign canon unconditionally.
1476
1477 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1478
1479         * string/Makefile (distribute): Add str-two-way.h.
1480
1481 2008-03-29  Eric Blake  <ebb9@byu.net>
1482
1483         Rewrite string searches to O(n) rather than O(n^2).
1484         * string/str-two-way.h: New file.  For linear fixed-allocation
1485         string searching.
1486         * string/memmem.c: New implementation.
1487         * string/strstr.c: New implementation.
1488         * string/strcasestr.c: New implementation.
1489
1490 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
1491
1492         * posix/regcomp.c (optimize_utf8): Add a note on why we test
1493         opr.ctx_type.
1494         (calc_first): Initialize constraint field.
1495         (duplicate_node_closure): Use it instead of special casing ANCHORS.
1496         Use search_duplicated_node to avoid loops.  Fix grammar.
1497         (duplicate_node): Merge constraint field for all node types.
1498         (calc_eclosure_iter): Look at constraint field for all node types.
1499         * posix/regex_internal.c (create_cd_newstate): Don't look at
1500         create_cd_newstate.
1501
1502 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1503
1504         [BZ #6428]
1505         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
1506
1507         [BZ #6442]
1508         * string/endian.h: Add macros for fixed-size endian conversion.
1509         * bits/byteswap.h: Allow inclusion from <endian.h>.
1510         * sysdeps/i386/bits/byteswap.h: Likewise.
1511         * sysdeps/ia64/bits/byteswap.h: Likewise.
1512         * sysdeps/s390/bits/byteswap.h: Likewise.
1513         * sysdeps/x86_64/bits/byteswap.h: Likewise.
1514         * string/Makefile (tests): Add tst-endian.
1515         * string/tst-endian.c: New file.
1516
1517         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
1518         Patch by Reuben Thomas.
1519
1520 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
1521
1522         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
1523
1524 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1525
1526         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
1527
1528         [BZ #6461]
1529         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
1530         Add missing braces.
1531         (BODY for __gconv_transform_internal_ascii): Likewise.
1532
1533         [BZ #6472]
1534         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
1535         to be treated like link-local addresses.
1536         (match_prefix): Don't treat IPv4 loopback address special when
1537         converting to v4 mapped addressed.
1538
1539         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1540         if necessary.
1541         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
1542         * posix/tst-rfc3484-2.c: Likewise.
1543         * posix/tst-rfc3484-3.c: Likewise.
1544
1545         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
1546         and SCTP.
1547
1548         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
1549
1550         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
1551
1552         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
1553
1554 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
1555
1556         * po/lt.po: New file.  From Lituanian translation team.
1557
1558 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
1559
1560         Introduce TLS descriptors for i386 and x86_64.
1561         * include/inline-hashtab.h: New file, copied from 2005's
1562         libiberty, with fix for memory leak imported afterwards by
1563         Glauber de Oliveira Costa.
1564         * elf/tlsdeschtab.h: New file.
1565         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
1566         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
1567         (CHECK_STATIC_TLS): Move to...
1568         * elf/dynamic-link.h: ... this file.
1569         (TRY_STATIC_TLS): New macro.
1570         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
1571         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
1572         R_386_TLS_DESC): Define.
1573         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
1574         binutils.
1575         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
1576         R_X86_64_TLSDESC): Define.
1577         (R_386_NUM, R_X86_64_NUM): Adjust.
1578         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
1579         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1580         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1581         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1582         release tlsdesc_table.
1583         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
1584         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
1585         (elf_machine_rel): Handle R_386_TLS_DESC.
1586         (elf_machine_rela): Likewise.
1587         (elf_machine_lazy_rel): Likewise.
1588         (elf_machine_lazy_rela): Likewise.
1589         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
1590         * sysdeps/i386/dl-tlsdesc.S: New file.
1591         * sysdeps/i386/dl-tlsdesc.h: New file.
1592         * sysdeps/i386/tlsdesc.c: New file.
1593         * sysdeps/i386/tlsdesc.sym: New file.
1594         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
1595         tlsdesc_table.
1596         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
1597         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1598         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1599         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1600         release tlsdesc_table.
1601         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
1602         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
1603         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
1604         (elf_machine_rel): Handle R_X86_64_TLSDESC.
1605         (elf_machine_rela): Likewise.
1606         (elf_machine_lazy_rel): Likewise.
1607         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
1608         (__tls_get_addr): Do not declare for non-shared compiles.
1609         * sysdeps/x86_64/dl-tlsdesc.S: New file.
1610         * sysdeps/x86_64/dl-tlsdesc.h: New file.
1611         * sysdeps/x86_64/tlsdesc.c: New file.
1612         * sysdeps/x86_64/tlsdesc.sym: New file.
1613         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
1614         tlsdesc_table for both 32- and 64-bit structs.
1615
1616 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1617
1618         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
1619         its own function.  This reduces the frame setup costs and more.
1620
1621 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
1622
1623         [BZ #3406]
1624         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
1625         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
1626
1627 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1628
1629         * io/openat.c (__openat_2): Also pass fd to __openat.
1630         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
1631         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
1632
1633         * string/tester.c (test_memcmp): Add a few more tests.
1634         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
1635
1636 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1637
1638         * nscd/cache.c (cache_add): Before returning with failure and this
1639         is the first use of the record, mark it as unusable.
1640         * nscd/aicache.c: Don't touch the dataset after cache_add returns
1641         reporting a failure.
1642         * nscd/grpcache.c: Likewise
1643         * nscd/hstcache.c: Likewise.
1644         * nscd/initgrcache.c: Likewise.
1645         * nscd/pwdcache.c: Likewise.
1646         * nscd/servicescache.c: Likewise.
1647
1648 2008-05-10  Roland McGrath  <roland@redhat.com>
1649
1650         [BZ #6505]
1651         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
1652
1653 2008-05-08  David S. Miller  <davem@davemloft.net>
1654
1655         * misc/truncate64.c (truncate64): Use __truncate not truncate.
1656
1657         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
1658         (__ieee754_y0l): Likewise.
1659         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1660         (__ieee754_y1l): Likewise.
1661         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
1662         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
1663         frexpl and ldexpl.  math_private.h provides them and the latter
1664         is not even used.
1665         (__log1pl): Use __frexpl.
1666
1667 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1668
1669         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
1670         prototypes.
1671         * include/arpa/nameser_compat.h: Define T_UNSPEC.
1672         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
1673         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
1674         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
1675         af==AF_UNSPEC.
1676         (_nss_nis_gethostbyname4_r): New function.
1677         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1678         Change to also handle af==AF_UNSPEC.
1679         (get_tablename): New function.  Use it to avoid duplication.
1680         (_nss_nisplus_gethostbyname4_r): New function.
1681         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
1682         available.
1683         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
1684         * nss/nss.h: Define struct gaih_addrtuple.
1685         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
1686         af==AF_UNSPEC.
1687         (_nss_files_gethostbyname4_r): New function.
1688         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
1689         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
1690         calls.
1691         * resolv/res_query.c (__libc_res_nquery): Take two additional
1692         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
1693         look up IPv4 and IPv6.
1694         Change all callers.
1695         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
1696         for an additional query and answer buffer.  Pass to send_vc and
1697         send_dg.
1698         (send_vc): Send possibly two requests and receive two answers.
1699         (send_dg): Likewise.
1700         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
1701         __libc_res_nquery.
1702         (_nss_dns_gethostbyname4_r): New function.
1703         (gaih_getanswer_slice): Likewise.
1704         (gaih_getanswer): Likewise.
1705         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
1706         __libc_res_nquery call.
1707         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
1708         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
1709         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
1710         available.
1711
1712 2008-05-05  David S. Miller  <davem@davemloft.net>
1713
1714         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
1715         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
1716
1717 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1718
1719         Fix termios bit macros.
1720         Move *DLY definitions where they belong, in termios.h.
1721         Add *[0-3] definitions.
1722         Fixes confusion between VT and FF.
1723         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
1724         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
1725         are already defined to avoid collision with termios.h.
1726         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
1727         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
1728         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
1729         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
1730         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
1731         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
1732         VTDLY, VT0, VT1): New macros.
1733         [__USE_GNU] (OLCUC): Change value of macro.
1734         [__USE_XOPEN] (OFILL): New macro.
1735         [__USE_BSD] (CRTSCTS): Change value.
1736         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
1737         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
1738         (B7200, B14400, B28800, B76800): New macros.
1739
1740 2008-05-01  David S. Miller  <davem@davemloft.net>
1741
1742         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
1743         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
1744         (gen-as-const-headers): Add it.
1745         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
1746         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
1747         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
1748         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
1749
1750         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
1751         six system call parameters.
1752         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
1753
1754 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
1755
1756         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
1757         RUSAGE_LWP.
1758         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1759         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1760
1761 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
1762
1763         * stdlib/tst-setcontext.c: Include unistd.h.
1764
1765 2008-04-25  David S. Miller  <davem@davemloft.net>
1766
1767         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
1768         Pass "union semun" properly in to sys_ipc, it must be passed
1769         by value, not by reference.
1770
1771 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
1772
1773         * nscd/Makefile (nscd-cflags): Set back to -fpie.
1774         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
1775         * nscd/connections.c (mem_in_flight): Likewise.
1776
1777         * nscd/nscd.h (dbs): Make hidden.
1778
1779         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
1780         Avoid returning -1, return 0 instead.
1781
1782 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
1783
1784         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
1785
1786 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
1787
1788         [BZ #5209]
1789         * sysdeps/unix/sysv/linux/times.c: New file.
1790
1791         [BZ #5381]
1792         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
1793         mem_in_flight_list variables.  Add new parameter to mempool_alloc
1794         prototype.
1795         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
1796         appropriate mem_in_flight element.
1797         (gc): Take allocations which have not yet been committed to the
1798         database into account.
1799         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
1800         Reset mem_in_flight before returning.
1801         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
1802         cue it up in mem_in_flight_list.
1803         * nscd/aicache.c: Adjust mempool_alloc call.
1804         * nscd/grpcache.c: Likewise.
1805         * nscd/hstcache.c: Likewise.
1806         * nscd/initgrcache.c: Likewise.
1807         * nscd/pwdcache.c: Likewise.
1808         * nscd/servicescache.c: Likewise.
1809         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
1810         of -fpie.
1811
1812         * nscd/connections.c (handle_request): Provide better error message
1813         in case SELinux forbids the service.
1814
1815         * version.h (VERSION): Bump to 2.8.90.
1816
1817 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
1818
1819         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
1820
1821 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
1822
1823         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
1824         Also use for 32-bit.
1825         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
1826         __nextafter instead of nextafter to avoid local PLT.
1827         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
1828         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1829
1830         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
1831
1832         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
1833         __fe_nomask_env.
1834         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
1835         <fenv_libc.h> instead of <fenv.h>.
1836         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
1837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
1838
1839         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
1840
1841         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
1842         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
1843         function from fegetexcept and make old name weak alias.
1844         * include/fenv.h: Declare __fegetexcept.
1845         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
1846         fegetexcept.
1847         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
1848         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
1849         to fetestexcept.
1850         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
1851         instead of frexpl to avoid local PLT.
1852         * math/s_significandl.c (__significandl): Use __ilogbl instead of
1853         ilogbl to avoid local PLT.
1854         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
1855         instead of ldexpl to avoid local PLT.
1856         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
1857         __roundl not roundl to avoid local PLT.
1858         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
1859         local PLTs.  Use __sincosl instead of separate sinl and cosl
1860         calls.
1861         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1862
1863         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
1864         version for ppc64 to 2.4.21 since without it makecontext will fail.
1865
1866         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
1867         to the ABI in use.
1868         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
1869         .__tls_get_addr.
1870         [__powerpc64__] (TLS_GD): Likewise.
1871
1872 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
1873
1874         [BZ #4997]
1875         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
1876         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
1877         mantissa.
1878         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1879         Likewise.  Also account for when x is an odd number between 2^52
1880         and 2^53-1.
1881         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
1882         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1883         * math/libm-test.inc (lround_test, llround_test): Added test cases to
1884         detect aforementioned erroneous conditions.
1885
1886 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
1887
1888         * configure.in: Check for -fno-section-anchors in addition to
1889         -fno-toplevel-reorder.
1890
1891 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
1892
1893         * include/features.h (__GLIBC_MINOR__): Bump to 8.
1894
1895         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
1896         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
1897         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
1898         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
1899         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
1900         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
1901
1902 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
1903
1904         [BZ #5443]
1905         * time/era.c: Transform __libc_setlocale_lock into rwlock.
1906         * time/alt_digit.c: Likewise.
1907         * wcsmbs/wcsmbsload.c: Likewise.
1908
1909 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
1910
1911         * version.h (VERSION): Bump to 2.8.
1912
1913         * timzeone/asia: Update from tzdata2008b.
1914         * timezone/backward: Likewise.
1915         * timezone/europe: Likewise.
1916         * timezone/northamerica: Likewise.
1917         * timezone/southamerica: Likewise.
1918         * timezone/iso3166.tab: Likewise.
1919         * timezone/leapseconds: Likewise.
1920         * timezone/zone.tab: Likewise.
1921         * timezone/private.h: Update from tzcode2008a.
1922         * timezone/zdump.c: Likewise.
1923         * timezone/zic.c: Likewise.
1924
1925 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
1926
1927         [BZ #5741]
1928         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
1929         Define additonal Data Cache Block instruction macros.
1930         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
1931         Replace dcbst with dcbf and sync with sync/isync.
1932
1933 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
1934
1935         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
1936         Always set ELF_RTYPE_CLASS_PLT.
1937         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
1938
1939 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
1940
1941         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
1942         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
1943         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
1944         For ISA 2.01 and later replace mftb with mfspr 268.
1945
1946 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
1947
1948         [BZ #5768]
1949         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
1950         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
1951
1952 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
1953
1954         [BZ #5768]
1955         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
1956         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
1957         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
1958         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
1959
1960 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
1961
1962         * stdlib/tst-makecontext.c (othervar): New variable.
1963         (cf): Test sign extending the argument to long.
1964
1965 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
1966
1967         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
1968         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
1969         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
1970         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
1971         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
1972         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
1973         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
1974
1975 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
1976
1977         * elf/Makefile (tests): Substitute tests-vis-yes here.
1978         (tests-vis-yes): Delete.
1979         (modules-name, modules-vis-yes): Similarly.
1980
1981 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
1982
1983         [BZ #4407]
1984         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
1985         Preserve sign in signgamp when x is zero.
1986
1987 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
1988
1989         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
1990         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
1991         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
1992         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
1993         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
1994         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
1995
1996 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
1997
1998         [BZ #4314]
1999         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
2000         buffers.
2001
2002         [BZ #5209]
2003         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
2004         a reserved error value.
2005
2006         * stdlib/tst-makecontext.c: Change parameter to cf to negative
2007         value to check for correct sign extension.
2008
2009         [BZ #5436]
2010         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2011         Copy 64-bit parameter values even though this is not required in
2012         the standard.
2013
2014         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
2015         PC save.
2016
2017 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
2018
2019         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
2020         PC save.
2021
2022 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
2023
2024         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
2025
2026 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2027
2028         [BZ #5998]
2029         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
2030         in line-buffered stream failed.
2031         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2032
2033 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
2034
2035         [BZ #6024]
2036         * scripts/abi-versions.awk: If the version specified by
2037         --enable-oldest-abi is older than the first version for this
2038         architecture, use the default version.
2039
2040         * locale/programs/ld-collate.c (collate_read): Ignore script lines
2041         as well when ignoring the whole category.
2042
2043 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2044
2045         [BZ #6042]
2046         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
2047         ETHERTYPE_* definitions.
2048         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
2049
2050 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2051
2052         * stdlib/mbtowc.c (__no_r_state): Remove.
2053         (mbtowc): New static state variable.  Use it instead of
2054         __no_r_state.
2055         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
2056         (__wctomb_state): New hidden variable.
2057         (wctomb): Use __wctomb_state instead of __no_r_state.
2058         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
2059         (__wctomb_state): New extern decl.
2060         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
2061
2062 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2063
2064         [BZ #5475]
2065         * resolv/res_init.c: Handle scope IDs in resolv.conf.
2066
2067 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2068
2069         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2070
2071 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
2072
2073         * po/nl.po: Update from translation team.
2074
2075 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
2076
2077         [BZ #6007]
2078         * string/strfry.c: Handle empty strings again.
2079
2080 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2081
2082         [BZ #5443]
2083         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2084         before looking for translation.
2085         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2086         * locale/freelocale.c: Likewise.
2087         * locale/newlocale.c: Likewise.
2088         * locale/setlocale.c: Likewise.
2089         Based partially on a patch by ryo@np.css.fujitsu.com.
2090
2091 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
2092
2093         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2094         acquiring wrlock.  Do conv_tab allocation while holding lock.
2095         * intl/Makefile: Add rules to build and run tst-gettext6.
2096         * intl/tst-gettext6.c: New test.
2097         * intl/tst-gettext6.sh: New file.
2098
2099 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2100
2101         * po/nl.po: Update from translation team.
2102
2103         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2104         provided through st_blksize, try the default size before giving up.
2105
2106 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
2107
2108         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2109
2110         [BZ #5939]
2111         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2112
2113         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2114         error message.  POSIX today does not require the messages to be in
2115         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
2116
2117         [BZ #5979]
2118         * sunrpc/auth_unix.c: Unify printed strings.
2119         * sunrpc/clnt_tcp.c: Likewise.
2120         * sunrpc/clnt_udp.c: Likewise.
2121         * sunrpc/clnt_unix.c: Likewise.
2122         * sunrpc/svc_tcp.c: Likewise.
2123         * sunrpc/svc_udp.c: Likewise.
2124         * sunrpc/svc_unix.c: Likewise.
2125         * sunrpc/xdr.c: Likewise.
2126         * sunrpc/xdr_array.c: Likewise.
2127         * sunrpc/xdr_rec.c: Likewise.
2128         * sunrpc/xdr_ref.c: Likewise.
2129         * locale/programs/ld-time.c (time_finish): Unify messages.
2130         * locale/programs/locfile.c (handle_copy): Fix typo.
2131         * nscd/nscd.c (options): Fix typo.
2132
2133         [BZ #5995]
2134         * stdlib/strtod_l.c: Use correct sign for result in one more
2135         underflow case.
2136         Patch by Eric Blake <ebb9@byu.net>.
2137
2138 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
2139
2140         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2141         and creat system calls.
2142         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2143         call.
2144         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2145         system calls.
2146         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2147         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2148         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2149
2150 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
2151
2152         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2153         <linux/limits.h> has defined it.
2154         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2155         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2156         headers.
2157         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2158         it instead of ARG_MAX.
2159
2160 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
2161
2162         * posix/gai.conf: Fix comment for scope nullbits.
2163         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2164         default to 128 bits for v4 mapped addresses.
2165
2166 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2167
2168         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2169         ptrace call to get the ieee_instruction_pointer from the kernel.
2170         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2171         ptrace call to set the ieee_instructtion_pointer.
2172         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2173         Add comment that ieee_instruction_pointer is always 0.
2174
2175 2008-03-09  Andreas Jaeger  <aj@suse.de>
2176
2177         [BZ #5857]
2178         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2179         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2180         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2181
2182         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2183         (rint_test): Likewise.
2184
2185 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
2186
2187         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2188         call.
2189         (__nisfind_server): Similar for open readColdStartFile call.
2190         Patch partially by Jim Meyering.
2191         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2192         around internal_setent call.
2193
2194         * po/vi.po: New Vietnamese translation.
2195
2196         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2197         ADJ_OFFSET_SS_READ.
2198
2199         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2200         remove CLONE_STOPPED.
2201
2202 2008-02-10  Jim Meyering  <meyering@redhat.com>
2203
2204         Remove useless "if" before "free":
2205         * elf/ldconfig.c (parse_conf_include): Likewise.
2206         * gmon/gmon.c (weak_alias): Likewise.
2207         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2208         * inet/rcmd.c (__validuser2_sa): Likewise.
2209         * intl/bindtextdom.c (set_binding_values): Likewise.
2210         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2211         * libio/genops.c (save_for_backup): Likewise.
2212         * libio/wgenops.c (save_for_wbackup): Likewise.
2213         * locale/programs/ld-collate.c (collate_read): Likewise.
2214         * locale/programs/linereader.c (get_string): Likewise.
2215         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2216         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2217         * resolv/res_debug.c (do_section): Likewise.
2218         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2219         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2220         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2221         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2222         * time/tzset.c (tzset_internal): Likewise.
2223
2224 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2225
2226         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2227         of ASSEMBLER.
2228
2229 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
2230
2231         [BZ #5903]
2232         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2233         not stream for output file.  Open output file here.
2234         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2235         and output file name.
2236         (process_fd): Likewise.
2237         (process_file): Likewise.
2238         (main): Adjust callers of changed functions.
2239         * iconv/iconv_prog.h: Adjust prototype.
2240
2241 2008-03-09  Andreas Jaeger  <aj@suse.de>
2242
2243         [BZ #5753]
2244         * sysdeps/ia64/ieee754.h: Use protected namespace
2245         __BIG_ENDIAN/__LITTLE_ENDIAN.
2246         * sysdeps/ieee754/ieee754.h: Likewise.
2247         Patch by Aurelien Jarno <aurelien@aurel32.net>.
2248
2249 2008-03-08  Roland McGrath  <roland@frob.com>
2250
2251         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2252         ignore a signal that came from a machine exception, treat it as a
2253         fatal core-dump signal instead.
2254         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2255
2256         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2257         Clear DF bit in thread state's eflags.
2258         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2259
2260 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
2261
2262         [BZ #5774]
2263         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
2264         of NAN(...) sequence.
2265         * stdlib/Makefile (tests): Add tst-strtod6.
2266         * stdlib/tst-strtod6.c: New file.
2267
2268         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2269
2270         [BZ #5762]
2271         * posix/getopt.c (_getopt_internal_r): Clarify error message by
2272         putting offending option character in quotes.  Clean up error
2273         messages.
2274         * po/be.po: Adjust msgstr in translation file.
2275         * po/bg.po: Likewise.
2276         * po/ca.po: Likewise.
2277         * po/cs.po: Likewise.
2278         * po/da.po: Likewise.
2279         * po/de.po: Likewise.
2280         * po/es.po: Likewise.
2281         * po/fr.po: Likewise.
2282         * po/hr.po: Likewise.
2283         * po/ko.po: Likewise.
2284         * po/nl.po: Likewise.
2285         * po/rw.po: Likewise.
2286         * po/sk.po: Likewise.
2287         * po/sv.po: Likewise.
2288         * po/tr.po: Likewise.
2289         * po/zh_CN.po: Likewise.
2290         * po/zh_TW.po: Likewise.
2291
2292         [BZ #5760]
2293         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2294         Patch by Roland Bless <roland@bless.de>.
2295
2296         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2297         .o file.
2298         * elf/Makefile (routines): Add dl-sysdep.
2299         (elide-routines.os): Likewise.
2300
2301 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
2302
2303         [BZ #5786]
2304         * elf/dl-sysdep.c: Undefine ROUND after use.
2305         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2306         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2307         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2308         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2309         to ...
2310         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2311         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2312         if necessary.
2313         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2314
2315         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2316         _dl_tls_get_addr_soft element.
2317         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2318         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2319         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2320         GLRO.
2321         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2322         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2323         of internal_function.
2324
2325         * stdlib/Makefile (aux): Add tens_in_limb.
2326         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2327         * stdlib/tens_in_limb.c: ...here.  New file.
2328
2329         [BZ #5778]
2330         * sysdeps/unix/sysv/linux/pathconf.h: Declare
2331         __statfs_chown_restricted.
2332         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2333         for _PC_CHOWN_RESTRICTED.
2334         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2335         Implement __statfs_chown_restricted.
2336         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2337         _POSIX_CHOWN_RESTRICTED value to zero.
2338         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2339         defined to zero.
2340
2341         * sysdeps/x86_64/rtld-memset.c: New file.
2342
2343 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
2344
2345         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2346
2347         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2348         Barcelona machine.  Make default fall through branch of
2349         __x86_64_preferred_memory_instruction check as the integer code path.
2350
2351 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2352
2353         * sysdeps/x86_64/cacheinfo.c
2354         (__x86_64_preferred_memory_instruction): New variable.
2355         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2356
2357         * sysdeps/x86_64/memset.S: Rewrite.
2358
2359 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
2360
2361         * include/stdio.h (__asprintf_chk, __dprintf_chk,
2362         __obstack_printf_chk): New prototypes.
2363         (__vasprintf_chk, __vdprintf_chk,
2364         __obstack_vprintf_chk): Likewise.
2365         Add libc_hidden_proto.
2366         * libio/obprintf.c
2367         (_IO_obstack_jumps): No longer static, add attribute_hidden.
2368         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2369         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2370         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2371         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2372         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2373         __obstack_vprintf_chk): New prototypes.
2374         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2375         obstack_vprintf): New inlines.
2376         * debug/dprintf_chk.c: New file.
2377         * debug/vdprintf_chk.c: New file.
2378         * debug/asprintf_chk.c: New file.
2379         * debug/vasprintf_chk.c: New file.
2380         * debug/obprintf_chk.c: New file.
2381         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2382         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2383         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2384         @@GLIBC_2.8.
2385         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2386         vdprintf_chk and obprintf_chk, set CFLAGS for them.
2387         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2388         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2389         libc_hidden_proto.
2390         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2391         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2392         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2393         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2394         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2395         @@GLIBC_2.8.
2396         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2397         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2398         obstack_vprintf_chk.
2399         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2400         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2401         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2402         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2403         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2404         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2405
2406 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
2407
2408         [BZ #5779]
2409         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2410         Patch by Roy Marples <roy@marples.name>.
2411
2412         [BZ #5736]
2413         * malloc/malloc.c: Fix typo in comment.
2414
2415         [BZ #5627]
2416         * locale/iso-639.def: Add Shuswap.
2417
2418 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
2419
2420         [BZ #5790]
2421         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2422         overwrite *h_errnop/*errnop values from getanswer_r in case of
2423         failure.
2424
2425 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
2426
2427         [BZ #5818]
2428         * nscd/connections.c (dbs): Add initializers for .suggested_module.
2429         (verify_persistent_db): Remove one unnecessary test and add a new one
2430         for bad configuration.
2431         (nscd_init): Improve error reported when persistent database cannot
2432         be reused.
2433         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
2434         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
2435         .suggested_module and .max_db_size and case config file says the
2436         values are zero.
2437         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
2438
2439         [BZ #5854]
2440         * nis/ypclnt.c (yp_order): Fix handling of return value of
2441         do_ypcall_tr call.
2442         Patch by Jeff Moyer <jmoyer@redhat.com>.
2443
2444         * po/fr.po: Update from translation team.
2445
2446 2008-02-22  Andreas Jaeger  <aj@suse.de>,
2447             Carlos O'Donell <carlos@systemhalted.org>
2448
2449         [BZ #5012]
2450         * FAQ.in: Describe why glibc needs to be compiled with
2451         optimization.
2452
2453 2008-02-19  Roland McGrath  <roland@redhat.com>
2454
2455         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
2456
2457 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
2458
2459         [BZ #5737]
2460         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
2461         __USE_MISC is defined.
2462
2463 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
2464
2465         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2466         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2467         sys/timerfd.h.
2468         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2469         timerfd_gettime, timerfd_settime.
2470         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2471         timerfd_gettime, timerfd_settime for GLIBC_2.8.
2472
2473 2008-02-08  Roland McGrath  <roland@redhat.com>
2474
2475         * elf/elf.h (NT_PPC_SPE): New macro.
2476
2477 2008-02-06  Roland McGrath  <roland@redhat.com>
2478
2479         * Makerules ($(common-objpfx)sysd-rules):
2480         Depend on $(sysdep-makeconfigs).
2481
2482 2008-01-31  Roland McGrath  <roland@redhat.com>
2483
2484         [BZ #5442]
2485         * configure.in: Use -print-file-name if it yields a directory,
2486         for each of include and include-fixed.
2487         * configure: Regenerated.
2488
2489         * Makeconfig (sysd-rules-targets): New variable.
2490         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2491         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2492
2493 2008-01-30  Roland McGrath  <roland@redhat.com>
2494
2495         * manual/libc.texinfo: Update back-cover text.
2496
2497         * elf/elf.h (NT_386_TLS): New macro.
2498
2499 2008-01-29  Roland McGrath  <roland@redhat.com>
2500
2501         * Makeconfig (sysd-rules-patterns): New variable.
2502         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
2503         (check-inhibit-asm): New canned sequence, replaces ...
2504         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
2505         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
2506         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
2507         (CFLAGS-rtld): Variable removed.
2508
2509 2008-01-24  Roland McGrath  <roland@redhat.com>
2510
2511         * configure.in: Let configure fragments set base_os.
2512         * configure: Regenerated.
2513
2514 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
2515
2516         * po/ko.po: Update from translation team.
2517
2518 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
2519
2520         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
2521
2522 2008-01-12  Andreas Jaeger  <aj@suse.de>
2523
2524         [BZ #5040]
2525         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
2526         Add EPOLLRDHUP.
2527
2528 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2529
2530         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
2531         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
2532         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
2533
2534 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
2535
2536         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
2537         * elf/dl-close.c (_dl_close): Check for it.
2538         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
2539         (_dl_allocate_static_tls): Likewise.
2540         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2541         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
2542         to it.
2543         * elf/tst-tls16.c: New file.
2544         * elf/tst-tlsmod16a.c: New file.
2545         * elf/tst-tlsmod16b.c: New file.
2546         * elf/Makefile: Add rules to build and run tst-tls16.
2547
2548 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
2549
2550         [BZ #5628]
2551         * bits/shm.h: Fix comment describing shmid_ds.
2552         * sysdeps/gnu/bits/shm.h: Likewise.
2553         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2554         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2555         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2556         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2557         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2558         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2559         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2560         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2561         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
2562
2563         [BZ #5607]
2564         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
2565         prototypes.
2566         * conform/data/limits.h-data: Adjust limits changed in v6 and add
2567         additional suffixes.
2568         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
2569         Add optional functions mq_timedreceive and mq_timedsend.
2570         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
2571         * conform/data/pthread.h-data: Fix prototype of
2572         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
2573         * conform/data/semaphore.h-data: Allow time.h definitions.
2574         * conform/data/signal.h-data: Likewise.
2575         * conform/data/stdio.h-data: getw and putw are not required in v6.
2576         * conform/data/stdlib.h-data: Change setstate prototype.
2577         * conform/data/string.h-data: Fix strerror_r prototype.
2578         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
2579         * conform/data/unistd.h-data: pthread_atfork not required in v6.
2580         Fix readlink prototype.
2581         * conform/data/netinet/in.h-data: Add const to in6addr_any and
2582         in6addr_loopback.
2583         * inet/netinet/in.h: Cleanup namespace.
2584         * posix/regex.h: Likewise.
2585         * resolv/netdb.h: Likewise.
2586         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
2587         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2588         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2589         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
2590         of names of in in6_addr.
2591         (default_precedence): Likewise.
2592         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
2593         NULL definition.
2594
2595 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
2596
2597         * conform/data/fmtmsg.h-data: Add missing allows.
2598         * conform/data/ftw.h-data: Likewise.
2599         * conform/data/inttypes.h-data: Likewise.
2600         * conform/data/math.h-data: Likewise.
2601         * conform/data/signal.h-data: Likewise.
2602         * conform/data/net/if.h-data: Likewise.
2603         * conform/data/netinet/in.h-data: Likewise.
2604         * conform/data/sys/socket.h-data: Likewise.
2605
2606         [BZ #5614]
2607         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
2608         (__strtok_r): Simplify.
2609         * string/tester.c (test_strtok_r): Add test case for futile search
2610         with single-character seach string.
2611
2612 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
2613
2614         * po/ko.po: Update from translation team.
2615
2616 2008-01-11  Andreas Jaeger  <aj@suse.de>
2617
2618         [BZ #5600]
2619         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
2620         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
2621         kernel header.
2622
2623 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
2624
2625         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
2626         native interface lookup in all the relevant places.
2627
2628 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
2629             Ulrich Drepper  <drepper@redhat.com>
2630
2631         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
2632         field.  Use sockaddr_in6 for source_addr.
2633         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
2634         (match_prefix): Likewise.
2635         (get_label): Likewise.
2636         (get_precedence): Likewise.
2637         (rfc3484_sort): Change to use indirect access to results array.
2638         Adjust to use of sockaddr_in6.  Replace service_order test with
2639         simple index comparison.
2640         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
2641         service_order field.  Adjust qsort_t calls.  Access sorted result
2642         array indirectly through order array.
2643         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
2644         * posix/tst-rfc3484-2.c: Likewise.
2645         * posix/tst-rfc3484-3.c: Likewise.
2646
2647 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
2648
2649         [BZ #5541]
2650         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
2651         pollfd structures.
2652         Patch by AndrĂ© Cruz.
2653
2654         [BZ #5545]
2655         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
2656         (clnt_spcreateerror): Likewise.
2657
2658         [BZ #5553]
2659         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
2660         (public_mEMALIGn): Likewise.
2661         Patch mostly by Daniel Jacobowitz.
2662
2663 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
2664
2665         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
2666         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
2667         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
2668         * stdlib/tst-makecontext2.c: New test.
2669
2670 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
2671
2672         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
2673         defined.
2674         (REINIT_PARAMS): Likewise.  Undefine before end of file.
2675         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
2676         transliteration hooks and REINIT_PARAMS afterwards.
2677         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
2678         status.
2679         (REINIT_PARAMS): Define.
2680         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
2681         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
2682         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
2683         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
2684         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
2685         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
2686         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
2687         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
2688         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
2689         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
2690         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
2691         * iconvdata/tst-iconv7.c: New test.
2692
2693 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
2694
2695         * libio/stdio.h (vscanf): Fix definition for loser compilers.
2696
2697 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
2698
2699         [BZ #5112]
2700         * nscd/connections.c (restart): Fix condition.
2701
2702 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
2703
2704         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
2705         __ctype_toupper_loc): Add __THROW.
2706
2707 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
2708
2709         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
2710         recognition of interface family.
2711
2712         * posix/getconf.c: Update copyright year.
2713         * nss/getent.c: Likewise.
2714         * iconv/iconvconfig.c: Likewise.
2715         * iconv/iconv_prog.c: Likewise.
2716         * elf/ldconfig.c: Likewise.
2717         * catgets/gencat.c: Likewise.
2718         * csu/version.c: Likewise.
2719         * elf/ldd.bash.in: Likewise.
2720         * elf/sprof.c (print_version): Likewise.
2721         * locale/programs/locale.c: Likewise.
2722         * locale/programs/localedef.c: Likewise.
2723         * nscd/nscd.c (print_version): Likewise.
2724         * debug/xtrace.sh: Likewise.
2725         * malloc/memusage.sh: Likewise.
2726         * malloc/mtrace.pl: Likewise.
2727         * debug/catchsegv.sh: Likewise.
2728
2729 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
2730
2731         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
2732         second lookup.
2733
2734 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
2735
2736         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
2737         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2738
2739 2007-12-17  Roland McGrath  <roland@redhat.com>
2740
2741         * inet/ether_line.c (ether_line): Remove unused variable.
2742
2743 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2744
2745         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
2746         and winp.
2747         * login/openpty.c (openpty): Likewise.
2748         * login/pty.h (openpty, forkpty): Likewise.
2749         * manual/terminal.texi (openpty, forkpty): Likewise.
2750
2751 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
2752
2753         * malloc/malloc.c (public_cALLOc): For arenas other than
2754         main_arena, count all bytes inside the mprotect_size range of the
2755         heap as uninitialized.
2756
2757 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
2758
2759         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
2760         executable stacks.
2761
2762         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
2763         mTRIm for all of them.
2764         (mTRIm): Additionally iterate over all free blocks and use madvise
2765         to free memory for all those blocks which contain at least one
2766         memory page.
2767         * malloc/tst-trim1.c: New file.
2768         * malloc/Makefile (tests): Add tst-trim1.
2769
2770         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
2771
2772 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
2773
2774         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2775         First cast argument to long
2776         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
2777         Return long.
2778         (__vdso_clock_gettime): Likewise.
2779         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
2780         return long.
2781
2782 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
2783
2784         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
2785         * locale/nl_langinfo_l.c: Real implementation, copied from
2786         nl_langinfo.c.
2787         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
2788
2789 2007-12-01  Jim Meyering  <meyering@redhat.com>
2790
2791         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2792         that would inhibit utf8-optimization of a regexp containing line-
2793         or buffer-anchors, e.g., `^', `$'.
2794
2795 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
2796
2797         * time/bug-getdate1.c (do_test): Don't use century values which
2798         aren't valid on 32-bit systems.
2799
2800 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
2801
2802         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
2803         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
2804         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
2805         __strcat_g, __strncat_g): Add __asm__.
2806
2807 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
2808
2809         [BZ #5477]
2810         * io/fchmodat.c: Fix typo in stub_warning use.
2811         Patch by Petr Salinger.
2812
2813 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
2814
2815         * iconvdata/hp-thai8.c: New file.
2816         * iconvdata/Makefile: Add rules for hp-thai8.c.
2817         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
2818         * iconvdata/gconv-modules: Likewise.
2819
2820         [BZ #5464]
2821         * iconvdata/hp-greek8.c: New file.
2822         * iconvdata/Makefile: Add rules for hp-greek8.c.
2823         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
2824         * iconvdata/gconv-modules: Likewise.
2825
2826         [BZ #5463]
2827         * iconvdata/hp-turkish8.c: New file.
2828         * iconvdata/Makefile: Add rules for hp-turkish8.c.
2829         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
2830         * iconvdata/gconv-modules: Likewise.
2831
2832         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
2833         (shrink_heap): ... this new function.
2834         (heap_trim): Call shrink_heap instead of grow_heap.
2835
2836         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
2837         case don't call alloc_perturb.
2838
2839 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
2840
2841         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
2842         possible.
2843         * sysdeps/unix/sysv/linux/kernel-features.h
2844         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
2845         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
2846
2847 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
2848
2849         [BZ #5424]
2850         * stdio-common/vfprintf.c: Do not overflow when adding to done.
2851         * stdio-common/Makefile (tests): Add bug22.
2852         * stdio-common/bug22.c: New file.
2853
2854         [BZ #5451]
2855         * time/getdate.c: Fix filling in default values.
2856         * time/bug-getdate1.c: New file.
2857         * time/Makefile: Add rules to build and run bug-getdate1.
2858
2859         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
2860         * iconvdata/ebcdic-es.c: Likewise.
2861         * iconvdata/ebcdic-es-a.c: Likewise.
2862         * iconvdata/ebcdic-uk.c: Likewise.
2863         * iconvdata/iso8859-16.c: Likewise.
2864         * iconvdata/viscii.c: Likewise.
2865         * iconvdata/iso8859-9e.c: Likewise.
2866         * iconvdata/Makefile: Adjust appropriately.
2867
2868         [BZ #5428]
2869         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
2870         __need_wint_t.
2871
2872 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
2873
2874         [BZ #5427]
2875         * iconvdata/hp-roman9.c: New file.
2876         * iconvdata/Makefile: Add rules for hp-roman9.c.
2877         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
2878         * iconvdata/gconv-modules: Likewise.
2879
2880         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
2881         * iconvdata/Makefile: Adjust appropriately.
2882
2883         [BZ #5441]
2884         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
2885         structure, it's allocated with alloca.
2886         * stdio-common/Makefile (tests): Add bug21.
2887         * stdio-common/bug21.c: New file.
2888
2889 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
2890
2891         [BZ #5452]
2892         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
2893         keyword for gcc's braced-groups.
2894
2895 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
2896
2897         [BZ #5454]
2898         * inet/ether_line.c: Strip hostname of whitespaces.
2899         * inet/Makefile (tests): Add tst-ether_line.
2900         * inet/tst-ether_line.c: New file.
2901
2902 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
2903
2904         [BZ #5439]
2905         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
2906
2907         [BZ #5435]
2908         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
2909
2910         * stdlib/tst-setcontext.c: Catch the case where the links gets
2911         messed up and we do not reach main again.
2912
2913         * po/ca.po: Update from translation team.
2914
2915 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
2916
2917         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
2918         * posix/regex.h (REG_ENOSYS): Likewise.
2919         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
2920
2921 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
2922
2923         * nscd/nscd.h (MAX_STACK_USE): Define.
2924         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
2925         (gc): Initialize stack_used based on allocation in prune_cache.
2926         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
2927         Clear array before use.
2928
2929         * nscd/aicache.c (addhstaiX): Update statistics counter in case
2930         memory allocation failed.
2931         * nscd/hstcache.c (cache_addhst): Likewise.
2932         * nscd/grpcache.c (cache_addgr): Likewise.
2933         * nscd/servicescache.c (cache_addserv): Likewise.
2934         * nscd/pwdcache.c (cache_addpw): Likewise.
2935         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2936
2937 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
2938
2939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
2940         and creat system calls.
2941
2942         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
2943
2944 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2945
2946         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
2947         Add netiucv/iucv.h.
2948         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
2949         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
2950         protocol.
2951         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
2952         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
2953         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
2954
2955 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2956
2957         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
2958         strncat): Define as macros to avoid compile errors.
2959
2960         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
2961         creat entries.
2962
2963 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
2964
2965         [BZ #5382]
2966         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
2967         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
2968         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
2969         overflow it.
2970         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
2971
2972         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
2973         Return zero in case the thread library is not NPTL.
2974
2975         [BZ #5375]
2976         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
2977         initializing interface list.
2978
2979         [BZ #5378]
2980         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
2981         use result of nss_getgrgid_r if nothing was found.  For other
2982         error return with a failure.
2983         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
2984
2985         * locale/programs/ld-collate.c (collate_read): Fix loop to match
2986         macro name.
2987
2988 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
2989
2990         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
2991         (get_scope): For IPv4 scope, use scopes table.
2992         (fini): Free scopes table if necessary.
2993         (free_scopelist): New function.
2994         (scopecmp): New function.
2995         (gaiconf_init): Also handle scopev4 entries.
2996         * posix/tst-rfc3484.c (do_test): Initialize scopes.
2997         * posix/tst-rfc3484-2.c (do_test): Likewise.
2998         * posix/gai.conf: Document scopev4 defaults.
2999         * posix/Makefile (tests): Add tst-rfc3484-3.
3000         * posix/tst-rfc3484-3.c: New file.
3001
3002         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
3003         Teredo tunnels.
3004         * posix/gai.conf: Update for current default tables.
3005
3006 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3007
3008         * po/tr.po: Update from translation team.
3009
3010 2007-11-18  Roland McGrath  <roland@frob.com>
3011
3012         * manual/arith.texi (Remainder Functions): Spelling fix.
3013         From Shaun Silk <genix@mysoul.com.au>.
3014
3015         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
3016
3017 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
3018
3019         * po/zh_CN.po: Update from translation team.
3020
3021         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3022         Add sys/signalfd.h and sys/eventfd.h.
3023
3024 2007-11-15  Bruno Haible  <bruno@clisp.org>
3025
3026         [BZ #5346]
3027         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
3028         union.
3029         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
3030         (DCIGETTEXT): Change the allocation of the 'search' variable so that
3031         it needs only fixed stack space. Delay the initialization of
3032         msgid_len until it is needed.
3033
3034 2007-11-15  Andreas Jaeger  <aj@suse.de>
3035
3036         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
3037         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
3038
3039 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
3040
3041         * po/ko.po: Update from translation team.
3042
3043 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
3044
3045         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
3046         significantly.  The device type is also part of the ifinfomsg data.
3047
3048         * po/sv.po: Update from translation team.
3049         * po/nl.po: Likewise.
3050
3051         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
3052         to wake up in 24 hours.
3053
3054         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
3055
3056 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
3057
3058         * po/cs.po: Update from translation team.
3059         * po/pl.po: Likewise.
3060
3061         * include/ifaddrs.h: Remove in6ai_temporary.
3062         (struct in6addrinfo): Add index element.
3063         Declare __check_native.
3064         * inet/Makefile (aux): Add check_native.
3065         * sysdeps/unix/sysv/linux/check_native.c: New file.
3066         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
3067         IFA_F_TEMPORARY.  Pass back ifa_index.
3068         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3069         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
3070         call __check_native if necessary.
3071         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
3072         to sort addresses.  Pass information about the results.
3073         * posix/tst-rfc3484.c: Adjust for addition of index field and change
3074         of rfc3484_sort interface.
3075         * posix/tst-rfc3484-2.c: Likewise.
3076
3077         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
3078         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3079         for _quicksort.
3080         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3081         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
3082         on as third parameter to compare function and _quicksort.
3083         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3084         to the compare function.
3085         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3086         * Versions.def: Add GLIBC_2.8 for libc.
3087
3088         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3089         * posix/tst-rfc3484-2.c: Likewise.
3090
3091         * include/kernel-features.h: Moved to...
3092         * sysdeps/mach/hurd/kernel-features.h: ...here.
3093
3094 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3095
3096         * sysdeps/i386/i586/memcpy_chk.S: New file.
3097         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3098         * sysdeps/i386/i586/memset_chk.S: Likewise.
3099
3100 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
3101
3102         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3103         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3104         list of interfaces.  Also store prefix length.
3105         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3106         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3107         prefix if source and destination address are in the same subnet.
3108         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
3109         Always look for matching record in in6ai list.
3110         Correct source_addr_len value for IPv6->IPv4 converted records.
3111
3112 2007-11-11  Roland McGrath  <roland@frob.com>
3113
3114         * include/kernel-features.h: New file.
3115
3116 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
3117
3118         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3119         complications for 64-bit platforms.
3120
3121         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3122         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
3123         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3124         open64_2.
3125         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3126         entries.
3127         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3128         * sysdeps/wordsize-64/alphasort.c: New file.
3129         * sysdeps/wordsize-64/alphasort64.c: New file.
3130         * sysdeps/wordsize-64/fseeko.c: New file.
3131         * sysdeps/wordsize-64/fseeko64.c: New file.
3132         * sysdeps/wordsize-64/ftello.c: New file.
3133         * sysdeps/wordsize-64/ftello64.c: New file.
3134         * sysdeps/wordsize-64/ftw.c: New file.
3135         * sysdeps/wordsize-64/ftw64.c: New file.
3136         * sysdeps/wordsize-64/iofgetpos.c: New file.
3137         * sysdeps/wordsize-64/iofgetpos64.c: New file.
3138         * sysdeps/wordsize-64/iofopen.c: New file.
3139         * sysdeps/wordsize-64/iofopen64.c: New file.
3140         * sysdeps/wordsize-64/iofsetpos.c: New file.
3141         * sysdeps/wordsize-64/iofsetpos64.c: New file.
3142         * sysdeps/wordsize-64/lockf.c: New file.
3143         * sysdeps/wordsize-64/lockf64.c: New file.
3144         * sysdeps/wordsize-64/mkostemp.c: New file.
3145         * sysdeps/wordsize-64/mkostemp64.c: New file.
3146         * sysdeps/wordsize-64/mkstemp.c: New file.
3147         * sysdeps/wordsize-64/mkstemp64.c: New file.
3148         * sysdeps/wordsize-64/scandir.c: New file.
3149         * sysdeps/wordsize-64/scandir64.c: New file.
3150         * sysdeps/wordsize-64/tmpfile.c: New file.
3151         * sysdeps/wordsize-64/tmpfile64.c: New file.
3152         * sysdeps/wordsize-64/versionsort.c: New file.
3153         * sysdeps/wordsize-64/versionsort64.c: New file.
3154         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3155         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3156         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3157         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3158         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3159         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3160         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3161         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3162         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3163         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3164         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3165         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3166
3167         * crypt/sha256-crypt.c: Fix a comment.
3168         * crypt/sha512-crypt.c: Likewise.
3169
3170 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
3171
3172         * sysdeps/x86_64/memset.S: Add sfence after movnti.
3173
3174 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
3175
3176         [BZ #5277]
3177         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3178         because output buffer is too small break, don't loop.
3179         * iconvdata/Makefile (tests): Add bug-iconv6.
3180         * iconvdata/bug-iconv6.c: New file.
3181
3182 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
3183
3184         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3185         with size_t type.
3186         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3187         size_t.  Add casts where needed.
3188
3189         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3190         old headers, don't call avc_has_perm if we don't have the
3191         permission information.
3192
3193 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
3194
3195         * elf/rtld.c (dl_main): Use the page size to find the map start.
3196
3197 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
3198
3199         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3200         Patch by Szymon Siwek <sls@poczta.wp.pl>.
3201
3202         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3203         when the lookup call failed.
3204
3205         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3206         Add prune_cond and wakeup_time.
3207         (CACHE_PRUNE_INTERNAL): Define.
3208         Update declarations of prune_cache and setup_thread.
3209         * nscd/connections.c (dbs): Update initializers.
3210         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3211         (nscd_init): Default number of threads is now 4.
3212         (invalidate_cache): Take lock before calling prune_cache.
3213         (handle_request): If SELinux forbids the request, say so.
3214         (readylist_cond): Use static initializer.
3215         (nscd_run_prune): New function.  Used only by pruning threads.
3216         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
3217         here.
3218         (fd_ready): Update nscd_run reference.
3219         (start_threads): No need to initialize readylist_cond.
3220         Start pruning threads separately.
3221         * nscd/nscd_setup_thread.c: Change return value type to int and always
3222         return 0.
3223         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3224         to int and return nonzero value if we can use the TID address hack.
3225         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3226         the database is later than the new entry's timeout, update the
3227         wakeup time and wake the cleanup thread.
3228         (prune_cache): Return seconds the next entry in the database is still
3229         valid.  Remove locking for pruning here.
3230         * nscd/nscd.conf: Document default number of threads.
3231
3232 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
3233
3234         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3235         stack is properly aligned for the target function.
3236         Correct unwind info.
3237
3238         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3239         when using auditing libraries.
3240
3241 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
3242
3243         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3244         _nss_dns_getnetbyaddr2_r.
3245         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
3246         extra parameter to getanswer_r.
3247         (_nss_dns_getnetbyaddr_r): Now a wrapper around
3248         _nss_dns_getnetbyaddr2_r.
3249
3250         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3251         gethstbynm3_r.
3252         * nscd/gethstbynm2_r.c: Remove.
3253         * nscd/gethstbynm3_r.c: New file.
3254         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3255         __gethostbyaddr_r.
3256         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
3257         __gethostbyaddr_r compatibility wrapper.
3258         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
3259         determining timeout of entry.
3260         (lookup): Take new parameter and pass it to __gethostbyname3_r and
3261         __gethostbyaddr2_r.
3262         (addhstbyX): Pass reference to variable for TTL to lookup and
3263         cache_addhst.
3264         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3265         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3266         and __nss_next2.  Remove __nss_services_lookup.
3267         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
3268         Add compat wrapper.
3269         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3270         __nss_next2.
3271         * nss/getXXent_r.c: Likewise.
3272         * nss/getnssent_r.c: Likewise.
3273         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
3274         does not exist in module, try the optional second name.
3275         (__nss_next2): New function.
3276         (__nss_next): Now wrapper around __nss_next2.
3277         * nss/nsswitch.h: Adjust __nss_lookup prototype.
3278         Declare __nss_next2.
3279         Adjust definition of db_lookup_function type.
3280         * nss/service-lookup.c: Define NO_COMPAT.
3281         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3282         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3283         * inet/ether_ntoh.c: Likewise.
3284         * sunrpc/netname.c: Likewise.
3285         * sunrpc/publickey.c: Likewise.
3286         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
3287         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3288         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3289         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3290         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3291
3292         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3293
3294         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
3295
3296 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
3297
3298         [BZ #5204]
3299         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3300         * crypt/sha512c-test.c: Likewise.
3301
3302         [BZ #5225]
3303         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3304         to keep track of end of %[ format string element.
3305         * stdio-common/Makefile (tests): Add bug20.
3306         * stdio-common/bug20.c: New file.
3307
3308         [BZ #5222]
3309         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3310         path elements in counting mode.
3311
3312 2007-10-27  Andreas Jaeger  <aj@suse.de>
3313
3314         [BZ #5040]
3315         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3316
3317         [BZ #3112]
3318         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3319         (__cleanup): Free shared library when exiting.
3320         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3321         (__cleanup): Free shared library when exiting.
3322
3323 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3324
3325         [BZ #2549]
3326         * math/libm-test.inc (check_float_internal): Support
3327         denormalized return.
3328
3329 2007-10-23  Andreas Jaeger  <aj@suse.de>
3330
3331         [BZ #5208]
3332         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3333         __LONG_LONG_PAIR to handle little endian byte order.
3334         Suggested by abhishekrai@google.com
3335
3336 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
3337
3338         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3339
3340 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
3341
3342         * nscd/cache.c (prune_cache): Move test for modified file outside
3343         of locking.
3344
3345 2007-10-21  Andreas Jaeger  <aj@suse.de>
3346
3347         * manual/texinfo.tex: Update to latest version.
3348
3349         * manual/sysinfo.texi (System Parameters): Fix Formatting.
3350
3351         * manual/arith.texi (Status bit operations): Fix formatting.
3352
3353         * manual/errno.texi (Error Messages): Fix formatting.
3354
3355         * manual/sysinfo.texi (System Parameters): Fix formatting.
3356
3357         * manual/libc.texinfo: Update VERSION and UPDATED.
3358
3359 2007-10-19  Roland McGrath  <roland@redhat.com>
3360
3361         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3362
3363 2007-10-06  David S. Miller  <davem@davemloft.net>
3364
3365         * configure.in: Add sparcv9v2 and sparc64v2.
3366         * scripts/config.sub: Likewise.
3367         * configure: Regenerate.
3368         * elf/elf.h (HWCAP_SPARC_N2): New.
3369         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3370         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3371         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3372         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3373         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3374         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3375         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3376
3377 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
3378
3379         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3380         even if the poll result indicates there is data to read.
3381         Patch by Jeff Moyer <jmoyer@redhat.com>.
3382
3383 2007-10-18  Roland McGrath  <roland@redhat.com>
3384
3385         * elf/elf.h (NT_PPC_VMX): New macro.
3386
3387 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3388
3389         * version.h (VERSION): Set to 2.7.90.
3390
3391 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3392
3393         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
3394         weak_alias.
3395
3396 2007-10-17  Roland McGrath  <roland@frob.com>
3397
3398         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3399         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3400
3401 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3402
3403         * version.h (VERSION): Bump to 2.7.
3404         * include/features.h (__GLIBC_MINOR__): Bump to 7.
3405
3406         [BZ #5186]
3407         * time/tzset.c (__tz_convert): Don't force testing for a change of
3408         TZ if not called from localtime.  But then also see whether the
3409         file changed, in case __use_tzfile is set.
3410
3411         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3412         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3413         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3414         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3415         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3416         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3417         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
3418         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3419
3420 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3421
3422         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3423         and admin selects to be able to replace the gai.conf file, lock
3424         data structures around the qsort call.
3425
3426 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3427
3428         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3429         new memset.
3430         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
3431         too high for the improvements.  Implement bzero unconditionally for
3432         use in libc.
3433
3434 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3435             Jakub Jelinek  <jakub@redhat.com>
3436
3437         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
3438         even when time_t is 32-bit.
3439         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
3440         timezone data read by __tzfile_default.  Ensure __tzname[0] is
3441         always set after the search.
3442
3443 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3444
3445         * time/tzfile.c (__tzfile_read): Help the compiler recognize
3446         unreachable code on 32-bit machines.
3447
3448 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3449
3450         [BZ #5184]
3451         * time/strftime_l.c: Include stdbool.h.
3452         (my_strftime): New wrapper, old function renamed to...
3453         (__strftime_internal): ... new function.  Add tzset_called
3454         argument, pass it down to recursive calls, don't call tzset ()
3455         if already true, set to true after call to tzset ().
3456
3457 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3458
3459         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
3460         into account when copying TZ string.
3461
3462 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3463
3464         * time/tzfile.c (__tzfile_compute): For use_last case set i to
3465         num_transition rather than num_transitions - 1.
3466
3467 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3468
3469         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3470         PIC indirect jump.
3471
3472         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3473         a local label rather than HIDDEN_JUMPTARGET.
3474
3475 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3476
3477         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3478         (init_cacheinfo): Initialize it.
3479         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3480         Always define bzero.
3481         Remove non-glibc code.
3482         * sysdeps/x86_64/bzero.S: Make an empty file.
3483
3484 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3485
3486         * sysdeps/x86_64/cacheinfo.c
3487         (__x86_64_preferred_memory_instruction): New.
3488         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3489
3490         * sysdeps/x86_64/memset.S: Rewrite.
3491
3492 2007-10-15  Roland McGrath  <roland@redhat.com>
3493
3494         * po/libc.pot: Regenerated.
3495
3496 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3497
3498         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
3499         pointers.
3500
3501         [BZ #3425]
3502         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
3503         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
3504         address record to T_A/T_AAAA requests.
3505
3506 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
3507
3508         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
3509
3510         * posix/glob.c: Add some branch prediction throughout.
3511
3512         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
3513         read from nscd.
3514
3515         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
3516         service_order.
3517         (rfc3484_sort): Make sure that even if qsort doesn't support
3518         stable sorting out sorting here is stable by comparing service_order.
3519         (getaddrinfo): Initialize service_order.
3520         * posix/tst-rfc3484.c (do_test): Adjust for addition of
3521         service_order field to sorting structure.
3522         * posix/tst-rfc3484-2.c (do_test): Likewise.
3523
3524         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
3525         * time/tzset.c (tzset_internal): Break TZ string parsing out into
3526         __tzset_parse_tz and updating of daylight, timezone, tzname into
3527         update_vars.
3528         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
3529         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
3530         happens in __tz_compute.
3531         * time/tzfile.c (__tzfile_read): Also read TZ string.
3532         (find_transition): Fold into __tzfile_compute.
3533         (__tzfile_compute): For times beyond the last transition try to
3534         use the TZ string.
3535         * timezone/tst-timezone.c: Information in daylight and tzname does
3536         change for Asia/Tokyo timezone with more concrete information.
3537         Remove the test.
3538
3539         * include/stdio.h: Add libc_hidden_proto for ftello.
3540         * libio/ftello.c: Add libc_hidden_def.
3541
3542         [BZ #1140]
3543         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
3544         on the specified time and not the last entries in the file.  Move
3545         code to determine tzname[] to...
3546         (find_transition): ...here.  Add ugly guess for times before the
3547         first transition.
3548
3549 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3550
3551         [BZ #3195]
3552         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
3553         no entry.
3554         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
3555         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3556         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3557         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3558
3559         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
3560         read mechanism when there are no group members and avoid no-op
3561         read syscall in this case.
3562
3563         [BZ #3242]
3564         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
3565         (__readall): If reading failed due to EAGAIN error wait a bit
3566         and possibly try again.
3567         (__readvall): Likewise.
3568
3569 2007-10-13  Bruno Haible  <bruno@clisp.org>
3570
3571         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
3572         when we cannot recode the message.
3573
3574 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3575
3576         [BZ #4359]
3577         * libio/__freading.c (__freading): Don't return true for
3578         write-only streams.  For read/write streams, check whether we
3579         performed a read operation already.
3580         * libio/Makefile (tests): Add tst-ext2.
3581         * libio/tst-ext2.c: New file.
3582
3583 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3584
3585         * locale/programs/repertoire.c (repertoire_read): Always free
3586         memory for repertoire file name [Coverity CID 270].
3587
3588         * elf/cache.c (save_aux_cache): Free memory allocated for
3589         temporary file name [Coverity CID 267].
3590
3591 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3592
3593         * misc/Makefile (headers): Add bits/error.h.
3594
3595 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3596
3597         * posix/fnmatch_loop.c: Take rule index returned as part of
3598         findidx return value into account when accessing weights.
3599         * posix/regcomp.c: Likewise.
3600         * posix/regexec.c: Likewise.
3601
3602         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
3603         (skip_to): Fix problems with parameter of elifdef/elifndef.
3604
3605 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
3606
3607         * iconv/gconv_simple.c: Add some branch prediction.
3608
3609 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3610
3611         * locale/programs/ld-collate.c (collate_read): If ignore_content
3612         and nowtok is tok_define, eat any tok_eol tokens.
3613
3614 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
3615
3616         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
3617         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
3618
3619         * inet/netinet/in.h: Don't include bits/socket.h.
3620         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
3621         macro.
3622         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3623
3624 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
3625
3626         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
3627         and tok_elifndef.
3628         * locale/programs/locfile-kw.gperf: Likewise.
3629         * locale/programs/ld-collate.c: Implement primitive preprocessor.
3630
3631 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
3632
3633         * stdio-common/printf-parse.h: Include string.h and wchar.h.
3634         (__find_specwc): Change into __extern_always_inline function.
3635         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
3636         (__parse_one_specmb): Remove ps argument.
3637         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
3638         Adjust __find_specmb and __parse_one_specmb callers.
3639         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
3640         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
3641         Removed.
3642         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
3643         caller.
3644
3645 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
3646
3647         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
3648         with some Pentium Ds.
3649
3650 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
3651
3652         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
3653         __read not read.
3654         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
3655         __write not write.
3656
3657 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
3658
3659         [BZ #181]
3660         * locale/C-time.c: Set week_1stday data to 19971201.
3661         * locale/programs/ld-time.c (time_finish): Default for
3662         first_workday is Monday.
3663
3664         [BZ #2633]
3665         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
3666
3667         [BZ #5103]
3668         * posix/glob.c (glob): Recognize patterns starting \/.
3669         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
3670         (main): Add test for pattern starting \/.
3671
3672         * misc/error.h: Use __const instead of const.
3673         * misc/bits/error.h: Likewise.
3674
3675 2007-10-07  Andreas Jaeger  <aj@suse.de>
3676
3677         * include/bits/error.h: New file.
3678
3679         * misc/bits/error.h (error_at_line): Fix prototype.
3680
3681 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
3682
3683         [BZ #3924]
3684         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
3685         more little bugs in creating the stack frame when pltexit has to
3686         be called.
3687
3688         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
3689         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
3690
3691         [BZ #4407]
3692         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
3693         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3694         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3695         * math/libm-test.inc: Add test for this case.
3696
3697         [BZ #5010]
3698         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
3699         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
3700         map service succeeded.
3701         (svc_is_mapped): New function.
3702         (svc_unregister): Use it before trying to unmap service.
3703
3704 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
3705
3706         * timezone/zic.c: Update from tzcode2007h.
3707
3708         [BZ #5063]
3709         * timezone/africa: Update from tzdata2007h.
3710         * timezone/antarctica: Likewise.
3711         * timezone/asia: Likewise.
3712         * timezone/australasia: Likewise.
3713         * timezone/europe: Likewise.
3714         * timezone/leapseconds: Likewise.
3715         * timezone/northamerica: Likewise.
3716         * timezone/southamerica: Likewise.
3717         * timzeone/zone.tab: Likewise.
3718
3719         [BZ #5104]
3720         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
3721
3722         [BZ #5113]
3723         * string/bits/string2.h (__strdup): Cast parameters to calloc to
3724         avoid warning with -Wconversion.
3725         (__strndup): Likewise.
3726         Half the patch by Christian Iseli <christian.iseli@licr.org>.
3727
3728         [BZ #5112]
3729         * nscd/connections.c (restart): Don't resync if database is
3730         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
3731
3732         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
3733         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
3734
3735         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
3736         evetnfd_read, eventfd_write.
3737         * sysdeps/unix/sysv/linux/eventfd.c: New file.
3738         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
3739         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
3740         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
3741         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
3742         eventfd_write for GLIBC_2.7.
3743
3744         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
3745         * sysdeps/unix/sysv/linux/signalfd.c: New file.
3746         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
3747         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
3748
3749 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
3750
3751         * stdlib/msort.c: Include stdint.h.
3752         (struct msort_param): New type.
3753         (msort_with_tmp): Use struct msort_param pointer for unchanging
3754         parameters.  Add optimized handling for several common sizes
3755         and indirect sorting mode.
3756         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
3757         sorting.
3758         Suggested by Belazougui Djamel .
3759
3760         * stdlib/Makefile (tests): Add tst-qsort2.
3761         * stdlib/tst-qsort2.c: New test.
3762
3763 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
3764
3765         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
3766         for dup2 in case another thread races with the current one.  Retry
3767         in this case.
3768
3769         * misc/error.h: Remove support for use outside of libc.  We have to
3770         include <features.h> now.  Include <bits/error.h> if possible.
3771         * misc/bits/error.h: New file.
3772
3773 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
3774
3775         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
3776         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
3777         __extern_always_inline functions unconditionally, drop macros.
3778
3779         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
3780         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
3781         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
3782
3783         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
3784         add __artificial__ attribute.
3785
3786 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
3787
3788         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
3789         backward to forward direction.
3790
3791         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
3792
3793         [BZ #645]
3794         * locale/programs/ld-collate.c (collate_finish): Compare against last
3795         used section which is known to have rules defined.
3796         (collate_read): After order_start, correctly record order of sections
3797         and queue sections up.
3798
3799 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
3800
3801         [BZ #5071]
3802         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
3803         the same number of pages.
3804         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
3805
3806         * locale/programs/ld-collate.c (collate_read): After initial copy
3807         statement, continue in state 0.
3808
3809         * include/stdio_ext.h (__fsetlocking): Define as macro.
3810
3811 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
3812
3813         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
3814         of section order.
3815
3816         * po/pt_BR.po: Fix typo.
3817
3818 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
3819
3820         * iconvdata/Makefile (modules): Add ISO8859-9E.
3821         (distribute): Add iso8859-9e.c.
3822         (gen-8bit-gap-modules): Add iso8859-9e.
3823         * iconvdata/iso8859-9e.c: New file.
3824         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
3825         * iconvdata/TESTS: Likewise.
3826         * iconvdata/tst-tables.sh: Likewise.
3827
3828         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3829
3830         * locale/iso-639.def: Add several new entries.
3831
3832 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
3833
3834         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
3835         void * pointers instead of struct link_map **.
3836         (_dl_scope_free): Change argument type to void *.
3837         * include/link.h (struct link_map): Change type of l_reldeps
3838         to struct link_map_reldeps, move l_reldepsact into that
3839         struct too.
3840         * elf/dl-deps.c: Include atomic.h.
3841         (_dl_map_object_deps): Only change l->l_initfini when it is
3842         fully populated, use _dl_scope_free for freeing it.  Optimize
3843         removal of libs from reldeps by using l_reserved flag, when
3844         some removal is needed, allocate a new list instead of
3845         reallocating and free the old with _dl_scope_free.  Adjust
3846         for l_reldeps and l_reldepsact changes.
3847         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
3848         searching in l_initfini and l_reldeps without holding dl_load_lock.
3849         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
3850         l_reldepsact changes.
3851         * elf/dl-close.c (_dl_close_worker): Likewise.
3852         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
3853
3854 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
3855
3856         * iconvdata/Makefile (modules): Add KOI8-RU.
3857         (distribute): Add koi8-ru.c.
3858         (gen-8bit-gap-modules): Add koi8-ru.
3859         * iconvdata/koi8-ru.c: New file.
3860         * iconvdata/gconv-modules: Add entries for KOI8-RU.
3861         * iconvdata/TESTS: Likewise.
3862         * iconvdata/tst-tables.sh: Likewise.
3863
3864         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3865
3866 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
3867
3868         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
3869         with __warning__/__error__ attributes.
3870         (__warnattr): Define.
3871         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
3872         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
3873         __warnattr.
3874         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
3875         of __*_chk if compile time detectable overflow is found.
3876         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
3877         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
3878         with __warnattr.
3879         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
3880         instead of __*_chk if compile time detectable overflow is found.
3881         (__gets_alias): Rename to...
3882         (__gets_warn): ... this.  Add __warnattr.
3883         (gets): Call __gets_warn instead of __gets_alias.
3884         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
3885         aliases with __warnattr.
3886         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
3887         time detectable overflow is found.
3888         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
3889         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
3890         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
3891         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
3892         __getdomainname_chk_warn): New aliases with __warnattr.
3893         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
3894         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
3895         __*_chk_warn instead of __*_chk if compile time detectable overflow
3896         is found.
3897         (__getgroups_chk): Rename argument to __listlen from listlen.
3898         (__getwd_alias): Rename to...
3899         (__getwd_warn): ... this.  Add __warnattr.
3900         (getwd): Call __getwd_warn instead of __getwd_alias.
3901         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
3902         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
3903         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
3904         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
3905         __wcsnrtombs_chk_warn): New aliases with __warnattr.
3906         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
3907         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
3908         compile time detectable overflow is found.
3909         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
3910         to use __*_chk or not.
3911         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
3912         in comparisons which function should be called and in __*_chk*
3913         arguments.  Call __*_chk_warn instead of __*_chk if compile time
3914         detectable overflow is found.
3915         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
3916         __*_chk argument.
3917         * debug/tst-chk1.c (do_test): Add a few more tests.
3918
3919 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
3920
3921         [BZ #5058]
3922         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
3923         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
3924         (_nl_unload_domain): Finalize conversions_lock.
3925         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
3926         handling table of known conversions.
3927
3928 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
3929
3930         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
3931         close_not_cancel_no_status instead of close.
3932
3933 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
3934
3935         [BZ #5028]
3936         * posix/regcomp.c (lookup_collation_sequence_value): Check that
3937         nrules != 0 for multibyte chars.
3938
3939 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
3940
3941         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
3942         Provide better error message in case the type is unknown.
3943
3944         [BZ #4963]
3945         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
3946         * string/stratcliff.c: Make usable to test wide char functions.
3947         * wcsmbs/wcsatcliff.c: New file.
3948         * wcsmbs/Makefiel (tests): Add wcsatcliff.
3949
3950         [BZ #4972]
3951         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
3952         (distribute): Add mac-centraleurope.c.
3953         (gen-8bit-gap-modules): Add mac-centraleurope.
3954         * iconvdata/mac-centraleurope.c: New file.
3955         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
3956         * iconvdata/TESTS: Likewise.
3957         * iconvdata/tst-tables.sh: Likewise.
3958
3959         [BZ #5043]
3960         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
3961
3962 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
3963
3964         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
3965         from __x86_64_core_cache_size_half.
3966         (init_cacheinfo): Compute shared cache size for AMD processors with
3967         shared L3 correctly.
3968         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
3969         name change.
3970         Patch in large parts by Evandro Menezes.
3971
3972 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
3973
3974         * elf/dl-lookup.c (add_dependency): Handle failing memory
3975         allocation for dependency list.  Remove unnecessary check.
3976
3977         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
3978         open/close when determining source addresses.
3979
3980         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
3981         sha512-crypt, and sha512.
3982         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
3983         (distribute): Add sha256.h and sha512.h.
3984         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
3985         and call the appropriate code.
3986         * crypt/sha256-crypt.c: New file.
3987         * crypt/sha256.c: New file.
3988         * crypt/sha256.h: New file.
3989         * crypt/sha256c-test.c: New file.
3990         * crypt/sha256test.c: New file.
3991         * crypt/sha512-crypt.c: New file.
3992         * crypt/sha512.c: New file.
3993         * crypt/sha512.h: New file.
3994         * crypt/sha512c-test.c: New file.
3995         * crypt/sha512test.c: New file.
3996
3997 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
3998
3999         * misc/bits/syslog.h (syslog): Remove extraneous argument from
4000         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
4001         __syslog_chk.
4002
4003 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
4004
4005         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
4006         %as in fscanf format strings.
4007
4008         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
4009         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4010         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
4011         Likewise.
4012         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
4013         Likewise.
4014
4015         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
4016         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
4017         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
4018         * elf/dl-sym.c (do_sym): Likewise.
4019         * include/link.h (struct link_map): Add l_serial field.
4020         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
4021         * elf/dl-lookup.c (add_dependency): Add flags argument.
4022         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
4023         flags, use THREAD_GSCOPE_RESET_FLAG before and
4024         THREAD_GSCOPE_SET_FLAG after
4025         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
4026         Don't dereference map until it has been found on some list.
4027         If map->l_serial changed, return -1.
4028
4029 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
4030
4031         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
4032         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
4033         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
4034         libc_hidden_proto.
4035         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
4036         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
4037         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
4038         add libc_hidden_proto.
4039         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4040         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4041         conformance requested.
4042         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
4043         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4044         conformance requested.
4045         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4046         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
4047         conformance requested.
4048         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
4049         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
4050         ISO C99 or POSIX conformance requested.
4051         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
4052         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
4053         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
4054         and __isoc99_vsscanf@@GLIBC_2.7.
4055         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
4056         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
4057         (tests): Add scanf14.
4058         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
4059         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
4060         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
4061         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
4062         CFLAGS-isoc99_scanf.c): Add $(exceptions).
4063         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
4064         from using internal headers.
4065         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
4066         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
4067         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4068         and __isoc99_vswscanf@@GLIBC_2.7.
4069         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4070         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4071         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4072         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4073         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4074         * stdio-common/isoc99_scanf.c: New file.
4075         * stdio-common/isoc99_vsscanf.c: New file.
4076         * stdio-common/isoc99_vscanf.c: New file.
4077         * stdio-common/isoc99_vfscanf.c: New file.
4078         * stdio-common/isoc99_fscanf.c: New file.
4079         * stdio-common/isoc99_sscanf.c: New file.
4080         * wcsmbs/isoc99_fwscanf.c: New file.
4081         * wcsmbs/isoc99_vswscanf.c: New file.
4082         * wcsmbs/isoc99_swscanf.c: New file.
4083         * wcsmbs/isoc99_wscanf.c: New file.
4084         * wcsmbs/isoc99_vwscanf.c: New file.
4085         * wcsmbs/isoc99_vfwscanf.c: New file.
4086         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4087         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4088         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4089         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4090         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4091         * stdio-common/scanf14.c: New test.
4092         * stdio-common/scanf15.c: New test.
4093         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4094         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4095         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4096         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4097         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4098         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4099         __nldbl___isoc99_scanf@@GLIBC_2.7,
4100         __nldbl___isoc99_fscanf@@GLIBC_2.7,
4101         __nldbl___isoc99_sscanf@@GLIBC_2.7,
4102         __nldbl___isoc99_vscanf@@GLIBC_2.7,
4103         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4104         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4105         __nldbl___isoc99_wscanf@@GLIBC_2.7,
4106         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4107         __nldbl___isoc99_swscanf@@GLIBC_2.7,
4108         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4109         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4110         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4111         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4112         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4113         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4114         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4115         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4116         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4117         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4118         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4119         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4120         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4121         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4122         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4123         functions.
4124         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4125         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4126         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4127         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4128         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4129         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4130         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4131         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4132         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4133         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4134         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4135         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4136
4137         * stdio-common/Makefile (tests): Add scanf13.
4138         (scanf13-ENV): New.
4139         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4140         m modifier followed by l.
4141         (STRING_ARG): Add width argument.
4142         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4143         <case L_('C')>: Handle %mlc and %mC.
4144         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4145         arguments.
4146         * stdio-common/scanf13.c: New test.
4147
4148         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4149         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4150
4151 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
4152
4153         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
4154         type and __THROW marker of splice, vmsplice, and tee.
4155         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4156         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4157         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4158         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4159         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4160         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4161         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4162         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4163         as cancellation points.
4164
4165 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
4166
4167         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4168         parse more than three parts of the version number.
4169
4170 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
4171
4172         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4173         modifier.  Patch by Jakub Jelinek.
4174
4175 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
4176
4177         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4178         call_fallocate in misc subdir.
4179         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4180         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4181         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4182         instead of __fallocate64.
4183         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4184
4185 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
4186
4187         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4188         * rt/Makefile (headers): Add bits/mqueue2.h.
4189         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4190         optimizing with GCC and __va_arg_pack_len is defined.
4191         * rt/bits/mqueue2.h: New file.
4192         * rt/mq_open.c (__mq_open): Renamed from mq_open.
4193         (mq_open): New strong_alias.
4194         (__mq_open_2): New function.
4195         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4196         (mq_open): New strong_alias.
4197         (__mq_open_2): New function.
4198         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4199         * Versions.def (librt): Add GLIBC_2.7 version.
4200         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4201         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4202
4203         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4204         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4205         is defined rather than when not C++.
4206         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4207         __openat64_alias): New redirects.
4208         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4209         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4210         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4211         (open, open64, openat, openat64): Rewrite as __extern_always_inline
4212         functions instead of function-like macros.
4213
4214 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
4215
4216         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4217         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4218         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4219
4220 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
4221
4222         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4223         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4224
4225 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
4226
4227         * inet/tst-network.c: Increment ERRORS for failing tests.
4228
4229 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
4230
4231         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4232         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4233         implement as __extern_always_inline function.
4234         (vsyslog): Define as __extern_always_inline function unconditionally.
4235         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4236         When __va_arg_pack is defined, implement as __extern_always_inline
4237         functions.
4238         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4239         __extern_always_inline functions unconditionally.
4240         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4241         bits/stdio2.h will be included.
4242         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4243         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4244         implement as __extern_always_inline functions.
4245         (vswprintf, vwprintf, vfwprintf): Define as
4246         __extern_always_inline functions unconditionally.
4247         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4248
4249 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
4250
4251         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4252         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4253         attribute.
4254         * include/features.h (__USE_EXTERN_INLINES): Define only when
4255         __extern_inline is defined.
4256         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4257         is defined instead of when not __cplusplus.
4258         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4259         is defined instead of when not __cplusplus.
4260         * socket/sys/socket.h: Include bits/socket2.h when
4261         __extern_always_inline is defined instead of when not __cplusplus.
4262         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4263         is defined instead of when not __cplusplus.
4264         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4265         is defined instead of when not __cplusplus.
4266         * string/string.h: Include bits/string3.h when __extern_always_inline
4267         is defined instead of when not __cplusplus.
4268         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4269         is defined instead of when not __cplusplus.
4270         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4271         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4272         is not defined.
4273         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4274         defined __extern_always_inline instead of !defined __cplusplus.
4275         * libio/bits/stdio-ldbl.h: Likewise.
4276         * wcsmbs/bits/wchar-ldbl.h: Likewise.
4277         * misc/bits/syslog.h (syslog): Don't define for C++.
4278         (vsyslog): Use __extern_always_inline function for C++ instead of
4279         a macro.
4280         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4281         whenever that macro is defined.
4282         (vprintf): Don't provide the inline for C++.
4283         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4284         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4285         define the macros for C++.
4286         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4287         __extern_always_inline functions for C++.
4288         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4289         stat64, lstat64, fstat64, fstatat64): Don't define if not
4290         __USE_EXTERN_INLINES.
4291         * wcsmbs/bits/wchar2.h: Fix #error message.
4292         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4293         (vswprintf, vwprintf, vfwprintf): Define using
4294         __extern_always_inline functions for C++.
4295         * string/bits/string3.h: Don't #undef macros if __cplusplus.
4296         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4297         strncpy, strcat, strncat): Define as __extern_always_inline
4298         functions instead of macros for C++.
4299         * math/bits/cmathcalls.h: Guard __extern_inline routines with
4300         defined __extern_inline.
4301         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4302         to __extern_inline whenever that macro is defined.
4303         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4304         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4305         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4306         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4307         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4308         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4309         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4310         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4311         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4312         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4313         prototypes.  Only provide __extern_inline routines if
4314         __USE_EXTERN_INLINES.
4315         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4316         tests.
4317         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4318         For now avoid some *printf tests in C++.  Skip all testing
4319         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4320         is not.
4321         * debug/tst-chk4.cc: New file.
4322         * debug/tst-chk5.cc: New file.
4323         * debug/tst-chk6.cc: New file.
4324         * debug/tst-lfschk4.cc: New file.
4325         * debug/tst-lfschk5.cc: New file.
4326         * debug/tst-lfschk6.cc: New file.
4327         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4328         prototypes in C++.
4329         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4330         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4331         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4332
4333 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
4334
4335         * po/cs.po: Update from translation team.
4336
4337 2007-09-11  Roland McGrath  <roland@redhat.com>
4338
4339         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4340         compiling.
4341
4342 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4343
4344         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4345
4346 2007-09-05  Roland McGrath  <roland@redhat.com>
4347
4348         * manual/signal.texi (Signaling Another Process): Typo fix.
4349         From Karl Berry <karl@freefriends.org>.
4350
4351 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
4352
4353         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4354         zero if not defined.
4355         (make_request): Recognize optimistic addresses and treat them like
4356         deprecated addresses.
4357         Reported by Neil Horman <nhorman@redhat.com>.
4358
4359 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
4360
4361         * nscd/connections.c (send_ro_fd): Also transfer file size.
4362         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4363         file size don't call fstat.
4364
4365         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4366         ahead and map the file.  This should always be correct and we can
4367         catch problems later.
4368
4369 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
4370
4371         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4372         prototypes.
4373         (__fread_alias, __fread_unlocked_alias): New aliases.
4374         (fread): New extern inline.
4375         (fread_unlocked): Likewise.  Undef macro before definition of
4376         the inline function.
4377         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4378         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4379         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4380         and __fread_unlocked_chk@@GLIBC_2.7.
4381         * debug/fread_chk.c: New file.
4382         * debug/fread_u_chk.c: New file.
4383         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4384
4385 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
4386
4387         * sysdeps/unix/sysv/linux/syscalls.list
4388         (personality): Change caller to EXTRA.
4389
4390 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
4391
4392         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4393         to keep gcc quiet.
4394         * iconvdata/iso-2022-cn.c (BODY): Likewise.
4395
4396         * locale/programs/ld-collate.c (collate_output): Avoid warning if
4397         NDEBUG is defined.
4398
4399         * Makerules: Use -p option with mkdir.
4400
4401         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4402         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
4403         (_xdr_directory_obj): Likewise.
4404         (xdr_entry_obj): Likewise.
4405         (xdr_group_obj): Likewise.
4406         (xdr_link_obj): Likewise.
4407         (xdr_table_obj): Likewise.
4408         (_xdr_nis_result): Likewise.
4409         (_xdr_ns_request): Likewise.
4410         (_xdr_ib_request): Likewise.
4411         (_xdr_nis_taglist): Likewise.
4412         (xdr_cback_data): Likewise.
4413         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
4414         (xdr_ypresp_maplist): Likewise.
4415
4416         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4417
4418         * posix/regex_internal.h: Prevent some declarations and definitions
4419         to be seen when used in tests.
4420
4421         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4422         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4423
4424         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4425
4426         * config.make.in (datarootdir): Add to shut up configure.
4427
4428         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4429         associativity for fully-associative caches.
4430
4431         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
4432         requests.  Fill on more associativity values for L2.
4433         Patch mostly by Evandro Menezes.
4434
4435 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
4436
4437         * sysdeps/unix/sysv/linux/x86_64/init-first.c
4438         (_libc_vdso_platform_setup): Avoid using exported variable by using
4439         alias.
4440
4441         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
4442
4443         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
4444         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
4445         defined.
4446
4447 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
4448
4449         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
4450         align stack for call if pltexit is to be used.
4451
4452         [BZ #3924]
4453         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
4454         align for function call in case pltexit has to be called later.
4455
4456         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
4457         implicit atomic operation when storing function pointer.
4458         (_dl_runtime_profile): Likewise.
4459
4460 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4461
4462         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4463         NIS_NOTFOUND.
4464
4465 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4466
4467         [BZ #4566]
4468         * string/strtok.c: Fix typo in comment.
4469
4470         [BZ #4582]
4471         * debug/segfault.c: Fix typos in comments.
4472
4473         [BZ #4588]
4474         * stdio-common/tempnam.c: Fix comment, it is not checked that
4475         TMPDIR points to a writable directory.
4476
4477         [BZ #4726]
4478         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4479         memory allocated for the name server address.
4480
4481         [BZ #4946]
4482         * nscd/connections.c (handle_request): Using sendfile always
4483         requires that mmap is used for the database.
4484         Patch by Petr Baudis <pasky@suse.cz>.
4485
4486         [BZ #4905]
4487         * nscd/hstcache.c (cache_addhst): When reloading an entry which
4488         suddenly has two or more addresses, ignore it and remove the old
4489         entry.
4490
4491         [BZ #4814]
4492         * resolv/res_hconf.c: Prepare for compiling outside libc.
4493         * nscd/res_hconf.c: New file.
4494         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
4495         the new file.
4496         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
4497         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
4498
4499         * nscd/hstcache.c (cache_addhst): Minimal optimization.
4500
4501         [BZ #4925]
4502         * debug/pcprofiledump.c: Turn on internationalization by calling
4503         setlocale.  Patch mostly by Benno Schulenberg.
4504
4505         [BZ #4936]
4506         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
4507         the state.
4508         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
4509         * iconvdata/bug-iconv5.c: New file.
4510
4511 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
4512
4513         [BZ #4896]
4514         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
4515         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
4516         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
4517         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
4518         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
4519         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
4520         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
4521         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
4522
4523 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4524
4525         [BZ #4937]
4526         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
4527         lookup loop.  Suggested by John Reiser.
4528
4529 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
4530
4531         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
4532
4533 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
4534
4535         * csu/libc-start.c: Don't handle VDSO_SETUP here.
4536         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
4537         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
4538         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
4539         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
4540         to...
4541         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
4542
4543 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
4544
4545         * po/nl.po: Update from translation team.
4546
4547 2007-08-16  Andreas Jaeger  <aj@suse.de>
4548
4549         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
4550         Reported by Peter Festner <peter.festner@ewetel.net>.
4551
4552 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4553
4554         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
4555
4556 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
4557
4558         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
4559         to check for undefined symbols.
4560
4561         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
4562         If the syscall fails, set errno to the actual returned error number
4563         rather than EINVAL.
4564         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
4565         arguments are incorrect, set errno to EINVAL, if the syscall
4566         fails, set errno to the actual returned error number.
4567
4568         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
4569         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
4570
4571         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
4572         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
4573         file.
4574         (ASI_PNF, ASI_BLK_P): Don't define.
4575         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
4576         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
4577         file.
4578         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
4579         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
4580         file.
4581
4582 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
4583
4584         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
4585         FE_UNDERFLOW on Niagara CPUs.
4586
4587         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
4588         exceptions.
4589
4590 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
4591
4592         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
4593         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
4594         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
4595         flush should be used or not inside of the function.
4596         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
4597
4598         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
4599         __thread_start): Use HIDDEN_JUMPTARGET.
4600         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
4601         __thread_start): Likewise.
4602         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
4603
4604         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
4605         Add libc_hidden_proto.
4606         (STRTOF): Add libc_hidden_proto.
4607         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
4608         (strtold_l, wcstold_l): Use them as second argument for
4609         long_double_symbol.
4610
4611 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4612
4613         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
4614
4615 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4616
4617         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
4618
4619 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4620
4621         * po/bg.po: New file.  From the translation team.
4622
4623 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4624
4625         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
4626         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
4627         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
4628         when each feature was introduced.
4629
4630         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
4631         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
4632         (CHECK_HASH): New macro.
4633         (PREPARE_VERSION): Use it.
4634
4635         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
4636         prototype if not __ASSUME_PSELECT.
4637         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
4638         prototype if not __ASSUME_PPOLL.
4639
4640         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
4641
4642         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
4643         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
4644         is defined.
4645
4646 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
4647
4648         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4649         (_libc_vdso_platform_setup): If vDSO is not available point
4650         __vdso_gettimeofday to the vsyscall.
4651         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
4652         __vdso_gettimeofday instead of vsyscall.
4653
4654 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4655
4656         * nscd/servicescache.c: Include kernel-features.h.
4657         * nscd/gai.c: Likewise.
4658         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
4659         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
4660         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
4661         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
4662         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
4663         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
4664         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
4665         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
4666         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4667
4668 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
4669
4670         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
4671         and _dl_get_origin defines anymore.
4672
4673         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
4674         Build fix for systems which might lack POSIX timer support.
4675
4676         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4677         (_libc_vdso_platform_setup): Mangle function pointers before storing
4678         them.
4679         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
4680         Demangle vdso pointer before use.
4681         (INTERNAL_VSYSCALL): Likewise.
4682
4683         * elf/cache.c (primes): Mark as const.
4684         Noted by Roland McGrath.
4685
4686 2007-08-01  Andreas Jaeger  <aj@suse.de>
4687             Jakub Jelinek  <jakub@redhat.com>
4688
4689         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
4690         (options): Add option.
4691         (parse_opt): Handle option.
4692         (manual_link): Adjust process_file caller.  Call implicit_soname.
4693         (search_dir): Formatting.  Use and populate auxiliary cache.
4694         (main): Load and save auxiliary cache.
4695         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
4696         stat64 from fstat64 to caller.
4697         (implicit_soname): New function.
4698         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
4699         leave *soname as NULL.
4700         * elf/cache.c: Include libgen.h.
4701         (print_entry, print_cache, compare, save_cache, add_to_cache):
4702         Formatting and cleanups.
4703         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
4704         aux_cache_file): New structures.
4705         (AUX_CACHEMAGIC): Define.
4706         (primes): New array.
4707         (aux_hash_size, aux_hash): New variables.
4708         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
4709         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
4710         load_aux_cache, save_aux_cache): New functions.
4711         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
4712         (init_aux_cache, search_aux_cache, add_to_aux_cache,
4713         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
4714         (process_file): Adjust prototype.
4715
4716 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
4717
4718         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
4719         with __need_size_t.
4720
4721 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
4722
4723         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
4724         r_found_version structure as second parameter.
4725         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
4726         (_dl_vdso_vsym): Change type of second parameter accordingly.
4727         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
4728         (_libc_vdso_platform_setup): Adjust.
4729         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
4730         (_libc_vdso_platform_setup): Likewise.
4731
4732         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
4733         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
4734         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
4735         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
4736         * csu/libc-start.c: Pretty printing.
4737         Use VDSO_SETUP if defined.
4738         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
4739         and let generic code call into _libc_vdso_platform_setup.
4740         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
4741         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
4742         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
4743         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
4744         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
4745         for GLIBC_PRIVATE.
4746         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
4747         (sysdep_rountines): Add dl-vdso.
4748
4749         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
4750         of routines.
4751
4752         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
4753         attribute_hidden to __vdso_gettimeofday prototype.
4754
4755 2007-08-12  Roland McGrath  <roland@redhat.com>
4756
4757         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
4758         From: Karl Berry <karl@freefriends.org>.
4759
4760 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
4761
4762         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
4763         an atime update for the files we read.
4764
4765 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
4766
4767         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
4768
4769         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
4770         instead of mkstemp.
4771
4772         * misc/Makefile (routines): Add mkostemp and mkostemp64.
4773         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
4774         * misc/mkostemp.c: New file.
4775         * misc/mkostemp64.c: New file.
4776         * stdlib/stdlib.h: Declare the new functions.
4777         * sysdeps/posix/tempname.c: Add new parameter which is added to
4778         the flags for open.  Remove __GT_BIGFILE handling.
4779         * stdio-common/tempname.c: Likewise.
4780         * include/stdio.h: Adjust __gen_tempname prototype.
4781         Renumber __GT_* constants.
4782         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
4783         * misc/mkdtemp.c: Likewise.
4784         * misc/mkstemp.c: Likewise.
4785         * misc/mkstemp64.c: Likewise.
4786         * misc/mktemp.c: Likewise.
4787         * stdio-common/tempnam.c: Likewise.
4788         * stdio-common/tmpfile.c: Likewise.
4789         * stdio-common/tmpfile64.c: Likewise.
4790         * stdio-common/tmpnam.c: Likewise.
4791         * stdio-common/tmpnam_r.c: Likewise.
4792
4793 2007-08-10  Roland McGrath  <roland@frob.com>
4794
4795         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
4796         New macros.
4797         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
4798         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4799
4800 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
4801
4802         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
4803         possible.
4804         * nss/nss_files/files-alias.c (internal_setent): Likewise.
4805         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
4806         * nss/nss_files/files-have_o_cloexec.c: New file.
4807
4808         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
4809         available.
4810
4811 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
4812
4813         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
4814         ___new_wcstold_l): New weak aliases.
4815         (strtold_l, wcstold_l): Use them as second argument for
4816         long_double_symbol.
4817
4818 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
4819
4820         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
4821         register in test for error.
4822
4823         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
4824         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
4825
4826         * po/sv.po: Update from translation team.
4827
4828 2007-08-06  Roland McGrath  <roland@redhat.com>
4829
4830         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
4831         Remove __strto*_l inlines.
4832         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
4833         * stdlib/strtod.c: Add libc_hidden_def.
4834         * stdlib/strtod_l.c: Likewise.
4835         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
4836         for __new_strtold and __new_wcstold.
4837         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
4838         __STRTOF, STRTOF.
4839         * stdlib/strtol.c: Add libc_hidden_def.
4840         * stdlib/strtol_l.c: Likewise.
4841         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
4842         strtoq.
4843
4844         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
4845
4846         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
4847         * scripts/data/localplt-generic.data: ... here.
4848         * elf/Makefile (check-data): Get generic file if no other.
4849         ($(objpfx)check-localplt.out): Make target unconditional.
4850
4851         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
4852         Use ElfW(Nhdr).
4853
4854 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
4855
4856         * po/zh_CN.po: Updated translation from translation team.
4857
4858 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
4859
4860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
4861         Don't use CGOTSETUP and CGOTRESTORE macros.
4862
4863 2007-08-04  Roland McGrath  <roland@redhat.com>
4864
4865         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
4866
4867 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
4868
4869         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
4870         __extension__ around the whole statement expression.
4871
4872 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
4873
4874         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
4875         elements during initialization.
4876
4877         * po/pl.po: Updated translation from translation team.
4878         * po/tr.po: Likewise.
4879         * po/nl.po: Likewise.
4880
4881 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
4882
4883         * rt/aio.h: Add __nonnull attributes.
4884
4885 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
4886
4887         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
4888         * stdlib/Makefile (tests): Add tst-strtod5.
4889         (tst-strtod5-ENV): New.
4890         * stdlib/tst-strtod5.c: New file.
4891
4892         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
4893         failed.
4894         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
4895         on failure.
4896
4897         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
4898         allocated.
4899
4900 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
4901
4902         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
4903         numbers.
4904
4905 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
4906
4907         * io/Makefile (aux): Add have_o_cloexec.
4908         * include/fcntl.h: Declare __have_o_cloexec.
4909         * io/have_o_cloexec.c: New file.
4910         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
4911         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
4912         fcntl call if not necessary.
4913         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
4914         of local variable.
4915
4916         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
4917         Avoid memset, add explicit initialization.
4918         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
4919         to the end and change into zero-sized array.
4920         Move lock member to fill a hole on 64-bit platforms.
4921
4922         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
4923         inline functions.
4924         * include/stdlib.h: Add __strto*_internal prototypes here.
4925         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
4926         inline functions.
4927         * include/wchar.h: Add __wcsto*_internal prototypes.
4928         * sysdeps/generic/inttypes.h: No need to protect the declaration
4929         of the __strto*_internal and __wcsto*_internal members here.
4930
4931         * rt/mqueue.h: Change const to __const and add nonnull attributes.
4932
4933 2007-08-02  Roland McGrath  <roland@redhat.com>
4934
4935         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
4936         $(inst_bindir)/getconf if possible.
4937
4938         * posix/Makefile ($(objpfx)getconf.speclist): New target.
4939         (generated): Add it.
4940         ($(inst_libexecdir)/getconf): Use it.
4941
4942 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
4943
4944         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
4945         /proc is faster and sufficient.  /sys is still needed for
4946         __get_nprocs_conf.
4947
4948 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
4949
4950         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
4951         syscall as __fallocate64.
4952         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
4953         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
4954
4955 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
4956
4957         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
4958         value.
4959
4960         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
4961         if off_t is different rank from size_t.
4962
4963         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
4964         uw_frame_state_for): Avoid type punning warnings.
4965         * sysdeps/generic/unwind-dw2-fde-glibc.c
4966         (_Unwind_IteratePhdrCallback): Likewise.
4967         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
4968         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
4969         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
4970         pointers.
4971
4972 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
4973
4974         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
4975         total processors using sysfs.
4976         (__get_nprocs): Use sysfs to determine which processors are online.
4977
4978 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
4979
4980         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
4981         syscall arguments count.
4982
4983         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
4984
4985 2007-07-30  Roland McGrath  <roland@redhat.com>
4986
4987         * manual/libc.texinfo: Update copyrights, formatting magic, and
4988         @dircategory.  From Karl Berry <karl@freefriends.org>.
4989
4990 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
4991
4992         [BZ #4860]
4993         * io/Makefile (headers): Add bits/fcntl2.h.
4994
4995         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
4996         using gcc builtin.
4997         (__CPU_EQUAL_S): Likewise.
4998
4999         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
5000         (tests): Add tst-cpuset.
5001         * posix/sched_cpualloc.c: New file.
5002         * posix/sched_cpufree.c: New file.
5003         * posix/tst-cpuset.c: New file.
5004         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
5005         GLIBC_2.7.
5006         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
5007         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
5008         macros.  Define CPU_*_S macros.
5009
5010 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5011
5012         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
5013         entry.
5014
5015         [BZ #4858]
5016         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
5017         #.0g and value rounded to 1.0.
5018         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
5019
5020 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
5021
5022         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
5023         for int_frac_digits and frac_digits.
5024
5025         * login/logout.c (logout): Avoid aliasing violation.
5026         * login/logwtmp.c (logwtmp): Likewise.
5027
5028         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
5029
5030         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
5031         to avoid warning.
5032         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
5033         warning.
5034         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
5035         warning.
5036         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
5037         to avoid warnings.
5038
5039         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
5040         void **.
5041         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
5042
5043         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
5044         char * to avoid warning.
5045         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
5046
5047         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
5048
5049         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
5050         allocate_arrays): Cast second argument to charmap_find_symbol
5051         to char * to avoid warnings.
5052
5053         * locale/programs/repertoire.c (repertoire_new_char): Change
5054         from_nr, to_nr and cnt to unsigned long, adjust printf format
5055         string.
5056
5057         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
5058         Cast second argument to new_element to char * to avoid warnings.
5059
5060         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
5061
5062         * intl/gettextP.h (struct loaded_domain): Change plural to const
5063         struct expression *.
5064         * intl/plural-eval.c (plural_eval): Change first argument to
5065         const struct expression *.
5066         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
5067         argument to const struct expression **.
5068         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5069         prototypes.
5070         * intl/loadmsgcat (_nl_unload_domain): Cast away const
5071         in call to __gettext_free_exp.
5072
5073         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5074         unitialized wstring/wpattern var warnings.
5075
5076         * posix/runtests.c (struct a_test): Make data field const char *.
5077
5078         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5079         vars if not LDBL_MANT_DIG >= 106.
5080
5081         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5082
5083         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5084         __find_specmb to avoid warning.
5085
5086         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5087
5088         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5089         to avoid warnings.
5090
5091         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5092         initializer.
5093
5094         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5095         tv var when it will be actually used.
5096
5097         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5098         to avoid warnings.
5099
5100         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5101         char array resp. pointer.
5102         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5103         char array.
5104         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5105         to const unsigned char **.
5106         (ucs4_to_cns11643): Change second argument to unsigned char *.
5107         * iconvdata/euc-tw.c (BODY): Change endp type to
5108         const unsigned char *.
5109         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5110         to unsigned char *.
5111         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5112         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5113         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5114         types to unsigned char pointers/arrays instead of char.
5115         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5116         to unsigned char *.
5117         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5118         * iconvdata/jis0212.h: Include assert.h.
5119         (ucs4_to_jisx0212): Change second argument to unsigned char *.
5120         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5121         of trying to handle that.
5122         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5123         shut up a warning.
5124         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5125         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5126         two dimensional const unsigned char arrays.
5127         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5128         Initialize endp to inptr to shut up a warning.
5129
5130 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5131
5132         [BZ #4772]
5133         * time/strptime_l.c (__strptime_internal): Silently ignore
5134         strftime modifiers and field width in recursive calls.
5135
5136         * include/time.h (enum ptime_locale_status): Remove.
5137         (__strptime_internal): Remove decided and era_cnt arguments,
5138         add statep argument.
5139         * time/strptime_l.c (__strptime_internal): Remove decided
5140         and era_cnt arguments, add statep argument.  Don't recompute
5141         any fields in recursive calls, only update caller's tm
5142         and state, if recursive call fails, don't change tm nor
5143         any state.
5144         (get_alt_number): Adjust.
5145         (recursive): Adjust caller.
5146         (strptime): Likewise.
5147         * time/strptime.c (strptime): Likewise.
5148
5149 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
5150
5151         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5152         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5153         if from and to charsets are the same.
5154         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5155         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5156         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5157
5158 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5159
5160         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5161         Don't define wint_t when __need_mbstate_t unless it
5162         is necessary.
5163         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5164         in the typedef if possible.
5165         * wctype/wctype.h (wint_t): Define by including
5166         wchar.h with __need_wint_t instead of including stddef.h
5167         with __need_wint_t and as fallback definining it ourselves.
5168         * iconv/gconv.h (__need_wint_t): Define before including
5169         wchar.h.
5170         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5171         or _GLIBCPP_USE_WCHAR_T.
5172         (__need_wchar_t): Don't define
5173         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5174         (__need_wint_t): Don't define before including stddef.h,
5175         define before including wchar.h only if _LIBC or
5176         _GLIBCPP_USE_WCHAR_T.
5177         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5178         * sysdeps/mach/hurd/_G_config.h: Likewise.
5179         * sysdeps/generic/_G_config.h: Likewise.
5180         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5181         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5182         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5183         if _LIBC or _GLIBCPP_USE_WCHAR_T.
5184
5185 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5186
5187         * sysdeps/posix/posix_fallocate64.c: Undefine
5188         __posix_fallocate64_l64 before alias handling.
5189         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5190         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5191         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5192         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5193
5194         * io/tst-posix_fallocate.c: Include <fcntl.h>.
5195
5196 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
5197
5198         * locale/programs/ld-collate.c (atwc): New variable.
5199         (add_to_tablewc): New toplevel function, moved from collate_output.
5200         (collate_output): Remove add_to_tablewc nested function.
5201
5202         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5203         (name_insert): New function.
5204         (write_output): Remove hash_table and hash_size vars and name_insert
5205         nested function.
5206
5207 2007-07-24  Roland McGrath  <roland@redhat.com>
5208
5209         * Makerules (install-others-programs-nosubdir): New target.
5210         (install-no-libc.a-nosubdir): Depend on it.
5211
5212         * iconv/Makefile (install-others-programs): Set this instead of
5213         install-others.
5214         * login/Makefile (install-others-programs): Likewise.
5215         * posix/Makefile (install-others-programs): Likewise.
5216
5217         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5218         dependencies.
5219
5220 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
5221
5222         * io/Makefile (tests): Add tst-posix_fallocate.
5223         * io/tst-posix_fallocate.c: New file.
5224
5225         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5226         __ASSUME_FALLOCATE.
5227
5228 2007-07-22  Roland McGrath  <roland@frob.com>
5229
5230         * hurd/getdport.c: Add missing copyright year update.
5231
5232         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5233         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5234
5235 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
5236
5237         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5238
5239         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5240         O_CLOEXEC is needed.
5241         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5242         Avoid additional fcntl to set O_CLOEXEC if not needed.
5243         * nis/nss_compat/compat-initgroups.c: Likewise.
5244         * nis/nss_compat/compat-pwd.c: Likewise.
5245         * nis/nss_compat/compat-spwd.c: Likewise.
5246
5247 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5248
5249         [BZ #3665]
5250         * manual/errno.texi: Change ECANCELED value to 119.
5251
5252         [BZ #4610]
5253         * mach/lock-intern.h: Include <sys/cdefs.h>.
5254
5255         [BZ #4178]
5256         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5257         reading A.
5258
5259         [BZ #4126]
5260         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5261         to __sigsuspend.
5262
5263         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5264
5265 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
5266
5267         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5268         `__ASSEMBLER__'.
5269         * sysdeps/mach/hurd/i386/tls.h: Likewise.
5270
5271 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
5272
5273         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5274         descriptor received from nscd.
5275
5276         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5277
5278         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5279         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5280         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5281         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5282         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5283         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5284
5285 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5286
5287         [BZ #4816]
5288         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5289
5290         [BZ #4813]
5291         * login/forkpty.c (forkpty): Close master and slave fds on
5292         fork failure.  Patch by
5293         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5294
5295 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
5296
5297         * include/features.h (__USE_ISOC95): New define.
5298         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5299         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5300         for -std=iso9899:199409.
5301         * CONFORMANCE: Remove comments about unsupported AMD1.
5302
5303 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5304
5305         * sysdeps/ia64/sched_cpucount.c: New file.
5306         * sysdeps/powerpc/sched_cpucount.c: New file.
5307
5308         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5309         __BEGIN_DECLS/__END_DECLS around the prototype.
5310         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
5311         pointer to const cpu_set_t.
5312
5313         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5314         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5315         __need_size_t and include stddef.h.
5316         * sysvipc/sys/msg.h: Likewise.
5317         * posix/sched.h: Likewise.
5318         * hurd/hurd/signal.h (__need_size_t): Define.
5319
5320         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5321         neither does signal.h in pedantic ISO C namespaces.  stdio.h
5322         no longer defines wint_t or wchar_t.
5323
5324         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5325         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5326         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5327         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5328         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5329         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5330         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5331         * debug/printf_chk.c (__printf_chk): Likewise.
5332         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5333         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5334
5335         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5336         Define.
5337
5338         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5339         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5340
5341 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
5342
5343         [BZ #4792]
5344         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5345         * malloc/malloc.h (realloc): Likewise.
5346
5347         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5348         if one of proc_file_chain streams has that fileno.
5349         * stdio-common/Makefile (tests): Add tst-popen2.
5350         * stdio-common/tst-popen2.c: New test.
5351
5352 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
5353
5354         * elf/ldconfig.c: Allow GPLv2 or any later version.
5355         * elf/readlib.c: Likewise.
5356         * elf/chroot_canon.c: Likewise.
5357         * elf/cache.c: Likewise.
5358         * nscd/mem.c: Likewise.
5359         * nscd/getpwuid_r.c: Likewise.
5360         * nscd/grpcache.c: Likewise.
5361         * nscd/aicache.c: Likewise.
5362         * nscd/getsrvbynm_r.c: Likewise.
5363         * nscd/nscd.c: Likewise.
5364         * nscd/servicescache.c: Likewise.
5365         * nscd/getsrvbypt_r.c: Likewise.
5366         * nscd/initgrcache.c: Likewise.
5367         * nscd/gethstbyad_r.c: Likewise.
5368         * nscd/gethstbynm2_r.c: Likewise.
5369         * nscd/getgrnam_r.c: Likewise.
5370         * nscd/nscd_setup_thread.c: Likewise.
5371         * nscd/getpwnam_r.c: Likewise.
5372         * nscd/gai.c: Likewise.
5373         * nscd/connections.c: Likewise.
5374         * nscd/dbg_log.c: Likewise.
5375         * nscd/cache.c: Likewise.
5376         * nscd/hstcache.c: Likewise.
5377         * nscd/nscd_conf.c: Likewise.
5378         * nscd/getgrgid_r.c: Likewise.
5379         * nscd/pwdcache.c: Likewise.
5380         * catgets/gencat.c: Likewise.
5381         * locale/programs/linereader.h: Likewise.
5382         * locale/programs/locarchive.c: Likewise.
5383         * locale/programs/ld-paper.c: Likewise.
5384         * locale/programs/locfile-kw.h: Likewise.
5385         * locale/programs/ld-address.c: Likewise.
5386         * locale/programs/xmalloc.c: Likewise.
5387         * locale/programs/ld-time.c: Likewise.
5388         * locale/programs/localedef.c: Likewise.
5389         * locale/programs/simple-hash.c: Likewise.
5390         * locale/programs/xstrdup.c: Likewise.
5391         * locale/programs/ld-numeric.c: Likewise.
5392         * locale/programs/locfile-kw.gperf: Likewise.
5393         * locale/programs/ld-collate.c: Likewise.
5394         * locale/programs/charmap-kw.gperf: Likewise.
5395         * locale/programs/charmap.h: Likewise.
5396         * locale/programs/charmap-kw.h: Likewise.
5397         * locale/programs/config.h: Likewise.
5398         * locale/programs/locfile.c: Likewise.
5399         * locale/programs/ld-ctype.c: Likewise.
5400         * locale/programs/charmap.c: Likewise.
5401         * locale/programs/ld-messages.c: Likewise.
5402         * locale/programs/repertoire.h: Likewise.
5403         * locale/programs/locale.c: Likewise.
5404         * locale/programs/ld-name.c: Likewise.
5405         * locale/programs/linereader.c: Likewise.
5406         * locale/programs/locfile.h: Likewise.
5407         * locale/programs/3level.h: Likewise.
5408         * locale/programs/ld-monetary.c: Likewise.
5409         * locale/programs/ld-measurement.c: Likewise.
5410         * locale/programs/charmap-dir.c: Likewise.
5411         * locale/programs/ld-identification.c: Likewise.
5412         * locale/programs/localedef.h: Likewise.
5413         * locale/programs/charmap-dir.h: Likewise.
5414         * locale/programs/repertoire.c: Likewise.
5415         * locale/programs/simple-hash.h: Likewise.
5416         * locale/programs/ld-telephone.c: Likewise.
5417         * locale/programs/locale-spec.c: Likewise.
5418         * locale/programs/locfile-token.h: Likewise.
5419         * posix/getconf.c: Likewise.
5420         * iconv/dummy-repertoire.c: Likewise.
5421         * iconv/iconv_charmap.c: Likewise.
5422         * iconv/iconvconfig.c: Likewise.
5423         * iconv/iconv_prog.c: Likewise.
5424         * malloc/memusagestat.c: Likewise.
5425         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5426
5427 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5428
5429         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
5430         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
5431         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
5432         check for the first argument.
5433
5434 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
5435
5436         [BZ #4775]
5437         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
5438         (__tgmath_real_type): Fix if expr is const int or other const
5439         qualified integral type.
5440         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
5441         expressions and handle const qualified arguments.
5442         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
5443         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5444         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
5445         statement expressions.
5446         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
5447         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
5448         (__TGMATH_UNARY_IMAG): Define.
5449         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
5450         * math/Makefile (tests): Add test-tgmath2.
5451         (CFLAGS-test-tgmath2.c): Add.
5452         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
5453         count_cfloat, count_cldouble): New variables.
5454         (NCCALLS): Define.
5455         (main): Check number of complex calls as well.
5456         (F(compile_test)): Add complex tests and tests with const qualified
5457         arguments.
5458         (y, z, ccount): Define.
5459         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
5460         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
5461         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
5462         F(cproj)): New functions.
5463         * math/test-tgmath2.c: New test.
5464
5465 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
5466
5467         [BZ #4776]
5468         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5469         RPATH etc. as "/" rather than "", don't segfault on empty paths,
5470         instead output ".".
5471         * dlfcn/Makefile (distribute): Add glreflib3.c.
5472         (module-names): Add glreflib3.
5473         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5474         glreflib1.so.
5475         (LDFLAGS_glreflib3.so): New.
5476         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5477         glreflib1.so.
5478         * dlfcn/glreflib3.c: New file.
5479
5480         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5481         returned -1, return NULL.
5482         * intl/explodename.c (_nl_explode_name): Return -1 if
5483         _nl_normalize_codeset failed.
5484
5485 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
5486
5487         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5488         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
5489         and avoid branch misspredicts for > 31 bytes memset case.
5490         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5491         Remove toc ref to __cache_line_size.
5492
5493         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
5494         to get ISA-V2.0 branch hints.
5495         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
5496         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
5497         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5498         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5499         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5500         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5501         Remove toc ref to __cache_line_size.
5502
5503         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
5504         Include math_ldbl_opt.h.
5505
5506 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
5507
5508         [BZ #4773]
5509         * time/strptime_l.c (__strptime_internal): Implement greedy
5510         matching of weekday and month names.
5511
5512 2007-07-09  Roland McGrath  <roland@redhat.com>
5513
5514         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
5515         (ELF_NOTE_ABI): Use it.
5516         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
5517
5518 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
5519
5520         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
5521         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5522
5523 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
5524
5525         [BZ #4745]
5526         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
5527         in loop to look for conversion specifier to avoid testing of
5528         wrong errno value.
5529         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
5530         * stdio-common/bug18.c: New file.
5531         * stdio-common/bug18a.c: New file.
5532         * stdio-common/bug19.c: New file.
5533         * stdio-common/bug19a.c: New file.
5534
5535 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
5536
5537         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
5538         running awk script.
5539
5540 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
5541
5542         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
5543         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
5544         Return NULL if mmap failed instead of asserting it does not.
5545         (calloc): Check for integer overflow.
5546
5547         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
5548         than LONG_MAX / 10.
5549
5550 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
5551
5552         [BZ #4702]
5553         * nis/nss-default.c: Include errno.h.
5554         (init): Preserve errno.
5555
5556 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
5557
5558         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
5559
5560 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
5561
5562         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
5563
5564 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5565
5566         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
5567
5568 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5569
5570         * sysdeps/s390/dl-procinfo.c: New file.
5571         * sysdeps/s390/dl-procinfo.h: New file.
5572         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
5573
5574 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
5575
5576         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
5577         in PT_NOTE segments with multiple notes.
5578         * elf/readelflib.c (process_elf_file): Likewise.
5579
5580 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
5581
5582         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
5583         ISO C compliant.
5584
5585 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5586
5587         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
5588
5589 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
5590
5591         * include/link.h: Don't include rtld-lowlevel.h.
5592         (struct link_map): Remove l_scope_lock.
5593         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
5594         (_dl_scope_free_list): New field (variable) in _rtld_global.
5595         (DL_LOOKUP_SCOPE_LOCK): Remove.
5596         (_dl_scope_free): New prototype.
5597         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
5598         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
5599         (_dl_profile_fixup): Likewise.
5600         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
5601         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
5602         THREAD_GSCOPE_RESET_FLAG around it.
5603         * elf/dl-close.c (_dl_close_worker): Don't use
5604         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
5605         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
5606         scopes were queued or if l_scope_mem has been abandoned.
5607         * elf/dl-open.c (_dl_scope_free): New function.
5608         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
5609         * elf/dl-support.c (_dl_scope_free_list): New variable.
5610         * elf/dl-lookup.c (add_dependency): Remove flags argument.
5611         Remove DL_LOOKUP_SCOPE_LOCK handling.
5612         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
5613         handling.
5614         * elf/dl-object.c (_dl_new_object): Don't use
5615         __rtld_mrlock_initialize.
5616
5617 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5618
5619         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
5620         to fill in holes
5621         (rtld_global_ro): Likewise.
5622
5623 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5624
5625         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
5626         Move PT_LOAD checking to...
5627         (_dl_addr_inside_object): ... here, new function.
5628         * elf/dl-sym.c (do_sym): If not l_contiguous,
5629         call _dl_addr_inside_object.
5630         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5631         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5632         * elf/dl-open.c (dl_open_worker): Likewise.
5633         (_dl_addr_inside_object): New function if IS_IN_rtld.
5634         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
5635         holes are present or are PROT_NONE protected.
5636         * include/link.h (struct link_map): Add l_contiguous field.
5637         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
5638
5639 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5640             Tomas Janousek  <tjanouse@redhat.com>
5641             Ulrich Drepper  <drepper@redhat.com>
5642
5643         [BZ #4647]
5644         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
5645         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
5646         socket.
5647         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
5648         unused member a bitmap.
5649         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
5650         servers are configured.
5651
5652 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5653
5654         * elf/rtld.c (dl_main): Don't call init_tls more than once.
5655
5656 2007-06-17  Andreas Schwab  <schwab@suse.de>
5657
5658         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
5659
5660 2007-06-16  Andreas Jaeger  <aj@suse.de>
5661
5662         [BZ #4125]
5663         * sysdeps/unix/sysv/linux/sys/ptrace.h
5664         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
5665         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
5666         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
5667         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
5668         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
5669         Define.
5670         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5671         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5672         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5673         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5674
5675 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
5676
5677         [BZ #4599]
5678         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
5679         determining whether there are IPv4/IPv6 addresses, ignore loopback
5680         addresses.
5681
5682 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
5683
5684         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
5685         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
5686         as the return type.  Change type of "r" variable to CMPtype.
5687         * soft-fp/eqsf2.c (__eqsf2): Likewise.
5688         * soft-fp/eqtf2.c (__eqtf2): Likewise.
5689         * soft-fp/gedf2.c (__gedf2): Likewise.
5690         * soft-fp/gesf2.c (__gesf2): Likewise.
5691         * soft-fp/getf2.c (__getf2): Likewise.
5692         * soft-fp/ledf2.c (__ledf2): Likewise.
5693         * soft-fp/lesf2.c (__lesf2): Likewise.
5694         * soft-fp/letf2.c (__letf2): Likewise.
5695         * soft-fp/unorddf2 (__unorddf2): Likewise.
5696         * soft-fp/unordsf2 (__unordsf2): Likewise.
5697         * soft-fp/unordtf2 (__unordtf2): Likewise.
5698
5699 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
5700
5701         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
5702         make sure gcc doesn't mess around with this.
5703
5704 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
5705
5706         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
5707
5708 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
5709
5710         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
5711         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
5712         at most once per _dl_close_worker.
5713
5714 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
5715
5716         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
5717         __sched_cpucount as const.
5718         * posix/sched_cpucount.c: Adjust.
5719
5720         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
5721         instruction for counting bits.
5722         * sysdeps/x86_64/sched_cpucount.c: New file.
5723
5724 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
5725
5726         * configure.in: Avoid variable named BASH.
5727         * config.make.in: Likewise.
5728         Patch in part by Mike Frysinger.
5729
5730 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
5731
5732         [BZ #4586]
5733         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
5734         pseudo-zeros as zero.
5735         * sysdeps/x86_64/ldbl2mpn.c: New file.
5736         * sysdeps/ia64/ldbl2mpn.c: New file.
5737
5738 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
5739
5740         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
5741         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
5742         Remove unreachable code at the end.
5743
5744 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
5745
5746         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
5747         ldbl-128ibm in comment.
5748         (fpclassifyl): Correct classification of denormals.
5749         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
5750         return value for MIN denormal. Rewrite using long double math too
5751         correctly handle denormals and canonicalize the results.
5752
5753 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
5754
5755         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5756         (__mpn_construct_long_double): Fix conversion where result ought
5757         to be smaller than __LDBL_MIN__, or the low double should be
5758         denormal.  Fix decision where to negate low double - honor round
5759         to even rules.
5760         * stdio-common/tst-sprintf2.c: Include string.h.
5761         (COMPARE_LDBL): Define.
5762         (TEST): Also test whether a string hexadecimal float representation
5763         can be parsed back to the number.
5764         (main): Add a couple of further tests.
5765
5766 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
5767
5768         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5769         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
5770         is non-zero, but smaller than 2 * __DBL_MIN__.
5771         * stdio-common/tst-sprintf2.c: New test.
5772         * stdio-common/Makefile (tests): Add tst-sprintf2.
5773
5774         * math/test-misc.c (main): Don't run last batch of tests with
5775         IBM long double format.
5776
5777 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5778
5779         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
5780         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
5781         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
5782         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
5783         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5784         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
5785         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
5786         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
5787         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
5788         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
5790         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
5791         New file.
5792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/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/power6/fpu/Implies:
5797         New file.
5798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
5799         New file.
5800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
5801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
5802         New file.
5803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/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/power6/fpu/Implies:
5808         New file.
5809         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
5810         New file.
5811
5812 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5813
5814         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
5815         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
5816         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
5817         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
5818         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
5819         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
5820         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
5821         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
5822
5823 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
5824
5825         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
5826         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5827         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
5828         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5829         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
5830         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5831         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
5832         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5833
5834 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
5835
5836         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
5837         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
5838         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
5839         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
5840
5841 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
5842
5843         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
5844         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
5845
5846 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
5847
5848         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
5849         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
5850         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
5851         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
5852
5853 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
5854
5855         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
5856         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
5857
5858 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
5859
5860         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
5861         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
5862
5863         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
5864         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
5865         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
5866         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5867
5868 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
5869
5870         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
5871         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
5872         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
5873         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
5874
5875 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
5876
5877         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
5878         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
5879         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
5880         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5881         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
5882         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5883
5884 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
5885
5886         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
5887         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
5888         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
5889         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
5890
5891 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
5892
5893         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
5894         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
5895         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
5896         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
5897         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
5898         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
5899         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
5900         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
5901         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
5902         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
5903         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
5904         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
5905         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
5906         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
5907         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
5908         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
5909
5910 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
5911
5912         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
5913         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
5914
5915 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
5916
5917         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
5918         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
5919
5920 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5921
5922         * sysdeps/powerpc/powerpc32/970/Implies: New file.
5923         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
5924         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
5925         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
5926         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
5927         * sysdeps/powerpc/powerpc64/970/Implies: New file.
5928         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
5929         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
5930         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
5931         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
5932
5933 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
5934
5935         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
5936
5937 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
5938
5939         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
5940         branch miss-predicts. Ensure that cache line crossing does not impact
5941         dispatch grouping.
5942
5943 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
5944
5945         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
5946         "../../powerpc32/power4/memcopy.h".
5947         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
5948         "../../powerpc32/power4/wordcopy.c".
5949
5950 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
5951
5952         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
5953         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
5954         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
5955         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
5956         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
5957         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
5958
5959 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
5960
5961         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
5962
5963 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
5964
5965         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
5966         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
5967         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
5968         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
5969         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
5970         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
5971         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
5972         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
5973
5974 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
5975
5976         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
5977
5978 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
5979
5980         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
5981         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
5982         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
5983         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
5984         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
5985         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
5986         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
5987
5988 2007-05-29  Roland McGrath  <roland@redhat.com>
5989
5990         * po/Makefile (po-sed-cmd): New variable.
5991         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
5992
5993 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
5994
5995         * crypt/md5-crypt.c: Fix comment.
5996
5997         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
5998         of crashing.  When this is the case or if the reply is malformed,
5999         don't try to close the new file descriptor since it does not
6000         exist.
6001         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
6002
6003 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
6004
6005         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
6006         if __NR_utimensat is not defined.
6007
6008 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
6009
6010         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
6011
6012 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
6013
6014         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
6015         (open): Fix comment typos.  Don't call __open_2 if flags
6016         is a compile time constant without O_CREAT.
6017         (__open64_2): Add nonnull attribute.
6018         (open64): Fix comment typos.  Don't call __open64_2 if flags
6019         is a compile time constant without O_CREAT.
6020         (__openat_2): Add nonnull attribute, fix nonnull attribute
6021         on redirect.
6022         (openat): Fix comment typos.  Don't call __openat_2 if flags
6023         is a compile time constant without O_CREAT.
6024         (__openat64_2): Add nonnull attribute, fix nonnull attribute
6025         on redirect.
6026         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
6027         is a compile time constant without O_CREAT.
6028
6029 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
6030
6031         * Makerules (sysd-rules): Define PTW for ptw-* files.
6032         * Versions: Define GLIBC_2.7 for libc.
6033         * include/stdio.h: Declare __fortify_fail.
6034         * debug/fortify_fail.c: New file.
6035         * debug/Makefile (routines): Add fortify_fail.
6036         * debug/chk_fail.c: Use __fortify_fail.
6037         * debug/stack_chk_fail.c: Likewise.
6038         * io/Versions: Export __open_2, __open64_2, __openat_2, and
6039         __openat64_2 for GLIBC_2.7.
6040         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
6041         * io/open.c: Define *_2 variant of function which checks for O_CREAT
6042         and fails if necessary.
6043         * io/open64.c: Likewise.
6044         * io/openat.c: Likewise.
6045         * io/openat64.c: Likewise.
6046         * sysdeps/unix/sysv/linux/open64.c: Likewise.
6047         * sysdeps/unix/sysv/linux/openat.c: Likewise.
6048         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
6049         * io/bits/fcntl2.h: New file.
6050         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
6051         __openat64_2.
6052         * include/bits/fcntl2.h: New file.
6053         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6054         Add open_2.
6055         * sysdeps/unix/sysv/linux/open_2.c: New file.
6056
6057 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
6058
6059         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
6060         as second parameter to handle_intel.
6061
6062         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
6063         the entry.
6064
6065         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
6066         handling to ...
6067         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
6068         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6069         cacheinfo.
6070         * sysdeps/x86_64/memcpy.S: Complete rewrite.
6071         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6072         Patch by Evandro Menezes <evandro.menezes@amd.com>.
6073
6074         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6075
6076 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
6077
6078         [BZ #4525]
6079         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6080         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6081         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6082
6083         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6084
6085         [BZ #4514]
6086         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6087         reinitialize workend at the start of each do_positional format spec
6088         loop, free workstart before do_positional loops.
6089         (printf_unknown): Fix size of work_buffer.
6090         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6091
6092         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6093         (public_sET_STATe): If ms->version < 3, put all chunks into
6094         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6095         chunks.
6096
6097         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6098         * malloc/hooks.c: Likewise.
6099         * malloc/arena.c: Likewise.
6100         * malloc/malloc.c (do_check_malloc_state): Don't assert
6101         n_mmaps is not greater than n_mmaps_max.  This removes the need
6102         for the previous change.
6103
6104         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6105         2007-05-07 commit.
6106
6107 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
6108
6109         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6110         Define for kernel >= 2.6.22.
6111
6112 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
6113
6114         * elf/dl-close.c (_dl_close_worker): When removing object from
6115         global scope, wait for all lookups to finish afterwards.
6116         * elf/dl-open.c (add_to_global): When global scope array must
6117         grow, allocate a new one and free old array only after all
6118         lookups finish.
6119         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6120         (_dl_lookup_symbol_x): Likewise.
6121         * elf/dl-support.c: Define _dl_wait_lookup_done.
6122         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6123         _dl_wait_lookup_done.
6124
6125         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6126         not overlapping with arena.
6127
6128         * malloc/mcheck.c (reallochook): If size==0, free the block.
6129
6130         * rt/tst-shm.c: Use fstat64 instead of fstat.
6131
6132         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6133         __NR_sync_file_range is not defined.
6134
6135 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
6136
6137         Dummy files to prevent stub versions from being used.
6138         * sysdeps/x86_64/fpu/k_cosl.c: New file.
6139         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6140         * sysdeps/x86_64/fpu/k_sinl.c: New file.
6141         * sysdeps/x86_64/fpu/k_tanl.c: New file.
6142
6143         * version.h (VERSION): Set to 2.6.90.
6144
6145 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
6146
6147         * version.h (VERSION): Define to 2.6.
6148         * include/features.h (__GLIBC_MINOR__): Define to 6.
6149
6150         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6151
6152         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6153         sizes.
6154
6155 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
6156
6157         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6158         number of mmaps.  n_mmaps_max is the target.
6159         * malloc/hooks.c: Likewise.
6160         * malloc/arena.c: Likewise.
6161
6162 2007-05-12  Andreas Jaeger  <aj@suse.de>
6163
6164         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6165         getpid.
6166
6167 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
6168
6169         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6170         adding new variables.
6171
6172         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
6173         optimize.  Completely extend global scope array before making the
6174         new entries visible.
6175
6176 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
6177
6178         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6179         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6180         tst-getcpu.
6181
6182         * include/link.h: Move l_version and l_nversion members around to
6183         fill gaps.
6184
6185         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6186
6187         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6188         (__sched_setaffinity_new): If syscall was successful and
6189         RESET_VGETCPU_CACHE is defined, use it before returning.
6190         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6191
6192         * io/sys/stat.h: Make sure struct timespec is defined for
6193         __USE_ATFILE.
6194
6195         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6196         UTIME_OMIT.
6197         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6198         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6199         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6200         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6201         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6202         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6203         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6204         * io/sys/stat.h: Declare utimensat, futimens.
6205         * io/utimensat.c: New file.
6206         * io/futimens.c: New file.
6207         * sysdeps/unix/sysv/linux/utimensat.c: New file.
6208         * sysdeps/unix/sysv/linux/futimens.c: New file.
6209         * io/Makefile (routines): Add utimensat, futimens.
6210         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6211         * sysdeps/unix/sysv/linux/lutimes.c: New file.
6212         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6213         available.
6214
6215         * include/sys/cdefs.h: Redefine __nonnull so that test for
6216         incorrect parameters in the libc code itself are not omitted.
6217
6218 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
6219
6220         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6221         exception in addition to inexact when asked to raise only FE_INEXACT.
6222
6223         [BZ #3427]
6224         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6225         in *envp.
6226
6227 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6228
6229         [BZ #4403]
6230         * string/strfry.c (strfry): Make result more random.
6231
6232 2007-05-07  Richard Henderson  <rth@redhat.com>
6233
6234         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6235         if __NO_LONG_DOUBLE_MATH.
6236         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
6237         available in the compiler, add .arch directive to the assembly.
6238
6239 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
6240
6241         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6242         compat_symbol to GLIBC_2_1.
6243         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6244         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6245         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6246         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6247         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6248         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6249         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6250         libc, not libm.
6251         (__isnanl): New compat_symbol.
6252
6253 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6254             Jakub Jelinek  <jakub@redhat.com>
6255
6256         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6257         (new_heap): Initialize mprotect_size.
6258         (grow_heap): When growing, only mprotect from mprotect_size till
6259         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
6260         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6261
6262 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
6263             Peter Bergner  <bergner@us.ibm.com>
6264
6265         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6266         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
6267         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6268         * sysdeps/powerpc/fpu/fe_mask.c: New file.
6269         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6270         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6271         Call __fe_mask_env() if all FP exceptions disabled.
6272         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6273         from old FPSCR to new fenv to propagate DFP rounding modes.
6274         Call __fe_mask_env() if FP exceptions previously enabled.
6275         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6276         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
6277         transitioning from all exceptions disabled to any exception enabled
6278         or visa versa.
6279         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6280         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
6281         when transitioning from all exceptions disabled to any exception
6282         enabled or visa versa.
6283         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6284         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6289
6290 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6291
6292         [BZ #4465]
6293         * posix/unistd.h: Remove __THROW from fdatasync.
6294
6295 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
6296
6297         [BZ #4465]
6298         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6299
6300 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6301
6302         * stdio-common/vfprintf.c (process_string_arg): Optimize
6303         ridiculous precision in wide char code printing multi-byte string.
6304         Reported by Jim Meyering <jim@meyering.net>.
6305
6306         [BZ #4131]
6307         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6308         boundaries to work around systems with overlapping binary loading.
6309         Based on a patch by Suzuki <suzuki@in.ibm.com>.
6310
6311 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
6312
6313         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6314         __mbsnrtowcs after last change.
6315
6316         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6317         (get_ident): Likewise.
6318
6319 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6320
6321         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6322         with setting the sticky bit.
6323         * math/test-misc.c (main): Add more truncation tests.
6324
6325 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
6326
6327         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6328         double in the function declaration.
6329         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6330         double in the function declaration.
6331         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6332         float in the function declaration.
6333         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6334         float in the function declaration.
6335
6336         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6337         denormal operands.  Do not generate FP_EX_DENORM exception.
6338         (FP_UNPACK_RAW_EP): Ditto.
6339         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6340         undefined _FP_UNPACK_RAW_E.
6341         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6342         undefined _FP_UNPACK_RAW_EP.
6343         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6344         undefined _FP_PACK_RAW_E.
6345         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6346         undefined _FP_PACK_RAW_EP.
6347
6348         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6349         _FP_FRAC_COPY_2.
6350         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6351         _FP_FRAC_COPY_4.
6352
6353 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
6354             Jakub Jelinek  <jakub@redhat.com>
6355
6356         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6357         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
6358         this case.
6359         * soft-fp/op-common.h (FP_TRUNC): Ditto.
6360
6361 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6362
6363         * math/test-misc.c (main): Add tests for rounding long double
6364         values close to smallest double denormalized value to double.
6365
6366 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
6367
6368         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6369         condition for truncating to 0.  Set sticky bit for such
6370         truncation.
6371
6372 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
6373
6374         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6375         fixed length array for ignore.
6376
6377 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6378
6379         [BZ #4438]
6380         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6381         stack for large precisions.
6382         * stdio-common/test-vfprintf.c (main): Add test for large
6383         precision.
6384
6385 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
6386
6387         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6388         for exponent 0.
6389         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6390
6391         [BZ #4439]
6392         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6393         account in the size check.
6394         * resolv/tst-inet_ntop.c: New test.
6395         * resolv/Makefile (tests): Add tst-inet_ntop.
6396
6397 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6398             Jakub Jelinek  <jakub@redhat.com>
6399
6400         [BZ #4349]
6401         * malloc/malloc.c: Keep separate list for first blocks on the bin
6402         lists with a given size.  This helps skipping over list elements
6403         we know won't fit in two places.
6404         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6405
6406 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
6407
6408         [BZ #4102]
6409         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6410         label to Teredo tunnel addresses 2001://32.
6411
6412 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
6413
6414         * locale/programs/ld-collate.c (collate_read): Allow order_start
6415         after copy.
6416
6417         * locale/programs/ld-collate.c (collate_read): Fix printing of
6418         error message.
6419
6420         [BZ #3213]
6421         * locale/C-translit.h.in: Add entry for U2044.
6422
6423         [BZ #4342]
6424         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6425         hexa-decimal floats without exponent.
6426         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6427
6428 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6429
6430         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
6431         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
6432         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
6433         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
6434         GLIBC_2.6.
6435         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
6436         Add sched_getcpu.
6437
6438 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6439
6440         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
6441         of 0 after the out_fail label.
6442
6443 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6444
6445         [BZ #4406]
6446         * iconv/gconv_charset.h (strip): Allow ':'.
6447         * iconv/iconv_open.c (iconv_open): Adjust comment.
6448
6449 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6450
6451         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
6452         version.
6453
6454 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6455
6456         [BZ #4381]
6457         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
6458         alignment of buffer and tmp_buffer.
6459         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
6460         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
6461         alignment of buffer.
6462         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
6463         bigger than INT_MAX.
6464         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
6465         h_errnop arguments.  Fail if buflen is too small.
6466         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6467
6468 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6469
6470         [BZ #4405]
6471         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6472         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
6473
6474 2007-04-22  Roland McGrath  <roland@redhat.com>
6475
6476         * elf/elf.h (NT_PRXFPREG): New macro.
6477
6478 2007-04-19  Andreas Jaeger  <aj@suse.de>
6479
6480         [BZ #3905]
6481         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6482         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6483         Added.
6484
6485 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
6486
6487         * include/sys/mman.h: Mark madvise hidden.
6488         * misc/madvise.c: Add libc_hidden_def.
6489
6490 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
6491
6492         * nis/nis_domain_of.c (__nis_domain_of): New function.
6493         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
6494         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6495         * nis/nis_call.c (rec_dirsearch): Likewise.
6496         (first_shoot): Likewise.  Remove search_parent_first argument.
6497         (struct nis_server_cache): Rename search_parent_first field
6498         to search_parent.
6499         (nis_server_cache_search, nis_server_cache_add): Rename
6500         search_parent_first argument to search_parent.
6501         (__nisfind_server): Likewise.  If search_parent, call
6502         __nis_domain_of.
6503
6504 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
6505
6506         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
6507
6508 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
6509
6510         [BZ #4368]
6511         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
6512
6513 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
6514
6515         [BZ #4364]
6516         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
6517
6518 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
6519
6520         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
6521         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
6522         current number of locales in SUPPORTED.
6523         (create_archive): Initialize serial.
6524         (enlarge_archive): Preserve aliases rather than duplicating
6525         their locrecs.
6526
6527 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6528
6529         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
6530         after _IO_un_link, not before it.
6531
6532         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
6533         special case handling when wcp == wstartp + 1.  Fix a comment typo.
6534         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
6535
6536 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
6537
6538         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
6539         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
6540         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
6541         Remove __THROW.
6542         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
6543         _IO_file_xsgetn_maybe_mmap): Likewise.
6544         * libio/oldfileops.c (old_do_write): Likewise.
6545         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
6546         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
6547         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
6548         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
6549         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
6550         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
6551         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
6552         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
6553         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
6554         _IO_file_underflow, _IO_file_underflow_mmap,
6555         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
6556         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
6557         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
6558         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
6559         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
6560         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
6561         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
6562         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
6563         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
6564         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
6565         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
6566         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
6567         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
6568         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
6569         _IO_adjust_column_internal, _IO_default_uflow_internal,
6570         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
6571         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
6572         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
6573         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
6574         _IO_file_close_it_internal, _IO_file_underflow_internal,
6575         _IO_file_overflow_internal, _IO_file_attach_internal,
6576         _IO_file_fopen_internal, _IO_file_sync_internal,
6577         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
6578         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
6579         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
6580         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
6581         _IO_seekpos_unlocked): Likewise.
6582         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
6583         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
6584
6585 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
6586
6587         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
6588         argument in xmalloc size computation.
6589
6590 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
6591
6592         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
6593         math_opt_barrier and math_force_eval macros.
6594
6595 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6596
6597         [BZ #3306]
6598         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
6599         * sysdeps/i386/fpu/math_private.h: New file.
6600         * sysdeps/x86_64/fpu/math_private.h: New file.
6601         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
6602         math_force_eval macros.  Use "+m" constraint on asm rather than
6603         "=m" and "m".
6604         * math/s_nextafter.c (__nextafter): Likewise.
6605         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
6606         Likewise.
6607         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6608         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
6609         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6610         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
6611         math_opt_barrier and math_force_eval macros.
6612         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
6613         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
6614         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
6615         (__nexttoward): Use math_opt_barrier and
6616         math_force_eval macros.  Use "+m" constraint on asm rather than
6617         "=m" and "m".  Only use asm to force double result if
6618         FLT_EVAL_METHOD is 2.
6619         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
6620         (__nexttowardf): Use math_opt_barrier and
6621         math_force_eval macros.  Use "+m" constraint on asm rather than
6622         "=m" and "m".  Only use asm to force double result if
6623         FLT_EVAL_METHOD is not 0.
6624         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
6625         (__nexttowardf): Use math_opt_barrier and
6626         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6627         x to float using asm.
6628         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
6629         (__nldbl_nexttowardf): Use math_opt_barrier and
6630         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6631         x to float using asm.
6632         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
6633         (__nexttowardf): Use math_opt_barrier and math_force_eval
6634         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
6635         * math/bug-nextafter.c (zero, inf): New variables.
6636         (main): Add new tests.
6637         * math/bug-nexttoward.c (zero, inf): New variables.
6638         (main): Add new tests.
6639
6640 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
6641
6642         [BZ #3427]
6643         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
6644         exceptions both in SW and MXCSR.
6645         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
6646         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
6647         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6648         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6649         in MXCSR if SSE is available.
6650         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
6651         and ldsodefs.h.
6652         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
6653         Fix comment typo.
6654         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
6655         Return 0 rather than 1.
6656         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
6657         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
6658         * math/test-fenv.c (feholdexcept_tests): New function.
6659         (main): Call it.
6660
6661 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
6662
6663         [BZ #3427]
6664         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6665         in SW.
6666
6667 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6668
6669         [BZ #4344]
6670         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
6671         Reported by David Anderson <davea42@earthlink.net>.
6672
6673 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
6674
6675         * posix/sys/wait.h: Remove unnecessary forward declaration.
6676
6677 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
6678
6679         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
6680         with obj->do_servers after first_shoot.
6681
6682 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
6683
6684         * posix/Makefile (routines): Add sched_cpucount.
6685         (tests): Add tst-cpucount.
6686         * posix/sched_cpucount.c: New file.
6687         * posix/tst-cpucount.c: New file.
6688         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
6689         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
6690         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6691         * posix/sched.h: Define CPU_COUNT.
6692
6693 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6694
6695         * posix/fnmatch.c (STRUCT): Define.
6696         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
6697         * posix/fnmatch_loop.c (struct STRUCT): New type.
6698         (FCT): Add ends argument.  If ends != NULL and normal * is
6699         seen in the pattern, store current pattern and string pointers
6700         and return.  Adjust recursive calls.
6701         (EXT): Adjust FCT callers.
6702         (STRUCT): Undef at the end of the file.
6703         * posix/Makefile (tests): Add tst-fnmatch2.
6704         * posix/tst-fnmatch2.c: New test.
6705
6706 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
6707
6708         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
6709         and 1 on failure.
6710
6711         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
6712         Change last argument to unsigned int.
6713
6714 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
6715
6716         * scripts/check-local-headers.sh: Filter out sys/capability.h.
6717
6718 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
6719
6720         * config.h.in (HAVE_LIBCAP): Add.
6721         * nscd/selinux.h: Include sys/capability.h rather than non-existent
6722         sys/capabilities.h.
6723         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
6724         free_caps.  Cast away const from 4th cap_set_flag argument.
6725
6726 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
6727
6728         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
6729         GLIBC_2.6.
6730         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6731         Add sync_file_range.
6732         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
6733
6734 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
6735
6736         * sysdeps/powerpc/bits/atomic.h
6737         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
6738         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
6739         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6740         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
6741         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6742         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
6743         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
6744         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6745         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6746         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6747         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
6748         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6749         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6750         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6751         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6752         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
6753         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6754         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
6755         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6756         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
6757
6758 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
6759
6760         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6761         (__cache_line_size): Define the variable here.  Add
6762         attribute_hidden, remove weak_extern.
6763         (__libc_start_main): Set __cache_line_size
6764         unconditionally.
6765         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
6766         (__cache_line_size): Define the variable here.  Add
6767         attribute_hidden, remove weak_extern.
6768         (DL_PLATFORM_AUXV): Set __cache_line_size
6769         unconditionally.
6770         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
6771         weak_extern, add attribute_hidden.
6772         (__elf_machine_runtime_setup): Assume __cache_line_size is always
6773         defined in ld.so.
6774         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
6775         definition.
6776         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
6777
6778 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
6779
6780         [BZ #4276]
6781         * timezone/africa: Update from tzdata2007d.
6782         * timezone/asia: Likewise.
6783         * timezone/australasia: Likewise.
6784         * timezone/backward: Likewise.
6785         * timezone/europe: Likewise.
6786         * timezone/iso3166.tab: Likewise.
6787         * timezone/leapseconds: Likewise.
6788         * timezone/northamerica: Likewise.
6789         * timezone/southamerica: Likewise.
6790         * timezone/zone.tab: Likewise.
6791
6792         * timezone/private.h: Update from tzcode2007d.
6793         * timezone/zdump.c: Likewise.
6794         * timezone/zic.c: Likewise.
6795
6796 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
6797
6798         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
6799         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
6800         variables.
6801         (nis_server_cache_search, nis_server_cache_add): New functions.
6802         (__nisfind_server): Use them.  Add dbp and flags argument, if
6803         call __nisbind_create.
6804         (__nisbind_create): Add server_used and current_ep arguments,
6805         only call __nis_findfastest if server_used is ~0.
6806         (__do_niscall2, __prepare_niscall): Adjust callers.
6807         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
6808         ckey_cache_euid, ckey_cache_lock): New variables.
6809         (get_ckey): New function.
6810         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
6811         __pmap_getnisport.  Save __pmap_getnisport result in
6812         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
6813         key.
6814         * nis/nis_lookup.c (nis_lookup): Likewise.
6815         * nis/nis_table.c (nis_list): Likewise.
6816         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
6817         prototypes.
6818
6819         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
6820         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
6821         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
6822         _nss_nisplus_getservbyport_r): Likewise.
6823         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
6824         _nss_nisplus_getnetbyaddr_r): Likewise.
6825         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
6826         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
6827         _nss_nisplus_getntohost_r): Likewise.
6828         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
6829         _nss_nisplus_getrpcbynumber_r): Likewise.
6830
6831 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
6832
6833         * configure.in (libc_cv_gnu89_inline): Only do compile test.
6834         * configure: Rebuilt.
6835
6836         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
6837         bit-fields.
6838         * soft-fp/extended.h (_FP_UNION_E): Likewise.
6839
6840 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
6841
6842         [BZ #2831]
6843         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
6844         bit-fields.
6845
6846 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
6847
6848         * nscd/gai.c: Include alloca.h.
6849         (__libc_use_alloca): Define.
6850
6851 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
6852
6853         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
6854         smaller scopes.
6855         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
6856         (DL_DST_REQUIRED): Adjust user.
6857
6858         * include/dlfcn.h (struct link_map): New forward decl.
6859
6860         * inet/getnameinfo.c: Include stddef.h.
6861         (getnameinfo): Use offsetof.
6862
6863         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
6864
6865         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
6866
6867         * string/strerror_l.c: Include stdlib.h.
6868
6869         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
6870         * config.make.in (gnu89-inline-CFLAGS): New variable.
6871         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
6872         -std=gnu99.
6873         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
6874         * argp/argp.h: Use it.
6875         * bits/mathinline.h: Likewise.
6876         * bits/sigset.h: Likewise.
6877         * bits/string.h: Likewise.
6878         * ctype/ctype.h: Likewise.
6879         * hurd/hurd.h: Likewise.
6880         * hurd/hurd/fd.h: Likewise.
6881         * hurd/hurd/port.h: Likewise.
6882         * hurd/hurd/signal.h: Likewise.
6883         * hurd/hurd/threadvar.h: Likewise.
6884         * hurd/hurd/userlink.h: Likewise.
6885         * io/sys/stat.h: Likewise.
6886         * libio/bits/stdio.h: Likewise.
6887         * libio/bits/stdio2.h: Likewise.
6888         * mach/lock-intern.h: Likewise.
6889         * mach/mach/mig_support.h: Likewise.
6890         * math/bits/cmathcalls.h: Likewise.
6891         * posix/bits/unistd.h: Likewise.
6892         * socket/bits/socket2.h: Likewise.
6893         * stdlib/bits/stdlib.h: Likewise.
6894         * stdlib/stdlib.h: Likewise.
6895         * string/argz.h: Likewise.
6896         * string/bits/string2.h: Likewise.
6897         * string/bits/string3.h: Likewise.
6898         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
6899         * sysdeps/generic/inttypes.h: Likewise.
6900         * sysdeps/generic/machine-lock.h: Likewise.
6901         * sysdeps/generic/machine-sp.h: Likewise.
6902         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6903         * sysdeps/i386/i486/bits/string.h: Likewise.
6904         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
6905         * sysdeps/mach/alpha/machine-lock.h: Likewise.
6906         * sysdeps/mach/alpha/machine-sp.h: Likewise.
6907         * sysdeps/mach/i386/machine-lock.h: Likewise.
6908         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
6909         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
6910         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6911         * sysdeps/s390/bits/string.h: Likewise.
6912         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
6913         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6914         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6915         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
6916         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6917         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
6918         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6919         * wcsmbs/bits/wchar2.h: Likewise.
6920         * wcsmbs/wchar.h: Likewise.
6921         * stdlib/gmp.h: Likewise.  Include <features.h> to get
6922         __extern_inline definition.
6923
6924 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
6925
6926         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
6927         NULL.
6928
6929         [BZ #3919]
6930         * math/libm-test.inc (log_test): Test -Inf and NaN.
6931         (log10_test, log1p_test, log2_test): Test -Inf.
6932         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
6933         FE_INVALID when argument is qNaN.
6934         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
6935         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
6936         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
6937         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
6938         andb $1, %ah with testb $1, %ah, don't test for parity, instead
6939         testb $4, %ah and jump if non-zero.
6940         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
6941         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
6942
6943         [BZ #4101]
6944         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
6945         ancestors with the same depths.
6946         Patch by Niels Moeller <nisse@lysator.liu.se>.
6947         (filter_doc): Don't crash if argp is NULL.
6948         * argp/Makefile (tests): Add tst-argp2.
6949         * argp/tst-argp2.c: New test.
6950
6951         [BZ #4130]
6952         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
6953         open_not_cancel_2.
6954         (updwtmp_file): Likewise.
6955
6956         [BZ #4181]
6957         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
6958         (inet6_opt_append): Don't check extlen is big enough if extbuf
6959         is NULL.
6960         (inet6_opt_finish): Likewise.
6961         * inet/Makefile (tests): Add test-inet6_opt.
6962         * inet/test-inet6_opt.c: New test.
6963
6964         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
6965         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
6966         NLMSG_ERR.  Instead use a page sized buffer.
6967         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
6968         buffer.
6969
6970 2007-03-14  Richard Henderson  <rth@redhat.com>
6971
6972         * sysdeps/alpha/fpu/s_llround.c: New file.
6973         * sysdeps/alpha/fpu/s_llroundf.c: New file.
6974         * sysdeps/alpha/fpu/s_lround.c: New file.
6975         * sysdeps/alpha/fpu/s_lroundf.c: New file.
6976         * sysdeps/alpha/fpu/s_round.c: New file.
6977         * sysdeps/alpha/fpu/s_roundf.c: New file.
6978         * sysdeps/alpha/fpu/s_trunc.c: New file.
6979         * sysdeps/alpha/fpu/s_truncf.c: New file.
6980
6981         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
6982         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
6983         * sysdeps/alpha/fpu/s_floor.c: Likewise.
6984         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
6985         * sysdeps/alpha/fpu/s_rint.c: Likewise.
6986         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6987
6988         * sysdeps/alpha/fpu/s_fmax.S: New file.
6989         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
6990         * sysdeps/alpha/fpu/s_fmin.S: New file.
6991         * sysdeps/alpha/fpu/s_fminf.S: New file.
6992         * sysdeps/alpha/fpu/s_isnan.c: New file.
6993         * sysdeps/alpha/fpu/s_isnanf.c: New file.
6994         * sysdeps/alpha/fpu/s_llrint.c: New file.
6995         * sysdeps/alpha/fpu/s_llrintf.c: New file.
6996         * sysdeps/alpha/fpu/s_lrint.c: New file.
6997         * sysdeps/alpha/fpu/s_lrintf.c: New file.
6998         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
6999         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
7000
7001         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
7002         (__fdimf, fdimf, __fdim, fdim): Remove.
7003         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
7004         (__isnanf, __isnan, __isnanl): New.
7005
7006 2007-03-13  Richard Henderson  <rth@redhat.com>
7007
7008         * sysdeps/ieee754/ldbl-128/Makefile: New file.
7009
7010 2007-03-13  Richard Henderson  <rth@redhat.com>
7011
7012         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
7013         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
7014         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
7015         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
7016         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
7017         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
7018
7019 2007-03-13  Richard Henderson  <rth@redhat.com>
7020
7021         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
7022         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
7023         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
7024         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
7025         Move to dl-auxv.h; initialize instead of extern weak.
7026         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
7027         weak symbol.
7028         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
7029         Extern instead of initialized.
7030
7031 2007-03-13  Richard Henderson  <rth@redhat.com>
7032
7033         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
7034         __sigsuspend_nocancel.
7035
7036 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
7037
7038         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
7039         172.16/12 address range.
7040
7041 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
7042
7043         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
7044         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
7045         message.
7046
7047 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
7048
7049         [BZ #4069]
7050         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
7051         earlier.
7052         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
7053
7054         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
7055         for x qNaN and y either +-inf or non-integer value.
7056         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
7057         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
7058         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7059
7060 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
7061
7062         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
7063         from sysdep_headers.
7064
7065 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
7066
7067         * time/tzfile.c (find_transition): Instead of a linear search try to
7068         guess the transition index, use a linear search if the result is at
7069         most 10 transitions away from the guess or binary search otherwise.
7070
7071 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
7072
7073         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7074         memory reallocation.
7075
7076 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
7077
7078         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7079         and fix some typos.
7080         Optimize use of TOLOWER.
7081
7082         [BZ #3325]
7083         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7084         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7085         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7086
7087         [BZ #3458]
7088         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7089         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7090
7091         [BZ #4076]
7092         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7093         (open_dir_stream): Likewise.
7094         * io/Makefile (tests): Add bug-ftw5.
7095         * io/bug-ftw5.c: New file.
7096
7097         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7098         * nscd/servicescache.c (cache_addserv): Likewise.
7099
7100         * nscd/grpcache.c (cache_addgr): In case a record changed on
7101         refresh, adjust key_copy.
7102
7103         [BZ #4074]
7104         * nscd/pwdcache.c (cache_addpw): In case a record changed on
7105         refresh, adjust key_copy.
7106
7107         [BZ #4070]
7108         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
7109         special cases.
7110         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
7111
7112 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
7113
7114         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7115         optimization.
7116
7117         * stdio-common/vfscanf.c: Small cleanups throughout.
7118
7119 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
7120
7121         [BZ #3325]
7122         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7123         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7124         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7125         Patch by Jared Casper <jaredcasper@gmail.com>.
7126
7127         * sysdeps/unix/closedir.c: Outside libc don't use locking.
7128         * sysdeps/unix/opendir.c: Likewise.
7129         * sysdeps/unix/readdir.c: Likewise.
7130
7131         [BZ #2211]
7132         * stdio-common/vfscanf.c: Handle localized digits etc for floating
7133         point numbers.
7134         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7135
7136         * stdio-common/vfscanf.c: Fix problems in width accounting.
7137         * stdio-common/tst-sscanf.c (double_tests): New tests.
7138         (main): Hook them up.
7139
7140         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
7141         More simplifications of floating-point reader.
7142
7143         * stdio-common/Makefile (tests): Add tst-swscanf.
7144         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7145         testing.
7146         * stdio-common/tst-swscanf.c: New file.
7147
7148 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
7149
7150         [BZ #2633]
7151         * libio/stdio.h: Define struct _IO_FILE in global namespace.
7152         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7153         Remove using for __jmp_buf_tag.
7154         * locale/locale.h (struct lconv): Also define in std namespace.
7155         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7156
7157         [BZ #3842]
7158         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7159         using __libc_enable_secure.
7160
7161         [BZ #3818]
7162         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7163
7164         [BZ #3745]
7165         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7166         of names for ellipsises.
7167
7168         [BZ #3348]
7169         * malloc/memusage.sh: Cleanups.
7170         * debug/xtrace.sh: Quoting and trap changes.
7171
7172 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
7173
7174         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7175
7176         * locale/iso-3166.def: Update entry for Serbia.
7177         * locale/iso-4217.def: Define RSD, remove CSD.
7178
7179         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7180         and 64-bit operations.
7181
7182         [BZ #4040]
7183         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7184         16-bit operations.
7185
7186         * nscd/nscd.c (parse_opt): One more conversion to use send instead
7187         of writev.
7188
7189 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
7190
7191         [BZ #3991]
7192         * assert/assert.h (assert): Simplify.
7193         (assert_perror): Likewise.
7194         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7195
7196         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7197         reqdata.
7198
7199         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7200         change: don't pass NULL in place of an integer.
7201
7202 2007-02-02  Bruno Haible  <bruno@clisp.org>
7203
7204         [BZ #3954]
7205         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7206         Add mapping for U+327E.
7207         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7208         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7209         mapping of 0xD9 0xE8.
7210         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7211         mapping of U+327E.
7212         Reported by Jungshik Shin <jungshik@google.com>.
7213
7214         [BZ #3955]
7215         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7216         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7217         Reported by Jungshik Shin <jungshik@google.com>.
7218
7219 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
7220
7221         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7222         byte variants.
7223
7224         [BZ #4040]
7225         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7226         byte variants.  Patch mostly be tom@tommay.net.
7227
7228 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
7229
7230         [BZ #3996]
7231         * posix/glob.c (attribute_hidden): Define if not defined.
7232         (glob): Unescape dirname, filename or username when needed and not
7233         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
7234         is NULL.  Handle unescaped [ in pattern without closing ].
7235         Don't pass GLOB_CHECK down to recursive glob for directories.
7236         (__glob_pattern_type): New function.
7237         (__glob_pattern_p): Implement using __glob_pattern_type.
7238         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7239         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7240         Remove unreachable code.
7241         * posix/globtest.sh: Add a couple of new tests.
7242
7243 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
7244
7245         * po/ru.po: Update from translation team.
7246
7247 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
7248
7249         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7250         to the list of i486+ CPUs.
7251         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7252
7253 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
7254
7255         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7256         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7257         references.
7258
7259 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
7260
7261         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7262
7263         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7264         * resolv/res_mkquery.c: Define __res_nopt.
7265         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7266         try adding EDNS0 record.
7267         * resolv/res_send.c (send_dg): If request failed with FORMERR and
7268         EDNS0 record was send make sure we don't try it again.
7269         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7270         * include/resolv.h: Declare __res_nopt.
7271
7272 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
7273
7274         [BZ #3944]
7275         * time/strptime_l.c (__strptime_internal): Set have_mon for
7276         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
7277         have been computed from tm_yday and tm_year.  Don't crash
7278         in day_of_the_week or day_of_the_year if not have_mon
7279         and tm_mon contains bogus value.
7280         * time/Makefile (tests): Add tst-strptime3.
7281         * time/tst-strptime3.c: New test.
7282
7283 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
7284
7285         [BZ #3957]
7286         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7287         bit for RE_HAT_LISTS_NOT_NEWLINE.
7288         (build_charclass_op): Remove bogus comment.
7289         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7290         * posix/bug-regex27.c: New test.
7291         * posix/bug-regex28.c: New test.
7292
7293 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
7294
7295         * po/sv.po: Update from translation team.
7296
7297 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
7298
7299         * nscd/nscd_helper.c (open_socket): Minor size optimization.
7300
7301 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
7302
7303         * include/locale.h (__uselocale): Add libc_hidden_proto.
7304         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7305
7306         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7307         gettimeofday.
7308
7309 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
7310
7311         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7312         returning.
7313         (PTR_DEMANGLE): Real definition now that it's not the same as
7314         PRT_MANGLE anymore.
7315         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7316
7317         * string/strerror_l.c: New file.
7318         * string/Makefile (routines): Add strerror_l.
7319         * string/string.h: Declare strerror_l.
7320         * string/Versions: Export strerror_l for GLIBC_2.6.
7321
7322 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
7323
7324         * nscd/nscd_helper.c (open_socket): Now takes request type and key
7325         as parameter.  Construct request record.  Try sending request
7326         before the first poll use, it usually succeeds.  Adjust all
7327         callers.
7328         * nscd/nscd-client.h: Define MAXKEYLEN.
7329         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
7330
7331 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
7332
7333         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7334         from return value.
7335         * nscd/nscd_helper.c: Include string.h.
7336         (__nscd_cache_search): Remove const qualifier from return value.
7337         On strict alignment architectures check hash entry and data head
7338         alignment.
7339         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7340         mmapped data during GC cycle contains garbage.  If
7341         __nscd_drop_map_ref fails, decrement mapped->counter when returning
7342         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7343         dropped to 0.
7344         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7345         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7346         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7347         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7348         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7349
7350 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
7351
7352         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7353
7354 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
7355
7356         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7357         names not numbers in cfi_*.
7358
7359 2007-01-26  Andreas Jaeger  <aj@suse.de>
7360
7361         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
7362         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
7363         Correct values of PER_HPUX and PER_OSF4.
7364
7365 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
7366
7367         * elf/dl-minimal.c: Undefine _itoa first.
7368         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7369         * malloc/mtrace.c: Revert last change.
7370         * posix/wordexp.c: Likewise.
7371
7372 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
7373
7374         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7375         and __geode__ to the list of i486+ CPUs.
7376         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7377
7378 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
7379
7380         * stdio-common/_itoa.c: Include <limits.h>.
7381         * stdio-common/_itowa.c: Likewise.
7382
7383 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
7384
7385         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7386         platforms.
7387         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7388         64-bit platforms.
7389         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7390         possible.
7391         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7392         if possible.
7393
7394         [BZ #3902]
7395         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7396         * stdio-common/Makefile (tests): Add bug17.
7397         * stdio-common/bug17.c: New file.
7398
7399 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
7400
7401         * iconvdata/brf.c: New file.
7402         * iconvdata/testdata/BRF: New file.
7403         * iconvdata/testdata/BRF..UTF8: New file.
7404         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7405         * iconvdata/Makefile: Add rules to build BRF.
7406         * iconvdata/TESTS: Add BRF entry.
7407         * iconvdata/gconv-modules: Likewise.
7408         * iconvdata/tst-tables.sh: Likewise.
7409
7410 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
7411
7412         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7413         type `long long int', not `long int'.
7414         (wcstoq): Likewise.
7415
7416 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
7417
7418         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7419         of values on 64-bit platforms which are too large.
7420
7421 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
7422             Joe Kerian  <jkerian@us.us.ibm.com>
7423
7424         [BZ #2749]
7425         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7426         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
7427         (__copysignl): Use signbit() for comparison.
7428         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7429         SET_LDOUBLE_WORDS64.
7430
7431         [BZ #2423, #2749]
7432         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
7433         (__ceill): Remove calls to fegetround(), fesetround().
7434         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7435         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7436         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7437
7438 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
7439
7440         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
7441
7442         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
7443
7444 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
7445
7446         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
7447         demangle pointer.
7448         * csu/libc-start.c: Likewise.
7449
7450 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
7451
7452         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
7453         really work anyway.
7454
7455 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7456
7457         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
7458         users.
7459         (handle_request): Remove unnecessary tests.
7460
7461         * nscd/cache.c (cache_add): Record the failure to add to the cache.
7462
7463 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
7464
7465         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7466         workbits in semi-raw fraction.
7467
7468         * math/test-misc.c: Add new tests.
7469
7470 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
7471
7472         * math/basic-test.c: Include test-skeleton.c.
7473         (TEST_TRUNC): Define.
7474         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7475         (main): Rename to ...
7476         (do_test): ...this.  Run new tests.
7477         (TEST_FUNCTION): Define.
7478
7479 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
7480             Joe Kerian  <jkerian@us.us.ibm.com>
7481
7482         [BZ #2749]
7483         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7484         handling for high words.
7485         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7486         and overflow for infinity.
7487
7488 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7489
7490         * nscd/connections.c (handle_request): Add a __builtin_expect.
7491
7492         * nscd/connections.c (serv2db): Change type into structure which
7493         also says whether this is a request for data.  Renamed to
7494         servinfo.  All users changed.
7495         (handle_request): Much simpler test whether we should search the cache.
7496
7497         * nscd/connections.c (handle_request): Fix thinko in selinux test
7498         invocation.
7499
7500         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7501         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7502         it before getting dl_load_lock and then relock.
7503         (_dl_lookup_symbol_x): Pass flags to add_dependency.
7504         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
7505         case we unlocked the scope.
7506         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
7507         _dl_lookup_symbol_x in case we locked the scope.
7508         (_dl_profile_fixup): Likewise.
7509         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
7510         set DL_LOOKUP_SCOPE_LOCK.
7511
7512 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
7513
7514         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
7515         CFLAGS-getsrvbynpt_r.c.
7516         * nscd/getsrvbynm_r.c: New file.
7517         * nscd/getsrvbypt_r.c: New file.
7518         * nscd/nscd_getserv_r.c: New file.
7519         * nscd/servicescache.c: New file.
7520         * nscd/Makefile (routines): Add nscd_getserv_r.
7521         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
7522         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
7523         CFLAGS-getsrvbypt_r.c.
7524         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
7525         table.  Add entries for services database.
7526         * nscd/connections.c (serv2str): Mark as const.  Add entries for
7527         services database.
7528         (dbs): Add .reset_res and servdb initialization.
7529         (serv2db): Add entries for services database.
7530         (verify_persistent_db): Accept dbnr == servdb.
7531         (invalidate_cache): Rewrite database name recognition to use a table.
7532         Call res_init() if .reset_res is set for database.
7533         (handle_request): Add code to handle services database.
7534         * nscd/gai.c: Don't define __getservbyname_r.
7535         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
7536         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
7537         (serv_response_header): Define.
7538         (struct datahead): Add serv_response_header member.
7539         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
7540         using table.
7541         * nscd/nscd.conf: Add entries for services database.
7542         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
7543         Declare serv_iov_disabled.
7544         Declare addservbyname, readdservbyname, addservbyport, and
7545         readdservbyport.
7546         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
7547         (find_db): Fix error message.
7548         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
7549         __nscd_getservbyname_r, and __nscd_getservbyport_r.
7550         * nscd/selinux.c (perms): Add entries for services database.
7551         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
7552         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
7553
7554         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
7555         * nscd/hstcache.c: Likewise.
7556         * nscd/pwdcache.c: Likewise.
7557
7558         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
7559         computation of keylen.
7560
7561         * include/string.h: Only redefine strndupa if this is really for
7562         libc code.
7563
7564 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
7565
7566         * nscd/nscd_gethst_r.c: Minor cleanups.
7567
7568         * nscd/connections.c (handle_request): Check selinux permissions
7569         for all non-admin commands.
7570
7571         * sysdeps/i386/i486/bits/atomic.h: Define
7572         atomic_compare_and_exchange_val_acq,
7573         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
7574         using __sync_* built-ins for gcc >= 4.1.
7575         * sysdeps/x86_64/bits/atomic.h: Likewise.
7576
7577         [BZ #3840]
7578         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
7579         and .oS.d files.
7580
7581 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
7582
7583         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
7584         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
7585         (do_test): Check errno and exit(0) if ENOSYS.
7586
7587 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7588
7589         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
7590         thousands separators.
7591         * stdlib/Makefile: Add rules to build and run tst-strtod4.
7592         * stdlib/tst-strtod4.c: New test.
7593
7594         [BZ #3855]
7595         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
7596         hexadecimal digit should accept just the initial 0.
7597         * stdlib/tst-strtod2.c (tests): New variable.
7598         (do_test): Run several tests rather than just one.
7599
7600 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7601
7602         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
7603         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
7604
7605 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
7606
7607         * io/fts.c: Make sure fts_cur is always valid after return from
7608         fts_read.
7609         Patch by Miloslav Trmac <mitr@redhat.com>.
7610
7611 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
7612
7613         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
7614         (R_MIPS_NUM): Bump by 1.
7615
7616 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
7617
7618         * posix/execvp.c: Include alloca.h.
7619         (allocate_scripts_argv): Renamed to...
7620         (scripts_argv): ... this.  Don't allocate buffer here nor count
7621         arguments.
7622         (execvp): Use alloca if possible.
7623         * posix/Makefile: Add rules to build and run tst-vfork3 test.
7624         * posix/tst-vfork3.c: New test.
7625
7626 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
7627
7628         * string/Makefile (tst-strxfrm2-ENV): Define.
7629         * stdlib/Makefile (tst-strtod3-ENV): Define.
7630
7631 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
7632
7633         * posix/getconf.c: Update copyright year.
7634         * nss/getent.c: Likewise.
7635         * iconv/iconvconfig.c: Likewise.
7636         * iconv/iconv_prog.c: Likewise.
7637         * elf/ldconfig.c: Likewise.
7638         * catgets/gencat.c: Likewise.
7639         * csu/version.c: Likewise.
7640         * elf/ldd.bash.in: Likewise.
7641         * elf/sprof.c (print_version): Likewise.
7642         * locale/programs/locale.c: Likewise.
7643         * locale/programs/localedef.c: Likewise.
7644         * nscd/nscd.c (print_version): Likewise.
7645         * debug/xtrace.sh: Likewise.
7646         * malloc/memusage.sh: Likewise.
7647         * malloc/mtrace.pl: Likewise.
7648         * debug/catchsegv.sh: Likewise.
7649
7650 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
7651
7652         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
7653         attempts.
7654
7655 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
7656
7657         * posix/wordexp.c: Remove some unnecessary tests.
7658
7659 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
7660
7661         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
7662         blacklist the group till after we look it up.
7663
7664 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
7665
7666         * include/atomic.h (atomic_forced_read): New macro.
7667
7668 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
7669
7670         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
7671
7672 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
7673
7674         * nss/getXXbyYY_r.c: Include atomic.h.
7675         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
7676         add atomic_write_barrier () in between.
7677
7678         * stdlib/Makefile (tests): Add tst-makecontext.
7679         * stdlib/tst-makecontext.c: New test.
7680
7681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
7682         (__makecontext): Don't realign uc_mcontext.uc_regs.
7683
7684 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
7685
7686         * elf/dl-support.c: Include dl-procinfo.h.
7687         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
7688         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
7689         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
7690         Define.
7691         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
7692         hardcoded constants.
7693         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
7694         PPC_PLATFORM_* macros for array designators.
7695
7696 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
7697
7698         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
7699         names to the beginning.
7700         (_dl_powerpc_platforms): Add "power6x".
7701         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
7702         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
7703         (_DL_PLATFORMS_COUNT): Increase.
7704         (_dl_string_platform): Handle power6x case.
7705         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
7706         PPC_FEATURE_POWER6_EXT): Define.
7707         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
7708
7709 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
7710
7711         [BZ #3747]
7712         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
7713         [-2^31 .. 2^31) range.
7714         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
7715         targets.
7716         * stdlib/tst-rand48-2.c: New test.
7717         * stdlib/Makefile (tests): Add tst-rand48-2.
7718
7719 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
7720
7721         * misc/tst-pselect.c (do_test): Fix sigblock argument.
7722
7723 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
7724
7725         * misc/tst-pselect.c (do_test): Make sure the helper process is
7726         terminating when the test is aborted.
7727
7728 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
7729
7730         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
7731         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7732         Handle relatime mount option.
7733
7734         [BZ #2337]
7735         * libio/Makefile (tests): Add tst-setvbuf1.
7736         * libio/tst-setvbuf1.c: New file.
7737
7738 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
7739
7740         [BZ #2337]
7741         * libio/genops.c (__uflow): Fix a typo.
7742         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
7743         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
7744         the narrow buffer size.
7745
7746 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
7747
7748         [BZ #2337]
7749         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
7750         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
7751         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
7752         in _flags.
7753         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
7754         _IO_wstr_finish): Likewise.
7755         * libio/wmemstream.c (open_wmemstream): Likewise.
7756         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
7757         even for wide streams.
7758
7759 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
7760
7761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
7762         kernel-features.h.
7763
7764 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
7765
7766         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
7767         separators also if no non-zero digits found.
7768         * stdlib/Makefile (tests): Add tst-strtod3.
7769
7770 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
7771
7772         [BZ #3632]
7773         * include/features.h: Fix comment about default value for
7774         _POSIX_C_SOURCE.
7775
7776         [BZ #3664]
7777         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
7778         empty parsed strings.
7779         * stdlib/Makefile (tests): Add tst-strtod2.
7780         * stdlib/tst-strtod2.c: New file.
7781
7782         [BZ #3673]
7783         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
7784         computation.
7785         * stdlib/Makefile (tests): Add tst-atof2.
7786         * stdlib/tst-atof2.c: New file.
7787
7788         [BZ #3674]
7789         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
7790         correctly if removing trailing zero of hex-float.
7791         * stdlib/Makefile (tests): Add tst-atof1.
7792         * stdlib/tst-atof1.c: New file.
7793
7794 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
7795
7796         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
7797         Start searching for next comma at p rather than rest.
7798         * misc/Makefile (tests): Add tst-mntent2.
7799         * misc/tst-mntent2.c: New test.
7800
7801         * misc/getusershell.c (initshells): Check for integer overflows.
7802         Make strings buffer one bigger as fgets always succeeds when second
7803         argument is 1.  Don't use calloc for shells array.  Disallow
7804         / as shell.
7805
7806 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
7807
7808         * malloc/memusage.c: Handle realloc with new size of zero and
7809         non-NULL pointer correctly.
7810         (me): Really write first record twice.
7811         (struct entry): Make format bi-arch safe.
7812         (dest): Write out more realloc statistics.
7813         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
7814
7815 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
7816
7817         * nis/nis_subr.c (nis_getnames): Revert last change.
7818
7819 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
7820
7821         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
7822         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
7823         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
7824         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
7825         ENOTTY.
7826         * io/Makefile: Add rules to build and run tst-ttyname_r test.
7827         * io/tst-ttyname_r.c: New test.
7828
7829 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7830
7831         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
7832
7833 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
7834
7835         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
7836         jump table entries.
7837
7838 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
7839
7840         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
7841         `clone' function to ensure proper unwinding stop of gdb.
7842         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
7843
7844 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
7845
7846         * nscd/nscd.init: Remove obsolete and commented-out -S option
7847         handling.
7848
7849 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
7850
7851         [BZ #3514]
7852         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
7853
7854         [BZ #3515]
7855         * manual/string.texi (strtok): Remove duplicate paragraph.
7856
7857 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
7858
7859         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
7860         libgcc not supporting `rflags' unwinding (register # >= 17).
7861
7862 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
7863
7864         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
7865         succeeded.
7866
7867 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
7868             Jakub Jelinek  <jakub@redhat.com>
7869             Jan Kratochvil  <jan.kratochvil@redhat.com>
7870
7871         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
7872         unwind information.
7873         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
7874         'restore_rt' even in the 'signal' directory.
7875         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
7876
7877 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
7878
7879         [BZ #3559]
7880         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
7881         malloc crashed.  Don't allocate memory unnecessarily in each
7882         loop.
7883
7884 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
7885
7886         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
7887
7888 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
7889
7890         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
7891
7892 2006-11-18  Bruno Haible  <bruno@clisp.org>
7893
7894         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
7895         __sysconf only after having tried to call getgroups32.
7896
7897 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
7898
7899         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
7900         addresses for IPv4 queries if they can be mapped.
7901
7902 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
7903
7904         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
7905         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
7906         (signmask): Add .size directive.
7907         (othermask): Add .type directive.
7908
7909 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
7910
7911         * po/nl.po: Update from translation team.
7912
7913         * timezone/zdump.c: Redo fix for BZ #3137.
7914
7915 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
7916
7917         * nss/nss_files/files-alias.c (get_next_alias): Set line back
7918         to first_unused after parsing :include: file.
7919
7920 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
7921
7922         * timezone/africa: Update from tzdata2006o.
7923         * timezone/antarctica: Likewise.
7924         * timezone/asia: Likewise.
7925         * timezone/australasia: Likewise.
7926         * timezone/backward: Likewise.
7927         * timezone/europe: Likewise.
7928         * timezone/iso3166.tab: Likewise.
7929         * timezone/northamerica: Likewise.
7930         * timezone/southamerica: Likewise.
7931         * timezone/zone.tab: Likewise.
7932
7933         * time/tzfile.c (__tzfile_read): Extend to handle new file format
7934         on machines with 64-bit time_t.
7935
7936         * timezone/checktab.awk: Update from tzcode2006o.
7937         * timezone/ialloc.c: Likewise.
7938         * timezone/private.h: Likewise.
7939         * timezone/scheck.c: Likewise.
7940         * timezone/tzfile.h: Likewise.
7941         * timezone/tzselect.ksh: Likewise.
7942         * timezone/zdump.c: Likewise.
7943         * timezone/zic.c: Likewise.
7944
7945         [BZ #3483]
7946         * elf/ldconfig.c (main): Call setlocale and textdomain.
7947         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
7948
7949         [BZ #3480]
7950         * manual/argp.texi: Fix typos.
7951         * manual/charset.texi: Likewise.
7952         * manual/errno.texi: Likewise.
7953         * manual/filesys.texi: Likewise.
7954         * manual/lang.texi: Likewise.
7955         * manual/maint.texi: Likewise.
7956         * manual/memory.texi: Likewise.
7957         * manual/message.texi: Likewise.
7958         * manual/resource.texi: Likewise.
7959         * manual/search.texi: Likewise.
7960         * manual/signal.texi: Likewise.
7961         * manual/startup.texi: Likewise.
7962         * manual/stdio.texi: Likewise.
7963         * manual/sysinfo.texi: Likewise.
7964         * manual/syslog.texi: Likewise.
7965         * manual/time.texi: Likewise.
7966         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7967
7968         [BZ #3465]
7969         * sunrpc/clnt_raw.c: Minimal message improvements.
7970         * sunrpc/pm_getmaps.c: Likewise.
7971         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
7972         * nis/nis_print_group_entry.c: Likewise.
7973         * locale/programs/repertoire.c: Likewise.
7974         * locale/programs/charmap.c: Likewise.
7975         * malloc/memusage.sh: Likewise.
7976         * elf/dl-deps.c: Likewise.
7977         * locale/programs/ld-collate.c: Likewise.
7978         * libio/vswprintf.c: Likewise.
7979         * malloc/memusagestat.c: Likewise.
7980         * sunrpc/auth_unix.c: Likewise.
7981         * sunrpc/rpc_main.c: Likewise.
7982         * nscd/cache.c: Likewise.
7983         * locale/programs/repertoire.c: Unify output messages.
7984         * locale/programs/charmap.c: Likewise.
7985         * locale/programs/ld-ctype.c: Likewise.
7986         * locale/programs/ld-monetary.c: Likewise.
7987         * locale/programs/ld-numeric.c: Likewise.
7988         * locale/programs/ld-time.c: Likewise.
7989         * elf/ldconfig.c: Likewise.
7990         * nscd/selinux.c: Likewise.
7991         * elf/cache.c: Likewise.
7992         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
7993
7994         [BZ #3451]
7995         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
7996         change atomic.
7997         (ceil): Likewise.
7998
7999 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8000
8001         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
8002         if N is one bigger than return value.
8003         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
8004         and l1 last arguments, if buf is defined, verify the return value
8005         equals to strlen (buf) and verify no byte beyond passed length
8006         is modified.
8007
8008 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8009
8010         * po/sv.po: Update from translation team.
8011
8012 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8013
8014         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
8015         noinline attribute.
8016
8017 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8018
8019         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
8020         noinline attribute.
8021
8022         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
8023         Use __new_sys_siglist instead of _sys_siglist_internal as
8024         second macro argument.
8025         (_old_sys_siglist): Use declare_symbol_alias macro instead of
8026         strong_alias.
8027
8028 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8029
8030         [BZ #3493]
8031         * posix/unistd.h (sysconf): Remove const attribute.
8032
8033         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
8034         temporary or deprecated addresses.
8035         Patch by Sridhar Samudrala <sri@us.ibm.com>.
8036
8037         * string/Makefile (tests): Add tst-strxfrm2.
8038         * string/tst-strxfrm2.c: New file.
8039
8040 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
8041
8042         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
8043         rather than r->r_brk.
8044
8045 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
8046
8047         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
8048         optimization even if needed > n.
8049
8050         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
8051         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
8052         return false, otherwise return true.
8053         (cache_rpath): Return decompose_rpath return value.
8054
8055 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
8056
8057         * include/libc-symbols.h (declare_symbol): Rename to...
8058         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
8059         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
8060         .size directive.
8061         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
8062         changes.
8063         * sysdeps/gnu/siglist.c: Likewise.
8064
8065 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
8066
8067         * sysdeps/powerpc/fpu/bits/mathinline.h
8068         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8069         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
8070
8071 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
8072
8073         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8074         Update handling of cache descriptor 0x49 for new models.
8075         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8076         Likewise.
8077
8078 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
8079
8080         * malloc/memusage.c (dest): Reset not_me back to false after
8081         printing statistics.
8082
8083 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
8084
8085         * configure.in: Work around ld --help change and avoid -z relro
8086         test completely if the architecture doesn't care about security.
8087
8088 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
8089
8090         * po/sv.po: Update from translation team.
8091
8092 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
8093
8094         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8095         generate compatibility version.
8096
8097 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
8098
8099         * configure.in: Relax -z relro requirement a bit.
8100
8101         * po/sv.po: Update from translation team.
8102
8103 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
8104
8105         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8106         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8107         * elf/dl-close.c (_dl_close_worker): Likewise.
8108         * elf/dl-open.c (_dl_open_worker): Likewise.
8109         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8110
8111 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
8112
8113         * configure.in: Require assembler support for visibility, compiler
8114         support for visibility and aliases, linker support for various -z
8115         options.
8116         * Makeconfig: Remove conditional code which now is unnecessary.
8117         * config.h.in: Likewise.
8118         * config.make.in: Likewise.
8119         * dlfcn/Makefile: Likewise.
8120         * elf/Makefile: Likewise.
8121         * elf/dl-load.c: Likewise.
8122         * elf/rtld.c: Likewise.
8123         * include/libc-symbols.h: Likewise.
8124         * include/stdio.h: Likewise.
8125         * io/Makefile: Likewise.
8126         * io/fstat.c: Likewise.
8127         * io/fstat64.c: Likewise.
8128         * io/fstatat.c: Likewise.
8129         * io/fstatat64.c: Likewise.
8130         * io/lstat.c: Likewise.
8131         * io/lstat64.c: Likewise.
8132         * io/mknod.c: Likewise.
8133         * io/mknodat.c: Likewise.
8134         * io/stat.c: Likewise.
8135         * io/stat64.c: Likewise.
8136         * libio/stdio.c: Likewise.
8137         * nscd/Makefile: Likewise.
8138         * stdlib/Makefile: Likewise.
8139         * stdlib/atexit.c: Likewise.
8140         * sysdeps/generic/ldsodefs.h: Likewise.
8141         * sysdeps/i386/dl-machine.h: Likewise.
8142         * sysdeps/i386/sysdep.h: Likewise.
8143         * sysdeps/i386/i686/memcmp.S: Likewise.
8144         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8145         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8146         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8147
8148         * Makerules: USE_TLS support is now default.
8149         * tls.make.c: Likewise.
8150         * csu/Versions: Likewise.
8151         * csu/libc-start.c: Likewise.
8152         * csu/libc-tls.c: Likewise.
8153         * csu/version.c: Likewise.
8154         * dlfcn/dlinfo.c: Likewise.
8155         * elf/dl-addr.c: Likewise.
8156         * elf/dl-cache.c: Likewise.
8157         * elf/dl-close.c: Likewise.
8158         * elf/dl-iteratephdr.c: Likewise.
8159         * elf/dl-load.c: Likewise.
8160         * elf/dl-lookup.c: Likewise.
8161         * elf/dl-object.c: Likewise.
8162         * elf/dl-open.c: Likewise.
8163         * elf/dl-reloc.c: Likewise.
8164         * elf/dl-support.c: Likewise.
8165         * elf/dl-sym.c: Likewise.
8166         * elf/dl-sysdep.c: Likewise.
8167         * elf/dl-tls.c: Likewise.
8168         * elf/ldconfig.c: Likewise.
8169         * elf/rtld.c: Likewise.
8170         * elf/tst-tls-dlinfo.c: Likewise.
8171         * elf/tst-tls1.c: Likewise.
8172         * elf/tst-tls10.h: Likewise.
8173         * elf/tst-tls14.c: Likewise.
8174         * elf/tst-tls2.c: Likewise.
8175         * elf/tst-tls3.c: Likewise.
8176         * elf/tst-tls4.c: Likewise.
8177         * elf/tst-tls5.c: Likewise.
8178         * elf/tst-tls6.c: Likewise.
8179         * elf/tst-tls7.c: Likewise.
8180         * elf/tst-tls8.c: Likewise.
8181         * elf/tst-tls9.c: Likewise.
8182         * elf/tst-tlsmod1.c: Likewise.
8183         * elf/tst-tlsmod13.c: Likewise.
8184         * elf/tst-tlsmod13a.c: Likewise.
8185         * elf/tst-tlsmod14a.c: Likewise.
8186         * elf/tst-tlsmod2.c: Likewise.
8187         * elf/tst-tlsmod3.c: Likewise.
8188         * elf/tst-tlsmod4.c: Likewise.
8189         * elf/tst-tlsmod5.c: Likewise.
8190         * elf/tst-tlsmod6.c: Likewise.
8191         * include/errno.h: Likewise.
8192         * include/link.h: Likewise.
8193         * include/tls.h: Likewise.
8194         * locale/global-locale.c: Likewise.
8195         * locale/localeinfo.h: Likewise.
8196         * malloc/arena.c: Likewise.
8197         * malloc/hooks.c: Likewise.
8198         * malloc/malloc.c: Likewise.
8199         * resolv/Versions: Likewise.
8200         * sysdeps/alpha/dl-machine.h: Likewise.
8201         * sysdeps/alpha/libc-tls.c: Likewise.
8202         * sysdeps/generic/ldsodefs.h: Likewise.
8203         * sysdeps/generic/tls.h: Likewise.
8204         * sysdeps/i386/dl-machine.h: Likewise.
8205         * sysdeps/ia64/dl-machine.h: Likewise.
8206         * sysdeps/ia64/libc-tls.c: Likewise.
8207         * sysdeps/mach/hurd/fork.c: Likewise.
8208         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8209         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8210         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8211         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8212         * sysdeps/s390/libc-tls.c: Likewise.
8213         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8214         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8215         * sysdeps/sh/dl-machine.h: Likewise.
8216         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8217         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8218         * sysdeps/x86_64/dl-machine.h: Likewise.
8219
8220         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8221         split out locking and parameter checking.
8222         (_dl_close): Call _dl_close_worker after locking and checking.
8223         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8224         _dl_close.
8225         * elf/Makefile: Add rules to build and run tst-thrlock.
8226         * elf/tst-thrlock.c:  New file.
8227
8228         [BZ #3426]
8229         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8230         reality.
8231
8232         [BZ #3429]
8233         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
8234         we are sure we do not need it anymore for _dl_close.  Also move
8235         the asserts inside the lock region.
8236         Patch mostly by Suzuki <suzuki@in.ibm.com>.
8237
8238 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
8239
8240         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8241         argument.
8242         (_dl_lookup_symbol_x): Adjust caller.
8243
8244         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8245         _ns_global_scope.
8246         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8247
8248         * elf/dl-libc.c: Revert l_scope name changes.
8249         * elf/dl-load.c: Likewise.
8250         * elf/dl-object.c: Likewise.
8251         * elf/rtld.c: Likewise.
8252         * elf/dl-close.c (_dl_close): Likewise.
8253         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
8254         always use __rtld_mrlock_{change,done}.  Always free old scope list
8255         here if not l_scope_mem.
8256         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8257         change.  Never free scope list here.  Just __rtld_mrlock_lock before
8258         the lookup and __rtld_mrlock_unlock it after the lookup.
8259         * elf/dl-sym.c: Likewise.
8260         * include/link.h (struct r_scoperec): Remove.
8261         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8262         with l_scope_mem and l_scoperec_lock with l_scope_lock.
8263
8264 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
8265
8266         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8267
8268 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8269
8270         * configure.in: Disable building profile libraries by default.
8271
8272 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8273
8274         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8275         as signed longs, check for x_base + pos overflow.
8276         * sunrpc/Makefile (tests): Add tst-xdrmem2.
8277         * sunrpc/tst-xdrmem2.c: New test.
8278
8279 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8280
8281         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8282         _dl_lookup_symbol_x code.
8283
8284 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8285
8286         * elf/dl-runtime.c: Include sysdep-cancel.h.
8287         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8288         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
8289         instead of catomic_* macros.
8290         * elf/dl-sym.c: Include sysdep-cancel.h.
8291         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8292         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8293         * elf/dl-close.c: Include sysdep-cancel.h.
8294         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8295         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8296         * elf/dl-open.c: Include sysdep-cancel.h.
8297         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8298         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8299
8300 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8301
8302         [BZ #3313]
8303         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8304         fastbin rather than end of fastbin array.
8305
8306 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8307
8308         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8309         body macro.
8310         * sysdeps/x86_64/bits/atomic.h
8311         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8312         (catomic_decrement): Use correct body macro.
8313
8314 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8315
8316         * include/atomic.h: Add a unique prefix to all local variables
8317         in macros.
8318         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8319
8320 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
8321
8322         [BZ #3369]
8323         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8324         and 7.
8325
8326 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
8327
8328         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8329
8330 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
8331
8332         [BZ #3313]
8333         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8334         determine highest fast bin to consolidate, always look into all of
8335         them.
8336         (do_check_malloc_state): Only require for empty bins for large
8337         sizes in main arena.
8338
8339         * libio/stdio.h: Add more __wur attributes.
8340
8341         * elf/dl-minimal.c (realloc): Optimize last patch.
8342
8343 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
8344
8345         [BZ #3352]
8346         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8347         and use memcpy() if it does.
8348
8349 2006-11-12  Andreas Jaeger  <aj@suse.de>
8350
8351         [BZ #2510]
8352         * manual/search.texi (Hash Search Function): Clarify.
8353         (Array Search Function): Clarify.
8354
8355 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
8356
8357         [BZ #2830]
8358         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8359         shifting.
8360         * math/atest-exp2.c (read_mpn_hex): Likewise.
8361         * math/atest-sincos.c (main): Likewise.
8362
8363 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8364
8365         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8366         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8367         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8368         version GLIBC_2.6.
8369         * Versions.def: Add GLIBC_2.6 for libc.
8370
8371         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8372
8373         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8374
8375 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
8376
8377         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8378
8379         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8380
8381         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8382         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8383
8384 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8385
8386         * include/atomic.c: Define catomic_* operations.
8387         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
8388         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8389         * malloc/memusage.c: Likewise.
8390         * gmon/mcount.c: Likewise.
8391         * elf/dl-close.c: Likewise.
8392         * elf/dl-open.c: Likewise.
8393         * elf/dl-profile.c: Likewise.
8394         * elf/dl-sym.c: Likewise.
8395         * elf/dl-runtime.c: Likewise.
8396         * elf/dl-fptr.c: Likewise.
8397         * resolv/res_libc.c: Likewise.
8398
8399 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
8400
8401         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8402         components which lack them.
8403
8404         * nis/nis_subr.c (nis_getnames): Make sure that we always return
8405         at least one entry consisting of the parameter concatenated with
8406         the domain.
8407
8408 2006-10-10  Roland McGrath  <roland@frob.com>
8409
8410         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8411         * sysdeps/mach/hurd/futimes.c: Likewise.
8412         * sysdeps/mach/hurd/lutimes.c: Likewise.
8413
8414 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
8415             Jakub Jelinek  <jakub@redhat.com>
8416
8417         Implement reference counting of scope records.
8418         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8419         from the list in objects which remain.  Always allocate new scope
8420         record.
8421         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8422         don't resize, allocate a new one.
8423         * elf/dl-runtime.c: Update reference counters before using a scope
8424         array.
8425         * elf/dl-sym.c: Likewise.
8426         * elf/dl-libc.c: Adjust for l_scope name change.
8427         * elf/dl-load.c: Likewise.
8428         * elf/dl-object.c: Likewise.
8429         * elf/rtld.c: Likewise.
8430         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
8431         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
8432         Add l_scoperec_lock.
8433         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
8434         * sysdeps/generic/rtld-lowlevel.h: New file.
8435
8436         * include/atomic.h: Rename atomic_and to atomic_and_val and
8437         atomic_or to atomic_or_val.  Define new macros atomic_and and
8438         atomic_or which do not return values.
8439         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
8440         Various cleanups.
8441         * sysdeps/i386/i486/bits/atomic.h: Likewise.
8442
8443         * po/sv.po: Update from translation team.
8444
8445 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
8446
8447         * Versions.def: Add GLIBC_2.6 to libpthread.
8448
8449         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
8450         (versioned_symbol): Likewise.
8451         (compat_symbol): Likewise.
8452
8453         * po/tr.po: Update from translation team.
8454
8455 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8456
8457         * nis/Banner: Removed.  It's been integral part forever and the
8458         author info is incomplete anyway.
8459         * libio/Banner: Likewise.
8460
8461         * nis/nis_table.c (nis_list): If __follow_path fails in the new
8462         code, make sure the nis_freeresult call doesn't crash and that the
8463         result is reported correctly.
8464
8465 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
8466
8467         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8468         when callback is NULL.
8469
8470         * nis/Versions (libnss_nisplus): Add
8471         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8472         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8473         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8474         _nss_create_tablename): Rename to...
8475         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8476         ... these.  No longer static.
8477         (internal_setgrent): Adjust users.
8478         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8479         Don't use locking around _nss_grp_create_tablename call.
8480         * nis/nss_nisplus/nisplus-initgroups.c: New file.
8481
8482 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8483
8484         * version.h (VERSION): Bump to 2.5.90 for new development tree.
8485
8486 2006-10-06  Andreas Jaeger  <aj@suse.de>
8487
8488         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8489
8490 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8491
8492         * po/pl.po: Update from translation team.
8493
8494         * nscd/nscd.c (main): Fix typo in message.
8495         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
8496
8497 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8498
8499         [BZ #3291]
8500         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8501         errno.h, signal.h, unistd.h and sysdep-cancel.h.
8502         (__sigprocmask): Define.
8503
8504 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
8505
8506         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
8507         used.
8508
8509 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8510
8511         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
8512         in oldtotal and newtotal calculation.
8513         * nscd/nscd-client.h (struct mapped_database): Add datasize
8514         field.
8515         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
8516         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
8517         increased.
8518         (__nscd_cache_search): Add checks to make sure we never reference
8519         data beyond the current mapping.
8520
8521 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
8522
8523         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
8524         variables const to avoid compiler warnings.
8525
8526         * io/fts.c (fts_close): Remove redundant checks.
8527         (fts_build): Likewise.
8528         (fts_palloc): Likewise.
8529
8530         * manual/message.texi (Advanced gettext functions,
8531         Using gettextized software): Fix typos.
8532
8533 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
8534
8535         * posix/glob.c (glob_in_dir): Add some comments and asserts to
8536         explain why there are no leaks.
8537
8538 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
8539
8540         * libio/wmemstream.c: Include <wchar.h>.
8541         * libio/bug-wmemstream1.c: Likewise.
8542         * libio/tst-wmemstream1.c: Likewise.
8543         * libio/tst-wmemstream2.c: Likewise.
8544
8545         * version.h (RELEASE): Bump to 2.5.
8546         * README: Regenerated.
8547
8548         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
8549
8550         [BZ #3273]
8551         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
8552         found no group members.
8553         Patch by Petr Baudis.
8554
8555 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
8556
8557         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
8558         assert bootstrap_map.l_tls_modid is zero.
8559         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
8560         if USE___THREAD.
8561
8562 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
8563
8564         * libio/stdio.h: Move open_wmemstream prototype to ...
8565         * wcsmbs/wchar.h: ... here.
8566
8567 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
8568
8569         [BZ #3252]
8570         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
8571         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
8572         __{,l}chown to handle the rest.
8573         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
8574         fchownat syscall and __ASSUME_32BITUIDS case inline, call
8575         __{,l}chown to handle the rest.
8576         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
8577         i386/fchownat.c.
8578         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
8579         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
8580
8581         [BZ #3253]
8582         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8583         time, rather allocate increasingly bigger arrays of pointers, if
8584         possible with alloca, if too large with malloc.
8585
8586 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
8587
8588         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
8589
8590         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
8591
8592 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
8593
8594         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
8595         home addresses.
8596         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
8597         IFA_F_HOMEADDRESS flag for interfaces.
8598         * include/ifaddrs.h (struct in6addrinfo): Define
8599         in6ai_homeaddress.
8600
8601 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
8602
8603         [BZ #3225]
8604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
8605         PTR_DEMANGLE3): Define.
8606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
8607         PTR_DEMANGLE3): Likewise.
8608         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
8609         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
8610         Likewise.
8611         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8612
8613 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
8614
8615         * po/libc.pot: Regenerated.
8616         * po/be.po: Updated.
8617         * po/ca.po: Likewise.
8618         * po/cs.po: Likewise.
8619         * po/da.po: Likewise.
8620         * po/de.po: Likewise.
8621         * po/el.po: Likewise.
8622         * po/en_GB.po: Likewise.
8623         * po/es.po: Likewise.
8624         * po/fi.po: Likewise.
8625         * po/fr.po: Likewise.
8626         * po/gl.po: Likewise.
8627         * po/hr.po: Likewise.
8628         * po/hu.po: Likewise.
8629         * po/ja.po: Likewise.
8630         * po/ko.po: Likewise.
8631         * po/nb.po: Likewise.
8632         * po/nl.po: Likewise.
8633         * po/pl.po: Likewise.
8634         * po/pt_BR.po: Likewise.
8635         * po/ru.po: Likewise.
8636         * po/rw.po: Likewise.
8637         * po/sk.po: Likewise.
8638         * po/sv.po: Likewise.
8639         * po/tr.po: Likewise.
8640         * po/zh_CN.po: Likewise.
8641         * po/zh_TW.po: Likewise.
8642
8643         [BZ #3137]
8644         * iconv/iconv_prog.c (main): Fix spelling in error message.
8645         * iconv/iconvconfig.c (main): Likewise.
8646         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
8647         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
8648         * locale/programs/localedef.c (main): Likewise.
8649         * locale/programs/repertoire.c (repertoire_read): Likewise.
8650         * timezone/zdump.c (main): Likewise.
8651         * nscd/connections.c (handle_request): Fix spelling in log message.
8652         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
8653
8654 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
8655
8656         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
8657         interfaces.
8658
8659 2006-09-20  Andreas Jaeger  <aj@suse.de>
8660
8661         * math/libm-test.inc (lrint_test_upward): Fix typo.
8662
8663 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
8664
8665         [BZ #2592]
8666         * math/libm-test.inc (lrint_test_tonearest): New function.
8667         (lrint_test_towardzero): New function.
8668         (lrint_test_downward): New function.
8669         (lrint_test_upward): New function.
8670         (main): Run these new tests.
8671         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
8672         of values near to 0.
8673         (two52): Use double not long double.
8674         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8675         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8676         (two23): Use float not double.
8677         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8678         (two23): Use float not double.
8679         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8680         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8681         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8682         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8683
8684 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8685
8686         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
8687         Cast sp to unsigned long to avoid compiler warning.
8688         Use __makecontext_ret function instead of a trampoline on the stack.
8689         (__makecontext_ret): New function.
8690         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
8691
8692 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
8693
8694         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
8695         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
8696         bits.
8697
8698 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
8699
8700         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
8701         sure no reference to the unloaded map's search list remains in the
8702         dependency's scope.
8703
8704 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
8705
8706         * elf/Makefile: Add rules to build and run unload7 test.
8707         * elf/unload7.c: New test.
8708         * elf/unload7mod1.c: New file.
8709         * elf/unload7mod2.c: New file.
8710
8711 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
8712
8713         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
8714         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
8715         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8716         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
8717         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8718         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
8719         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8720         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
8721         PTRACE_GETEVENTMSG): Likewise.
8722         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
8723         values.
8724
8725 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
8726
8727         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
8728         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8729         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
8730         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
8731
8732 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
8733
8734         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
8735         write '\0' to the fd.
8736         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
8737         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
8738         Change regs to unsigned long pointer from unsigned int, fix fscr
8739         offset.
8740
8741 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
8742
8743         * io/Makefile (CFLAGS-fstatat.c): Set.
8744         (CFLAGS-fstatat64.c): Likewise.
8745         (CFLAGS-mknodat.c): Likewise.
8746
8747         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
8748         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8749         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
8750         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
8751
8752 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
8753             Steven Munroe  <sjmunroe@us.ibm.com>
8754
8755         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
8756         names to the beginning.  Rename "cell" to "cellbe".
8757         (_dl_powerpc_platforms): New.
8758         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8759         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
8760         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
8761         (_DL_HWCAP_PLATFORM): Define to new mask.
8762         (_dl_platform_string, _dl_string_platform): New functions.
8763         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
8764         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
8765
8766 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
8767
8768         [BZ #2526]
8769         * README.libm: Fix a thinko in sqrt algorithm description.
8770
8771         [BZ #3143]
8772         * manual/string.texi (argz_delete): Fix prototype.
8773         Patch by <alpt@freaknet.org>.
8774
8775 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
8776
8777         [BZ #3138]
8778         * io/test-lfs.c (do_prepare): Give name_len type size_t.
8779         * io/tst-fcntl.c (do_prepare): Likewise.
8780         * posix/tst-exec.c (do_prepare): Likewise.
8781         * posix/tst-preadwrite.c (do_prepare): Likewise.
8782         * posix/tst-spawn.c (do_prepare): Likewise.
8783         * posix/tst-truncate.c (do_prepare): Likewise.
8784         * rt/tst-aio.c (do_prepare): Likewise.
8785         * rt/tst-aio64.c (do_prepare): Likewise.
8786         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
8787         size_t.
8788
8789 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
8790
8791         [BZ #2821]
8792         * time/mktime.c (guess_time_tm): Fix overflow detection.
8793         * time/Makefile (tests): Add bug-mktime1.
8794         * time/bug-mktime1.c: New file.
8795
8796         [BZ #3189, #3188]
8797         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
8798         (mremap): Likewise.
8799
8800 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
8801
8802         [BZ #1006]
8803         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8804         Ensure relocation doesn't clobber any bits outside of the
8805         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
8806         R_SPARC_HI22 and R_SPARC_H44.
8807
8808         [BZ #2775]
8809         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
8810         (long) (MINSIZE + nb - old_size) is positive.
8811
8812         * malloc/arena.c (grow_heap): When growing bail even if new_size
8813         is negative.
8814
8815         [BZ #3155]
8816         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
8817         stack below r1.
8818
8819 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
8820
8821         * posix/regex_internal.c (re_string_reconstruct): Handle
8822         offset < pstr->valid_raw_len && pstr->offsets_needed case.
8823         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
8824         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
8825         re_string_context_at.
8826         * posix/Makefile: Add rules to build and run bug-regex26 test.
8827         * posix/bug-regex26.c: New test.
8828
8829         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
8830         rather than col_sym_free.  Move seqp declaration earlier.
8831
8832         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
8833
8834 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
8835
8836         * nscd/initgrcache.c (addinitgroupsX): Move any_success
8837         decl before first goto out.
8838
8839 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
8840
8841         * Makerules (shlib.lds): If have-hash-style, put .hash section
8842         at the end of the RO segment.
8843
8844 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
8845
8846         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
8847         style hash table format is used.
8848
8849 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
8850
8851         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
8852         randomization rather than before.
8853         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
8854
8855 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
8856
8857         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
8858
8859         * malloc/malloc.c (_int_malloc): Use full list insert and not
8860         shortcut which assumes the list is empty for large requests
8861         too.
8862
8863         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
8864
8865 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
8866
8867         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
8868         and offout arguments to the prototype.
8869         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
8870         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
8871         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
8872         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
8873         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
8874         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
8875         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
8876         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
8877
8878 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
8879
8880         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
8881
8882         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
8883         dlopen parameters.
8884
8885 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
8886
8887         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
8888         only if herrno is NETDB_INTERNAL.  Handle errors other than
8889         ERANGE outside of the loops, handle TRY_AGAIN.
8890
8891         * locale/programs/ld-ctype.c (translit_flatten): Issue error
8892         if other's ctype category was missing.
8893         * locale/programs/ld-collate.c (collate_read): Return if
8894         copy_locale's collate category is missing.
8895
8896 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
8897
8898         [BZ #2684]
8899         * malloc/malloc.c (public_rEALLOc): Try harder by using other
8900         arenas if allocation failed.
8901         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
8902
8903 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
8904
8905         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
8906         waste bins[0..1].
8907         (malloc_state): Reduce bins size by 2.
8908         (_int_malloc): Fix test for large enough buffer for early termination.
8909         When no unsorted block matches perfectly and an exiting block has
8910         to be split, use full list insert and not shortcut which assumes
8911         the list is empty.
8912
8913         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
8914         failure.
8915
8916 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
8917
8918         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
8919         do anything.
8920
8921         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
8922         symbol require exact match (these are PLTs).
8923         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
8924         (_dl_ppc64_addr_sym_match): Likewise.
8925
8926         [BZ #2683]
8927         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
8928         If symbol has a value use it.
8929         * elf/tst-dladdr1.c: New file.
8930         * elf/Makefile: Add rules to build and run tst-addr1.
8931
8932 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
8933
8934         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
8935         keeps failing and heap growth or new heap creation isn't
8936         successful either.
8937         * malloc/tst-malloc.c (main): Add new tests.
8938
8939 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
8940
8941         [BZ #2734]
8942         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
8943         as in the x86-64 code to use bswap.
8944
8945 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
8946
8947         [BZ #2680]
8948         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
8949         __USE_UNIX98.
8950         * posix/bits/unistd.h: Likewise.
8951
8952 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
8953
8954         [BZ #2751]
8955         * string/strchr.c: Add cast to avoid warning.
8956
8957 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
8958
8959         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
8960         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
8961         limit is needed to avoid the exploding of the address space
8962         requirement for secondary heaps.
8963         * malloc/arena.c (HEAP_MAX_SIZE): Define using
8964         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
8965
8966 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
8967
8968         [BZ #3018]
8969         * Makerules (depfiles): Handle extra-test-objs the same as
8970         extra-objs.
8971         (common-mostlyclean): Likewise.
8972         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
8973         instead.
8974         * elf/Makefile (extra-objs): Likewise.
8975         * stdlib/Makefile (extra-objs): Likewise.
8976
8977 2006-08-14  Eric Blake  <ebb9@byu.net>
8978
8979         [BZ #3044]
8980         * misc/error.h: Assume C89 or better.
8981         * misc/error.c: Likewise.
8982
8983 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
8984
8985         [BZ #3040]
8986         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
8987         __ASSUME_ATFCTS is defined.
8988
8989 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
8990
8991         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
8992         to sort in each call.
8993
8994         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
8995         is empty simply return and use next service.
8996         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
8997
8998         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
8999         tells us when not finding a charmap file is an error.
9000         * locale/programs/charmap.h: Adjust charmap_read prototype.
9001         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
9002         cannot find a charmap.
9003         * locale/programs/localedef.c (main): Adjust charmap_read call.
9004
9005 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
9006
9007         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
9008         sysdeps/posix/pause.c implementation instead.
9009
9010 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
9011
9012         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
9013         to EPERM.
9014
9015 2006-08-13  Andreas Schwab  <schwab@suse.de>
9016
9017         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
9018         Don't clobber caller's LRSAVE.
9019         (_dl_prof_resolve): Likewise.
9020
9021 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
9022
9023         [BZ #1996]
9024         * libio/memstream.c (open_memstream): Allocate initial buffer with
9025         calloc.
9026         * libio/wmemstream.c (open_wmemstream): Likewise.
9027         * libio/strops.c: Pretty printing.
9028         (_IO_str_overflow): Clear uninitialized part of the new buffer.
9029         (enlarge_userbuf): New function.
9030         (_IO_str_seekoff): Call it if seek position is larger than current
9031         buffer.
9032         * libio/wstrops.c: Likewise.
9033         * libio/vasprintf.c: Add comment as to why we do not have to use
9034         calloc instead of malloc to allocate initial buffer.
9035         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
9036         * libio/bug-memstream1.c: New file.
9037         * libio/bug-wmemstream1.c: New file.
9038
9039 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9040
9041         * libio/wstrops.c: Remove dead macro definitions and comments.
9042         * libio/strops.c: Likewise.
9043
9044         [BZ #2764]
9045         * login/utmpname.c (__utmpname): Remove unnecessary test.
9046
9047 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
9048
9049         [BZ #2832]
9050         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
9051         0s from integers.
9052
9053 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9054
9055         [BZ #2987]
9056         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
9057         for CPU clocks.
9058         * sysdeps/unix/clock_settime.c: Add support for platform-specific
9059         setting of CPU clocks.
9060
9061 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9062
9063         [BZ #2841]
9064         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
9065         since C99 requires the result to promote to 'int' when uint_least8_t
9066         and uint_least16_t promote to 'int'.
9067
9068 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
9069
9070         [BZ #3013]
9071         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9072         lenght of one output field, correct bitmask creation.
9073         * locale/programs/ld-time.c: Add alignment.
9074
9075         [BZ #2997]
9076         * misc/error.c: Add space between program name and message if file
9077         name is missing.
9078
9079 2006-08-03  Eric Blake  <ebb9@byu.net>
9080
9081         [BZ #2998]
9082         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9083
9084 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
9085
9086         * malloc/memusagestat.c: Silence warnings.
9087
9088         * malloc/malloc.c: Dynamically size mmap treshold if the program
9089         frees mmaped blocks.
9090         Patch by Valerie Henson and Arjan van de Ven.
9091
9092 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
9093
9094         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9095         __USE_GNU.
9096
9097         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9098         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9099         (DEF): Don't put the var into .gnu.linkonce.r.* section.
9100         Only provide var definitions in strtol_l (or for *ull*
9101         in strtoll_l).
9102
9103         * stdio-common/bug16.c (tests): New array.
9104         (do_tests): Allow the first hexadecimal digit
9105         to be 1, 2, 4 or 8.  Do 3 additional tests.
9106
9107         * sysdeps/s390/fpu/libm-test-ulps: Update.
9108
9109         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9110         fchownat syscall if available.
9111         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9112         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9113         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9114
9115 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9116
9117         * nis/nis_xdr.c: Avoid some function calls.
9118
9119 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
9120             Ulrich Drepper  <drepper@redhat.com>
9121
9122         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9123         short cut if only one name component is stripped away.
9124
9125 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9126
9127         * nis/nis_call.c: Minor cleanups throughout.
9128         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
9129         (first_shoot): Add search_parent_first parameter.  Only if it is set
9130         search parent server first.
9131         If directory for table found through cold start cache is not the same
9132         as referenced in the cache, don't use it.
9133         (__nisfind_server): Take additional parameter.  Pass it on to
9134         first_shoot.
9135         (__prepare_niscall): Adjust __nisfind_server call.
9136         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9137         * nis/nis_table.c: Adjust __nisfind_server call.
9138         * nis/nis_lookup.c: Likewise.
9139         (nis_lookup): Don't loop endlessly if name is reduced to ".".
9140
9141 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
9142
9143         [BZ #2182]
9144         * math/s_cacosh.c: Return values from positive branch.
9145         * math/s_cacoshf.c: Likewise.
9146         * math/s_cacoshl.c: Likewise.
9147
9148         [BZ #2883]
9149         * sysvipc/sys/msg.h: Change return value to ssize_t.
9150         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9151         * sysvipc/msgrcv.c: Likewise.
9152         * include/sys/msg.h: Likewise.
9153
9154         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9155         test introduced in patch for bz #661.
9156         (getgrouplist): Simplify code a bit.  Don't allocate one additional
9157         element for NEWGROUPS.
9158
9159         [BZ #2908]
9160         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9161         'f', use '1' as leading digit not '\1'.
9162         * stdio-common/Makefile (tests): Add bug16.
9163         * stdio-common/bug16.c: New file.
9164
9165         [BZ #2914]
9166         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9167         and don't try to open it.  The patch introducing the macro
9168         contained a bug and used the same file name as the new file
9169         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
9170         this out completely.
9171
9172         [BZ #2926]
9173         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9174         Patch by Jerry James <Jerry.James@usu.edu>.
9175
9176         * rt/Makefile (tests): Add tst-clock2.
9177         * rt/tst-clock2.c: New file.
9178
9179         [BZ #2978]
9180         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9181         function and its parameters and pass it to new thread.
9182         (__gai_notify): Add support for alternative waiting for completion.
9183         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9184         waiting for completion.
9185         * resolv/getaddrinfo_a.c: Likewise.
9186         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9187         waiting for completion is used.
9188         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9189         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9190         * resolv/gai_error.c: Likewise.
9191         * resolv/gai_sigqueue.c: Likewise.
9192
9193 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
9194
9195         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
9196         errno to EBADF and return MACH_PORT_NULL.
9197
9198 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
9199
9200         [BZ #2980]
9201         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
9202
9203 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
9204
9205         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9206         walk them instead of the symbol table.
9207
9208 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
9209
9210         [BZ #2098]
9211         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9212         status of NSS calls, not the number of returned entries.
9213
9214         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9215         request_key, keyctl.
9216
9217 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9218
9219         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9220
9221 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
9222
9223         * elf/tst-auditmod1.c: Fix typo in #error.
9224
9225 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9226
9227         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9228
9229         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9230
9231 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
9232
9233         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
9234         that the directory is empty even on non-POSIX filesystems.
9235
9236 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9237
9238         * elf/dl-open.c (dl_open_worker): Add branch prediction.
9239
9240         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9241         the backend NSS module.  If backend setgrent call failed, don't have
9242         internal_setgrent fail.  Just remember this until it is needed.
9243         * nis/nss_compat/compat-pwd.c: Likewise.
9244         * nis/nss_compat/compat-spwd.c: Likewise.
9245
9246 2006-07-30  Roland McGrath  <roland@redhat.com>
9247
9248         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9249         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9250         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9251         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9252
9253         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9254         (nanosleep_not_cancel): New macro.
9255         (sigsuspend_not_cancel): new macro.
9256         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9257         (do_sigsuspend): Define as inline.
9258         (__sigsuspend): Always use do_sigsuspend.
9259         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9260         * include/signal.h: Declare __sigsuspend_nocancel.
9261         * sysdeps/posix/pause.c
9262         [! NO_CANCELLATION] (__pause_nocancel): New function.
9263
9264         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9265         * include/time.h (__nanosleep_nocancel): Likewise.
9266
9267 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
9268
9269         * locale/programs/localedef.c (add_to_readlist): Rename local
9270         variables to avoid confusion.
9271
9272         * locale/programs/charmap.c (charmap_read): Emit error message if
9273         charmap couldn't be found or read.
9274
9275 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
9276
9277         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9278         __ASSUME_FUTEX_LOCK_PI.
9279         * include/time.h: Declare __nanosleep_nocancel.
9280         * include/unistd.h: Declare __pause_nocancel.
9281
9282         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9283         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
9284         get the __stack_chk_fail_local definition when it's needed.
9285
9286 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
9287
9288         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9289         * dlfcn/bug-atexit3.c: New file.
9290         * dlfcn/bug-atexit3-lib.cc: New file.
9291
9292         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9293         used when the namespace is not the base namespace.
9294
9295 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
9296
9297         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9298         (__new_exitfn): Bump it in every successful call.
9299         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9300         more exit handlers, call them right away.
9301         * stdlib/exit.h: Declare __new_exitfn_called.
9302
9303 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
9304
9305         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9306         calling registered handler.
9307
9308         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9309         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9310         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9311         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9312         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9313         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9314         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9315         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9316
9317 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
9318
9319         * elf/dl-lookup.c (dl_new_hash): New functions.
9320         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9321         value here.  Compute new-style hash value.  Pass new hash value
9322         and reference to variable with the old value to do_lookup_x.
9323         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9324         old-style hash table.
9325         (_dl_debug_bindings): Pass new hash value and reference to variable
9326         with the old value to do_lookup_x.
9327         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9328         new-style hash value and change old-style hash value parameter to
9329         be a reference.  Reoganize functions to determine whether
9330         new-style hash table is available.  Only fall back on old-style
9331         table.  If old-style hash value is needed, compute it here.
9332         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9333         entry.
9334         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9335         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
9336         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9337         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9338         * Makeconfig: If linker supports --hash-style option add it to all
9339         linker command lines to build DSOs.
9340         * config.make.in: Define have-hash-style.
9341         * configure.in: Test whether linker supports --hash-style option.
9342
9343         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9344         * sysdeps/generic/ldsodefs.h: Adjust prototype.
9345
9346 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
9347
9348         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9349         auditing.
9350
9351         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9352         RPATH of main map twice.
9353
9354 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
9355
9356         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9357         look further, return original strings.
9358         (_nl_find_msg): Do not return found translation if the conversion
9359         failed.  Either signal the string is unusable or that something went
9360         wrong and the original should be used.
9361
9362 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
9363
9364         * string/_strerror.c (__strerror_r): Add __builtin_expect.
9365
9366 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
9367
9368         [BZ #2766]
9369         * misc/insremque.c (insque): Handle prev == NULL.
9370         * misc/Makefile (tests): Add tst-insremque.
9371         * misc/tst-insremque.c: New test.
9372
9373 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
9374
9375         [BZ #2792]
9376         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9377         conflict with DL_DST_REQUIRED.
9378
9379 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
9380
9381         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9382         match what Solaris does.
9383
9384 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
9385
9386         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9387         local_setegid instead of seteuid and setegid.
9388         * sysdeps/generic/local-setxid.h: New file.
9389         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9390
9391         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9392
9393         * string/Makefile (tests): Add bug-envz1.
9394         * string/bug-envz1.c: New file.
9395
9396 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
9397
9398         * posix/regex_internal.c (re_string_skip_chars): If no character has
9399         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
9400         to the byte which couldn't be converted.
9401         (re_string_reconstruct): Don't clear valid_raw_len before calling
9402         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
9403         tip_context using re_string_context_at.
9404         * posix/Makefile: Add rules to build and run bug-regex25 test.
9405         * posix/bug-regex25.c: New test.
9406
9407 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
9408
9409         [BZ #2703]
9410         * string/envz.c (envz_strip): Correct erroneously reversed src
9411         and dest parameters to memmove() invocation.
9412
9413 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
9414
9415         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9416         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9417         to make sure the database has been already invalidated.
9418         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
9419         after the cache has been invalidated.  Use pthread_mutex_lock rather
9420         than pthread_mutex_trylock if fd != -1.
9421         * nscd/connections.c (invalidate_cache): Add fd argument, write
9422         response to fd if not calling prune_cache, pass fd to prune_cache.
9423         (handle_request): Adjust invalidate_cache caller.
9424         (nscd_run): Pass -1 as fd to prune_cache.
9425
9426 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
9427
9428         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9429         the correct place.
9430
9431 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
9432
9433         * nscd/nscd.h (struct database_dyn): Add prunelock field.
9434         * nscd/cache.c (prune_cache): Take prunelock before starting the
9435         work.  Just return in case it is already taken.
9436         * nscd/connections.c (dbs): Initialize .prunelock.
9437
9438 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
9439
9440         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
9441         copying.  No need to allocate new array for group members.  Just
9442         move the pointers and update the size.
9443
9444         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
9445         Avoid memory leak in case realloc fails.  Simplification for
9446         better code generation.
9447
9448         Avoid deprecation warning because of libc_hidden_proto for
9449         inet6_option_alloc.
9450         * inet/inet6_option.c (option_alloc): Renamed from
9451         inet6_option_alloc.  Made static.
9452         (inet6_option_alloc): Now a simple wrapper around option_alloc.
9453         (inet6_option_append): Call option_alloc.
9454         * include/netinet/in.h: Remove libc_hidden_proto for
9455         inet6_option_alloc.
9456
9457         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
9458         for cleanup when cb!=NULL [Coverity CID 233].
9459
9460 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
9461
9462         [BZ #2693]
9463         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9464         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9465         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9466         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9467         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9468         and inet6_rth_getaddr.
9469         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9470         array.
9471         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9472         Mark inet6_option_* interfaces as deprecated.
9473         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9474         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9475         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9476         inet6_rth_segments, and inet6_rth_getaddr.
9477         * inet/inet6_opt.c: New file.
9478         * inet/inet6_rth.c: New file.
9479
9480         * inet/netinet/icmp6.h: Pretty printing.
9481
9482         [BZ #2683]
9483         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9484
9485 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
9486
9487         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9488         doing it all here.  When server does not know the answer do not
9489         fail immediate, try parent first.
9490
9491         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9492         overflow test.
9493
9494 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
9495
9496         * nis/nis_call.c (__prepare_niscall): New function.  Split out
9497         from __do_niscall.
9498         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
9499         and exported.
9500         (__follow_path): New function.  Split out from nis_list.
9501         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9502         _xdr_nis_result.
9503         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
9504         _xdr_nis_result.
9505         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
9506         and __follow_path.
9507         * nis/Versions: Export __prepare_niscall, __create_ib_request,
9508         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
9509         from libnsl for version GLIBC_PRIVATE.
9510         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
9511         Remove entry parameter from _nss_nisplus_parse_pwent and
9512         _nss_nisplus_parse_grent.
9513         * nis/nss_nisplus/nisplus-parser.c: Likewise.
9514         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
9515         again.  Rewrite getpwent handling to not use nis_first_entry and
9516         nis_next_entry.  Roll out own niscall handling.
9517         * nis/nss_nisplus/nisplus-grp.c: Likewise.
9518
9519         * sunrpc/xdr_rec.c: Fix typo in comment.
9520
9521 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
9522
9523         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
9524         handling.
9525
9526         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
9527         to allocate memory for my_pollfd.  Better initialization of
9528         cb_is_running.  Use TEMP_FAILURE_RETRY.
9529
9530         * malloc/memusage.sh (memusageso): Add quotes.
9531         (memusagestat): Likewise.
9532         * debug/xtrace.sh (pcprofileso): Likewise.
9533         (pcprofiledump): Likewise.
9534         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
9535         replacement.
9536         * malloc/Makefile ($(objpfx)memusage): Likewise.
9537
9538         * nis/nis_callback.c (__nis_create_callback): Calls to
9539         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
9540         asprintf call fails.
9541
9542         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
9543         no uninitialized memory is passed to sendto.
9544
9545 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9546
9547         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
9548         of snprintf+strdup.  Handle OOM.
9549         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
9550         cb->serv together.  Remove now obsolete free calls.
9551         (__nis_destroy_callback): Remove now obsolete free call.
9552
9553 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
9554
9555         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
9556         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
9557         and ULA respectively). Set precedence for IPv4 address to 10 as
9558         defined in RFC3484 for preferring IPv6.
9559         * posix/gai.conf: Update to match the new default tables.
9560
9561 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
9562
9563         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
9564         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
9565         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
9566         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
9567
9568         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
9569         Removed.
9570         (init_nss_interface): Remove initialization of these variables.
9571
9572 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9573
9574         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
9575         nis_free_directory forward to avoid duplication.
9576
9577 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
9578
9579         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
9580         rec_dirsearch returning NULL.
9581         (first_shoot): Handle __nis_finddirectory returning NULL.
9582         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
9583
9584         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
9585         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
9586
9587 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
9588
9589         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
9590         pid changed.
9591
9592 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
9593
9594         * include/rpc/pmap_prot.h: Mark all functions as hidden.
9595
9596         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
9597         * nscd/nscd_getgr_r.c: Likewise.
9598
9599         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
9600
9601         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
9602         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
9603
9604         * stdlib/longlong.h (__clz_tab): Mark as hidden.
9605
9606         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
9607
9608         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
9609
9610         * include/rpc/auth.h: Mark xdr_des_block_internal and
9611         xdr_opaque_auth_internal as hidden.
9612
9613         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
9614         hidden.
9615
9616         * include/rpc/xdr.h: Mark all _internal functions as hidden.
9617
9618         * misc/getusershell.c (okshells): Don't use static initializers,
9619         do it dynamically.
9620
9621         * stdlib/fmtmsg.c (keywords): Change type of len element to
9622         uint32_t to not waste space on 64bit machines.
9623
9624         * locale/setlocale.c: Change _nl_category_names into a string.
9625         Add new _nl_category_name_idxs.  Change all users.
9626         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
9627         Declare _nl_category_name_idxs.
9628         * locale/findlocale.c: Adjust for _nl_category_names change.
9629         * locale/loadlocale.c: Likewise.
9630         * locale/newlocale.c: Likewise.
9631         * intl/dcigettext.c: Likewise.
9632
9633         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
9634         (add_alias2): ...here.  New function.
9635         (__gconv_read_conf): Simplify builtin alias handling.
9636         (builtin_aliases): Convert to string to avoid relocations.
9637         * iconv/gconv_builtin.h: Add comment about correct formatting.
9638
9639 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
9640
9641         * resolv/res_debug.c (loc_ntoa): Make error const.
9642
9643 2006-05-14  Andreas Schwab  <schwab@suse.de>
9644
9645         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
9646
9647 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
9648
9649         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
9650         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
9651         sizeof (cpu_set_t).
9652
9653 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
9654
9655         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
9656
9657         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
9658
9659         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
9660         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
9661
9662         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
9663         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
9664
9665         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
9666         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
9667         xdr_cback_data.
9668
9669         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
9670         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9671         xdr_ypupdate_args.
9672
9673         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
9674         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
9675
9676         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
9677         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
9678
9679         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
9680         * include/rpcsvc/nis_callback.h: New file.
9681
9682         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
9683         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
9684
9685         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9686         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9687
9688         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
9689         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
9690
9691         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9692         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9693
9694         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
9695         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9696         xdr_ypdelete_args.
9697
9698         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
9699         __BEGIN_DECLS and __END_DECLS, the header is not installed.
9700
9701         * nis/nis_error.c: Remove table of strings.  Use position
9702         independent mechanism.
9703         * nis/nis_error.h: New file.
9704
9705 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
9706
9707         * locale/programs/ld-time.c (time_finish): If wide era name or
9708         format aren't provided, set both wname and wformat to L"".
9709
9710 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
9711
9712         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
9713         results if the call was succesful.
9714
9715         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
9716
9717         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
9718         as hidden.
9719
9720 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
9721
9722         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
9723
9724 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
9725
9726         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
9727         caller makes sure this is not the case.
9728         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
9729
9730 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
9731
9732         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
9733         calls.
9734
9735         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
9736         [Coverity CID 229, 230]
9737
9738         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
9739         DGETTEXT calls.
9740         (hol_help): Likewise.  [Coverity CID 226, 227]
9741
9742         * string/argz-replace.c (__argz_replace): Unconditionally call
9743         free on SRC.  [Coverity CID 225]
9744
9745         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
9746         the return value of __nis_default_owner and __nis_default_group,
9747         it has been especially allocated.  [Coverity CID 224]
9748
9749         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
9750         searchgroup and searchowner.  Significantly simplified.
9751         (__nis_default_owner): Remove duplication.  Do not locally copy the
9752         string before duplicating it.
9753         (__nis_default_group): Likewise.
9754
9755         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
9756         we must clear the variable before calling __nisfind_server.
9757
9758         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
9759         nis_getnames.  [Coverity CID 223]
9760
9761         * locale/programs/locfile.c (locfile_read): Use alloca instead of
9762         xmalloc to allocate local repertoire name.  [Coverity CID 222]
9763
9764         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
9765         allocate memory for the input to add_bytes.  [Coverity CID 221]
9766
9767         * posix/wordexp.c (w_addword): Free word if realloc fails and it
9768         was allocated here.  [Coverity CID 219, 220]
9769
9770         * posix/getconf.c (print_all): Free confstr data after printing.
9771         [Coverity CID 218]
9772
9773         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
9774         list allocation fails.  [Coverity CID 215]
9775
9776         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
9777         [Coverity CID 213]
9778
9779         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
9780         string is NULL.  [Coverity CID 212]
9781         * argp/Makefile: Add rules to build and run bug-argp1.
9782         * argp/bug-argp1.c: New file.
9783
9784         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
9785         end of string.
9786         * stdlib/canonicalize.c (__realpath): Likewise.
9787
9788         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
9789         pointer.  [Coverity CID 206]
9790
9791         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
9792         in statically linked code.
9793         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
9794         statically built code, be prepared to have no link map.
9795         [Coverity CID 205]
9796
9797         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
9798         dgettext calls. [Coverity CID 204]
9799
9800         * argp/argp-help.c (struct uparams): Remove valid member.  Change
9801         the one user.
9802         (uparam_names): Reduce size.  Avoid relative relocations.
9803         Moved to read-only segment.
9804         (fill_in_uparams): Update for new layout.
9805
9806         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
9807         assumed to always be != NULL. [Coverity CID 202]
9808
9809         * argp/argp-help.c (hol_entry_help): Remove some dead code
9810         [Coverity CID 200].
9811
9812         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
9813         away a few more unconditional yperr2nss calls.
9814         (_nss_nis_getservbyname_r): Likewise.
9815
9816 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
9817
9818         * sysdeps/generic/ldsodefs.h: Remove support for non-core
9819         architectures.
9820
9821         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
9822         that unused memory passed to sendto is nevertheless initialized.
9823
9824         [BZ #2499]
9825         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
9826         possibly unaligned memory accesses.
9827
9828         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
9829         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
9830         and __putlong respectively.  Correct buffer overflow check for
9831         NS_NOTIFY_OP.
9832
9833         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
9834
9835         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
9836         (send_dg): Rewrite error handling to be more compact and avoid
9837         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
9838
9839         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
9840
9841         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
9842         instead of ns_get16.
9843         (res_queriesmatch): Likewise.  Minor optimization.
9844
9845         [BZ #2499]
9846         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
9847         __libc_res_nsend might reallocate the buffer for the answer.  In
9848         this case we have to reload the HP pointer.
9849
9850 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9851
9852         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
9853         some branch prediction hints.
9854
9855         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
9856         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9857         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9858         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9859         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9860         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9861         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9862         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9863
9864 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9865
9866         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
9867         by a GOT relocation to make Scrt1.o position independent.
9868         * sysdeps/s390/s390-64/elf/start.S: Likewise.
9869
9870         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
9871         six system call parameters.
9872         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9873
9874 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9875
9876         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
9877         malloc&bzero.
9878
9879         * sunrpc/svc_udp.c (BZERO): Remove definition.
9880         (CALLOC): Define.
9881         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
9882
9883         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
9884         (des_SPtrans): Use uint32_t type.
9885         (des_skb): Likewise.
9886
9887         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
9888
9889 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
9890
9891         [BZ #2509]
9892         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
9893         on 32-bit arches.
9894
9895 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9896
9897         * locale/programs/ld-address.c (address_finish): Fix one more
9898         place where the iso639 array might be accessed beyond the limits.
9899
9900 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
9901
9902         * nis/nis_table.c (nis_list): Avoid clearing res twice before
9903         filling it for the first time.
9904
9905         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
9906         Adjust all callers.
9907         Free res object content before returning.
9908
9909         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
9910
9911         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
9912         client->cl_auth.
9913
9914         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
9915         cleanup for initial thread, just the free call on TVP.
9916
9917         * nscd/gai.c (__getline): Define.
9918
9919
9920 See ChangeLog.16 for earlier changes.