..
[platform/upstream/glibc.git] / ChangeLog
1 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
2
3         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4
5         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
6         the hash table.
7         * misc/Makefile (tests): Add bug-hsearch1.
8         * misc/bug-hsearch1.c: New file.
9
10 2009-01-22  Roland McGrath  <roland@redhat.com>
11
12         * Makeconfig (%.v.i): Strip trailing # comments,
13         not only whole-line comments.
14
15 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
16
17         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
18         one parameter.  If non-NULL use it to initialize return value.
19         (_dl_setup_pointer_guard): New function.
20         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
21         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
22         * elf/rtld.c (security_init): Pass _dl_random to
23         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
24         pointer_chk_guard.
25         * elf/dl-sysdep.c (_dl_random): New variable.
26         (_dl_sysdep_start): Handle AT_RANDOM.
27         (_dl_show_auxv): Likewise.
28         * elf/dl-support.c (_dl_random): New variable.
29         (_dl_aux_init): Handle AT_RANDOM.
30         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
31         to _dl_setup_stack_chk_guard.
32
33         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
34
35 2009-01-10  Roland McGrath  <roland@redhat.com>
36
37         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
38
39 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
40
41         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
42
43         [BZ #9706]
44         * nss/nss_files/files-parse.c (strtou32): New function.
45         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
46         across 32-bit and 64-bit platforms.
47         (INT_FIELD_MAYBE_NULL): Likewise.
48
49 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
50
51         [BZ #9720]
52         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
53         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
54         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
55         Likewise.
56
57 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
58
59         [BZ #697]
60         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
61         being NULL also if there are no backreferences.
62         * posix/rxspencer/tests: Add testcases.
63
64 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
65
66         [BZ #9697]
67         * posix/bug-regex17.c: Add testcases.
68         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
69         handling.
70
71 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
72
73         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
74         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
75         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
76         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
77         for elf subdir.
78         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
79         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
80         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
81         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
82         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
83         * sysdeps/unix/sysv/linux/s390/Versions: New file.
84
85 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
86
87         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
88         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
89         re_string_skip_chars, re_string_reconstruct): Likewise.
90         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
91
92 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
93
94         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
95         adjust the buffer alignment.
96
97 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
98
99         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
100         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
101         net/route.h.
102
103         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
104         flavor to description only when flavor is not NULL.
105
106         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
107         mutex after SIGIO/SIGURG lookup loop.
108
109 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
110
111         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
112
113 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
114
115         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
116         handling.
117
118 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
119
120         * sysdeps/unix/sysv/linux/kernel-features.h
121         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
122
123         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
124         if no output is written.
125
126         * version.h: Bump to 2.10 development.
127
128         * posix/getconf.c: Update copyright year.
129         * nss/getent.c: Likewise.
130         * iconv/iconvconfig.c: Likewise.
131         * iconv/iconv_prog.c: Likewise.
132         * elf/ldconfig.c: Likewise.
133         * catgets/gencat.c: Likewise.
134         * csu/version.c: Likewise.
135         * elf/ldd.bash.in: Likewise.
136         * elf/sprof.c (print_version): Likewise.
137         * locale/programs/locale.c: Likewise.
138         * locale/programs/localedef.c: Likewise.
139         * nscd/nscd.c (print_version): Likewise.
140         * debug/xtrace.sh: Likewise.
141         * malloc/memusage.sh: Likewise.
142         * malloc/mtrace.pl: Likewise.
143         * debug/catchsegv.sh: Likewise.
144
145 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
146
147         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
148         script.
149
150 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
151
152         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
153         gethostbyname4_r function call succeeded, just leave the loop.
154
155         [BZ #9694]
156         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
157         very end.
158         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
159         * wctype/Makefile (tests): Add bug-wctypeh.
160         * wctype/bug-wctypeh.c: New file.
161
162         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
163         LOCALDOMAIN is defined.
164         * nscd/nscd_getai.c (__nscd_getai): Likewise.
165
166         * sysdeps/x86_64/bits/select.h: New file.
167
168         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
169
170 2008-12-21  Bruno Haible  <bruno@clisp.org>
171
172         [BZ #9677]
173         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
174         if no output is written.
175
176 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
177
178         * login/utmp_file.c (pututline_file): Replace call to dup2 with
179         libc internal symbol __dup2 to avoid access through the PLT.
180
181 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
182
183         [BZ #6545]
184         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
185         available only for __USE_GNU.
186
187         * inet/Makefile (tests): Add tst-getni2.
188         * inet/tst-getni2.c: New file.
189
190         [BZ #7080]
191         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
192         NULL when NI_NAMEREQD is set.
193         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
194         * inet/Makefile (tests): Add tst-getni1.
195         * inet/tst-getni1.c: New file.
196
197 2008-12-03  Petr Baudis  <pasky@suse.cz>
198
199         [BZ #7067]
200         * nscd/connections.c (invalidate_cache): Use prune_run_lock
201         instead of prune_lock.
202         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
203         * nscd/nscd.h (database_dyn): Add prune_run_cache.
204
205 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
206
207         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
208         use.
209
210         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
211         handling.
212
213         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
214         after reading name server list.
215
216         [BZ #7058]
217         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
218         handling for host name aliases.
219
220 2008-11-24  Arkadiusz Miƛkiewicz  <arekm@maven.pl>
221
222         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
223         instead of doing things manually.
224
225 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
226
227         * posix/regex_internal.h (build_wcs_upper_buffer):
228         Return type is reg_error_t.
229
230 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
231
232         * posix/globtest.sh: Use mktemp to create temporary file and
233         directory.
234
235         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
236         sets correctly.
237         (__CPU_CLR_S): Likewise.
238         (__CPU_ISSET_S): Likewise.
239
240 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
241             Ulrich Drepper  <drepper@redhat.com>
242
243         * scripts/firstversion.awk: Use custom comparison function to compare
244         version numbers.
245         * scripts/versions.awk: Use sort invocation which can handle
246         multi-digit sub-version numbers.
247
248 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
249
250         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
251         * locale/iso-639.def: Add Chhattisgarhi entry.
252
253 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
254
255         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
256         ESRCH return value.
257         (_nss_dns_gethostbyname4_r): Likewise.
258         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
259         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
260         gethostbyname4_r, we don't have a separate IPv6 status, so copy
261         the no_data variable.
262
263         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
264         information at the correct index.
265
266         * socket/sys/socket.h: Declare accept4.
267         * socket/accept4.c: New file.
268         * sysdeps/unix/sysv/linux/accept4.c: New file.
269         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
270         * socket/Makefile (routines): Add accept4.
271         * socket/Versions: Export accept4 with version GLIBC_2.10.
272         * socket/paccept.c: Removed.
273         * sysdeps/unix/sysv/linux/paccept.c: Removed.
274         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
275         * Versions.def: Define GLIBC_2.10 for libc.
276         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
277
278         * nscd/connections.c: Use accept4.
279
280         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
281
282 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
283
284         * resolv/res_send.c (send_dg): Create sockets with non-blocking
285         flag already set.
286
287         * stdlib/setenv.c (unsetenv): Don't search environment if it does
288         not exist.
289         * stdlib/Makefile (tests): Add tst-unsetenv1.
290         * stdlib/tst-unsetenv1.c: New file.
291
292 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
293
294         * login/utmp_file.c (file_writable): New variable.
295         (setutent_file): Don't try to open file for writing.
296         (pututline_file): Before writing, make descriptor writable if
297         necessary.
298
299 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
300
301         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
302         to IPv4 or IPv6 if an interface has been found.
303
304 2008-11-26  Roland McGrath  <roland@redhat.com>
305
306         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
307         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
308
309         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
310         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
311         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
312
313         * elf/elf.h (NT_386_IOPERM): New macro.
314         (NT_PPC_VSX): New macro.
315
316 2008-11-25  Roland McGrath  <roland@redhat.com>
317
318         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
319         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
320         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
321         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
322         Subdirectories moved to ports repository.
323         * configure.in (base_machine): Remove alpha case.
324
325 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
326
327         * sysdeps/mach/strerror_l.c: New file.
328
329 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
330
331         [BZ #6411]
332         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
333         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
334         magic numbers.
335         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
336         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
337         (relax_fenv_state): Same as above.
338         (FPSCR_29): Reserve bit in ISA 2.05.
339         (FPSCR_NI): Provide define for compat.
340         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
341         magic numbers.
342         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
343         magic numbers.
344         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
345         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
346         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
347         access to hwcap to account for hwcap size increase to uint64_t.
348         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
349         Likewise.
350         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
351         (*setcontext): Likewise.
352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
353         New file.
354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
355         New file.
356         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
357         (*setcontext): dynamically select mtfsf insn based on
358         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
359         increase to uint64_t.
360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
361         (*swapcontext): dynamically select mtfsf insn based on
362         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
363         increase to uint64_t.
364         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
365         New file.
366         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
367         New file.
368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
369         (*setcontext): dynamically select mtfsf insn based on
370         PPC_FEATURE_HAS_DFP.
371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
372         (*swapcontext): dynamically select mtfsf insn based on
373         PPC_FEATURE_HAS_DFP.
374
375 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
376
377         * version.h: Bump for 2.9 release.
378         * include/features.h (__GLIBC_MINOR__): Bump to 9.
379
380         [BZ #7029]
381         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
382         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
383         all the rounding.
384
385 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
386
387         [BZ #7009]
388         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
389         unknown request types for now.
390
391 2008-11-11  Roland McGrath  <roland@redhat.com>
392
393         * sysdeps/x86_64/configure: New file.
394
395         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
396         * configure: Regenerated.
397
398 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
399
400         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
401         correct instruction to remove the stack frame.
402
403 2008-11-03  Michael Matz  <matz@suse.de>
404
405         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
406         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
407
408 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
409
410         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
411         Remove.
412
413         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
414         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
415         of the thread variable instead of void *.
416         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
417         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
418         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
419         __libc_tsd_define arguments.
420         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
421         __libc_tsd_address arguments.  Remove union hack.
422         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
423         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
424         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
425         Adjust __libc_tsd_{set,get} arguments.
426         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
427         __libc_tsd_define arguments.
428         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
429         arguments.
430         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
431         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
432         (LOCALE): Adjust __libc_tsd_define arguments.
433         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
434         arguments.
435         (LOCALE): Adjust __libc_tsd_define arguments.
436         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
437         arguments.
438         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
439         arguments.
440
441 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
442
443         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
444         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
445
446 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
447
448         [BZ #6966]
449         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
450
451 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
452             Ulrich Drepper  <drepper@redhat.com>
453
454         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
455         definition for GCC 3.1 and later.
456
457 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
458
459         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
460         refetch dtv, as it might have changed.
461         * elf/Makefile: Add rules to build and run tst-tls18.
462         * elf/tst-tls18.c: New test.
463         * elf/tst-tlsmod18a.c: New file.
464
465 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
466
467         [BZ #6875]
468         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
469
470 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
471
472         [BZ #6867]
473         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
474
475         [BZ #6919]
476         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
477         Fix length of copy operation.
478
479 2008-10-02  Pierre Habouzit <madcoder@debian.org>
480
481         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
482         and fix its calling convention.
483
484 2008-10-07  Andreas Schwab  <schwab@suse.de>
485
486         [BZ #6942]
487         * resolv/res_send.c (send_vc): Fix last change.
488         (send_dg): Align here as well.
489
490 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
491
492         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
493         return value in case rlimit is RLIM_INFINITY.
494
495         [BZ #6947]
496         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
497         for UL_SETFSIZE.
498         * resource/Makefile (tests): Add bug-ulimit1.
499         * resource/bug-ulimit1.c: New file.
500
501         [BZ #6974]
502         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
503         without dot.  Properly terminate the string with a null byte.
504         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
505
506         [BZ #6980]
507         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
508         negative sizees.
509         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
510         negative __size.
511
512         [BZ #6995]
513         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
514
515 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
516
517         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
518         abort if there is no initgroups_dyn function.
519
520         * resolv/res_send.c (send_dg): On timeout, only return nonzero
521         result if any of the queries really provided an answer.
522
523 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
524
525         * po/lt.po: Update from translation team.
526
527 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
528
529         * po/id.po: Update from translation team.
530
531 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
532
533         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
534         Fix tests for existence of second reply.
535
536 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
537
538         * po/id.po: New file.
539         Contributed by the Indonesian translation team.
540
541 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
542
543         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
544         initialization.
545
546 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
547
548         * elf/Makefile: Add rules to build and run tst-tls17.
549         * elf/tst-tls17.c: New test.
550         * elf/tst-tlsmod17a.c: New file.
551         * elf/tst-tlsmod17b.c: Likewise.
552
553 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
554
555         * stdlib/divmod_1.c: Use correct type for dummy variable.
556         * stdlib/mod_1.c: Likewise.
557
558 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
559
560         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
561
562 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
563
564         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
565         __nonnull order for C++.
566         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
567         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
568
569 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
570
571         * stdlib/longlong.h: Update from GCC.
572
573 2008-10-09  Jakub Jelinek <jakub@redhat.com>
574             David S. Miller  <davem@davemloft.net>
575
576         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
577         make sure any registers used with 64-bit 'branch-on-register'
578         instructions have their top 32-bits clear.
579         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
580         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
581
582 2008-09-18  Andreas Schwab  <schwab@suse.de>
583
584         [BZ #6942]
585         * resolv/res_send.c (send_vc): Fix use of unaligned address.
586         Properly handle partial reads.
587
588 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
589
590         * elf/elf.h (STO_MIPS_PLT): New.
591         (R_MIPS_COPY): New.
592         (R_MIPS_JUMP_SLOT): New.
593         (R_MIPS_NUM): Redefine to 128.
594         (DT_MIPS_PLTGOT): New.
595         (DT_MIPS_RWPLT): New.
596         (DT_MIPS_NUM): Redefine to 0x35.
597
598 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
599
600         * timezone/africa: Update from tzdata2008f.
601         * timezone/asia: Likewise.
602         * timezone/australasia: Likewise.
603         * timezone/europe: Likewise.
604         * timezone/leapseconds: Likewise.
605         * timezone/northamerica: Likewise.
606         * timezone/southamerica: Likewise.
607         * timezone/zone.tab: Likewise.
608
609 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
610
611         * nscd/connections.c: Disable use of paccept for now.
612
613 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
614
615         * socket/Versions: Remove paccept export for GLIBC_2.9.
616         * socket/Makefile (routines): Remove paccept.
617         * socket/sys/socket.h: Remove paccept declaration.
618
619         * po/sv.po: Update from translation team.
620
621 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
622
623         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
624         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
625
626 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
627
628         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
629         Patch by Olivier Fourdan <ofourdan@redhat.com>.
630
631 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
632
633         * sunrpc/rpc/svc.h: Declare svcfd_create.
634         Patch by Michael Solberg <msolberg@redhat.com>.
635
636 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
637             Ulrich Drepper  <drepper@redhat.com>
638
639         * malloc/malloc.c (public_vALLOc): Try other arenas in case
640         _int_valloc fails.
641         (public_pVALLOc): Likewise.
642
643 2008-09-02  Andreas Jaeger  <aj@suse.de>
644
645         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
646         commit.
647
648 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
649
650         [BZ #6860]
651         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
652
653 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
654
655         * Makefile (check-data): Check data directory in add-ons.
656         * elf/Makefile (check-data): Likewise.
657
658 2008-08-18  Roland McGrath  <roland@redhat.com>
659
660         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
661         * configure: Regenerated.
662         * config.make.in (cflags-cpu): New substituted variable.
663         (with-cpu): Variable removed.
664         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
665
666 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
667
668         [BZ #6845]
669         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
670         __signbitl definition and __LONG_DOUBLE_128__ guard from:
671         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
672         redundant.  Functions which call floating point assembler operations
673         should go into a sysdeps powerpc/fpu directory.
674
675 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
676
677         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
678         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
679
680 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
681
682         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
683
684         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
685         change related to AT_EXECFN.  We cannot use that string.
686         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
687         _dl_execfn member.
688         * elf/dl-support.c: Remove _dl_execfn variable.
689         (_dl_aux_init): Remove handling of AT_EXECFN.
690         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
691         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
692
693 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
694
695         [BZ #6544]
696         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
697         byte gets added to writes and seeks from the end use the length of
698         the buffer and not the currently terminating NUL byte.
699
700         [BZ #6634]
701         * login/utmp_file.c (getutent_r_file): Take additional parameter.
702         Set to true if locking failed.
703         (getutid_r_file): Adjust caller.
704         (pututline_file): Likewise.  Return NULL in this case.
705         Patch mostly by halesh.s@gmail.com.
706
707 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
708
709         [BZ #6589]
710         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
711         Define.
712         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
713
714 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
715
716         [BZ #6839]
717         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
718         macro since it is now available in elf/dynamic-link.h.
719
720 2008-08-12  Roland McGrath  <roland@frob.com>
721
722         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
723         in case used outside of libc.
724         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
725
726 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
727
728         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
729         directly instead of going through dn_comp.
730
731 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
732
733         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
734         Fix asm constraints.
735
736 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
737
738         [BZ #6790]
739         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
740         (IPV6_PMTUDISC_PROBE): Likewise.
741
742 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
743
744         [BZ #6791]
745         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
746
747 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
748             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
749
750         [BZ #6817]
751         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
752         Added the members 'vsx' and 'arch_2_06'.
753         (_dl_powerpc_platforms): Add the member 'power7'.
754         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
755         to reflect the changes required by VSX and ISA 2.06.
756         Modify _DL_PLATFORMS_COUNT to reflect the addition of
757         'power7'.
758         Defined PPC_PLATFORM_POWER7.
759         (_dl_string_platform): Add support for POWER7.
760         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
761         capability and ISA 2.06.
762
763 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
764
765         [BZ #6824]
766         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
767         macro to detect use of 128 bit long double.
768         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
769
770 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
771
772         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
773
774         [BZ #5794]
775         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
776         parameters.
777         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
778         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
779
780 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
781
782         * nscd/connections.c (main_loop_poll): Pass a buffer which is
783         guaranteed to be large enough to read inotify event.  Ignore
784         EAGAIN error.  Better error message.  Add branch predicition.
785         (main_loop_epoll): Likewise.
786
787 2008-08-02  Roland McGrath  <roland@frob.com>
788
789         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
790         Add memory clobbers.
791
792 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
793
794         * manual/arith.texi: Avoid @strong{Note:}.
795         * manual/creature.texi: Likewise.
796         * manual/filesys.texi: Likewise.
797         * manual/math.texi: Likewise.
798         * manual/memory.texi: Likewise.
799         * manual/resource.texi: Likewise.
800         * manual/syslog.texi: Likewise.
801         * manual/time.texi: Likewise.
802
803         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
804         to prevent warning.
805
806 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
807
808         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
809         new epoll_create1 interface.
810         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
811         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
812         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
813
814         * include/arpa/nameser.h (NS_GET16): Use const pointer.
815         (NS_GET32): Likewise.
816
817         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
818         syscalls, too.
819
820         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
821         use the AT_EXECFN value if it is no absolute path.
822         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
823         __ASSUME_AT_EXECFN.
824
825         * Versions.def: Add GLIBC_2.9 to libresolv.
826         * include/resolv.h: Remove hidden proto declarations for __ns_*
827         functions.  Add them for __dn_count_labels and __p_secstodate.
828         * include/arpa/nameser.h: Add a number of hidden proto declarations.
829         Define ns_msg_getflags macro here.
830         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
831         and __p_secstodate.
832         * resolv/Versions: Export functions from <arpa/nameser.h> from
833         libresolv in version GLIBC_2.9.
834         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
835         hidden definitions.
836         * resolv/ns_netint.c: Likewise.
837         * resolv/ns_parse.c: Likewise.
838         * resolv/ns_print.c: Likewise.
839         * resolv/ns_samedomain.c: Likewise.
840         * resolv/ns_ttl.c: Likewise.
841         * resolv/arpa/nameser_compat.h: Likewise.
842         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
843         function calls.
844         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
845         instead of ns_get16.
846         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
847         __ns_get32 instead of ns_get16 and ns_get32 respectively.
848         (gaih_getanswer_slice): Likewise.
849         * resolv/Makefile (libresolv-routines): Add ns_date.
850         * resolv/ns_date.c: New file.
851
852         * elf/Makefile (check-localplt.out): Also check libresolv and
853         libcrypt.
854
855 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
856
857         * sysdeps/unix/sysv/linux/kernel-features.h: Define
858         __ASSUME_O_CLOEXEC.
859
860 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
861
862         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
863         buffer passed to NSS functions.
864
865         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
866
867         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
868         Define.
869
870         * misc/syslog.c (openlog_internal): Fix compile problem.
871
872 2008-07-28  Roland McGrath  <roland@redhat.com>
873
874         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
875
876 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
877
878         * io/ftw.c (add_object): Remove inline to avoid warning.
879
880         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
881
882         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
883         Use it instead of locally defined resplen2 variable.
884         (res_nsend): Adjust for __libc_res_nsend interface change.
885         (send_vc): Initialize *resplen2 if necessary.  Read length of
886         package into an appropriately aligned variable.  Store converted length
887         in new variable and use it appropriately.
888         Add branch prediction help.
889         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
890         and pass it on to __libc_res_nsend.  Adjust all callers.
891         (__libc_res_nsearch): Likewise.
892         (__libc_res_nqeurydomain): Likewise.
893         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
894         change.
895         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
896         Define resplen2 variable and pass it to __libc_res_nsearch and then
897         to gaih_getanswer.
898         (getanswer_r): In case of incorrect DNS data don't overread buffer.
899         Add branch prediction.
900         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
901         (gaih_getanswer): Don't decode second slice if first one failed due
902         to a too small buffer.  Don't let not found status of second
903         decoder shadow results of the first.
904         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
905         and __libc_res_nquery interface changes
906         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
907         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
908         __libc_res_nsearch, and __libc_res_nsend.
909         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
910         change.
911         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
912         __libc_res_nsearch interface changes.
913
914 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
915
916         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
917
918         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
919         file descriptors with close-on-exec set.
920         (exec_comm_child): Fix the case where the write end of the pipe is
921         STDOUT_FILENO already.  In case it is, clear close-on-exec.
922
923         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
924         * io/pipe2.c: Likewise.
925         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
926         instead of __ASSUME_PACCEPT.
927         * include/unistd.h: Declare __have_pipe2.
928         * libio/iopopen.c: Implement "e" flag.
929         * libio/Makefile (tests): Add tst-popen1.
930         * libio/tst-popen1.c: New file.
931
932         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
933         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
934
935 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
936
937         [BZ #6771]
938         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
939         success call of _IO_SEEKOFF or calls which failed because the
940         descriptor is for a pipe.
941
942         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
943         magic number.
944
945         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
946
947         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
948         F_SETFD use if we know fopen set the flag.
949
950         * login/utmp_file.c (setutent_file): Minor optimization in case
951         O_CLOEXEC is available.
952
953 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
954
955         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
956         * elf/Makefile: Use pie-ccflag variable.
957         * nscd/Makefile: Likewise.
958         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
959
960 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
961
962         [BZ #6724]
963         * Versions.def: Add GLIBC_2.9 version tag for libutil.
964         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
965         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
966         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
967         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
968         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
969         utmp32, utmpx32 and login32.
970         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
971         versions of struct utmp functions to libc and libutil.
972         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
973         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
974         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
975         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
976         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
977         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
978         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
979         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
980         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
981         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
982         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
983         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
984         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
985         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
986         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
987         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
988         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
989         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
990         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
991         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
992         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
993         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
994
995 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
996
997         * scripts/gen-as-const.awk: Generate more widely usable code by
998         using 64-bit arithmetic.
999
1000         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
1001         the same treatment as narrow output code in last patch.
1002
1003         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
1004
1005         [BZ #6763]
1006         * elf/dl-load.c (local_strdup): Remove inline.
1007         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
1008         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
1009         part of the object.
1010
1011         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
1012
1013 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
1014
1015         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
1016         the new syscalls, too.
1017
1018         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
1019         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
1020
1021         [BZ #6698]
1022         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
1023         parameter for end of buffer.  If temporary copy is too large use
1024         malloc.
1025         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
1026         interface change.
1027         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
1028         string rewrite when allocating buffer.
1029
1030         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
1031         syscalls, too.
1032
1033         * nscd/connections.c (nscd_init): Clean up fcntl call.
1034
1035         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
1036         SOCK_NONBLOCK if possible.
1037
1038         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
1039         SOCK_CLOEXEC if available.
1040
1041         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
1042         __libc_clntudp_bufcreate_internal.
1043         * include/sys/socket.h: Declare __have_sock_cloexec.
1044         * socket/Makefile (aux): Add have_sock_cloexec.
1045         * socket/have_sock_cloexec.c: New file.
1046         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
1047         __libc_clntudp_bufcreate.
1048         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
1049         which takes an additional parameter.  Create socket with non-blocking
1050         mode and close-on-exec flag set, if wanted.
1051         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
1052         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
1053         instead of clntudp_create.  The socket has already the close-on-exec
1054         flag set if SOCK_CLOEXEC is defined.
1055
1056 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
1057
1058         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1059         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
1060         appropriate.
1061         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
1062         non-blocking mode by using socket, paccept, and inotify_init1.
1063
1064         * Versions.def (glibc): Add GLIBC_2.9.
1065         * io/Makefile (routines): Add dup3 and pipe2.
1066         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
1067         * io/dup3.c: New file.
1068         * io/pipe2.c: New file.
1069         * posix/unistd.h: Declare dup3 and pipe2.
1070         * socket/Makefile (routines): Add paccept.
1071         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
1072         * socket/paccept.c: New file.
1073         * socket/sys/socket.h: Declare paccept.
1074         * sysdeps/unix/syscalls.list: Add entry for dup3.
1075         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
1076         epoll_create2 and inotify_init1.
1077         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
1078         * sysdeps/unix/sysv/linux/paccept.c: New file.
1079         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
1080         possible.
1081         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
1082         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
1083         inotify_init1, and pipe2 entries.
1084         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
1085         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
1086         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
1087         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
1088         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
1089         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
1090         SOCK_NONBLOCK.
1091         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
1092         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
1093         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
1094         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
1095         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
1096         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
1097         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
1098         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
1099         EPOLL_NONBLOCK.  Declare epoll_create2.
1100         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
1101         EFD_NONBLOCK.
1102         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
1103         IN_NONBLOCK.  Declare inotify_init1.
1104         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
1105         SFD_NONBLOCK.
1106         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
1107         TFD_NONBLOCK.
1108
1109         * elf/elf.h: Define AT_EXECFN.
1110         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1111         LD_ORIGIN_PATH.
1112         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1113         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
1114         if __ASSUME_AT_EXECFN is defined.
1115         (_dl_aux_init): Handle AT_EXECFN.
1116         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1117         for 2.6.27 and up.
1118         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1119         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1120         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1121         _dl_execfn if available and avoid compatibility code if
1122         __ASSUME_AT_EXECFN is defined.
1123
1124         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1125         _dl_discover_osversion only for older kernels.
1126
1127 2008-07-22  Roland McGrath  <roland@frob.com>
1128
1129         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1130
1131 2008-07-21  Roland McGrath  <roland@frob.com>
1132
1133         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1134         returned too much data out of line.
1135
1136 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
1137
1138         * locale/setlocale.c (setname): Remove inline to avoid compiler
1139         warning.
1140
1141         [BZ #6712]
1142         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1143
1144 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
1145
1146         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1147         doesn't manage to write anything, fail.
1148
1149         * malloc/hooks.c (__malloc_check_init): Remove printf.
1150
1151 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1152
1153         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1154
1155 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
1156
1157         * nscd/connections.c (main_loop_poll): Fix handling of read errors
1158         from inotify.
1159         (main_loop_epoll): Likewise.
1160
1161 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
1162
1163         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1164
1165         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1166         if DEBUG is defined.
1167
1168         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1169         query.  Adjust buffer size computation for padding.
1170
1171 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
1172
1173         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1174         * stdio-common/tst-setvbuf1.c: New file.
1175         * stdio-common/tst-setvbuf1.expect: New file.
1176
1177         [BZ #6719]
1178         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1179         when selecting fully-buffered stream.
1180         Patch by Wang Xin <wxinee@gmail.com>.
1181
1182 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1183
1184         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1185         (__open_2): New function.
1186         (__open64_2): New alias to __open_2.
1187         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1188         (__openat_2): New function.
1189         (__openat64_2): New alias to __openat_2.
1190
1191 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
1192
1193         [BZ #6723]
1194         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1195
1196 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1197
1198         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1199         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1200         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1201         __hurd_dfail.
1202         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1203         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1204         * sysdeps/mach/hurd/send.c (__send): Likewise.
1205         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1206         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1207
1208 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1209
1210         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1211         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1212         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1213         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1214         * hurd/get-host.c (_hurd_get_host_config): Likewise.
1215         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1216
1217 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
1218
1219         [BZ #6657]
1220         * time/strptime_l.c: Don't clear s.era_cnt after successful match
1221         of %EY.
1222         Patch by Petr Baudis.
1223
1224 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
1225
1226         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
1227         Patch by Peter Jones <pjones@redhat.com>.
1228
1229 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1230
1231         [BZ #6654]
1232         * stdlib/canonicalize.c (__realpath): readlink can write too much
1233         into the buffer on platforms without PATH_MAX.
1234
1235 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
1236
1237         [BZ #6653]
1238         * posix/tst-regex.c (main): Rename to...
1239         (do_test): ... this. Remove cmdline option processing.
1240         (TIMEOUT): Define.
1241         (TEST_FUNCTION): Define.
1242         (CMDLINE_OPTIONS): Define.
1243
1244 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1245
1246         [BZ #5210]
1247         * configure.in: Add -Werror to -fstack-protector test to catch
1248         unsupported architectures.
1249         Patch by Gilles Esponasse <g.esp@free.fr>.
1250
1251 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
1252
1253         * stdlib/tst-setcontext.c: Set back_in_main before exit if
1254         getcontext returns ENOSYS.
1255
1256 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
1257
1258         * nscd/connections.c (main_loop_poll): Fix test for read error.
1259         (main_loop_epoll): Likewise.
1260
1261 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
1262
1263         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1264         better place so it is not called when nscd is used.
1265
1266         * nscd/connections.c: Also recognize and handle changes to the
1267         resolver configuration file.
1268
1269 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1270
1271         * time/strftime.c: Pass reference to tzset_called around to handle
1272         recursive calls.
1273
1274         [BZ #6612]
1275         * time/strftime.c (__strftime_internal): Call tzset() only
1276         when printing timezone-dependent values.
1277         Based on a patch by Petr Baudis <pasky@suse.cz>.
1278
1279         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1280         unconditionally use second gaih_getanswer_slice result.
1281
1282         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1283         (getaddrinfo): RES must always be non-NULL.
1284
1285 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1286
1287         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1288         cr[34] registers.
1289         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1290         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1291         Likewise.
1292         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1293         register.
1294
1295 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1296
1297         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1298         fields.
1299         * nscd/connections.c (inotify_fd): New variable.
1300         (nscd_init): Try to open an inotify descriptor.
1301         If successful, watch files for databases using inotify instead of
1302         having prune threads stat the files.
1303         (nscd_run_prune): Recognize clear_cache flag being set and call
1304         prune_cache appropriately.
1305         (main_loop_poll): Add inotify descriptor to wait set and handle the
1306         reported changes.
1307         (main_loop_epoll): Likewise.
1308         * nscd/cache.c (prune_cache): Don't stat files for databases if
1309         inotify is used.
1310         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1311         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1312
1313         * nscd/grpcache.c (cache_addgr): Correctly compute size of
1314         fixed-size portion of the record.
1315         * nscd/servicescache.c (cache_addserv): Likewise.
1316         * nscd/pwdcache.c (cache_addpw): Likewise.
1317         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1318
1319 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
1320
1321         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1322         out we don't use uninitialized memory.
1323
1324         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1325         the client.
1326
1327 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
1328
1329         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1330         ignore T_DNAME messages.
1331         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1332
1333 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
1334
1335         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1336         Avoid segfault if first GETC returns eof/'\0'/'\n'.
1337
1338 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
1339
1340         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1341         instead of portstr to nscd_getserv_r.  Patch by
1342         Roman Kagan <rkagan@mail.ru>.
1343
1344 2008-05-26  Jim Meyering  <meyering@redhat.com>
1345
1346         Remove more useless "if" tests before "free".
1347         * include/inline-hashtab.h (htab_delete): Likewise.
1348         * libio/freopen.c (freopen): Likewise.
1349         * libio/freopen64.c (freopen64): Likewise.
1350         * locale/programs/ld-collate.c (collate_read): Likewise.
1351         * misc/fstab.c (libc_freeres_fn): Likewise.
1352         * posix/glob.c (globfree): Likewise.
1353
1354 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1355
1356         * string/Makefile (strop-tests): Add memmem.
1357         * string/test-memmem.c: New file.
1358         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1359         (test_init): Size buf1 according to BUF1PAGES.
1360
1361 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
1362
1363         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1364         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1365         (CFLAGS-scanf17.c): New.
1366         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1367         * stdio-common/scanf15.c (main): Likewise.
1368         * stdio-common/scanf16.c: New file.
1369         * stdio-common/scanf17.c: New file.
1370
1371 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1372
1373         * resolv/res_send.c (send_dg): If we already have one of two
1374         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
1375         use the one answer insted of failing.
1376
1377 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
1378
1379         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1380         being executed on PowerPC as the expected result exceeds IBM
1381         long double 128 __LDBL_MAX__.
1382
1383 2008-05-21  Roland McGrath  <roland@redhat.com>
1384
1385         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1386
1387         * Makefile (check-data): Use $(abi-name) before other guesses.
1388         Look in $(add-ons) dirs before scripts/data/.
1389         * elf/Makefile (check-data): Likewise.
1390
1391         * scripts/soversions.awk: Grok ABI line.
1392         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1393         Emit definition for abi-name variable.
1394
1395 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
1396
1397         * string/endian.h: Define new fixed-size hto* and *toh macros only
1398         if [__USE_BSD].
1399
1400         * iconvdata/Depend: Add localedata.
1401
1402 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1403
1404         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1405
1406 2008-05-08  David S. Miller  <davem@davemloft.net>
1407
1408         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1409         HIDDEN_JUMPTARGET.
1410         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1411         (__SYSCALL_CLOBBERS): Remove %g* registers.
1412         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1413         (__SYSCALL_CLOBBERS): Likewise.
1414         * scripts/data/localplt-sparc-linux-gnu.data: New file.
1415         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
1416
1417 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
1418
1419         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1420         (CALL_ERRNO_LOCATION): Define.
1421         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1422         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1423         (CALL_ERRNO_LOCATION): Define.
1424         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1425         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1426         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1427
1428 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
1429
1430         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1431         variable.
1432
1433 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
1434
1435         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1436         (FIRST_FRAME_POINTER): Define.
1437
1438 2008-05-09  David S. Miller  <davem@davemloft.net>
1439
1440         * sysdeps/sparc/sparc64/backtrace.c: New file.
1441
1442 2008-05-14  David S. Miller  <davem@davemloft.net>
1443
1444         * sysdeps/sparc/machine-gmon.h: New file.
1445         * sysdeps/sparc/sparc-mcount.S: Likewise.
1446         * sysdeps/sparc/Makefile: Add sparc-mcount target to
1447         sysdep_routines in gmon directory.
1448
1449 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
1450
1451         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1452
1453 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
1454
1455         * resolv/res_query.c (__libc_res_nquery): In case one of two
1456         answer was too short don't try to read that answer's header.
1457
1458         * resolv/res_send.c (send_dg): In case of timeout and there are
1459         two queries and one has been answered, return value indicating
1460         success.
1461
1462 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
1463
1464         * nscd/cache.c (cache_add): Take additional parameter specifying
1465         whether this is in response of a cache refill.  Check alignment
1466         of package data.  Revamp waking of pruning thread.
1467         (prune_cache): Small optimization.
1468         * nscd/nscd.h: Adjust cache_add prototypes.
1469         * nscd/aicache.c: Adjust cache_add calls.
1470         * nscd/grpcache.c: Likewise.
1471         * nscd/hstcache.c: Likewise.
1472         * nscd/initgrcache.c: Likewise.
1473         * nscd/pwdcache.c: Likewise.
1474         * nscd/servicescache.c: Likewise.
1475         * nscd/connections.c (restart): Really disable cache use before
1476         exec attempt.  If it fails, reenable cache.
1477         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
1478         time to max to be able to notice concurrent cache additions.  Unlock
1479         prune_lock while performing gc.  Afterwards compute wakeup time with
1480         current wakeup_time value in mind.
1481
1482 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
1483
1484         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
1485
1486         * nscd/mem.c (gc): Correctly determine highest used array element
1487         in mark.
1488
1489         * nscd/mem.c (markrange): Add assert to check entries are all
1490         aligned.  Small cleanup in bitmap use.
1491
1492         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
1493         blockoff of type nscd_ssize_t.
1494         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
1495         (mempoll_alloc): Record block offset and not address.
1496
1497         * nscd/mem.c (gc): Fix test for stack overuse.
1498
1499         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
1500         more asserts.
1501
1502         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1503         entry is available, believe it.
1504
1505         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1506         no answers return NSS_STATUS_NOTFOUND.
1507         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1508         buffer does not have any content.
1509
1510 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
1511
1512         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1513
1514         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1515         lookup, don't assign canon unconditionally.
1516
1517 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1518
1519         * string/Makefile (distribute): Add str-two-way.h.
1520
1521 2008-03-29  Eric Blake  <ebb9@byu.net>
1522
1523         Rewrite string searches to O(n) rather than O(n^2).
1524         * string/str-two-way.h: New file.  For linear fixed-allocation
1525         string searching.
1526         * string/memmem.c: New implementation.
1527         * string/strstr.c: New implementation.
1528         * string/strcasestr.c: New implementation.
1529
1530 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
1531
1532         * posix/regcomp.c (optimize_utf8): Add a note on why we test
1533         opr.ctx_type.
1534         (calc_first): Initialize constraint field.
1535         (duplicate_node_closure): Use it instead of special casing ANCHORS.
1536         Use search_duplicated_node to avoid loops.  Fix grammar.
1537         (duplicate_node): Merge constraint field for all node types.
1538         (calc_eclosure_iter): Look at constraint field for all node types.
1539         * posix/regex_internal.c (create_cd_newstate): Don't look at
1540         create_cd_newstate.
1541
1542 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1543
1544         [BZ #6428]
1545         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
1546
1547         [BZ #6442]
1548         * string/endian.h: Add macros for fixed-size endian conversion.
1549         * bits/byteswap.h: Allow inclusion from <endian.h>.
1550         * sysdeps/i386/bits/byteswap.h: Likewise.
1551         * sysdeps/ia64/bits/byteswap.h: Likewise.
1552         * sysdeps/s390/bits/byteswap.h: Likewise.
1553         * sysdeps/x86_64/bits/byteswap.h: Likewise.
1554         * string/Makefile (tests): Add tst-endian.
1555         * string/tst-endian.c: New file.
1556
1557         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
1558         Patch by Reuben Thomas.
1559
1560 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
1561
1562         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
1563
1564 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1565
1566         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
1567
1568         [BZ #6461]
1569         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
1570         Add missing braces.
1571         (BODY for __gconv_transform_internal_ascii): Likewise.
1572
1573         [BZ #6472]
1574         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
1575         to be treated like link-local addresses.
1576         (match_prefix): Don't treat IPv4 loopback address special when
1577         converting to v4 mapped addressed.
1578
1579         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1580         if necessary.
1581         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
1582         * posix/tst-rfc3484-2.c: Likewise.
1583         * posix/tst-rfc3484-3.c: Likewise.
1584
1585         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
1586         and SCTP.
1587
1588         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
1589
1590         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
1591
1592         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
1593
1594 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
1595
1596         * po/lt.po: New file.  From Lituanian translation team.
1597
1598 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
1599
1600         Introduce TLS descriptors for i386 and x86_64.
1601         * include/inline-hashtab.h: New file, copied from 2005's
1602         libiberty, with fix for memory leak imported afterwards by
1603         Glauber de Oliveira Costa.
1604         * elf/tlsdeschtab.h: New file.
1605         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
1606         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
1607         (CHECK_STATIC_TLS): Move to...
1608         * elf/dynamic-link.h: ... this file.
1609         (TRY_STATIC_TLS): New macro.
1610         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
1611         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
1612         R_386_TLS_DESC): Define.
1613         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
1614         binutils.
1615         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
1616         R_X86_64_TLSDESC): Define.
1617         (R_386_NUM, R_X86_64_NUM): Adjust.
1618         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
1619         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1620         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1621         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1622         release tlsdesc_table.
1623         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
1624         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
1625         (elf_machine_rel): Handle R_386_TLS_DESC.
1626         (elf_machine_rela): Likewise.
1627         (elf_machine_lazy_rel): Likewise.
1628         (elf_machine_lazy_rela): Likewise.
1629         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
1630         * sysdeps/i386/dl-tlsdesc.S: New file.
1631         * sysdeps/i386/dl-tlsdesc.h: New file.
1632         * sysdeps/i386/tlsdesc.c: New file.
1633         * sysdeps/i386/tlsdesc.sym: New file.
1634         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
1635         tlsdesc_table.
1636         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
1637         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1638         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1639         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1640         release tlsdesc_table.
1641         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
1642         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
1643         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
1644         (elf_machine_rel): Handle R_X86_64_TLSDESC.
1645         (elf_machine_rela): Likewise.
1646         (elf_machine_lazy_rel): Likewise.
1647         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
1648         (__tls_get_addr): Do not declare for non-shared compiles.
1649         * sysdeps/x86_64/dl-tlsdesc.S: New file.
1650         * sysdeps/x86_64/dl-tlsdesc.h: New file.
1651         * sysdeps/x86_64/tlsdesc.c: New file.
1652         * sysdeps/x86_64/tlsdesc.sym: New file.
1653         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
1654         tlsdesc_table for both 32- and 64-bit structs.
1655
1656 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1657
1658         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
1659         its own function.  This reduces the frame setup costs and more.
1660
1661 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
1662
1663         [BZ #3406]
1664         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
1665         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
1666
1667 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1668
1669         * io/openat.c (__openat_2): Also pass fd to __openat.
1670         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
1671         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
1672
1673         * string/tester.c (test_memcmp): Add a few more tests.
1674         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
1675
1676 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1677
1678         * nscd/cache.c (cache_add): Before returning with failure and this
1679         is the first use of the record, mark it as unusable.
1680         * nscd/aicache.c: Don't touch the dataset after cache_add returns
1681         reporting a failure.
1682         * nscd/grpcache.c: Likewise
1683         * nscd/hstcache.c: Likewise.
1684         * nscd/initgrcache.c: Likewise.
1685         * nscd/pwdcache.c: Likewise.
1686         * nscd/servicescache.c: Likewise.
1687
1688 2008-05-10  Roland McGrath  <roland@redhat.com>
1689
1690         [BZ #6505]
1691         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
1692
1693 2008-05-08  David S. Miller  <davem@davemloft.net>
1694
1695         * misc/truncate64.c (truncate64): Use __truncate not truncate.
1696
1697         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
1698         (__ieee754_y0l): Likewise.
1699         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1700         (__ieee754_y1l): Likewise.
1701         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
1702         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
1703         frexpl and ldexpl.  math_private.h provides them and the latter
1704         is not even used.
1705         (__log1pl): Use __frexpl.
1706
1707 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1708
1709         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
1710         prototypes.
1711         * include/arpa/nameser_compat.h: Define T_UNSPEC.
1712         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
1713         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
1714         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
1715         af==AF_UNSPEC.
1716         (_nss_nis_gethostbyname4_r): New function.
1717         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1718         Change to also handle af==AF_UNSPEC.
1719         (get_tablename): New function.  Use it to avoid duplication.
1720         (_nss_nisplus_gethostbyname4_r): New function.
1721         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
1722         available.
1723         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
1724         * nss/nss.h: Define struct gaih_addrtuple.
1725         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
1726         af==AF_UNSPEC.
1727         (_nss_files_gethostbyname4_r): New function.
1728         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
1729         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
1730         calls.
1731         * resolv/res_query.c (__libc_res_nquery): Take two additional
1732         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
1733         look up IPv4 and IPv6.
1734         Change all callers.
1735         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
1736         for an additional query and answer buffer.  Pass to send_vc and
1737         send_dg.
1738         (send_vc): Send possibly two requests and receive two answers.
1739         (send_dg): Likewise.
1740         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
1741         __libc_res_nquery.
1742         (_nss_dns_gethostbyname4_r): New function.
1743         (gaih_getanswer_slice): Likewise.
1744         (gaih_getanswer): Likewise.
1745         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
1746         __libc_res_nquery call.
1747         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
1748         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
1749         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
1750         available.
1751
1752 2008-05-05  David S. Miller  <davem@davemloft.net>
1753
1754         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
1755         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
1756
1757 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1758
1759         Fix termios bit macros.
1760         Move *DLY definitions where they belong, in termios.h.
1761         Add *[0-3] definitions.
1762         Fixes confusion between VT and FF.
1763         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
1764         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
1765         are already defined to avoid collision with termios.h.
1766         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
1767         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
1768         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
1769         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
1770         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
1771         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
1772         VTDLY, VT0, VT1): New macros.
1773         [__USE_GNU] (OLCUC): Change value of macro.
1774         [__USE_XOPEN] (OFILL): New macro.
1775         [__USE_BSD] (CRTSCTS): Change value.
1776         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
1777         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
1778         (B7200, B14400, B28800, B76800): New macros.
1779
1780 2008-05-01  David S. Miller  <davem@davemloft.net>
1781
1782         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
1783         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
1784         (gen-as-const-headers): Add it.
1785         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
1786         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
1787         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
1788         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
1789
1790         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
1791         six system call parameters.
1792         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
1793
1794 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
1795
1796         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
1797         RUSAGE_LWP.
1798         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1799         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1800
1801 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
1802
1803         * stdlib/tst-setcontext.c: Include unistd.h.
1804
1805 2008-04-25  David S. Miller  <davem@davemloft.net>
1806
1807         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
1808         Pass "union semun" properly in to sys_ipc, it must be passed
1809         by value, not by reference.
1810
1811 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
1812
1813         * nscd/Makefile (nscd-cflags): Set back to -fpie.
1814         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
1815         * nscd/connections.c (mem_in_flight): Likewise.
1816
1817         * nscd/nscd.h (dbs): Make hidden.
1818
1819         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
1820         Avoid returning -1, return 0 instead.
1821
1822 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
1823
1824         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
1825
1826 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
1827
1828         [BZ #5209]
1829         * sysdeps/unix/sysv/linux/times.c: New file.
1830
1831         [BZ #5381]
1832         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
1833         mem_in_flight_list variables.  Add new parameter to mempool_alloc
1834         prototype.
1835         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
1836         appropriate mem_in_flight element.
1837         (gc): Take allocations which have not yet been committed to the
1838         database into account.
1839         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
1840         Reset mem_in_flight before returning.
1841         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
1842         cue it up in mem_in_flight_list.
1843         * nscd/aicache.c: Adjust mempool_alloc call.
1844         * nscd/grpcache.c: Likewise.
1845         * nscd/hstcache.c: Likewise.
1846         * nscd/initgrcache.c: Likewise.
1847         * nscd/pwdcache.c: Likewise.
1848         * nscd/servicescache.c: Likewise.
1849         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
1850         of -fpie.
1851
1852         * nscd/connections.c (handle_request): Provide better error message
1853         in case SELinux forbids the service.
1854
1855         * version.h (VERSION): Bump to 2.8.90.
1856
1857 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
1858
1859         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
1860
1861 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
1862
1863         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
1864         Also use for 32-bit.
1865         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
1866         __nextafter instead of nextafter to avoid local PLT.
1867         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
1868         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1869
1870         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
1871
1872         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
1873         __fe_nomask_env.
1874         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
1875         <fenv_libc.h> instead of <fenv.h>.
1876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
1877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
1878
1879         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
1880
1881         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
1882         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
1883         function from fegetexcept and make old name weak alias.
1884         * include/fenv.h: Declare __fegetexcept.
1885         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
1886         fegetexcept.
1887         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
1888         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
1889         to fetestexcept.
1890         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
1891         instead of frexpl to avoid local PLT.
1892         * math/s_significandl.c (__significandl): Use __ilogbl instead of
1893         ilogbl to avoid local PLT.
1894         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
1895         instead of ldexpl to avoid local PLT.
1896         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
1897         __roundl not roundl to avoid local PLT.
1898         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
1899         local PLTs.  Use __sincosl instead of separate sinl and cosl
1900         calls.
1901         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1902
1903         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
1904         version for ppc64 to 2.4.21 since without it makecontext will fail.
1905
1906         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
1907         to the ABI in use.
1908         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
1909         .__tls_get_addr.
1910         [__powerpc64__] (TLS_GD): Likewise.
1911
1912 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
1913
1914         [BZ #4997]
1915         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
1916         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
1917         mantissa.
1918         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1919         Likewise.  Also account for when x is an odd number between 2^52
1920         and 2^53-1.
1921         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
1922         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1923         * math/libm-test.inc (lround_test, llround_test): Added test cases to
1924         detect aforementioned erroneous conditions.
1925
1926 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
1927
1928         * configure.in: Check for -fno-section-anchors in addition to
1929         -fno-toplevel-reorder.
1930
1931 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
1932
1933         * include/features.h (__GLIBC_MINOR__): Bump to 8.
1934
1935         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
1936         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
1937         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
1938         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
1939         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
1940         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
1941
1942 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
1943
1944         [BZ #5443]
1945         * time/era.c: Transform __libc_setlocale_lock into rwlock.
1946         * time/alt_digit.c: Likewise.
1947         * wcsmbs/wcsmbsload.c: Likewise.
1948
1949 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
1950
1951         * version.h (VERSION): Bump to 2.8.
1952
1953         * timzeone/asia: Update from tzdata2008b.
1954         * timezone/backward: Likewise.
1955         * timezone/europe: Likewise.
1956         * timezone/northamerica: Likewise.
1957         * timezone/southamerica: Likewise.
1958         * timezone/iso3166.tab: Likewise.
1959         * timezone/leapseconds: Likewise.
1960         * timezone/zone.tab: Likewise.
1961         * timezone/private.h: Update from tzcode2008a.
1962         * timezone/zdump.c: Likewise.
1963         * timezone/zic.c: Likewise.
1964
1965 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
1966
1967         [BZ #5741]
1968         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
1969         Define additonal Data Cache Block instruction macros.
1970         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
1971         Replace dcbst with dcbf and sync with sync/isync.
1972
1973 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
1974
1975         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
1976         Always set ELF_RTYPE_CLASS_PLT.
1977         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
1978
1979 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
1980
1981         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
1982         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
1983         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
1984         For ISA 2.01 and later replace mftb with mfspr 268.
1985
1986 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
1987
1988         [BZ #5768]
1989         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
1990         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
1991
1992 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
1993
1994         [BZ #5768]
1995         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
1996         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
1997         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
1998         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
1999
2000 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
2001
2002         * stdlib/tst-makecontext.c (othervar): New variable.
2003         (cf): Test sign extending the argument to long.
2004
2005 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
2006
2007         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
2008         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
2009         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
2010         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
2011         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
2012         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
2013         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
2014
2015 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
2016
2017         * elf/Makefile (tests): Substitute tests-vis-yes here.
2018         (tests-vis-yes): Delete.
2019         (modules-name, modules-vis-yes): Similarly.
2020
2021 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
2022
2023         [BZ #4407]
2024         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
2025         Preserve sign in signgamp when x is zero.
2026
2027 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
2028
2029         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
2030         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
2031         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
2032         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
2033         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
2034         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
2035
2036 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2037
2038         [BZ #4314]
2039         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
2040         buffers.
2041
2042         [BZ #5209]
2043         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
2044         a reserved error value.
2045
2046         * stdlib/tst-makecontext.c: Change parameter to cf to negative
2047         value to check for correct sign extension.
2048
2049         [BZ #5436]
2050         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2051         Copy 64-bit parameter values even though this is not required in
2052         the standard.
2053
2054         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
2055         PC save.
2056
2057 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
2058
2059         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
2060         PC save.
2061
2062 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
2063
2064         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
2065
2066 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2067
2068         [BZ #5998]
2069         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
2070         in line-buffered stream failed.
2071         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2072
2073 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
2074
2075         [BZ #6024]
2076         * scripts/abi-versions.awk: If the version specified by
2077         --enable-oldest-abi is older than the first version for this
2078         architecture, use the default version.
2079
2080         * locale/programs/ld-collate.c (collate_read): Ignore script lines
2081         as well when ignoring the whole category.
2082
2083 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2084
2085         [BZ #6042]
2086         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
2087         ETHERTYPE_* definitions.
2088         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
2089
2090 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2091
2092         * stdlib/mbtowc.c (__no_r_state): Remove.
2093         (mbtowc): New static state variable.  Use it instead of
2094         __no_r_state.
2095         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
2096         (__wctomb_state): New hidden variable.
2097         (wctomb): Use __wctomb_state instead of __no_r_state.
2098         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
2099         (__wctomb_state): New extern decl.
2100         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
2101
2102 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2103
2104         [BZ #5475]
2105         * resolv/res_init.c: Handle scope IDs in resolv.conf.
2106
2107 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2108
2109         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2110
2111 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
2112
2113         * po/nl.po: Update from translation team.
2114
2115 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
2116
2117         [BZ #6007]
2118         * string/strfry.c: Handle empty strings again.
2119
2120 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2121
2122         [BZ #5443]
2123         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2124         before looking for translation.
2125         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2126         * locale/freelocale.c: Likewise.
2127         * locale/newlocale.c: Likewise.
2128         * locale/setlocale.c: Likewise.
2129         Based partially on a patch by ryo@np.css.fujitsu.com.
2130
2131 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
2132
2133         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2134         acquiring wrlock.  Do conv_tab allocation while holding lock.
2135         * intl/Makefile: Add rules to build and run tst-gettext6.
2136         * intl/tst-gettext6.c: New test.
2137         * intl/tst-gettext6.sh: New file.
2138
2139 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2140
2141         * po/nl.po: Update from translation team.
2142
2143         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2144         provided through st_blksize, try the default size before giving up.
2145
2146 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
2147
2148         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2149
2150         [BZ #5939]
2151         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2152
2153         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2154         error message.  POSIX today does not require the messages to be in
2155         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
2156
2157         [BZ #5979]
2158         * sunrpc/auth_unix.c: Unify printed strings.
2159         * sunrpc/clnt_tcp.c: Likewise.
2160         * sunrpc/clnt_udp.c: Likewise.
2161         * sunrpc/clnt_unix.c: Likewise.
2162         * sunrpc/svc_tcp.c: Likewise.
2163         * sunrpc/svc_udp.c: Likewise.
2164         * sunrpc/svc_unix.c: Likewise.
2165         * sunrpc/xdr.c: Likewise.
2166         * sunrpc/xdr_array.c: Likewise.
2167         * sunrpc/xdr_rec.c: Likewise.
2168         * sunrpc/xdr_ref.c: Likewise.
2169         * locale/programs/ld-time.c (time_finish): Unify messages.
2170         * locale/programs/locfile.c (handle_copy): Fix typo.
2171         * nscd/nscd.c (options): Fix typo.
2172
2173         [BZ #5995]
2174         * stdlib/strtod_l.c: Use correct sign for result in one more
2175         underflow case.
2176         Patch by Eric Blake <ebb9@byu.net>.
2177
2178 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
2179
2180         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2181         and creat system calls.
2182         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2183         call.
2184         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2185         system calls.
2186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2187         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2188         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2189
2190 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
2191
2192         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2193         <linux/limits.h> has defined it.
2194         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2195         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2196         headers.
2197         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2198         it instead of ARG_MAX.
2199
2200 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
2201
2202         * posix/gai.conf: Fix comment for scope nullbits.
2203         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2204         default to 128 bits for v4 mapped addresses.
2205
2206 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2207
2208         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2209         ptrace call to get the ieee_instruction_pointer from the kernel.
2210         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2211         ptrace call to set the ieee_instructtion_pointer.
2212         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2213         Add comment that ieee_instruction_pointer is always 0.
2214
2215 2008-03-09  Andreas Jaeger  <aj@suse.de>
2216
2217         [BZ #5857]
2218         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2219         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2220         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2221
2222         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2223         (rint_test): Likewise.
2224
2225 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
2226
2227         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2228         call.
2229         (__nisfind_server): Similar for open readColdStartFile call.
2230         Patch partially by Jim Meyering.
2231         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2232         around internal_setent call.
2233
2234         * po/vi.po: New Vietnamese translation.
2235
2236         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2237         ADJ_OFFSET_SS_READ.
2238
2239         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2240         remove CLONE_STOPPED.
2241
2242 2008-02-10  Jim Meyering  <meyering@redhat.com>
2243
2244         Remove useless "if" before "free":
2245         * elf/ldconfig.c (parse_conf_include): Likewise.
2246         * gmon/gmon.c (weak_alias): Likewise.
2247         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2248         * inet/rcmd.c (__validuser2_sa): Likewise.
2249         * intl/bindtextdom.c (set_binding_values): Likewise.
2250         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2251         * libio/genops.c (save_for_backup): Likewise.
2252         * libio/wgenops.c (save_for_wbackup): Likewise.
2253         * locale/programs/ld-collate.c (collate_read): Likewise.
2254         * locale/programs/linereader.c (get_string): Likewise.
2255         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2256         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2257         * resolv/res_debug.c (do_section): Likewise.
2258         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2259         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2260         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2261         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2262         * time/tzset.c (tzset_internal): Likewise.
2263
2264 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2265
2266         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2267         of ASSEMBLER.
2268
2269 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
2270
2271         [BZ #5903]
2272         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2273         not stream for output file.  Open output file here.
2274         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2275         and output file name.
2276         (process_fd): Likewise.
2277         (process_file): Likewise.
2278         (main): Adjust callers of changed functions.
2279         * iconv/iconv_prog.h: Adjust prototype.
2280
2281 2008-03-09  Andreas Jaeger  <aj@suse.de>
2282
2283         [BZ #5753]
2284         * sysdeps/ia64/ieee754.h: Use protected namespace
2285         __BIG_ENDIAN/__LITTLE_ENDIAN.
2286         * sysdeps/ieee754/ieee754.h: Likewise.
2287         Patch by Aurelien Jarno <aurelien@aurel32.net>.
2288
2289 2008-03-08  Roland McGrath  <roland@frob.com>
2290
2291         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2292         ignore a signal that came from a machine exception, treat it as a
2293         fatal core-dump signal instead.
2294         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2295
2296         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2297         Clear DF bit in thread state's eflags.
2298         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2299
2300 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
2301
2302         [BZ #5774]
2303         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
2304         of NAN(...) sequence.
2305         * stdlib/Makefile (tests): Add tst-strtod6.
2306         * stdlib/tst-strtod6.c: New file.
2307
2308         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2309
2310         [BZ #5762]
2311         * posix/getopt.c (_getopt_internal_r): Clarify error message by
2312         putting offending option character in quotes.  Clean up error
2313         messages.
2314         * po/be.po: Adjust msgstr in translation file.
2315         * po/bg.po: Likewise.
2316         * po/ca.po: Likewise.
2317         * po/cs.po: Likewise.
2318         * po/da.po: Likewise.
2319         * po/de.po: Likewise.
2320         * po/es.po: Likewise.
2321         * po/fr.po: Likewise.
2322         * po/hr.po: Likewise.
2323         * po/ko.po: Likewise.
2324         * po/nl.po: Likewise.
2325         * po/rw.po: Likewise.
2326         * po/sk.po: Likewise.
2327         * po/sv.po: Likewise.
2328         * po/tr.po: Likewise.
2329         * po/zh_CN.po: Likewise.
2330         * po/zh_TW.po: Likewise.
2331
2332         [BZ #5760]
2333         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2334         Patch by Roland Bless <roland@bless.de>.
2335
2336         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2337         .o file.
2338         * elf/Makefile (routines): Add dl-sysdep.
2339         (elide-routines.os): Likewise.
2340
2341 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
2342
2343         [BZ #5786]
2344         * elf/dl-sysdep.c: Undefine ROUND after use.
2345         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2346         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2347         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2348         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2349         to ...
2350         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2351         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2352         if necessary.
2353         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2354
2355         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2356         _dl_tls_get_addr_soft element.
2357         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2358         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2359         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2360         GLRO.
2361         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2362         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2363         of internal_function.
2364
2365         * stdlib/Makefile (aux): Add tens_in_limb.
2366         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2367         * stdlib/tens_in_limb.c: ...here.  New file.
2368
2369         [BZ #5778]
2370         * sysdeps/unix/sysv/linux/pathconf.h: Declare
2371         __statfs_chown_restricted.
2372         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2373         for _PC_CHOWN_RESTRICTED.
2374         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2375         Implement __statfs_chown_restricted.
2376         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2377         _POSIX_CHOWN_RESTRICTED value to zero.
2378         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2379         defined to zero.
2380
2381         * sysdeps/x86_64/rtld-memset.c: New file.
2382
2383 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
2384
2385         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2386
2387         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2388         Barcelona machine.  Make default fall through branch of
2389         __x86_64_preferred_memory_instruction check as the integer code path.
2390
2391 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2392
2393         * sysdeps/x86_64/cacheinfo.c
2394         (__x86_64_preferred_memory_instruction): New variable.
2395         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2396
2397         * sysdeps/x86_64/memset.S: Rewrite.
2398
2399 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
2400
2401         * include/stdio.h (__asprintf_chk, __dprintf_chk,
2402         __obstack_printf_chk): New prototypes.
2403         (__vasprintf_chk, __vdprintf_chk,
2404         __obstack_vprintf_chk): Likewise.
2405         Add libc_hidden_proto.
2406         * libio/obprintf.c
2407         (_IO_obstack_jumps): No longer static, add attribute_hidden.
2408         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2409         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2410         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2411         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2412         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2413         __obstack_vprintf_chk): New prototypes.
2414         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2415         obstack_vprintf): New inlines.
2416         * debug/dprintf_chk.c: New file.
2417         * debug/vdprintf_chk.c: New file.
2418         * debug/asprintf_chk.c: New file.
2419         * debug/vasprintf_chk.c: New file.
2420         * debug/obprintf_chk.c: New file.
2421         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2422         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2423         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2424         @@GLIBC_2.8.
2425         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2426         vdprintf_chk and obprintf_chk, set CFLAGS for them.
2427         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2428         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2429         libc_hidden_proto.
2430         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2431         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2432         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2433         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2434         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2435         @@GLIBC_2.8.
2436         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2437         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2438         obstack_vprintf_chk.
2439         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2440         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2441         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2442         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2443         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2444         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2445
2446 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
2447
2448         [BZ #5779]
2449         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2450         Patch by Roy Marples <roy@marples.name>.
2451
2452         [BZ #5736]
2453         * malloc/malloc.c: Fix typo in comment.
2454
2455         [BZ #5627]
2456         * locale/iso-639.def: Add Shuswap.
2457
2458 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
2459
2460         [BZ #5790]
2461         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2462         overwrite *h_errnop/*errnop values from getanswer_r in case of
2463         failure.
2464
2465 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
2466
2467         [BZ #5818]
2468         * nscd/connections.c (dbs): Add initializers for .suggested_module.
2469         (verify_persistent_db): Remove one unnecessary test and add a new one
2470         for bad configuration.
2471         (nscd_init): Improve error reported when persistent database cannot
2472         be reused.
2473         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
2474         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
2475         .suggested_module and .max_db_size and case config file says the
2476         values are zero.
2477         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
2478
2479         [BZ #5854]
2480         * nis/ypclnt.c (yp_order): Fix handling of return value of
2481         do_ypcall_tr call.
2482         Patch by Jeff Moyer <jmoyer@redhat.com>.
2483
2484         * po/fr.po: Update from translation team.
2485
2486 2008-02-22  Andreas Jaeger  <aj@suse.de>,
2487             Carlos O'Donell <carlos@systemhalted.org>
2488
2489         [BZ #5012]
2490         * FAQ.in: Describe why glibc needs to be compiled with
2491         optimization.
2492
2493 2008-02-19  Roland McGrath  <roland@redhat.com>
2494
2495         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
2496
2497 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
2498
2499         [BZ #5737]
2500         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
2501         __USE_MISC is defined.
2502
2503 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
2504
2505         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2506         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2507         sys/timerfd.h.
2508         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2509         timerfd_gettime, timerfd_settime.
2510         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2511         timerfd_gettime, timerfd_settime for GLIBC_2.8.
2512
2513 2008-02-08  Roland McGrath  <roland@redhat.com>
2514
2515         * elf/elf.h (NT_PPC_SPE): New macro.
2516
2517 2008-02-06  Roland McGrath  <roland@redhat.com>
2518
2519         * Makerules ($(common-objpfx)sysd-rules):
2520         Depend on $(sysdep-makeconfigs).
2521
2522 2008-01-31  Roland McGrath  <roland@redhat.com>
2523
2524         [BZ #5442]
2525         * configure.in: Use -print-file-name if it yields a directory,
2526         for each of include and include-fixed.
2527         * configure: Regenerated.
2528
2529         * Makeconfig (sysd-rules-targets): New variable.
2530         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2531         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2532
2533 2008-01-30  Roland McGrath  <roland@redhat.com>
2534
2535         * manual/libc.texinfo: Update back-cover text.
2536
2537         * elf/elf.h (NT_386_TLS): New macro.
2538
2539 2008-01-29  Roland McGrath  <roland@redhat.com>
2540
2541         * Makeconfig (sysd-rules-patterns): New variable.
2542         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
2543         (check-inhibit-asm): New canned sequence, replaces ...
2544         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
2545         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
2546         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
2547         (CFLAGS-rtld): Variable removed.
2548
2549 2008-01-24  Roland McGrath  <roland@redhat.com>
2550
2551         * configure.in: Let configure fragments set base_os.
2552         * configure: Regenerated.
2553
2554 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
2555
2556         * po/ko.po: Update from translation team.
2557
2558 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
2559
2560         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
2561
2562 2008-01-12  Andreas Jaeger  <aj@suse.de>
2563
2564         [BZ #5040]
2565         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
2566         Add EPOLLRDHUP.
2567
2568 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2569
2570         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
2571         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
2572         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
2573
2574 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
2575
2576         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
2577         * elf/dl-close.c (_dl_close): Check for it.
2578         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
2579         (_dl_allocate_static_tls): Likewise.
2580         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2581         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
2582         to it.
2583         * elf/tst-tls16.c: New file.
2584         * elf/tst-tlsmod16a.c: New file.
2585         * elf/tst-tlsmod16b.c: New file.
2586         * elf/Makefile: Add rules to build and run tst-tls16.
2587
2588 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
2589
2590         [BZ #5628]
2591         * bits/shm.h: Fix comment describing shmid_ds.
2592         * sysdeps/gnu/bits/shm.h: Likewise.
2593         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2594         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2595         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2596         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2597         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2598         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2599         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2600         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2601         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
2602
2603         [BZ #5607]
2604         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
2605         prototypes.
2606         * conform/data/limits.h-data: Adjust limits changed in v6 and add
2607         additional suffixes.
2608         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
2609         Add optional functions mq_timedreceive and mq_timedsend.
2610         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
2611         * conform/data/pthread.h-data: Fix prototype of
2612         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
2613         * conform/data/semaphore.h-data: Allow time.h definitions.
2614         * conform/data/signal.h-data: Likewise.
2615         * conform/data/stdio.h-data: getw and putw are not required in v6.
2616         * conform/data/stdlib.h-data: Change setstate prototype.
2617         * conform/data/string.h-data: Fix strerror_r prototype.
2618         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
2619         * conform/data/unistd.h-data: pthread_atfork not required in v6.
2620         Fix readlink prototype.
2621         * conform/data/netinet/in.h-data: Add const to in6addr_any and
2622         in6addr_loopback.
2623         * inet/netinet/in.h: Cleanup namespace.
2624         * posix/regex.h: Likewise.
2625         * resolv/netdb.h: Likewise.
2626         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
2627         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2628         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2629         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
2630         of names of in in6_addr.
2631         (default_precedence): Likewise.
2632         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
2633         NULL definition.
2634
2635 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
2636
2637         * conform/data/fmtmsg.h-data: Add missing allows.
2638         * conform/data/ftw.h-data: Likewise.
2639         * conform/data/inttypes.h-data: Likewise.
2640         * conform/data/math.h-data: Likewise.
2641         * conform/data/signal.h-data: Likewise.
2642         * conform/data/net/if.h-data: Likewise.
2643         * conform/data/netinet/in.h-data: Likewise.
2644         * conform/data/sys/socket.h-data: Likewise.
2645
2646         [BZ #5614]
2647         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
2648         (__strtok_r): Simplify.
2649         * string/tester.c (test_strtok_r): Add test case for futile search
2650         with single-character seach string.
2651
2652 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
2653
2654         * po/ko.po: Update from translation team.
2655
2656 2008-01-11  Andreas Jaeger  <aj@suse.de>
2657
2658         [BZ #5600]
2659         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
2660         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
2661         kernel header.
2662
2663 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
2664
2665         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
2666         native interface lookup in all the relevant places.
2667
2668 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
2669             Ulrich Drepper  <drepper@redhat.com>
2670
2671         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
2672         field.  Use sockaddr_in6 for source_addr.
2673         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
2674         (match_prefix): Likewise.
2675         (get_label): Likewise.
2676         (get_precedence): Likewise.
2677         (rfc3484_sort): Change to use indirect access to results array.
2678         Adjust to use of sockaddr_in6.  Replace service_order test with
2679         simple index comparison.
2680         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
2681         service_order field.  Adjust qsort_t calls.  Access sorted result
2682         array indirectly through order array.
2683         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
2684         * posix/tst-rfc3484-2.c: Likewise.
2685         * posix/tst-rfc3484-3.c: Likewise.
2686
2687 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
2688
2689         [BZ #5541]
2690         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
2691         pollfd structures.
2692         Patch by AndrĂ© Cruz.
2693
2694         [BZ #5545]
2695         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
2696         (clnt_spcreateerror): Likewise.
2697
2698         [BZ #5553]
2699         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
2700         (public_mEMALIGn): Likewise.
2701         Patch mostly by Daniel Jacobowitz.
2702
2703 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
2704
2705         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
2706         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
2707         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
2708         * stdlib/tst-makecontext2.c: New test.
2709
2710 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
2711
2712         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
2713         defined.
2714         (REINIT_PARAMS): Likewise.  Undefine before end of file.
2715         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
2716         transliteration hooks and REINIT_PARAMS afterwards.
2717         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
2718         status.
2719         (REINIT_PARAMS): Define.
2720         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
2721         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
2722         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
2723         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
2724         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
2725         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
2726         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
2727         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
2728         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
2729         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
2730         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
2731         * iconvdata/tst-iconv7.c: New test.
2732
2733 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
2734
2735         * libio/stdio.h (vscanf): Fix definition for loser compilers.
2736
2737 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
2738
2739         [BZ #5112]
2740         * nscd/connections.c (restart): Fix condition.
2741
2742 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
2743
2744         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
2745         __ctype_toupper_loc): Add __THROW.
2746
2747 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
2748
2749         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
2750         recognition of interface family.
2751
2752         * posix/getconf.c: Update copyright year.
2753         * nss/getent.c: Likewise.
2754         * iconv/iconvconfig.c: Likewise.
2755         * iconv/iconv_prog.c: Likewise.
2756         * elf/ldconfig.c: Likewise.
2757         * catgets/gencat.c: Likewise.
2758         * csu/version.c: Likewise.
2759         * elf/ldd.bash.in: Likewise.
2760         * elf/sprof.c (print_version): Likewise.
2761         * locale/programs/locale.c: Likewise.
2762         * locale/programs/localedef.c: Likewise.
2763         * nscd/nscd.c (print_version): Likewise.
2764         * debug/xtrace.sh: Likewise.
2765         * malloc/memusage.sh: Likewise.
2766         * malloc/mtrace.pl: Likewise.
2767         * debug/catchsegv.sh: Likewise.
2768
2769 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
2770
2771         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
2772         second lookup.
2773
2774 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
2775
2776         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
2777         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2778
2779 2007-12-17  Roland McGrath  <roland@redhat.com>
2780
2781         * inet/ether_line.c (ether_line): Remove unused variable.
2782
2783 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2784
2785         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
2786         and winp.
2787         * login/openpty.c (openpty): Likewise.
2788         * login/pty.h (openpty, forkpty): Likewise.
2789         * manual/terminal.texi (openpty, forkpty): Likewise.
2790
2791 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
2792
2793         * malloc/malloc.c (public_cALLOc): For arenas other than
2794         main_arena, count all bytes inside the mprotect_size range of the
2795         heap as uninitialized.
2796
2797 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
2798
2799         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
2800         executable stacks.
2801
2802         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
2803         mTRIm for all of them.
2804         (mTRIm): Additionally iterate over all free blocks and use madvise
2805         to free memory for all those blocks which contain at least one
2806         memory page.
2807         * malloc/tst-trim1.c: New file.
2808         * malloc/Makefile (tests): Add tst-trim1.
2809
2810         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
2811
2812 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
2813
2814         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2815         First cast argument to long
2816         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
2817         Return long.
2818         (__vdso_clock_gettime): Likewise.
2819         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
2820         return long.
2821
2822 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
2823
2824         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
2825         * locale/nl_langinfo_l.c: Real implementation, copied from
2826         nl_langinfo.c.
2827         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
2828
2829 2007-12-01  Jim Meyering  <meyering@redhat.com>
2830
2831         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2832         that would inhibit utf8-optimization of a regexp containing line-
2833         or buffer-anchors, e.g., `^', `$'.
2834
2835 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
2836
2837         * time/bug-getdate1.c (do_test): Don't use century values which
2838         aren't valid on 32-bit systems.
2839
2840 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
2841
2842         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
2843         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
2844         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
2845         __strcat_g, __strncat_g): Add __asm__.
2846
2847 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
2848
2849         [BZ #5477]
2850         * io/fchmodat.c: Fix typo in stub_warning use.
2851         Patch by Petr Salinger.
2852
2853 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
2854
2855         * iconvdata/hp-thai8.c: New file.
2856         * iconvdata/Makefile: Add rules for hp-thai8.c.
2857         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
2858         * iconvdata/gconv-modules: Likewise.
2859
2860         [BZ #5464]
2861         * iconvdata/hp-greek8.c: New file.
2862         * iconvdata/Makefile: Add rules for hp-greek8.c.
2863         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
2864         * iconvdata/gconv-modules: Likewise.
2865
2866         [BZ #5463]
2867         * iconvdata/hp-turkish8.c: New file.
2868         * iconvdata/Makefile: Add rules for hp-turkish8.c.
2869         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
2870         * iconvdata/gconv-modules: Likewise.
2871
2872         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
2873         (shrink_heap): ... this new function.
2874         (heap_trim): Call shrink_heap instead of grow_heap.
2875
2876         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
2877         case don't call alloc_perturb.
2878
2879 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
2880
2881         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
2882         possible.
2883         * sysdeps/unix/sysv/linux/kernel-features.h
2884         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
2885         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
2886
2887 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
2888
2889         [BZ #5424]
2890         * stdio-common/vfprintf.c: Do not overflow when adding to done.
2891         * stdio-common/Makefile (tests): Add bug22.
2892         * stdio-common/bug22.c: New file.
2893
2894         [BZ #5451]
2895         * time/getdate.c: Fix filling in default values.
2896         * time/bug-getdate1.c: New file.
2897         * time/Makefile: Add rules to build and run bug-getdate1.
2898
2899         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
2900         * iconvdata/ebcdic-es.c: Likewise.
2901         * iconvdata/ebcdic-es-a.c: Likewise.
2902         * iconvdata/ebcdic-uk.c: Likewise.
2903         * iconvdata/iso8859-16.c: Likewise.
2904         * iconvdata/viscii.c: Likewise.
2905         * iconvdata/iso8859-9e.c: Likewise.
2906         * iconvdata/Makefile: Adjust appropriately.
2907
2908         [BZ #5428]
2909         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
2910         __need_wint_t.
2911
2912 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
2913
2914         [BZ #5427]
2915         * iconvdata/hp-roman9.c: New file.
2916         * iconvdata/Makefile: Add rules for hp-roman9.c.
2917         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
2918         * iconvdata/gconv-modules: Likewise.
2919
2920         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
2921         * iconvdata/Makefile: Adjust appropriately.
2922
2923         [BZ #5441]
2924         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
2925         structure, it's allocated with alloca.
2926         * stdio-common/Makefile (tests): Add bug21.
2927         * stdio-common/bug21.c: New file.
2928
2929 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
2930
2931         [BZ #5452]
2932         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
2933         keyword for gcc's braced-groups.
2934
2935 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
2936
2937         [BZ #5454]
2938         * inet/ether_line.c: Strip hostname of whitespaces.
2939         * inet/Makefile (tests): Add tst-ether_line.
2940         * inet/tst-ether_line.c: New file.
2941
2942 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
2943
2944         [BZ #5439]
2945         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
2946
2947         [BZ #5435]
2948         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
2949
2950         * stdlib/tst-setcontext.c: Catch the case where the links gets
2951         messed up and we do not reach main again.
2952
2953         * po/ca.po: Update from translation team.
2954
2955 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
2956
2957         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
2958         * posix/regex.h (REG_ENOSYS): Likewise.
2959         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
2960
2961 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
2962
2963         * nscd/nscd.h (MAX_STACK_USE): Define.
2964         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
2965         (gc): Initialize stack_used based on allocation in prune_cache.
2966         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
2967         Clear array before use.
2968
2969         * nscd/aicache.c (addhstaiX): Update statistics counter in case
2970         memory allocation failed.
2971         * nscd/hstcache.c (cache_addhst): Likewise.
2972         * nscd/grpcache.c (cache_addgr): Likewise.
2973         * nscd/servicescache.c (cache_addserv): Likewise.
2974         * nscd/pwdcache.c (cache_addpw): Likewise.
2975         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2976
2977 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
2978
2979         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
2980         and creat system calls.
2981
2982         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
2983
2984 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2985
2986         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
2987         Add netiucv/iucv.h.
2988         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
2989         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
2990         protocol.
2991         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
2992         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
2993         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
2994
2995 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2996
2997         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
2998         strncat): Define as macros to avoid compile errors.
2999
3000         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
3001         creat entries.
3002
3003 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
3004
3005         [BZ #5382]
3006         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
3007         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
3008         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
3009         overflow it.
3010         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3011
3012         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
3013         Return zero in case the thread library is not NPTL.
3014
3015         [BZ #5375]
3016         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
3017         initializing interface list.
3018
3019         [BZ #5378]
3020         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
3021         use result of nss_getgrgid_r if nothing was found.  For other
3022         error return with a failure.
3023         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3024
3025         * locale/programs/ld-collate.c (collate_read): Fix loop to match
3026         macro name.
3027
3028 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3029
3030         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
3031         (get_scope): For IPv4 scope, use scopes table.
3032         (fini): Free scopes table if necessary.
3033         (free_scopelist): New function.
3034         (scopecmp): New function.
3035         (gaiconf_init): Also handle scopev4 entries.
3036         * posix/tst-rfc3484.c (do_test): Initialize scopes.
3037         * posix/tst-rfc3484-2.c (do_test): Likewise.
3038         * posix/gai.conf: Document scopev4 defaults.
3039         * posix/Makefile (tests): Add tst-rfc3484-3.
3040         * posix/tst-rfc3484-3.c: New file.
3041
3042         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
3043         Teredo tunnels.
3044         * posix/gai.conf: Update for current default tables.
3045
3046 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3047
3048         * po/tr.po: Update from translation team.
3049
3050 2007-11-18  Roland McGrath  <roland@frob.com>
3051
3052         * manual/arith.texi (Remainder Functions): Spelling fix.
3053         From Shaun Silk <genix@mysoul.com.au>.
3054
3055         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
3056
3057 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
3058
3059         * po/zh_CN.po: Update from translation team.
3060
3061         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3062         Add sys/signalfd.h and sys/eventfd.h.
3063
3064 2007-11-15  Bruno Haible  <bruno@clisp.org>
3065
3066         [BZ #5346]
3067         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
3068         union.
3069         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
3070         (DCIGETTEXT): Change the allocation of the 'search' variable so that
3071         it needs only fixed stack space. Delay the initialization of
3072         msgid_len until it is needed.
3073
3074 2007-11-15  Andreas Jaeger  <aj@suse.de>
3075
3076         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
3077         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
3078
3079 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
3080
3081         * po/ko.po: Update from translation team.
3082
3083 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
3084
3085         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
3086         significantly.  The device type is also part of the ifinfomsg data.
3087
3088         * po/sv.po: Update from translation team.
3089         * po/nl.po: Likewise.
3090
3091         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
3092         to wake up in 24 hours.
3093
3094         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
3095
3096 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
3097
3098         * po/cs.po: Update from translation team.
3099         * po/pl.po: Likewise.
3100
3101         * include/ifaddrs.h: Remove in6ai_temporary.
3102         (struct in6addrinfo): Add index element.
3103         Declare __check_native.
3104         * inet/Makefile (aux): Add check_native.
3105         * sysdeps/unix/sysv/linux/check_native.c: New file.
3106         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
3107         IFA_F_TEMPORARY.  Pass back ifa_index.
3108         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3109         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
3110         call __check_native if necessary.
3111         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
3112         to sort addresses.  Pass information about the results.
3113         * posix/tst-rfc3484.c: Adjust for addition of index field and change
3114         of rfc3484_sort interface.
3115         * posix/tst-rfc3484-2.c: Likewise.
3116
3117         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
3118         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3119         for _quicksort.
3120         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3121         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
3122         on as third parameter to compare function and _quicksort.
3123         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3124         to the compare function.
3125         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3126         * Versions.def: Add GLIBC_2.8 for libc.
3127
3128         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3129         * posix/tst-rfc3484-2.c: Likewise.
3130
3131         * include/kernel-features.h: Moved to...
3132         * sysdeps/mach/hurd/kernel-features.h: ...here.
3133
3134 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3135
3136         * sysdeps/i386/i586/memcpy_chk.S: New file.
3137         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3138         * sysdeps/i386/i586/memset_chk.S: Likewise.
3139
3140 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
3141
3142         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3143         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3144         list of interfaces.  Also store prefix length.
3145         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3146         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3147         prefix if source and destination address are in the same subnet.
3148         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
3149         Always look for matching record in in6ai list.
3150         Correct source_addr_len value for IPv6->IPv4 converted records.
3151
3152 2007-11-11  Roland McGrath  <roland@frob.com>
3153
3154         * include/kernel-features.h: New file.
3155
3156 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
3157
3158         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3159         complications for 64-bit platforms.
3160
3161         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3162         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
3163         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3164         open64_2.
3165         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3166         entries.
3167         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3168         * sysdeps/wordsize-64/alphasort.c: New file.
3169         * sysdeps/wordsize-64/alphasort64.c: New file.
3170         * sysdeps/wordsize-64/fseeko.c: New file.
3171         * sysdeps/wordsize-64/fseeko64.c: New file.
3172         * sysdeps/wordsize-64/ftello.c: New file.
3173         * sysdeps/wordsize-64/ftello64.c: New file.
3174         * sysdeps/wordsize-64/ftw.c: New file.
3175         * sysdeps/wordsize-64/ftw64.c: New file.
3176         * sysdeps/wordsize-64/iofgetpos.c: New file.
3177         * sysdeps/wordsize-64/iofgetpos64.c: New file.
3178         * sysdeps/wordsize-64/iofopen.c: New file.
3179         * sysdeps/wordsize-64/iofopen64.c: New file.
3180         * sysdeps/wordsize-64/iofsetpos.c: New file.
3181         * sysdeps/wordsize-64/iofsetpos64.c: New file.
3182         * sysdeps/wordsize-64/lockf.c: New file.
3183         * sysdeps/wordsize-64/lockf64.c: New file.
3184         * sysdeps/wordsize-64/mkostemp.c: New file.
3185         * sysdeps/wordsize-64/mkostemp64.c: New file.
3186         * sysdeps/wordsize-64/mkstemp.c: New file.
3187         * sysdeps/wordsize-64/mkstemp64.c: New file.
3188         * sysdeps/wordsize-64/scandir.c: New file.
3189         * sysdeps/wordsize-64/scandir64.c: New file.
3190         * sysdeps/wordsize-64/tmpfile.c: New file.
3191         * sysdeps/wordsize-64/tmpfile64.c: New file.
3192         * sysdeps/wordsize-64/versionsort.c: New file.
3193         * sysdeps/wordsize-64/versionsort64.c: New file.
3194         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3195         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3196         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3197         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3198         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3199         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3200         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3201         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3202         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3203         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3204         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3205         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3206
3207         * crypt/sha256-crypt.c: Fix a comment.
3208         * crypt/sha512-crypt.c: Likewise.
3209
3210 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
3211
3212         * sysdeps/x86_64/memset.S: Add sfence after movnti.
3213
3214 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
3215
3216         [BZ #5277]
3217         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3218         because output buffer is too small break, don't loop.
3219         * iconvdata/Makefile (tests): Add bug-iconv6.
3220         * iconvdata/bug-iconv6.c: New file.
3221
3222 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
3223
3224         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3225         with size_t type.
3226         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3227         size_t.  Add casts where needed.
3228
3229         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3230         old headers, don't call avc_has_perm if we don't have the
3231         permission information.
3232
3233 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
3234
3235         * elf/rtld.c (dl_main): Use the page size to find the map start.
3236
3237 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
3238
3239         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3240         Patch by Szymon Siwek <sls@poczta.wp.pl>.
3241
3242         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3243         when the lookup call failed.
3244
3245         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3246         Add prune_cond and wakeup_time.
3247         (CACHE_PRUNE_INTERNAL): Define.
3248         Update declarations of prune_cache and setup_thread.
3249         * nscd/connections.c (dbs): Update initializers.
3250         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3251         (nscd_init): Default number of threads is now 4.
3252         (invalidate_cache): Take lock before calling prune_cache.
3253         (handle_request): If SELinux forbids the request, say so.
3254         (readylist_cond): Use static initializer.
3255         (nscd_run_prune): New function.  Used only by pruning threads.
3256         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
3257         here.
3258         (fd_ready): Update nscd_run reference.
3259         (start_threads): No need to initialize readylist_cond.
3260         Start pruning threads separately.
3261         * nscd/nscd_setup_thread.c: Change return value type to int and always
3262         return 0.
3263         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3264         to int and return nonzero value if we can use the TID address hack.
3265         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3266         the database is later than the new entry's timeout, update the
3267         wakeup time and wake the cleanup thread.
3268         (prune_cache): Return seconds the next entry in the database is still
3269         valid.  Remove locking for pruning here.
3270         * nscd/nscd.conf: Document default number of threads.
3271
3272 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
3273
3274         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3275         stack is properly aligned for the target function.
3276         Correct unwind info.
3277
3278         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3279         when using auditing libraries.
3280
3281 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
3282
3283         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3284         _nss_dns_getnetbyaddr2_r.
3285         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
3286         extra parameter to getanswer_r.
3287         (_nss_dns_getnetbyaddr_r): Now a wrapper around
3288         _nss_dns_getnetbyaddr2_r.
3289
3290         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3291         gethstbynm3_r.
3292         * nscd/gethstbynm2_r.c: Remove.
3293         * nscd/gethstbynm3_r.c: New file.
3294         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3295         __gethostbyaddr_r.
3296         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
3297         __gethostbyaddr_r compatibility wrapper.
3298         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
3299         determining timeout of entry.
3300         (lookup): Take new parameter and pass it to __gethostbyname3_r and
3301         __gethostbyaddr2_r.
3302         (addhstbyX): Pass reference to variable for TTL to lookup and
3303         cache_addhst.
3304         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3305         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3306         and __nss_next2.  Remove __nss_services_lookup.
3307         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
3308         Add compat wrapper.
3309         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3310         __nss_next2.
3311         * nss/getXXent_r.c: Likewise.
3312         * nss/getnssent_r.c: Likewise.
3313         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
3314         does not exist in module, try the optional second name.
3315         (__nss_next2): New function.
3316         (__nss_next): Now wrapper around __nss_next2.
3317         * nss/nsswitch.h: Adjust __nss_lookup prototype.
3318         Declare __nss_next2.
3319         Adjust definition of db_lookup_function type.
3320         * nss/service-lookup.c: Define NO_COMPAT.
3321         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3322         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3323         * inet/ether_ntoh.c: Likewise.
3324         * sunrpc/netname.c: Likewise.
3325         * sunrpc/publickey.c: Likewise.
3326         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
3327         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3328         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3329         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3330         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3331
3332         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3333
3334         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
3335
3336 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
3337
3338         [BZ #5204]
3339         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3340         * crypt/sha512c-test.c: Likewise.
3341
3342         [BZ #5225]
3343         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3344         to keep track of end of %[ format string element.
3345         * stdio-common/Makefile (tests): Add bug20.
3346         * stdio-common/bug20.c: New file.
3347
3348         [BZ #5222]
3349         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3350         path elements in counting mode.
3351
3352 2007-10-27  Andreas Jaeger  <aj@suse.de>
3353
3354         [BZ #5040]
3355         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3356
3357         [BZ #3112]
3358         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3359         (__cleanup): Free shared library when exiting.
3360         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3361         (__cleanup): Free shared library when exiting.
3362
3363 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3364
3365         [BZ #2549]
3366         * math/libm-test.inc (check_float_internal): Support
3367         denormalized return.
3368
3369 2007-10-23  Andreas Jaeger  <aj@suse.de>
3370
3371         [BZ #5208]
3372         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3373         __LONG_LONG_PAIR to handle little endian byte order.
3374         Suggested by abhishekrai@google.com
3375
3376 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
3377
3378         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3379
3380 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
3381
3382         * nscd/cache.c (prune_cache): Move test for modified file outside
3383         of locking.
3384
3385 2007-10-21  Andreas Jaeger  <aj@suse.de>
3386
3387         * manual/texinfo.tex: Update to latest version.
3388
3389         * manual/sysinfo.texi (System Parameters): Fix Formatting.
3390
3391         * manual/arith.texi (Status bit operations): Fix formatting.
3392
3393         * manual/errno.texi (Error Messages): Fix formatting.
3394
3395         * manual/sysinfo.texi (System Parameters): Fix formatting.
3396
3397         * manual/libc.texinfo: Update VERSION and UPDATED.
3398
3399 2007-10-19  Roland McGrath  <roland@redhat.com>
3400
3401         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3402
3403 2007-10-06  David S. Miller  <davem@davemloft.net>
3404
3405         * configure.in: Add sparcv9v2 and sparc64v2.
3406         * scripts/config.sub: Likewise.
3407         * configure: Regenerate.
3408         * elf/elf.h (HWCAP_SPARC_N2): New.
3409         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3410         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3411         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3412         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3413         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3414         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3415         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3416
3417 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
3418
3419         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3420         even if the poll result indicates there is data to read.
3421         Patch by Jeff Moyer <jmoyer@redhat.com>.
3422
3423 2007-10-18  Roland McGrath  <roland@redhat.com>
3424
3425         * elf/elf.h (NT_PPC_VMX): New macro.
3426
3427 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3428
3429         * version.h (VERSION): Set to 2.7.90.
3430
3431 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3432
3433         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
3434         weak_alias.
3435
3436 2007-10-17  Roland McGrath  <roland@frob.com>
3437
3438         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3439         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3440
3441 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3442
3443         * version.h (VERSION): Bump to 2.7.
3444         * include/features.h (__GLIBC_MINOR__): Bump to 7.
3445
3446         [BZ #5186]
3447         * time/tzset.c (__tz_convert): Don't force testing for a change of
3448         TZ if not called from localtime.  But then also see whether the
3449         file changed, in case __use_tzfile is set.
3450
3451         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3452         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3453         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3454         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3455         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3456         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3457         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
3458         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3459
3460 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3461
3462         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3463         and admin selects to be able to replace the gai.conf file, lock
3464         data structures around the qsort call.
3465
3466 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3467
3468         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3469         new memset.
3470         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
3471         too high for the improvements.  Implement bzero unconditionally for
3472         use in libc.
3473
3474 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3475             Jakub Jelinek  <jakub@redhat.com>
3476
3477         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
3478         even when time_t is 32-bit.
3479         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
3480         timezone data read by __tzfile_default.  Ensure __tzname[0] is
3481         always set after the search.
3482
3483 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3484
3485         * time/tzfile.c (__tzfile_read): Help the compiler recognize
3486         unreachable code on 32-bit machines.
3487
3488 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3489
3490         [BZ #5184]
3491         * time/strftime_l.c: Include stdbool.h.
3492         (my_strftime): New wrapper, old function renamed to...
3493         (__strftime_internal): ... new function.  Add tzset_called
3494         argument, pass it down to recursive calls, don't call tzset ()
3495         if already true, set to true after call to tzset ().
3496
3497 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3498
3499         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
3500         into account when copying TZ string.
3501
3502 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3503
3504         * time/tzfile.c (__tzfile_compute): For use_last case set i to
3505         num_transition rather than num_transitions - 1.
3506
3507 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3508
3509         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3510         PIC indirect jump.
3511
3512         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3513         a local label rather than HIDDEN_JUMPTARGET.
3514
3515 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3516
3517         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3518         (init_cacheinfo): Initialize it.
3519         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3520         Always define bzero.
3521         Remove non-glibc code.
3522         * sysdeps/x86_64/bzero.S: Make an empty file.
3523
3524 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3525
3526         * sysdeps/x86_64/cacheinfo.c
3527         (__x86_64_preferred_memory_instruction): New.
3528         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3529
3530         * sysdeps/x86_64/memset.S: Rewrite.
3531
3532 2007-10-15  Roland McGrath  <roland@redhat.com>
3533
3534         * po/libc.pot: Regenerated.
3535
3536 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3537
3538         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
3539         pointers.
3540
3541         [BZ #3425]
3542         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
3543         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
3544         address record to T_A/T_AAAA requests.
3545
3546 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
3547
3548         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
3549
3550         * posix/glob.c: Add some branch prediction throughout.
3551
3552         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
3553         read from nscd.
3554
3555         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
3556         service_order.
3557         (rfc3484_sort): Make sure that even if qsort doesn't support
3558         stable sorting out sorting here is stable by comparing service_order.
3559         (getaddrinfo): Initialize service_order.
3560         * posix/tst-rfc3484.c (do_test): Adjust for addition of
3561         service_order field to sorting structure.
3562         * posix/tst-rfc3484-2.c (do_test): Likewise.
3563
3564         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
3565         * time/tzset.c (tzset_internal): Break TZ string parsing out into
3566         __tzset_parse_tz and updating of daylight, timezone, tzname into
3567         update_vars.
3568         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
3569         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
3570         happens in __tz_compute.
3571         * time/tzfile.c (__tzfile_read): Also read TZ string.
3572         (find_transition): Fold into __tzfile_compute.
3573         (__tzfile_compute): For times beyond the last transition try to
3574         use the TZ string.
3575         * timezone/tst-timezone.c: Information in daylight and tzname does
3576         change for Asia/Tokyo timezone with more concrete information.
3577         Remove the test.
3578
3579         * include/stdio.h: Add libc_hidden_proto for ftello.
3580         * libio/ftello.c: Add libc_hidden_def.
3581
3582         [BZ #1140]
3583         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
3584         on the specified time and not the last entries in the file.  Move
3585         code to determine tzname[] to...
3586         (find_transition): ...here.  Add ugly guess for times before the
3587         first transition.
3588
3589 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3590
3591         [BZ #3195]
3592         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
3593         no entry.
3594         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
3595         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3596         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3597         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3598
3599         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
3600         read mechanism when there are no group members and avoid no-op
3601         read syscall in this case.
3602
3603         [BZ #3242]
3604         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
3605         (__readall): If reading failed due to EAGAIN error wait a bit
3606         and possibly try again.
3607         (__readvall): Likewise.
3608
3609 2007-10-13  Bruno Haible  <bruno@clisp.org>
3610
3611         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
3612         when we cannot recode the message.
3613
3614 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3615
3616         [BZ #4359]
3617         * libio/__freading.c (__freading): Don't return true for
3618         write-only streams.  For read/write streams, check whether we
3619         performed a read operation already.
3620         * libio/Makefile (tests): Add tst-ext2.
3621         * libio/tst-ext2.c: New file.
3622
3623 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3624
3625         * locale/programs/repertoire.c (repertoire_read): Always free
3626         memory for repertoire file name [Coverity CID 270].
3627
3628         * elf/cache.c (save_aux_cache): Free memory allocated for
3629         temporary file name [Coverity CID 267].
3630
3631 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3632
3633         * misc/Makefile (headers): Add bits/error.h.
3634
3635 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3636
3637         * posix/fnmatch_loop.c: Take rule index returned as part of
3638         findidx return value into account when accessing weights.
3639         * posix/regcomp.c: Likewise.
3640         * posix/regexec.c: Likewise.
3641
3642         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
3643         (skip_to): Fix problems with parameter of elifdef/elifndef.
3644
3645 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
3646
3647         * iconv/gconv_simple.c: Add some branch prediction.
3648
3649 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3650
3651         * locale/programs/ld-collate.c (collate_read): If ignore_content
3652         and nowtok is tok_define, eat any tok_eol tokens.
3653
3654 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
3655
3656         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
3657         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
3658
3659         * inet/netinet/in.h: Don't include bits/socket.h.
3660         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
3661         macro.
3662         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3663
3664 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
3665
3666         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
3667         and tok_elifndef.
3668         * locale/programs/locfile-kw.gperf: Likewise.
3669         * locale/programs/ld-collate.c: Implement primitive preprocessor.
3670
3671 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
3672
3673         * stdio-common/printf-parse.h: Include string.h and wchar.h.
3674         (__find_specwc): Change into __extern_always_inline function.
3675         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
3676         (__parse_one_specmb): Remove ps argument.
3677         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
3678         Adjust __find_specmb and __parse_one_specmb callers.
3679         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
3680         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
3681         Removed.
3682         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
3683         caller.
3684
3685 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
3686
3687         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
3688         with some Pentium Ds.
3689
3690 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
3691
3692         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
3693         __read not read.
3694         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
3695         __write not write.
3696
3697 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
3698
3699         [BZ #181]
3700         * locale/C-time.c: Set week_1stday data to 19971201.
3701         * locale/programs/ld-time.c (time_finish): Default for
3702         first_workday is Monday.
3703
3704         [BZ #2633]
3705         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
3706
3707         [BZ #5103]
3708         * posix/glob.c (glob): Recognize patterns starting \/.
3709         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
3710         (main): Add test for pattern starting \/.
3711
3712         * misc/error.h: Use __const instead of const.
3713         * misc/bits/error.h: Likewise.
3714
3715 2007-10-07  Andreas Jaeger  <aj@suse.de>
3716
3717         * include/bits/error.h: New file.
3718
3719         * misc/bits/error.h (error_at_line): Fix prototype.
3720
3721 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
3722
3723         [BZ #3924]
3724         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
3725         more little bugs in creating the stack frame when pltexit has to
3726         be called.
3727
3728         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
3729         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
3730
3731         [BZ #4407]
3732         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
3733         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3734         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3735         * math/libm-test.inc: Add test for this case.
3736
3737         [BZ #5010]
3738         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
3739         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
3740         map service succeeded.
3741         (svc_is_mapped): New function.
3742         (svc_unregister): Use it before trying to unmap service.
3743
3744 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
3745
3746         * timezone/zic.c: Update from tzcode2007h.
3747
3748         [BZ #5063]
3749         * timezone/africa: Update from tzdata2007h.
3750         * timezone/antarctica: Likewise.
3751         * timezone/asia: Likewise.
3752         * timezone/australasia: Likewise.
3753         * timezone/europe: Likewise.
3754         * timezone/leapseconds: Likewise.
3755         * timezone/northamerica: Likewise.
3756         * timezone/southamerica: Likewise.
3757         * timzeone/zone.tab: Likewise.
3758
3759         [BZ #5104]
3760         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
3761
3762         [BZ #5113]
3763         * string/bits/string2.h (__strdup): Cast parameters to calloc to
3764         avoid warning with -Wconversion.
3765         (__strndup): Likewise.
3766         Half the patch by Christian Iseli <christian.iseli@licr.org>.
3767
3768         [BZ #5112]
3769         * nscd/connections.c (restart): Don't resync if database is
3770         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
3771
3772         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
3773         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
3774
3775         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
3776         evetnfd_read, eventfd_write.
3777         * sysdeps/unix/sysv/linux/eventfd.c: New file.
3778         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
3779         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
3780         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
3781         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
3782         eventfd_write for GLIBC_2.7.
3783
3784         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
3785         * sysdeps/unix/sysv/linux/signalfd.c: New file.
3786         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
3787         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
3788
3789 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
3790
3791         * stdlib/msort.c: Include stdint.h.
3792         (struct msort_param): New type.
3793         (msort_with_tmp): Use struct msort_param pointer for unchanging
3794         parameters.  Add optimized handling for several common sizes
3795         and indirect sorting mode.
3796         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
3797         sorting.
3798         Suggested by Belazougui Djamel .
3799
3800         * stdlib/Makefile (tests): Add tst-qsort2.
3801         * stdlib/tst-qsort2.c: New test.
3802
3803 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
3804
3805         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
3806         for dup2 in case another thread races with the current one.  Retry
3807         in this case.
3808
3809         * misc/error.h: Remove support for use outside of libc.  We have to
3810         include <features.h> now.  Include <bits/error.h> if possible.
3811         * misc/bits/error.h: New file.
3812
3813 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
3814
3815         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
3816         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
3817         __extern_always_inline functions unconditionally, drop macros.
3818
3819         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
3820         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
3821         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
3822
3823         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
3824         add __artificial__ attribute.
3825
3826 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
3827
3828         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
3829         backward to forward direction.
3830
3831         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
3832
3833         [BZ #645]
3834         * locale/programs/ld-collate.c (collate_finish): Compare against last
3835         used section which is known to have rules defined.
3836         (collate_read): After order_start, correctly record order of sections
3837         and queue sections up.
3838
3839 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
3840
3841         [BZ #5071]
3842         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
3843         the same number of pages.
3844         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
3845
3846         * locale/programs/ld-collate.c (collate_read): After initial copy
3847         statement, continue in state 0.
3848
3849         * include/stdio_ext.h (__fsetlocking): Define as macro.
3850
3851 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
3852
3853         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
3854         of section order.
3855
3856         * po/pt_BR.po: Fix typo.
3857
3858 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
3859
3860         * iconvdata/Makefile (modules): Add ISO8859-9E.
3861         (distribute): Add iso8859-9e.c.
3862         (gen-8bit-gap-modules): Add iso8859-9e.
3863         * iconvdata/iso8859-9e.c: New file.
3864         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
3865         * iconvdata/TESTS: Likewise.
3866         * iconvdata/tst-tables.sh: Likewise.
3867
3868         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3869
3870         * locale/iso-639.def: Add several new entries.
3871
3872 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
3873
3874         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
3875         void * pointers instead of struct link_map **.
3876         (_dl_scope_free): Change argument type to void *.
3877         * include/link.h (struct link_map): Change type of l_reldeps
3878         to struct link_map_reldeps, move l_reldepsact into that
3879         struct too.
3880         * elf/dl-deps.c: Include atomic.h.
3881         (_dl_map_object_deps): Only change l->l_initfini when it is
3882         fully populated, use _dl_scope_free for freeing it.  Optimize
3883         removal of libs from reldeps by using l_reserved flag, when
3884         some removal is needed, allocate a new list instead of
3885         reallocating and free the old with _dl_scope_free.  Adjust
3886         for l_reldeps and l_reldepsact changes.
3887         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
3888         searching in l_initfini and l_reldeps without holding dl_load_lock.
3889         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
3890         l_reldepsact changes.
3891         * elf/dl-close.c (_dl_close_worker): Likewise.
3892         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
3893
3894 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
3895
3896         * iconvdata/Makefile (modules): Add KOI8-RU.
3897         (distribute): Add koi8-ru.c.
3898         (gen-8bit-gap-modules): Add koi8-ru.
3899         * iconvdata/koi8-ru.c: New file.
3900         * iconvdata/gconv-modules: Add entries for KOI8-RU.
3901         * iconvdata/TESTS: Likewise.
3902         * iconvdata/tst-tables.sh: Likewise.
3903
3904         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3905
3906 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
3907
3908         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
3909         with __warning__/__error__ attributes.
3910         (__warnattr): Define.
3911         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
3912         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
3913         __warnattr.
3914         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
3915         of __*_chk if compile time detectable overflow is found.
3916         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
3917         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
3918         with __warnattr.
3919         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
3920         instead of __*_chk if compile time detectable overflow is found.
3921         (__gets_alias): Rename to...
3922         (__gets_warn): ... this.  Add __warnattr.
3923         (gets): Call __gets_warn instead of __gets_alias.
3924         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
3925         aliases with __warnattr.
3926         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
3927         time detectable overflow is found.
3928         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
3929         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
3930         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
3931         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
3932         __getdomainname_chk_warn): New aliases with __warnattr.
3933         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
3934         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
3935         __*_chk_warn instead of __*_chk if compile time detectable overflow
3936         is found.
3937         (__getgroups_chk): Rename argument to __listlen from listlen.
3938         (__getwd_alias): Rename to...
3939         (__getwd_warn): ... this.  Add __warnattr.
3940         (getwd): Call __getwd_warn instead of __getwd_alias.
3941         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
3942         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
3943         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
3944         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
3945         __wcsnrtombs_chk_warn): New aliases with __warnattr.
3946         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
3947         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
3948         compile time detectable overflow is found.
3949         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
3950         to use __*_chk or not.
3951         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
3952         in comparisons which function should be called and in __*_chk*
3953         arguments.  Call __*_chk_warn instead of __*_chk if compile time
3954         detectable overflow is found.
3955         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
3956         __*_chk argument.
3957         * debug/tst-chk1.c (do_test): Add a few more tests.
3958
3959 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
3960
3961         [BZ #5058]
3962         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
3963         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
3964         (_nl_unload_domain): Finalize conversions_lock.
3965         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
3966         handling table of known conversions.
3967
3968 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
3969
3970         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
3971         close_not_cancel_no_status instead of close.
3972
3973 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
3974
3975         [BZ #5028]
3976         * posix/regcomp.c (lookup_collation_sequence_value): Check that
3977         nrules != 0 for multibyte chars.
3978
3979 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
3980
3981         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
3982         Provide better error message in case the type is unknown.
3983
3984         [BZ #4963]
3985         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
3986         * string/stratcliff.c: Make usable to test wide char functions.
3987         * wcsmbs/wcsatcliff.c: New file.
3988         * wcsmbs/Makefiel (tests): Add wcsatcliff.
3989
3990         [BZ #4972]
3991         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
3992         (distribute): Add mac-centraleurope.c.
3993         (gen-8bit-gap-modules): Add mac-centraleurope.
3994         * iconvdata/mac-centraleurope.c: New file.
3995         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
3996         * iconvdata/TESTS: Likewise.
3997         * iconvdata/tst-tables.sh: Likewise.
3998
3999         [BZ #5043]
4000         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
4001
4002 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
4003
4004         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
4005         from __x86_64_core_cache_size_half.
4006         (init_cacheinfo): Compute shared cache size for AMD processors with
4007         shared L3 correctly.
4008         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
4009         name change.
4010         Patch in large parts by Evandro Menezes.
4011
4012 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
4013
4014         * elf/dl-lookup.c (add_dependency): Handle failing memory
4015         allocation for dependency list.  Remove unnecessary check.
4016
4017         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
4018         open/close when determining source addresses.
4019
4020         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
4021         sha512-crypt, and sha512.
4022         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
4023         (distribute): Add sha256.h and sha512.h.
4024         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
4025         and call the appropriate code.
4026         * crypt/sha256-crypt.c: New file.
4027         * crypt/sha256.c: New file.
4028         * crypt/sha256.h: New file.
4029         * crypt/sha256c-test.c: New file.
4030         * crypt/sha256test.c: New file.
4031         * crypt/sha512-crypt.c: New file.
4032         * crypt/sha512.c: New file.
4033         * crypt/sha512.h: New file.
4034         * crypt/sha512c-test.c: New file.
4035         * crypt/sha512test.c: New file.
4036
4037 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
4038
4039         * misc/bits/syslog.h (syslog): Remove extraneous argument from
4040         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
4041         __syslog_chk.
4042
4043 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
4044
4045         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
4046         %as in fscanf format strings.
4047
4048         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
4049         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4050         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
4051         Likewise.
4052         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
4053         Likewise.
4054
4055         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
4056         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
4057         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
4058         * elf/dl-sym.c (do_sym): Likewise.
4059         * include/link.h (struct link_map): Add l_serial field.
4060         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
4061         * elf/dl-lookup.c (add_dependency): Add flags argument.
4062         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
4063         flags, use THREAD_GSCOPE_RESET_FLAG before and
4064         THREAD_GSCOPE_SET_FLAG after
4065         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
4066         Don't dereference map until it has been found on some list.
4067         If map->l_serial changed, return -1.
4068
4069 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
4070
4071         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
4072         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
4073         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
4074         libc_hidden_proto.
4075         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
4076         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
4077         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
4078         add libc_hidden_proto.
4079         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4080         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4081         conformance requested.
4082         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
4083         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4084         conformance requested.
4085         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4086         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
4087         conformance requested.
4088         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
4089         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
4090         ISO C99 or POSIX conformance requested.
4091         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
4092         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
4093         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
4094         and __isoc99_vsscanf@@GLIBC_2.7.
4095         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
4096         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
4097         (tests): Add scanf14.
4098         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
4099         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
4100         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
4101         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
4102         CFLAGS-isoc99_scanf.c): Add $(exceptions).
4103         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
4104         from using internal headers.
4105         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
4106         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
4107         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4108         and __isoc99_vswscanf@@GLIBC_2.7.
4109         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4110         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4111         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4112         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4113         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4114         * stdio-common/isoc99_scanf.c: New file.
4115         * stdio-common/isoc99_vsscanf.c: New file.
4116         * stdio-common/isoc99_vscanf.c: New file.
4117         * stdio-common/isoc99_vfscanf.c: New file.
4118         * stdio-common/isoc99_fscanf.c: New file.
4119         * stdio-common/isoc99_sscanf.c: New file.
4120         * wcsmbs/isoc99_fwscanf.c: New file.
4121         * wcsmbs/isoc99_vswscanf.c: New file.
4122         * wcsmbs/isoc99_swscanf.c: New file.
4123         * wcsmbs/isoc99_wscanf.c: New file.
4124         * wcsmbs/isoc99_vwscanf.c: New file.
4125         * wcsmbs/isoc99_vfwscanf.c: New file.
4126         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4127         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4128         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4129         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4130         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4131         * stdio-common/scanf14.c: New test.
4132         * stdio-common/scanf15.c: New test.
4133         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4134         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4135         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4136         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4137         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4138         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4139         __nldbl___isoc99_scanf@@GLIBC_2.7,
4140         __nldbl___isoc99_fscanf@@GLIBC_2.7,
4141         __nldbl___isoc99_sscanf@@GLIBC_2.7,
4142         __nldbl___isoc99_vscanf@@GLIBC_2.7,
4143         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4144         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4145         __nldbl___isoc99_wscanf@@GLIBC_2.7,
4146         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4147         __nldbl___isoc99_swscanf@@GLIBC_2.7,
4148         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4149         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4150         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4151         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4152         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4153         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4154         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4155         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4156         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4157         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4158         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4159         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4160         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4161         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4162         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4163         functions.
4164         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4165         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4166         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4167         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4168         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4169         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4170         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4171         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4172         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4173         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4174         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4175         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4176
4177         * stdio-common/Makefile (tests): Add scanf13.
4178         (scanf13-ENV): New.
4179         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4180         m modifier followed by l.
4181         (STRING_ARG): Add width argument.
4182         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4183         <case L_('C')>: Handle %mlc and %mC.
4184         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4185         arguments.
4186         * stdio-common/scanf13.c: New test.
4187
4188         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4189         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4190
4191 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
4192
4193         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
4194         type and __THROW marker of splice, vmsplice, and tee.
4195         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4196         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4197         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4198         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4199         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4200         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4201         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4202         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4203         as cancellation points.
4204
4205 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
4206
4207         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4208         parse more than three parts of the version number.
4209
4210 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
4211
4212         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4213         modifier.  Patch by Jakub Jelinek.
4214
4215 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
4216
4217         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4218         call_fallocate in misc subdir.
4219         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4220         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4221         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4222         instead of __fallocate64.
4223         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4224
4225 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
4226
4227         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4228         * rt/Makefile (headers): Add bits/mqueue2.h.
4229         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4230         optimizing with GCC and __va_arg_pack_len is defined.
4231         * rt/bits/mqueue2.h: New file.
4232         * rt/mq_open.c (__mq_open): Renamed from mq_open.
4233         (mq_open): New strong_alias.
4234         (__mq_open_2): New function.
4235         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4236         (mq_open): New strong_alias.
4237         (__mq_open_2): New function.
4238         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4239         * Versions.def (librt): Add GLIBC_2.7 version.
4240         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4241         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4242
4243         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4244         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4245         is defined rather than when not C++.
4246         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4247         __openat64_alias): New redirects.
4248         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4249         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4250         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4251         (open, open64, openat, openat64): Rewrite as __extern_always_inline
4252         functions instead of function-like macros.
4253
4254 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
4255
4256         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4257         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4258         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4259
4260 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
4261
4262         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4263         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4264
4265 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
4266
4267         * inet/tst-network.c: Increment ERRORS for failing tests.
4268
4269 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
4270
4271         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4272         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4273         implement as __extern_always_inline function.
4274         (vsyslog): Define as __extern_always_inline function unconditionally.
4275         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4276         When __va_arg_pack is defined, implement as __extern_always_inline
4277         functions.
4278         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4279         __extern_always_inline functions unconditionally.
4280         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4281         bits/stdio2.h will be included.
4282         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4283         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4284         implement as __extern_always_inline functions.
4285         (vswprintf, vwprintf, vfwprintf): Define as
4286         __extern_always_inline functions unconditionally.
4287         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4288
4289 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
4290
4291         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4292         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4293         attribute.
4294         * include/features.h (__USE_EXTERN_INLINES): Define only when
4295         __extern_inline is defined.
4296         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4297         is defined instead of when not __cplusplus.
4298         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4299         is defined instead of when not __cplusplus.
4300         * socket/sys/socket.h: Include bits/socket2.h when
4301         __extern_always_inline is defined instead of when not __cplusplus.
4302         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4303         is defined instead of when not __cplusplus.
4304         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4305         is defined instead of when not __cplusplus.
4306         * string/string.h: Include bits/string3.h when __extern_always_inline
4307         is defined instead of when not __cplusplus.
4308         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4309         is defined instead of when not __cplusplus.
4310         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4311         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4312         is not defined.
4313         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4314         defined __extern_always_inline instead of !defined __cplusplus.
4315         * libio/bits/stdio-ldbl.h: Likewise.
4316         * wcsmbs/bits/wchar-ldbl.h: Likewise.
4317         * misc/bits/syslog.h (syslog): Don't define for C++.
4318         (vsyslog): Use __extern_always_inline function for C++ instead of
4319         a macro.
4320         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4321         whenever that macro is defined.
4322         (vprintf): Don't provide the inline for C++.
4323         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4324         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4325         define the macros for C++.
4326         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4327         __extern_always_inline functions for C++.
4328         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4329         stat64, lstat64, fstat64, fstatat64): Don't define if not
4330         __USE_EXTERN_INLINES.
4331         * wcsmbs/bits/wchar2.h: Fix #error message.
4332         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4333         (vswprintf, vwprintf, vfwprintf): Define using
4334         __extern_always_inline functions for C++.
4335         * string/bits/string3.h: Don't #undef macros if __cplusplus.
4336         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4337         strncpy, strcat, strncat): Define as __extern_always_inline
4338         functions instead of macros for C++.
4339         * math/bits/cmathcalls.h: Guard __extern_inline routines with
4340         defined __extern_inline.
4341         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4342         to __extern_inline whenever that macro is defined.
4343         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4344         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4345         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4346         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4347         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4348         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4349         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4350         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4351         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4352         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4353         prototypes.  Only provide __extern_inline routines if
4354         __USE_EXTERN_INLINES.
4355         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4356         tests.
4357         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4358         For now avoid some *printf tests in C++.  Skip all testing
4359         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4360         is not.
4361         * debug/tst-chk4.cc: New file.
4362         * debug/tst-chk5.cc: New file.
4363         * debug/tst-chk6.cc: New file.
4364         * debug/tst-lfschk4.cc: New file.
4365         * debug/tst-lfschk5.cc: New file.
4366         * debug/tst-lfschk6.cc: New file.
4367         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4368         prototypes in C++.
4369         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4370         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4371         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4372
4373 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
4374
4375         * po/cs.po: Update from translation team.
4376
4377 2007-09-11  Roland McGrath  <roland@redhat.com>
4378
4379         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4380         compiling.
4381
4382 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4383
4384         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4385
4386 2007-09-05  Roland McGrath  <roland@redhat.com>
4387
4388         * manual/signal.texi (Signaling Another Process): Typo fix.
4389         From Karl Berry <karl@freefriends.org>.
4390
4391 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
4392
4393         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4394         zero if not defined.
4395         (make_request): Recognize optimistic addresses and treat them like
4396         deprecated addresses.
4397         Reported by Neil Horman <nhorman@redhat.com>.
4398
4399 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
4400
4401         * nscd/connections.c (send_ro_fd): Also transfer file size.
4402         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4403         file size don't call fstat.
4404
4405         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4406         ahead and map the file.  This should always be correct and we can
4407         catch problems later.
4408
4409 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
4410
4411         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4412         prototypes.
4413         (__fread_alias, __fread_unlocked_alias): New aliases.
4414         (fread): New extern inline.
4415         (fread_unlocked): Likewise.  Undef macro before definition of
4416         the inline function.
4417         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4418         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4419         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4420         and __fread_unlocked_chk@@GLIBC_2.7.
4421         * debug/fread_chk.c: New file.
4422         * debug/fread_u_chk.c: New file.
4423         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4424
4425 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
4426
4427         * sysdeps/unix/sysv/linux/syscalls.list
4428         (personality): Change caller to EXTRA.
4429
4430 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
4431
4432         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4433         to keep gcc quiet.
4434         * iconvdata/iso-2022-cn.c (BODY): Likewise.
4435
4436         * locale/programs/ld-collate.c (collate_output): Avoid warning if
4437         NDEBUG is defined.
4438
4439         * Makerules: Use -p option with mkdir.
4440
4441         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4442         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
4443         (_xdr_directory_obj): Likewise.
4444         (xdr_entry_obj): Likewise.
4445         (xdr_group_obj): Likewise.
4446         (xdr_link_obj): Likewise.
4447         (xdr_table_obj): Likewise.
4448         (_xdr_nis_result): Likewise.
4449         (_xdr_ns_request): Likewise.
4450         (_xdr_ib_request): Likewise.
4451         (_xdr_nis_taglist): Likewise.
4452         (xdr_cback_data): Likewise.
4453         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
4454         (xdr_ypresp_maplist): Likewise.
4455
4456         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4457
4458         * posix/regex_internal.h: Prevent some declarations and definitions
4459         to be seen when used in tests.
4460
4461         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4462         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4463
4464         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4465
4466         * config.make.in (datarootdir): Add to shut up configure.
4467
4468         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4469         associativity for fully-associative caches.
4470
4471         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
4472         requests.  Fill on more associativity values for L2.
4473         Patch mostly by Evandro Menezes.
4474
4475 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
4476
4477         * sysdeps/unix/sysv/linux/x86_64/init-first.c
4478         (_libc_vdso_platform_setup): Avoid using exported variable by using
4479         alias.
4480
4481         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
4482
4483         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
4484         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
4485         defined.
4486
4487 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
4488
4489         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
4490         align stack for call if pltexit is to be used.
4491
4492         [BZ #3924]
4493         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
4494         align for function call in case pltexit has to be called later.
4495
4496         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
4497         implicit atomic operation when storing function pointer.
4498         (_dl_runtime_profile): Likewise.
4499
4500 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4501
4502         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4503         NIS_NOTFOUND.
4504
4505 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4506
4507         [BZ #4566]
4508         * string/strtok.c: Fix typo in comment.
4509
4510         [BZ #4582]
4511         * debug/segfault.c: Fix typos in comments.
4512
4513         [BZ #4588]
4514         * stdio-common/tempnam.c: Fix comment, it is not checked that
4515         TMPDIR points to a writable directory.
4516
4517         [BZ #4726]
4518         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4519         memory allocated for the name server address.
4520
4521         [BZ #4946]
4522         * nscd/connections.c (handle_request): Using sendfile always
4523         requires that mmap is used for the database.
4524         Patch by Petr Baudis <pasky@suse.cz>.
4525
4526         [BZ #4905]
4527         * nscd/hstcache.c (cache_addhst): When reloading an entry which
4528         suddenly has two or more addresses, ignore it and remove the old
4529         entry.
4530
4531         [BZ #4814]
4532         * resolv/res_hconf.c: Prepare for compiling outside libc.
4533         * nscd/res_hconf.c: New file.
4534         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
4535         the new file.
4536         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
4537         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
4538
4539         * nscd/hstcache.c (cache_addhst): Minimal optimization.
4540
4541         [BZ #4925]
4542         * debug/pcprofiledump.c: Turn on internationalization by calling
4543         setlocale.  Patch mostly by Benno Schulenberg.
4544
4545         [BZ #4936]
4546         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
4547         the state.
4548         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
4549         * iconvdata/bug-iconv5.c: New file.
4550
4551 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
4552
4553         [BZ #4896]
4554         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
4555         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
4556         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
4557         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
4558         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
4559         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
4560         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
4561         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
4562
4563 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4564
4565         [BZ #4937]
4566         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
4567         lookup loop.  Suggested by John Reiser.
4568
4569 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
4570
4571         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
4572
4573 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
4574
4575         * csu/libc-start.c: Don't handle VDSO_SETUP here.
4576         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
4577         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
4578         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
4579         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
4580         to...
4581         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
4582
4583 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
4584
4585         * po/nl.po: Update from translation team.
4586
4587 2007-08-16  Andreas Jaeger  <aj@suse.de>
4588
4589         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
4590         Reported by Peter Festner <peter.festner@ewetel.net>.
4591
4592 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4593
4594         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
4595
4596 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
4597
4598         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
4599         to check for undefined symbols.
4600
4601         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
4602         If the syscall fails, set errno to the actual returned error number
4603         rather than EINVAL.
4604         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
4605         arguments are incorrect, set errno to EINVAL, if the syscall
4606         fails, set errno to the actual returned error number.
4607
4608         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
4609         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
4610
4611         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
4612         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
4613         file.
4614         (ASI_PNF, ASI_BLK_P): Don't define.
4615         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
4616         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
4617         file.
4618         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
4619         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
4620         file.
4621
4622 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
4623
4624         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
4625         FE_UNDERFLOW on Niagara CPUs.
4626
4627         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
4628         exceptions.
4629
4630 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
4631
4632         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
4633         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
4634         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
4635         flush should be used or not inside of the function.
4636         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
4637
4638         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
4639         __thread_start): Use HIDDEN_JUMPTARGET.
4640         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
4641         __thread_start): Likewise.
4642         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
4643
4644         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
4645         Add libc_hidden_proto.
4646         (STRTOF): Add libc_hidden_proto.
4647         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
4648         (strtold_l, wcstold_l): Use them as second argument for
4649         long_double_symbol.
4650
4651 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4652
4653         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
4654
4655 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4656
4657         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
4658
4659 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4660
4661         * po/bg.po: New file.  From the translation team.
4662
4663 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4664
4665         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
4666         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
4667         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
4668         when each feature was introduced.
4669
4670         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
4671         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
4672         (CHECK_HASH): New macro.
4673         (PREPARE_VERSION): Use it.
4674
4675         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
4676         prototype if not __ASSUME_PSELECT.
4677         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
4678         prototype if not __ASSUME_PPOLL.
4679
4680         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
4681
4682         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
4683         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
4684         is defined.
4685
4686 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
4687
4688         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4689         (_libc_vdso_platform_setup): If vDSO is not available point
4690         __vdso_gettimeofday to the vsyscall.
4691         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
4692         __vdso_gettimeofday instead of vsyscall.
4693
4694 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4695
4696         * nscd/servicescache.c: Include kernel-features.h.
4697         * nscd/gai.c: Likewise.
4698         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
4699         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
4700         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
4701         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
4702         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
4703         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
4704         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
4705         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
4706         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4707
4708 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
4709
4710         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
4711         and _dl_get_origin defines anymore.
4712
4713         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
4714         Build fix for systems which might lack POSIX timer support.
4715
4716         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4717         (_libc_vdso_platform_setup): Mangle function pointers before storing
4718         them.
4719         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
4720         Demangle vdso pointer before use.
4721         (INTERNAL_VSYSCALL): Likewise.
4722
4723         * elf/cache.c (primes): Mark as const.
4724         Noted by Roland McGrath.
4725
4726 2007-08-01  Andreas Jaeger  <aj@suse.de>
4727             Jakub Jelinek  <jakub@redhat.com>
4728
4729         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
4730         (options): Add option.
4731         (parse_opt): Handle option.
4732         (manual_link): Adjust process_file caller.  Call implicit_soname.
4733         (search_dir): Formatting.  Use and populate auxiliary cache.
4734         (main): Load and save auxiliary cache.
4735         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
4736         stat64 from fstat64 to caller.
4737         (implicit_soname): New function.
4738         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
4739         leave *soname as NULL.
4740         * elf/cache.c: Include libgen.h.
4741         (print_entry, print_cache, compare, save_cache, add_to_cache):
4742         Formatting and cleanups.
4743         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
4744         aux_cache_file): New structures.
4745         (AUX_CACHEMAGIC): Define.
4746         (primes): New array.
4747         (aux_hash_size, aux_hash): New variables.
4748         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
4749         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
4750         load_aux_cache, save_aux_cache): New functions.
4751         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
4752         (init_aux_cache, search_aux_cache, add_to_aux_cache,
4753         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
4754         (process_file): Adjust prototype.
4755
4756 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
4757
4758         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
4759         with __need_size_t.
4760
4761 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
4762
4763         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
4764         r_found_version structure as second parameter.
4765         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
4766         (_dl_vdso_vsym): Change type of second parameter accordingly.
4767         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
4768         (_libc_vdso_platform_setup): Adjust.
4769         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
4770         (_libc_vdso_platform_setup): Likewise.
4771
4772         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
4773         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
4774         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
4775         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
4776         * csu/libc-start.c: Pretty printing.
4777         Use VDSO_SETUP if defined.
4778         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
4779         and let generic code call into _libc_vdso_platform_setup.
4780         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
4781         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
4782         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
4783         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
4784         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
4785         for GLIBC_PRIVATE.
4786         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
4787         (sysdep_rountines): Add dl-vdso.
4788
4789         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
4790         of routines.
4791
4792         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
4793         attribute_hidden to __vdso_gettimeofday prototype.
4794
4795 2007-08-12  Roland McGrath  <roland@redhat.com>
4796
4797         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
4798         From: Karl Berry <karl@freefriends.org>.
4799
4800 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
4801
4802         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
4803         an atime update for the files we read.
4804
4805 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
4806
4807         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
4808
4809         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
4810         instead of mkstemp.
4811
4812         * misc/Makefile (routines): Add mkostemp and mkostemp64.
4813         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
4814         * misc/mkostemp.c: New file.
4815         * misc/mkostemp64.c: New file.
4816         * stdlib/stdlib.h: Declare the new functions.
4817         * sysdeps/posix/tempname.c: Add new parameter which is added to
4818         the flags for open.  Remove __GT_BIGFILE handling.
4819         * stdio-common/tempname.c: Likewise.
4820         * include/stdio.h: Adjust __gen_tempname prototype.
4821         Renumber __GT_* constants.
4822         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
4823         * misc/mkdtemp.c: Likewise.
4824         * misc/mkstemp.c: Likewise.
4825         * misc/mkstemp64.c: Likewise.
4826         * misc/mktemp.c: Likewise.
4827         * stdio-common/tempnam.c: Likewise.
4828         * stdio-common/tmpfile.c: Likewise.
4829         * stdio-common/tmpfile64.c: Likewise.
4830         * stdio-common/tmpnam.c: Likewise.
4831         * stdio-common/tmpnam_r.c: Likewise.
4832
4833 2007-08-10  Roland McGrath  <roland@frob.com>
4834
4835         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
4836         New macros.
4837         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
4838         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4839
4840 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
4841
4842         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
4843         possible.
4844         * nss/nss_files/files-alias.c (internal_setent): Likewise.
4845         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
4846         * nss/nss_files/files-have_o_cloexec.c: New file.
4847
4848         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
4849         available.
4850
4851 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
4852
4853         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
4854         ___new_wcstold_l): New weak aliases.
4855         (strtold_l, wcstold_l): Use them as second argument for
4856         long_double_symbol.
4857
4858 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
4859
4860         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
4861         register in test for error.
4862
4863         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
4864         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
4865
4866         * po/sv.po: Update from translation team.
4867
4868 2007-08-06  Roland McGrath  <roland@redhat.com>
4869
4870         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
4871         Remove __strto*_l inlines.
4872         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
4873         * stdlib/strtod.c: Add libc_hidden_def.
4874         * stdlib/strtod_l.c: Likewise.
4875         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
4876         for __new_strtold and __new_wcstold.
4877         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
4878         __STRTOF, STRTOF.
4879         * stdlib/strtol.c: Add libc_hidden_def.
4880         * stdlib/strtol_l.c: Likewise.
4881         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
4882         strtoq.
4883
4884         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
4885
4886         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
4887         * scripts/data/localplt-generic.data: ... here.
4888         * elf/Makefile (check-data): Get generic file if no other.
4889         ($(objpfx)check-localplt.out): Make target unconditional.
4890
4891         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
4892         Use ElfW(Nhdr).
4893
4894 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
4895
4896         * po/zh_CN.po: Updated translation from translation team.
4897
4898 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
4899
4900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
4901         Don't use CGOTSETUP and CGOTRESTORE macros.
4902
4903 2007-08-04  Roland McGrath  <roland@redhat.com>
4904
4905         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
4906
4907 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
4908
4909         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
4910         __extension__ around the whole statement expression.
4911
4912 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
4913
4914         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
4915         elements during initialization.
4916
4917         * po/pl.po: Updated translation from translation team.
4918         * po/tr.po: Likewise.
4919         * po/nl.po: Likewise.
4920
4921 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
4922
4923         * rt/aio.h: Add __nonnull attributes.
4924
4925 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
4926
4927         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
4928         * stdlib/Makefile (tests): Add tst-strtod5.
4929         (tst-strtod5-ENV): New.
4930         * stdlib/tst-strtod5.c: New file.
4931
4932         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
4933         failed.
4934         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
4935         on failure.
4936
4937         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
4938         allocated.
4939
4940 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
4941
4942         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
4943         numbers.
4944
4945 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
4946
4947         * io/Makefile (aux): Add have_o_cloexec.
4948         * include/fcntl.h: Declare __have_o_cloexec.
4949         * io/have_o_cloexec.c: New file.
4950         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
4951         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
4952         fcntl call if not necessary.
4953         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
4954         of local variable.
4955
4956         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
4957         Avoid memset, add explicit initialization.
4958         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
4959         to the end and change into zero-sized array.
4960         Move lock member to fill a hole on 64-bit platforms.
4961
4962         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
4963         inline functions.
4964         * include/stdlib.h: Add __strto*_internal prototypes here.
4965         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
4966         inline functions.
4967         * include/wchar.h: Add __wcsto*_internal prototypes.
4968         * sysdeps/generic/inttypes.h: No need to protect the declaration
4969         of the __strto*_internal and __wcsto*_internal members here.
4970
4971         * rt/mqueue.h: Change const to __const and add nonnull attributes.
4972
4973 2007-08-02  Roland McGrath  <roland@redhat.com>
4974
4975         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
4976         $(inst_bindir)/getconf if possible.
4977
4978         * posix/Makefile ($(objpfx)getconf.speclist): New target.
4979         (generated): Add it.
4980         ($(inst_libexecdir)/getconf): Use it.
4981
4982 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
4983
4984         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
4985         /proc is faster and sufficient.  /sys is still needed for
4986         __get_nprocs_conf.
4987
4988 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
4989
4990         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
4991         syscall as __fallocate64.
4992         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
4993         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
4994
4995 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
4996
4997         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
4998         value.
4999
5000         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
5001         if off_t is different rank from size_t.
5002
5003         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
5004         uw_frame_state_for): Avoid type punning warnings.
5005         * sysdeps/generic/unwind-dw2-fde-glibc.c
5006         (_Unwind_IteratePhdrCallback): Likewise.
5007         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
5008         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
5009         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
5010         pointers.
5011
5012 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
5013
5014         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
5015         total processors using sysfs.
5016         (__get_nprocs): Use sysfs to determine which processors are online.
5017
5018 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
5019
5020         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
5021         syscall arguments count.
5022
5023         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
5024
5025 2007-07-30  Roland McGrath  <roland@redhat.com>
5026
5027         * manual/libc.texinfo: Update copyrights, formatting magic, and
5028         @dircategory.  From Karl Berry <karl@freefriends.org>.
5029
5030 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
5031
5032         [BZ #4860]
5033         * io/Makefile (headers): Add bits/fcntl2.h.
5034
5035         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
5036         using gcc builtin.
5037         (__CPU_EQUAL_S): Likewise.
5038
5039         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
5040         (tests): Add tst-cpuset.
5041         * posix/sched_cpualloc.c: New file.
5042         * posix/sched_cpufree.c: New file.
5043         * posix/tst-cpuset.c: New file.
5044         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
5045         GLIBC_2.7.
5046         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
5047         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
5048         macros.  Define CPU_*_S macros.
5049
5050 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5051
5052         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
5053         entry.
5054
5055         [BZ #4858]
5056         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
5057         #.0g and value rounded to 1.0.
5058         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
5059
5060 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
5061
5062         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
5063         for int_frac_digits and frac_digits.
5064
5065         * login/logout.c (logout): Avoid aliasing violation.
5066         * login/logwtmp.c (logwtmp): Likewise.
5067
5068         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
5069
5070         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
5071         to avoid warning.
5072         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
5073         warning.
5074         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
5075         warning.
5076         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
5077         to avoid warnings.
5078
5079         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
5080         void **.
5081         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
5082
5083         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
5084         char * to avoid warning.
5085         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
5086
5087         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
5088
5089         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
5090         allocate_arrays): Cast second argument to charmap_find_symbol
5091         to char * to avoid warnings.
5092
5093         * locale/programs/repertoire.c (repertoire_new_char): Change
5094         from_nr, to_nr and cnt to unsigned long, adjust printf format
5095         string.
5096
5097         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
5098         Cast second argument to new_element to char * to avoid warnings.
5099
5100         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
5101
5102         * intl/gettextP.h (struct loaded_domain): Change plural to const
5103         struct expression *.
5104         * intl/plural-eval.c (plural_eval): Change first argument to
5105         const struct expression *.
5106         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
5107         argument to const struct expression **.
5108         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5109         prototypes.
5110         * intl/loadmsgcat (_nl_unload_domain): Cast away const
5111         in call to __gettext_free_exp.
5112
5113         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5114         unitialized wstring/wpattern var warnings.
5115
5116         * posix/runtests.c (struct a_test): Make data field const char *.
5117
5118         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5119         vars if not LDBL_MANT_DIG >= 106.
5120
5121         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5122
5123         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5124         __find_specmb to avoid warning.
5125
5126         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5127
5128         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5129         to avoid warnings.
5130
5131         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5132         initializer.
5133
5134         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5135         tv var when it will be actually used.
5136
5137         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5138         to avoid warnings.
5139
5140         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5141         char array resp. pointer.
5142         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5143         char array.
5144         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5145         to const unsigned char **.
5146         (ucs4_to_cns11643): Change second argument to unsigned char *.
5147         * iconvdata/euc-tw.c (BODY): Change endp type to
5148         const unsigned char *.
5149         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5150         to unsigned char *.
5151         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5152         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5153         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5154         types to unsigned char pointers/arrays instead of char.
5155         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5156         to unsigned char *.
5157         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5158         * iconvdata/jis0212.h: Include assert.h.
5159         (ucs4_to_jisx0212): Change second argument to unsigned char *.
5160         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5161         of trying to handle that.
5162         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5163         shut up a warning.
5164         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5165         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5166         two dimensional const unsigned char arrays.
5167         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5168         Initialize endp to inptr to shut up a warning.
5169
5170 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5171
5172         [BZ #4772]
5173         * time/strptime_l.c (__strptime_internal): Silently ignore
5174         strftime modifiers and field width in recursive calls.
5175
5176         * include/time.h (enum ptime_locale_status): Remove.
5177         (__strptime_internal): Remove decided and era_cnt arguments,
5178         add statep argument.
5179         * time/strptime_l.c (__strptime_internal): Remove decided
5180         and era_cnt arguments, add statep argument.  Don't recompute
5181         any fields in recursive calls, only update caller's tm
5182         and state, if recursive call fails, don't change tm nor
5183         any state.
5184         (get_alt_number): Adjust.
5185         (recursive): Adjust caller.
5186         (strptime): Likewise.
5187         * time/strptime.c (strptime): Likewise.
5188
5189 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
5190
5191         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5192         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5193         if from and to charsets are the same.
5194         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5195         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5196         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5197
5198 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5199
5200         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5201         Don't define wint_t when __need_mbstate_t unless it
5202         is necessary.
5203         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5204         in the typedef if possible.
5205         * wctype/wctype.h (wint_t): Define by including
5206         wchar.h with __need_wint_t instead of including stddef.h
5207         with __need_wint_t and as fallback definining it ourselves.
5208         * iconv/gconv.h (__need_wint_t): Define before including
5209         wchar.h.
5210         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5211         or _GLIBCPP_USE_WCHAR_T.
5212         (__need_wchar_t): Don't define
5213         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5214         (__need_wint_t): Don't define before including stddef.h,
5215         define before including wchar.h only if _LIBC or
5216         _GLIBCPP_USE_WCHAR_T.
5217         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5218         * sysdeps/mach/hurd/_G_config.h: Likewise.
5219         * sysdeps/generic/_G_config.h: Likewise.
5220         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5221         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5222         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5223         if _LIBC or _GLIBCPP_USE_WCHAR_T.
5224
5225 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5226
5227         * sysdeps/posix/posix_fallocate64.c: Undefine
5228         __posix_fallocate64_l64 before alias handling.
5229         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5230         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5231         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5232         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5233
5234         * io/tst-posix_fallocate.c: Include <fcntl.h>.
5235
5236 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
5237
5238         * locale/programs/ld-collate.c (atwc): New variable.
5239         (add_to_tablewc): New toplevel function, moved from collate_output.
5240         (collate_output): Remove add_to_tablewc nested function.
5241
5242         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5243         (name_insert): New function.
5244         (write_output): Remove hash_table and hash_size vars and name_insert
5245         nested function.
5246
5247 2007-07-24  Roland McGrath  <roland@redhat.com>
5248
5249         * Makerules (install-others-programs-nosubdir): New target.
5250         (install-no-libc.a-nosubdir): Depend on it.
5251
5252         * iconv/Makefile (install-others-programs): Set this instead of
5253         install-others.
5254         * login/Makefile (install-others-programs): Likewise.
5255         * posix/Makefile (install-others-programs): Likewise.
5256
5257         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5258         dependencies.
5259
5260 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
5261
5262         * io/Makefile (tests): Add tst-posix_fallocate.
5263         * io/tst-posix_fallocate.c: New file.
5264
5265         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5266         __ASSUME_FALLOCATE.
5267
5268 2007-07-22  Roland McGrath  <roland@frob.com>
5269
5270         * hurd/getdport.c: Add missing copyright year update.
5271
5272         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5273         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5274
5275 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
5276
5277         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5278
5279         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5280         O_CLOEXEC is needed.
5281         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5282         Avoid additional fcntl to set O_CLOEXEC if not needed.
5283         * nis/nss_compat/compat-initgroups.c: Likewise.
5284         * nis/nss_compat/compat-pwd.c: Likewise.
5285         * nis/nss_compat/compat-spwd.c: Likewise.
5286
5287 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5288
5289         [BZ #3665]
5290         * manual/errno.texi: Change ECANCELED value to 119.
5291
5292         [BZ #4610]
5293         * mach/lock-intern.h: Include <sys/cdefs.h>.
5294
5295         [BZ #4178]
5296         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5297         reading A.
5298
5299         [BZ #4126]
5300         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5301         to __sigsuspend.
5302
5303         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5304
5305 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
5306
5307         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5308         `__ASSEMBLER__'.
5309         * sysdeps/mach/hurd/i386/tls.h: Likewise.
5310
5311 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
5312
5313         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5314         descriptor received from nscd.
5315
5316         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5317
5318         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5319         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5320         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5321         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5322         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5323         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5324
5325 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5326
5327         [BZ #4816]
5328         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5329
5330         [BZ #4813]
5331         * login/forkpty.c (forkpty): Close master and slave fds on
5332         fork failure.  Patch by
5333         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5334
5335 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
5336
5337         * include/features.h (__USE_ISOC95): New define.
5338         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5339         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5340         for -std=iso9899:199409.
5341         * CONFORMANCE: Remove comments about unsupported AMD1.
5342
5343 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5344
5345         * sysdeps/ia64/sched_cpucount.c: New file.
5346         * sysdeps/powerpc/sched_cpucount.c: New file.
5347
5348         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5349         __BEGIN_DECLS/__END_DECLS around the prototype.
5350         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
5351         pointer to const cpu_set_t.
5352
5353         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5354         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5355         __need_size_t and include stddef.h.
5356         * sysvipc/sys/msg.h: Likewise.
5357         * posix/sched.h: Likewise.
5358         * hurd/hurd/signal.h (__need_size_t): Define.
5359
5360         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5361         neither does signal.h in pedantic ISO C namespaces.  stdio.h
5362         no longer defines wint_t or wchar_t.
5363
5364         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5365         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5366         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5367         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5368         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5369         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5370         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5371         * debug/printf_chk.c (__printf_chk): Likewise.
5372         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5373         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5374
5375         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5376         Define.
5377
5378         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5379         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5380
5381 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
5382
5383         [BZ #4792]
5384         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5385         * malloc/malloc.h (realloc): Likewise.
5386
5387         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5388         if one of proc_file_chain streams has that fileno.
5389         * stdio-common/Makefile (tests): Add tst-popen2.
5390         * stdio-common/tst-popen2.c: New test.
5391
5392 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
5393
5394         * elf/ldconfig.c: Allow GPLv2 or any later version.
5395         * elf/readlib.c: Likewise.
5396         * elf/chroot_canon.c: Likewise.
5397         * elf/cache.c: Likewise.
5398         * nscd/mem.c: Likewise.
5399         * nscd/getpwuid_r.c: Likewise.
5400         * nscd/grpcache.c: Likewise.
5401         * nscd/aicache.c: Likewise.
5402         * nscd/getsrvbynm_r.c: Likewise.
5403         * nscd/nscd.c: Likewise.
5404         * nscd/servicescache.c: Likewise.
5405         * nscd/getsrvbypt_r.c: Likewise.
5406         * nscd/initgrcache.c: Likewise.
5407         * nscd/gethstbyad_r.c: Likewise.
5408         * nscd/gethstbynm2_r.c: Likewise.
5409         * nscd/getgrnam_r.c: Likewise.
5410         * nscd/nscd_setup_thread.c: Likewise.
5411         * nscd/getpwnam_r.c: Likewise.
5412         * nscd/gai.c: Likewise.
5413         * nscd/connections.c: Likewise.
5414         * nscd/dbg_log.c: Likewise.
5415         * nscd/cache.c: Likewise.
5416         * nscd/hstcache.c: Likewise.
5417         * nscd/nscd_conf.c: Likewise.
5418         * nscd/getgrgid_r.c: Likewise.
5419         * nscd/pwdcache.c: Likewise.
5420         * catgets/gencat.c: Likewise.
5421         * locale/programs/linereader.h: Likewise.
5422         * locale/programs/locarchive.c: Likewise.
5423         * locale/programs/ld-paper.c: Likewise.
5424         * locale/programs/locfile-kw.h: Likewise.
5425         * locale/programs/ld-address.c: Likewise.
5426         * locale/programs/xmalloc.c: Likewise.
5427         * locale/programs/ld-time.c: Likewise.
5428         * locale/programs/localedef.c: Likewise.
5429         * locale/programs/simple-hash.c: Likewise.
5430         * locale/programs/xstrdup.c: Likewise.
5431         * locale/programs/ld-numeric.c: Likewise.
5432         * locale/programs/locfile-kw.gperf: Likewise.
5433         * locale/programs/ld-collate.c: Likewise.
5434         * locale/programs/charmap-kw.gperf: Likewise.
5435         * locale/programs/charmap.h: Likewise.
5436         * locale/programs/charmap-kw.h: Likewise.
5437         * locale/programs/config.h: Likewise.
5438         * locale/programs/locfile.c: Likewise.
5439         * locale/programs/ld-ctype.c: Likewise.
5440         * locale/programs/charmap.c: Likewise.
5441         * locale/programs/ld-messages.c: Likewise.
5442         * locale/programs/repertoire.h: Likewise.
5443         * locale/programs/locale.c: Likewise.
5444         * locale/programs/ld-name.c: Likewise.
5445         * locale/programs/linereader.c: Likewise.
5446         * locale/programs/locfile.h: Likewise.
5447         * locale/programs/3level.h: Likewise.
5448         * locale/programs/ld-monetary.c: Likewise.
5449         * locale/programs/ld-measurement.c: Likewise.
5450         * locale/programs/charmap-dir.c: Likewise.
5451         * locale/programs/ld-identification.c: Likewise.
5452         * locale/programs/localedef.h: Likewise.
5453         * locale/programs/charmap-dir.h: Likewise.
5454         * locale/programs/repertoire.c: Likewise.
5455         * locale/programs/simple-hash.h: Likewise.
5456         * locale/programs/ld-telephone.c: Likewise.
5457         * locale/programs/locale-spec.c: Likewise.
5458         * locale/programs/locfile-token.h: Likewise.
5459         * posix/getconf.c: Likewise.
5460         * iconv/dummy-repertoire.c: Likewise.
5461         * iconv/iconv_charmap.c: Likewise.
5462         * iconv/iconvconfig.c: Likewise.
5463         * iconv/iconv_prog.c: Likewise.
5464         * malloc/memusagestat.c: Likewise.
5465         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5466
5467 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5468
5469         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
5470         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
5471         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
5472         check for the first argument.
5473
5474 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
5475
5476         [BZ #4775]
5477         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
5478         (__tgmath_real_type): Fix if expr is const int or other const
5479         qualified integral type.
5480         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
5481         expressions and handle const qualified arguments.
5482         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
5483         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5484         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
5485         statement expressions.
5486         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
5487         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
5488         (__TGMATH_UNARY_IMAG): Define.
5489         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
5490         * math/Makefile (tests): Add test-tgmath2.
5491         (CFLAGS-test-tgmath2.c): Add.
5492         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
5493         count_cfloat, count_cldouble): New variables.
5494         (NCCALLS): Define.
5495         (main): Check number of complex calls as well.
5496         (F(compile_test)): Add complex tests and tests with const qualified
5497         arguments.
5498         (y, z, ccount): Define.
5499         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
5500         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
5501         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
5502         F(cproj)): New functions.
5503         * math/test-tgmath2.c: New test.
5504
5505 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
5506
5507         [BZ #4776]
5508         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5509         RPATH etc. as "/" rather than "", don't segfault on empty paths,
5510         instead output ".".
5511         * dlfcn/Makefile (distribute): Add glreflib3.c.
5512         (module-names): Add glreflib3.
5513         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5514         glreflib1.so.
5515         (LDFLAGS_glreflib3.so): New.
5516         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5517         glreflib1.so.
5518         * dlfcn/glreflib3.c: New file.
5519
5520         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5521         returned -1, return NULL.
5522         * intl/explodename.c (_nl_explode_name): Return -1 if
5523         _nl_normalize_codeset failed.
5524
5525 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
5526
5527         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5528         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
5529         and avoid branch misspredicts for > 31 bytes memset case.
5530         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5531         Remove toc ref to __cache_line_size.
5532
5533         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
5534         to get ISA-V2.0 branch hints.
5535         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
5536         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
5537         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5538         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5539         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5540         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5541         Remove toc ref to __cache_line_size.
5542
5543         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
5544         Include math_ldbl_opt.h.
5545
5546 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
5547
5548         [BZ #4773]
5549         * time/strptime_l.c (__strptime_internal): Implement greedy
5550         matching of weekday and month names.
5551
5552 2007-07-09  Roland McGrath  <roland@redhat.com>
5553
5554         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
5555         (ELF_NOTE_ABI): Use it.
5556         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
5557
5558 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
5559
5560         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
5561         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5562
5563 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
5564
5565         [BZ #4745]
5566         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
5567         in loop to look for conversion specifier to avoid testing of
5568         wrong errno value.
5569         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
5570         * stdio-common/bug18.c: New file.
5571         * stdio-common/bug18a.c: New file.
5572         * stdio-common/bug19.c: New file.
5573         * stdio-common/bug19a.c: New file.
5574
5575 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
5576
5577         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
5578         running awk script.
5579
5580 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
5581
5582         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
5583         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
5584         Return NULL if mmap failed instead of asserting it does not.
5585         (calloc): Check for integer overflow.
5586
5587         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
5588         than LONG_MAX / 10.
5589
5590 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
5591
5592         [BZ #4702]
5593         * nis/nss-default.c: Include errno.h.
5594         (init): Preserve errno.
5595
5596 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
5597
5598         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
5599
5600 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
5601
5602         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
5603
5604 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5605
5606         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
5607
5608 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5609
5610         * sysdeps/s390/dl-procinfo.c: New file.
5611         * sysdeps/s390/dl-procinfo.h: New file.
5612         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
5613
5614 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
5615
5616         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
5617         in PT_NOTE segments with multiple notes.
5618         * elf/readelflib.c (process_elf_file): Likewise.
5619
5620 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
5621
5622         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
5623         ISO C compliant.
5624
5625 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5626
5627         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
5628
5629 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
5630
5631         * include/link.h: Don't include rtld-lowlevel.h.
5632         (struct link_map): Remove l_scope_lock.
5633         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
5634         (_dl_scope_free_list): New field (variable) in _rtld_global.
5635         (DL_LOOKUP_SCOPE_LOCK): Remove.
5636         (_dl_scope_free): New prototype.
5637         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
5638         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
5639         (_dl_profile_fixup): Likewise.
5640         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
5641         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
5642         THREAD_GSCOPE_RESET_FLAG around it.
5643         * elf/dl-close.c (_dl_close_worker): Don't use
5644         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
5645         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
5646         scopes were queued or if l_scope_mem has been abandoned.
5647         * elf/dl-open.c (_dl_scope_free): New function.
5648         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
5649         * elf/dl-support.c (_dl_scope_free_list): New variable.
5650         * elf/dl-lookup.c (add_dependency): Remove flags argument.
5651         Remove DL_LOOKUP_SCOPE_LOCK handling.
5652         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
5653         handling.
5654         * elf/dl-object.c (_dl_new_object): Don't use
5655         __rtld_mrlock_initialize.
5656
5657 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5658
5659         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
5660         to fill in holes
5661         (rtld_global_ro): Likewise.
5662
5663 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5664
5665         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
5666         Move PT_LOAD checking to...
5667         (_dl_addr_inside_object): ... here, new function.
5668         * elf/dl-sym.c (do_sym): If not l_contiguous,
5669         call _dl_addr_inside_object.
5670         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5671         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5672         * elf/dl-open.c (dl_open_worker): Likewise.
5673         (_dl_addr_inside_object): New function if IS_IN_rtld.
5674         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
5675         holes are present or are PROT_NONE protected.
5676         * include/link.h (struct link_map): Add l_contiguous field.
5677         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
5678
5679 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5680             Tomas Janousek  <tjanouse@redhat.com>
5681             Ulrich Drepper  <drepper@redhat.com>
5682
5683         [BZ #4647]
5684         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
5685         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
5686         socket.
5687         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
5688         unused member a bitmap.
5689         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
5690         servers are configured.
5691
5692 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5693
5694         * elf/rtld.c (dl_main): Don't call init_tls more than once.
5695
5696 2007-06-17  Andreas Schwab  <schwab@suse.de>
5697
5698         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
5699
5700 2007-06-16  Andreas Jaeger  <aj@suse.de>
5701
5702         [BZ #4125]
5703         * sysdeps/unix/sysv/linux/sys/ptrace.h
5704         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
5705         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
5706         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
5707         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
5708         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
5709         Define.
5710         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5711         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5712         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5713         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5714
5715 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
5716
5717         [BZ #4599]
5718         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
5719         determining whether there are IPv4/IPv6 addresses, ignore loopback
5720         addresses.
5721
5722 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
5723
5724         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
5725         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
5726         as the return type.  Change type of "r" variable to CMPtype.
5727         * soft-fp/eqsf2.c (__eqsf2): Likewise.
5728         * soft-fp/eqtf2.c (__eqtf2): Likewise.
5729         * soft-fp/gedf2.c (__gedf2): Likewise.
5730         * soft-fp/gesf2.c (__gesf2): Likewise.
5731         * soft-fp/getf2.c (__getf2): Likewise.
5732         * soft-fp/ledf2.c (__ledf2): Likewise.
5733         * soft-fp/lesf2.c (__lesf2): Likewise.
5734         * soft-fp/letf2.c (__letf2): Likewise.
5735         * soft-fp/unorddf2 (__unorddf2): Likewise.
5736         * soft-fp/unordsf2 (__unordsf2): Likewise.
5737         * soft-fp/unordtf2 (__unordtf2): Likewise.
5738
5739 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
5740
5741         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
5742         make sure gcc doesn't mess around with this.
5743
5744 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
5745
5746         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
5747
5748 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
5749
5750         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
5751         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
5752         at most once per _dl_close_worker.
5753
5754 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
5755
5756         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
5757         __sched_cpucount as const.
5758         * posix/sched_cpucount.c: Adjust.
5759
5760         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
5761         instruction for counting bits.
5762         * sysdeps/x86_64/sched_cpucount.c: New file.
5763
5764 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
5765
5766         * configure.in: Avoid variable named BASH.
5767         * config.make.in: Likewise.
5768         Patch in part by Mike Frysinger.
5769
5770 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
5771
5772         [BZ #4586]
5773         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
5774         pseudo-zeros as zero.
5775         * sysdeps/x86_64/ldbl2mpn.c: New file.
5776         * sysdeps/ia64/ldbl2mpn.c: New file.
5777
5778 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
5779
5780         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
5781         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
5782         Remove unreachable code at the end.
5783
5784 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
5785
5786         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
5787         ldbl-128ibm in comment.
5788         (fpclassifyl): Correct classification of denormals.
5789         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
5790         return value for MIN denormal. Rewrite using long double math too
5791         correctly handle denormals and canonicalize the results.
5792
5793 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
5794
5795         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5796         (__mpn_construct_long_double): Fix conversion where result ought
5797         to be smaller than __LDBL_MIN__, or the low double should be
5798         denormal.  Fix decision where to negate low double - honor round
5799         to even rules.
5800         * stdio-common/tst-sprintf2.c: Include string.h.
5801         (COMPARE_LDBL): Define.
5802         (TEST): Also test whether a string hexadecimal float representation
5803         can be parsed back to the number.
5804         (main): Add a couple of further tests.
5805
5806 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
5807
5808         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5809         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
5810         is non-zero, but smaller than 2 * __DBL_MIN__.
5811         * stdio-common/tst-sprintf2.c: New test.
5812         * stdio-common/Makefile (tests): Add tst-sprintf2.
5813
5814         * math/test-misc.c (main): Don't run last batch of tests with
5815         IBM long double format.
5816
5817 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5818
5819         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
5820         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
5821         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
5822         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
5823         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5824         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
5825         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
5826         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
5827         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
5828         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5829         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
5830         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
5831         New file.
5832         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
5833         New file.
5834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
5835         New file.
5836         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
5837         New file.
5838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
5839         New file.
5840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
5841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
5842         New file.
5843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
5844         New file.
5845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
5846         New file.
5847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
5848         New file.
5849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
5850         New file.
5851
5852 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5853
5854         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
5855         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
5856         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
5857         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
5858         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
5859         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
5860         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
5861         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
5862
5863 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
5864
5865         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
5866         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5867         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
5868         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5869         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
5870         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5871         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
5872         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5873
5874 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
5875
5876         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
5877         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
5878         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
5879         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
5880
5881 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
5882
5883         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
5884         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
5885
5886 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
5887
5888         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
5889         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
5890         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
5891         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
5892
5893 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
5894
5895         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
5896         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
5897
5898 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
5899
5900         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
5901         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
5902
5903         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
5904         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
5905         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
5906         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5907
5908 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
5909
5910         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
5911         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
5912         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
5913         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
5914
5915 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
5916
5917         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
5918         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
5919         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
5920         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5921         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
5922         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5923
5924 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
5925
5926         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
5927         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
5928         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
5929         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
5930
5931 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
5932
5933         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
5934         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
5935         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
5936         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
5937         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
5938         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
5939         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
5940         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
5941         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
5942         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
5943         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
5944         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
5945         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
5946         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
5947         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
5948         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
5949
5950 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
5951
5952         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
5953         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
5954
5955 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
5956
5957         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
5958         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
5959
5960 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5961
5962         * sysdeps/powerpc/powerpc32/970/Implies: New file.
5963         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
5964         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
5965         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
5966         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
5967         * sysdeps/powerpc/powerpc64/970/Implies: New file.
5968         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
5969         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
5970         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
5971         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
5972
5973 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
5974
5975         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
5976
5977 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
5978
5979         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
5980         branch miss-predicts. Ensure that cache line crossing does not impact
5981         dispatch grouping.
5982
5983 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
5984
5985         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
5986         "../../powerpc32/power4/memcopy.h".
5987         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
5988         "../../powerpc32/power4/wordcopy.c".
5989
5990 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
5991
5992         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
5993         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
5994         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
5995         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
5996         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
5997         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
5998
5999 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
6000
6001         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
6002
6003 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6004
6005         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
6006         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
6007         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
6008         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
6009         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
6010         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
6011         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
6012         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
6013
6014 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
6015
6016         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
6017
6018 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6019
6020         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
6021         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
6022         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
6023         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
6024         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
6025         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
6026         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
6027
6028 2007-05-29  Roland McGrath  <roland@redhat.com>
6029
6030         * po/Makefile (po-sed-cmd): New variable.
6031         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
6032
6033 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
6034
6035         * crypt/md5-crypt.c: Fix comment.
6036
6037         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
6038         of crashing.  When this is the case or if the reply is malformed,
6039         don't try to close the new file descriptor since it does not
6040         exist.
6041         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
6042
6043 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
6044
6045         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
6046         if __NR_utimensat is not defined.
6047
6048 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
6049
6050         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
6051
6052 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
6053
6054         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
6055         (open): Fix comment typos.  Don't call __open_2 if flags
6056         is a compile time constant without O_CREAT.
6057         (__open64_2): Add nonnull attribute.
6058         (open64): Fix comment typos.  Don't call __open64_2 if flags
6059         is a compile time constant without O_CREAT.
6060         (__openat_2): Add nonnull attribute, fix nonnull attribute
6061         on redirect.
6062         (openat): Fix comment typos.  Don't call __openat_2 if flags
6063         is a compile time constant without O_CREAT.
6064         (__openat64_2): Add nonnull attribute, fix nonnull attribute
6065         on redirect.
6066         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
6067         is a compile time constant without O_CREAT.
6068
6069 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
6070
6071         * Makerules (sysd-rules): Define PTW for ptw-* files.
6072         * Versions: Define GLIBC_2.7 for libc.
6073         * include/stdio.h: Declare __fortify_fail.
6074         * debug/fortify_fail.c: New file.
6075         * debug/Makefile (routines): Add fortify_fail.
6076         * debug/chk_fail.c: Use __fortify_fail.
6077         * debug/stack_chk_fail.c: Likewise.
6078         * io/Versions: Export __open_2, __open64_2, __openat_2, and
6079         __openat64_2 for GLIBC_2.7.
6080         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
6081         * io/open.c: Define *_2 variant of function which checks for O_CREAT
6082         and fails if necessary.
6083         * io/open64.c: Likewise.
6084         * io/openat.c: Likewise.
6085         * io/openat64.c: Likewise.
6086         * sysdeps/unix/sysv/linux/open64.c: Likewise.
6087         * sysdeps/unix/sysv/linux/openat.c: Likewise.
6088         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
6089         * io/bits/fcntl2.h: New file.
6090         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
6091         __openat64_2.
6092         * include/bits/fcntl2.h: New file.
6093         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6094         Add open_2.
6095         * sysdeps/unix/sysv/linux/open_2.c: New file.
6096
6097 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
6098
6099         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
6100         as second parameter to handle_intel.
6101
6102         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
6103         the entry.
6104
6105         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
6106         handling to ...
6107         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
6108         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6109         cacheinfo.
6110         * sysdeps/x86_64/memcpy.S: Complete rewrite.
6111         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6112         Patch by Evandro Menezes <evandro.menezes@amd.com>.
6113
6114         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6115
6116 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
6117
6118         [BZ #4525]
6119         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6120         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6121         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6122
6123         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6124
6125         [BZ #4514]
6126         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6127         reinitialize workend at the start of each do_positional format spec
6128         loop, free workstart before do_positional loops.
6129         (printf_unknown): Fix size of work_buffer.
6130         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6131
6132         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6133         (public_sET_STATe): If ms->version < 3, put all chunks into
6134         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6135         chunks.
6136
6137         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6138         * malloc/hooks.c: Likewise.
6139         * malloc/arena.c: Likewise.
6140         * malloc/malloc.c (do_check_malloc_state): Don't assert
6141         n_mmaps is not greater than n_mmaps_max.  This removes the need
6142         for the previous change.
6143
6144         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6145         2007-05-07 commit.
6146
6147 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
6148
6149         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6150         Define for kernel >= 2.6.22.
6151
6152 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
6153
6154         * elf/dl-close.c (_dl_close_worker): When removing object from
6155         global scope, wait for all lookups to finish afterwards.
6156         * elf/dl-open.c (add_to_global): When global scope array must
6157         grow, allocate a new one and free old array only after all
6158         lookups finish.
6159         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6160         (_dl_lookup_symbol_x): Likewise.
6161         * elf/dl-support.c: Define _dl_wait_lookup_done.
6162         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6163         _dl_wait_lookup_done.
6164
6165         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6166         not overlapping with arena.
6167
6168         * malloc/mcheck.c (reallochook): If size==0, free the block.
6169
6170         * rt/tst-shm.c: Use fstat64 instead of fstat.
6171
6172         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6173         __NR_sync_file_range is not defined.
6174
6175 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
6176
6177         Dummy files to prevent stub versions from being used.
6178         * sysdeps/x86_64/fpu/k_cosl.c: New file.
6179         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6180         * sysdeps/x86_64/fpu/k_sinl.c: New file.
6181         * sysdeps/x86_64/fpu/k_tanl.c: New file.
6182
6183         * version.h (VERSION): Set to 2.6.90.
6184
6185 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
6186
6187         * version.h (VERSION): Define to 2.6.
6188         * include/features.h (__GLIBC_MINOR__): Define to 6.
6189
6190         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6191
6192         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6193         sizes.
6194
6195 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
6196
6197         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6198         number of mmaps.  n_mmaps_max is the target.
6199         * malloc/hooks.c: Likewise.
6200         * malloc/arena.c: Likewise.
6201
6202 2007-05-12  Andreas Jaeger  <aj@suse.de>
6203
6204         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6205         getpid.
6206
6207 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
6208
6209         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6210         adding new variables.
6211
6212         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
6213         optimize.  Completely extend global scope array before making the
6214         new entries visible.
6215
6216 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
6217
6218         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6219         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6220         tst-getcpu.
6221
6222         * include/link.h: Move l_version and l_nversion members around to
6223         fill gaps.
6224
6225         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6226
6227         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6228         (__sched_setaffinity_new): If syscall was successful and
6229         RESET_VGETCPU_CACHE is defined, use it before returning.
6230         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6231
6232         * io/sys/stat.h: Make sure struct timespec is defined for
6233         __USE_ATFILE.
6234
6235         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6236         UTIME_OMIT.
6237         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6238         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6239         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6240         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6241         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6242         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6243         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6244         * io/sys/stat.h: Declare utimensat, futimens.
6245         * io/utimensat.c: New file.
6246         * io/futimens.c: New file.
6247         * sysdeps/unix/sysv/linux/utimensat.c: New file.
6248         * sysdeps/unix/sysv/linux/futimens.c: New file.
6249         * io/Makefile (routines): Add utimensat, futimens.
6250         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6251         * sysdeps/unix/sysv/linux/lutimes.c: New file.
6252         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6253         available.
6254
6255         * include/sys/cdefs.h: Redefine __nonnull so that test for
6256         incorrect parameters in the libc code itself are not omitted.
6257
6258 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
6259
6260         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6261         exception in addition to inexact when asked to raise only FE_INEXACT.
6262
6263         [BZ #3427]
6264         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6265         in *envp.
6266
6267 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6268
6269         [BZ #4403]
6270         * string/strfry.c (strfry): Make result more random.
6271
6272 2007-05-07  Richard Henderson  <rth@redhat.com>
6273
6274         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6275         if __NO_LONG_DOUBLE_MATH.
6276         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
6277         available in the compiler, add .arch directive to the assembly.
6278
6279 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
6280
6281         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6282         compat_symbol to GLIBC_2_1.
6283         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6284         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6285         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6286         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6287         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6288         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6289         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6290         libc, not libm.
6291         (__isnanl): New compat_symbol.
6292
6293 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6294             Jakub Jelinek  <jakub@redhat.com>
6295
6296         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6297         (new_heap): Initialize mprotect_size.
6298         (grow_heap): When growing, only mprotect from mprotect_size till
6299         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
6300         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6301
6302 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
6303             Peter Bergner  <bergner@us.ibm.com>
6304
6305         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6306         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
6307         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6308         * sysdeps/powerpc/fpu/fe_mask.c: New file.
6309         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6310         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6311         Call __fe_mask_env() if all FP exceptions disabled.
6312         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6313         from old FPSCR to new fenv to propagate DFP rounding modes.
6314         Call __fe_mask_env() if FP exceptions previously enabled.
6315         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6316         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
6317         transitioning from all exceptions disabled to any exception enabled
6318         or visa versa.
6319         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6320         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
6321         when transitioning from all exceptions disabled to any exception
6322         enabled or visa versa.
6323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6329
6330 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6331
6332         [BZ #4465]
6333         * posix/unistd.h: Remove __THROW from fdatasync.
6334
6335 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
6336
6337         [BZ #4465]
6338         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6339
6340 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6341
6342         * stdio-common/vfprintf.c (process_string_arg): Optimize
6343         ridiculous precision in wide char code printing multi-byte string.
6344         Reported by Jim Meyering <jim@meyering.net>.
6345
6346         [BZ #4131]
6347         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6348         boundaries to work around systems with overlapping binary loading.
6349         Based on a patch by Suzuki <suzuki@in.ibm.com>.
6350
6351 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
6352
6353         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6354         __mbsnrtowcs after last change.
6355
6356         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6357         (get_ident): Likewise.
6358
6359 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6360
6361         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6362         with setting the sticky bit.
6363         * math/test-misc.c (main): Add more truncation tests.
6364
6365 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
6366
6367         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6368         double in the function declaration.
6369         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6370         double in the function declaration.
6371         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6372         float in the function declaration.
6373         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6374         float in the function declaration.
6375
6376         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6377         denormal operands.  Do not generate FP_EX_DENORM exception.
6378         (FP_UNPACK_RAW_EP): Ditto.
6379         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6380         undefined _FP_UNPACK_RAW_E.
6381         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6382         undefined _FP_UNPACK_RAW_EP.
6383         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6384         undefined _FP_PACK_RAW_E.
6385         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6386         undefined _FP_PACK_RAW_EP.
6387
6388         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6389         _FP_FRAC_COPY_2.
6390         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6391         _FP_FRAC_COPY_4.
6392
6393 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
6394             Jakub Jelinek  <jakub@redhat.com>
6395
6396         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6397         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
6398         this case.
6399         * soft-fp/op-common.h (FP_TRUNC): Ditto.
6400
6401 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6402
6403         * math/test-misc.c (main): Add tests for rounding long double
6404         values close to smallest double denormalized value to double.
6405
6406 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
6407
6408         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6409         condition for truncating to 0.  Set sticky bit for such
6410         truncation.
6411
6412 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
6413
6414         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6415         fixed length array for ignore.
6416
6417 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6418
6419         [BZ #4438]
6420         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6421         stack for large precisions.
6422         * stdio-common/test-vfprintf.c (main): Add test for large
6423         precision.
6424
6425 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
6426
6427         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6428         for exponent 0.
6429         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6430
6431         [BZ #4439]
6432         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6433         account in the size check.
6434         * resolv/tst-inet_ntop.c: New test.
6435         * resolv/Makefile (tests): Add tst-inet_ntop.
6436
6437 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6438             Jakub Jelinek  <jakub@redhat.com>
6439
6440         [BZ #4349]
6441         * malloc/malloc.c: Keep separate list for first blocks on the bin
6442         lists with a given size.  This helps skipping over list elements
6443         we know won't fit in two places.
6444         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6445
6446 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
6447
6448         [BZ #4102]
6449         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6450         label to Teredo tunnel addresses 2001://32.
6451
6452 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
6453
6454         * locale/programs/ld-collate.c (collate_read): Allow order_start
6455         after copy.
6456
6457         * locale/programs/ld-collate.c (collate_read): Fix printing of
6458         error message.
6459
6460         [BZ #3213]
6461         * locale/C-translit.h.in: Add entry for U2044.
6462
6463         [BZ #4342]
6464         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6465         hexa-decimal floats without exponent.
6466         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6467
6468 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6469
6470         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
6471         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
6472         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
6473         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
6474         GLIBC_2.6.
6475         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
6476         Add sched_getcpu.
6477
6478 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6479
6480         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
6481         of 0 after the out_fail label.
6482
6483 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6484
6485         [BZ #4406]
6486         * iconv/gconv_charset.h (strip): Allow ':'.
6487         * iconv/iconv_open.c (iconv_open): Adjust comment.
6488
6489 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6490
6491         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
6492         version.
6493
6494 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6495
6496         [BZ #4381]
6497         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
6498         alignment of buffer and tmp_buffer.
6499         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
6500         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
6501         alignment of buffer.
6502         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
6503         bigger than INT_MAX.
6504         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
6505         h_errnop arguments.  Fail if buflen is too small.
6506         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6507
6508 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6509
6510         [BZ #4405]
6511         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6512         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
6513
6514 2007-04-22  Roland McGrath  <roland@redhat.com>
6515
6516         * elf/elf.h (NT_PRXFPREG): New macro.
6517
6518 2007-04-19  Andreas Jaeger  <aj@suse.de>
6519
6520         [BZ #3905]
6521         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6522         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6523         Added.
6524
6525 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
6526
6527         * include/sys/mman.h: Mark madvise hidden.
6528         * misc/madvise.c: Add libc_hidden_def.
6529
6530 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
6531
6532         * nis/nis_domain_of.c (__nis_domain_of): New function.
6533         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
6534         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6535         * nis/nis_call.c (rec_dirsearch): Likewise.
6536         (first_shoot): Likewise.  Remove search_parent_first argument.
6537         (struct nis_server_cache): Rename search_parent_first field
6538         to search_parent.
6539         (nis_server_cache_search, nis_server_cache_add): Rename
6540         search_parent_first argument to search_parent.
6541         (__nisfind_server): Likewise.  If search_parent, call
6542         __nis_domain_of.
6543
6544 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
6545
6546         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
6547
6548 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
6549
6550         [BZ #4368]
6551         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
6552
6553 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
6554
6555         [BZ #4364]
6556         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
6557
6558 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
6559
6560         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
6561         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
6562         current number of locales in SUPPORTED.
6563         (create_archive): Initialize serial.
6564         (enlarge_archive): Preserve aliases rather than duplicating
6565         their locrecs.
6566
6567 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6568
6569         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
6570         after _IO_un_link, not before it.
6571
6572         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
6573         special case handling when wcp == wstartp + 1.  Fix a comment typo.
6574         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
6575
6576 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
6577
6578         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
6579         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
6580         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
6581         Remove __THROW.
6582         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
6583         _IO_file_xsgetn_maybe_mmap): Likewise.
6584         * libio/oldfileops.c (old_do_write): Likewise.
6585         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
6586         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
6587         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
6588         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
6589         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
6590         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
6591         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
6592         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
6593         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
6594         _IO_file_underflow, _IO_file_underflow_mmap,
6595         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
6596         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
6597         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
6598         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
6599         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
6600         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
6601         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
6602         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
6603         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
6604         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
6605         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
6606         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
6607         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
6608         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
6609         _IO_adjust_column_internal, _IO_default_uflow_internal,
6610         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
6611         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
6612         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
6613         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
6614         _IO_file_close_it_internal, _IO_file_underflow_internal,
6615         _IO_file_overflow_internal, _IO_file_attach_internal,
6616         _IO_file_fopen_internal, _IO_file_sync_internal,
6617         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
6618         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
6619         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
6620         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
6621         _IO_seekpos_unlocked): Likewise.
6622         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
6623         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
6624
6625 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
6626
6627         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
6628         argument in xmalloc size computation.
6629
6630 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
6631
6632         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
6633         math_opt_barrier and math_force_eval macros.
6634
6635 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6636
6637         [BZ #3306]
6638         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
6639         * sysdeps/i386/fpu/math_private.h: New file.
6640         * sysdeps/x86_64/fpu/math_private.h: New file.
6641         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
6642         math_force_eval macros.  Use "+m" constraint on asm rather than
6643         "=m" and "m".
6644         * math/s_nextafter.c (__nextafter): Likewise.
6645         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
6646         Likewise.
6647         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6648         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
6649         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6650         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
6651         math_opt_barrier and math_force_eval macros.
6652         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
6653         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
6654         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
6655         (__nexttoward): Use math_opt_barrier and
6656         math_force_eval macros.  Use "+m" constraint on asm rather than
6657         "=m" and "m".  Only use asm to force double result if
6658         FLT_EVAL_METHOD is 2.
6659         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
6660         (__nexttowardf): Use math_opt_barrier and
6661         math_force_eval macros.  Use "+m" constraint on asm rather than
6662         "=m" and "m".  Only use asm to force double result if
6663         FLT_EVAL_METHOD is not 0.
6664         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
6665         (__nexttowardf): Use math_opt_barrier and
6666         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6667         x to float using asm.
6668         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
6669         (__nldbl_nexttowardf): Use math_opt_barrier and
6670         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6671         x to float using asm.
6672         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
6673         (__nexttowardf): Use math_opt_barrier and math_force_eval
6674         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
6675         * math/bug-nextafter.c (zero, inf): New variables.
6676         (main): Add new tests.
6677         * math/bug-nexttoward.c (zero, inf): New variables.
6678         (main): Add new tests.
6679
6680 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
6681
6682         [BZ #3427]
6683         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
6684         exceptions both in SW and MXCSR.
6685         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
6686         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
6687         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6688         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6689         in MXCSR if SSE is available.
6690         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
6691         and ldsodefs.h.
6692         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
6693         Fix comment typo.
6694         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
6695         Return 0 rather than 1.
6696         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
6697         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
6698         * math/test-fenv.c (feholdexcept_tests): New function.
6699         (main): Call it.
6700
6701 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
6702
6703         [BZ #3427]
6704         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6705         in SW.
6706
6707 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6708
6709         [BZ #4344]
6710         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
6711         Reported by David Anderson <davea42@earthlink.net>.
6712
6713 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
6714
6715         * posix/sys/wait.h: Remove unnecessary forward declaration.
6716
6717 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
6718
6719         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
6720         with obj->do_servers after first_shoot.
6721
6722 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
6723
6724         * posix/Makefile (routines): Add sched_cpucount.
6725         (tests): Add tst-cpucount.
6726         * posix/sched_cpucount.c: New file.
6727         * posix/tst-cpucount.c: New file.
6728         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
6729         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
6730         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6731         * posix/sched.h: Define CPU_COUNT.
6732
6733 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6734
6735         * posix/fnmatch.c (STRUCT): Define.
6736         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
6737         * posix/fnmatch_loop.c (struct STRUCT): New type.
6738         (FCT): Add ends argument.  If ends != NULL and normal * is
6739         seen in the pattern, store current pattern and string pointers
6740         and return.  Adjust recursive calls.
6741         (EXT): Adjust FCT callers.
6742         (STRUCT): Undef at the end of the file.
6743         * posix/Makefile (tests): Add tst-fnmatch2.
6744         * posix/tst-fnmatch2.c: New test.
6745
6746 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
6747
6748         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
6749         and 1 on failure.
6750
6751         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
6752         Change last argument to unsigned int.
6753
6754 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
6755
6756         * scripts/check-local-headers.sh: Filter out sys/capability.h.
6757
6758 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
6759
6760         * config.h.in (HAVE_LIBCAP): Add.
6761         * nscd/selinux.h: Include sys/capability.h rather than non-existent
6762         sys/capabilities.h.
6763         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
6764         free_caps.  Cast away const from 4th cap_set_flag argument.
6765
6766 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
6767
6768         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
6769         GLIBC_2.6.
6770         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6771         Add sync_file_range.
6772         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
6773
6774 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
6775
6776         * sysdeps/powerpc/bits/atomic.h
6777         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
6778         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
6779         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6780         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
6781         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6782         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
6783         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
6784         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6785         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6786         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6787         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
6788         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6789         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6790         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6791         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6792         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
6793         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6794         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
6795         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6796         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
6797
6798 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
6799
6800         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6801         (__cache_line_size): Define the variable here.  Add
6802         attribute_hidden, remove weak_extern.
6803         (__libc_start_main): Set __cache_line_size
6804         unconditionally.
6805         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
6806         (__cache_line_size): Define the variable here.  Add
6807         attribute_hidden, remove weak_extern.
6808         (DL_PLATFORM_AUXV): Set __cache_line_size
6809         unconditionally.
6810         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
6811         weak_extern, add attribute_hidden.
6812         (__elf_machine_runtime_setup): Assume __cache_line_size is always
6813         defined in ld.so.
6814         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
6815         definition.
6816         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
6817
6818 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
6819
6820         [BZ #4276]
6821         * timezone/africa: Update from tzdata2007d.
6822         * timezone/asia: Likewise.
6823         * timezone/australasia: Likewise.
6824         * timezone/backward: Likewise.
6825         * timezone/europe: Likewise.
6826         * timezone/iso3166.tab: Likewise.
6827         * timezone/leapseconds: Likewise.
6828         * timezone/northamerica: Likewise.
6829         * timezone/southamerica: Likewise.
6830         * timezone/zone.tab: Likewise.
6831
6832         * timezone/private.h: Update from tzcode2007d.
6833         * timezone/zdump.c: Likewise.
6834         * timezone/zic.c: Likewise.
6835
6836 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
6837
6838         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
6839         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
6840         variables.
6841         (nis_server_cache_search, nis_server_cache_add): New functions.
6842         (__nisfind_server): Use them.  Add dbp and flags argument, if
6843         call __nisbind_create.
6844         (__nisbind_create): Add server_used and current_ep arguments,
6845         only call __nis_findfastest if server_used is ~0.
6846         (__do_niscall2, __prepare_niscall): Adjust callers.
6847         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
6848         ckey_cache_euid, ckey_cache_lock): New variables.
6849         (get_ckey): New function.
6850         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
6851         __pmap_getnisport.  Save __pmap_getnisport result in
6852         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
6853         key.
6854         * nis/nis_lookup.c (nis_lookup): Likewise.
6855         * nis/nis_table.c (nis_list): Likewise.
6856         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
6857         prototypes.
6858
6859         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
6860         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
6861         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
6862         _nss_nisplus_getservbyport_r): Likewise.
6863         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
6864         _nss_nisplus_getnetbyaddr_r): Likewise.
6865         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
6866         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
6867         _nss_nisplus_getntohost_r): Likewise.
6868         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
6869         _nss_nisplus_getrpcbynumber_r): Likewise.
6870
6871 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
6872
6873         * configure.in (libc_cv_gnu89_inline): Only do compile test.
6874         * configure: Rebuilt.
6875
6876         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
6877         bit-fields.
6878         * soft-fp/extended.h (_FP_UNION_E): Likewise.
6879
6880 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
6881
6882         [BZ #2831]
6883         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
6884         bit-fields.
6885
6886 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
6887
6888         * nscd/gai.c: Include alloca.h.
6889         (__libc_use_alloca): Define.
6890
6891 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
6892
6893         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
6894         smaller scopes.
6895         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
6896         (DL_DST_REQUIRED): Adjust user.
6897
6898         * include/dlfcn.h (struct link_map): New forward decl.
6899
6900         * inet/getnameinfo.c: Include stddef.h.
6901         (getnameinfo): Use offsetof.
6902
6903         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
6904
6905         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
6906
6907         * string/strerror_l.c: Include stdlib.h.
6908
6909         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
6910         * config.make.in (gnu89-inline-CFLAGS): New variable.
6911         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
6912         -std=gnu99.
6913         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
6914         * argp/argp.h: Use it.
6915         * bits/mathinline.h: Likewise.
6916         * bits/sigset.h: Likewise.
6917         * bits/string.h: Likewise.
6918         * ctype/ctype.h: Likewise.
6919         * hurd/hurd.h: Likewise.
6920         * hurd/hurd/fd.h: Likewise.
6921         * hurd/hurd/port.h: Likewise.
6922         * hurd/hurd/signal.h: Likewise.
6923         * hurd/hurd/threadvar.h: Likewise.
6924         * hurd/hurd/userlink.h: Likewise.
6925         * io/sys/stat.h: Likewise.
6926         * libio/bits/stdio.h: Likewise.
6927         * libio/bits/stdio2.h: Likewise.
6928         * mach/lock-intern.h: Likewise.
6929         * mach/mach/mig_support.h: Likewise.
6930         * math/bits/cmathcalls.h: Likewise.
6931         * posix/bits/unistd.h: Likewise.
6932         * socket/bits/socket2.h: Likewise.
6933         * stdlib/bits/stdlib.h: Likewise.
6934         * stdlib/stdlib.h: Likewise.
6935         * string/argz.h: Likewise.
6936         * string/bits/string2.h: Likewise.
6937         * string/bits/string3.h: Likewise.
6938         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
6939         * sysdeps/generic/inttypes.h: Likewise.
6940         * sysdeps/generic/machine-lock.h: Likewise.
6941         * sysdeps/generic/machine-sp.h: Likewise.
6942         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6943         * sysdeps/i386/i486/bits/string.h: Likewise.
6944         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
6945         * sysdeps/mach/alpha/machine-lock.h: Likewise.
6946         * sysdeps/mach/alpha/machine-sp.h: Likewise.
6947         * sysdeps/mach/i386/machine-lock.h: Likewise.
6948         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
6949         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
6950         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6951         * sysdeps/s390/bits/string.h: Likewise.
6952         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
6953         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6954         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6955         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
6956         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6957         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
6958         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6959         * wcsmbs/bits/wchar2.h: Likewise.
6960         * wcsmbs/wchar.h: Likewise.
6961         * stdlib/gmp.h: Likewise.  Include <features.h> to get
6962         __extern_inline definition.
6963
6964 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
6965
6966         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
6967         NULL.
6968
6969         [BZ #3919]
6970         * math/libm-test.inc (log_test): Test -Inf and NaN.
6971         (log10_test, log1p_test, log2_test): Test -Inf.
6972         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
6973         FE_INVALID when argument is qNaN.
6974         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
6975         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
6976         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
6977         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
6978         andb $1, %ah with testb $1, %ah, don't test for parity, instead
6979         testb $4, %ah and jump if non-zero.
6980         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
6981         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
6982
6983         [BZ #4101]
6984         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
6985         ancestors with the same depths.
6986         Patch by Niels Moeller <nisse@lysator.liu.se>.
6987         (filter_doc): Don't crash if argp is NULL.
6988         * argp/Makefile (tests): Add tst-argp2.
6989         * argp/tst-argp2.c: New test.
6990
6991         [BZ #4130]
6992         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
6993         open_not_cancel_2.
6994         (updwtmp_file): Likewise.
6995
6996         [BZ #4181]
6997         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
6998         (inet6_opt_append): Don't check extlen is big enough if extbuf
6999         is NULL.
7000         (inet6_opt_finish): Likewise.
7001         * inet/Makefile (tests): Add test-inet6_opt.
7002         * inet/test-inet6_opt.c: New test.
7003
7004         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
7005         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
7006         NLMSG_ERR.  Instead use a page sized buffer.
7007         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
7008         buffer.
7009
7010 2007-03-14  Richard Henderson  <rth@redhat.com>
7011
7012         * sysdeps/alpha/fpu/s_llround.c: New file.
7013         * sysdeps/alpha/fpu/s_llroundf.c: New file.
7014         * sysdeps/alpha/fpu/s_lround.c: New file.
7015         * sysdeps/alpha/fpu/s_lroundf.c: New file.
7016         * sysdeps/alpha/fpu/s_round.c: New file.
7017         * sysdeps/alpha/fpu/s_roundf.c: New file.
7018         * sysdeps/alpha/fpu/s_trunc.c: New file.
7019         * sysdeps/alpha/fpu/s_truncf.c: New file.
7020
7021         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
7022         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
7023         * sysdeps/alpha/fpu/s_floor.c: Likewise.
7024         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
7025         * sysdeps/alpha/fpu/s_rint.c: Likewise.
7026         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7027
7028         * sysdeps/alpha/fpu/s_fmax.S: New file.
7029         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
7030         * sysdeps/alpha/fpu/s_fmin.S: New file.
7031         * sysdeps/alpha/fpu/s_fminf.S: New file.
7032         * sysdeps/alpha/fpu/s_isnan.c: New file.
7033         * sysdeps/alpha/fpu/s_isnanf.c: New file.
7034         * sysdeps/alpha/fpu/s_llrint.c: New file.
7035         * sysdeps/alpha/fpu/s_llrintf.c: New file.
7036         * sysdeps/alpha/fpu/s_lrint.c: New file.
7037         * sysdeps/alpha/fpu/s_lrintf.c: New file.
7038         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
7039         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
7040
7041         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
7042         (__fdimf, fdimf, __fdim, fdim): Remove.
7043         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
7044         (__isnanf, __isnan, __isnanl): New.
7045
7046 2007-03-13  Richard Henderson  <rth@redhat.com>
7047
7048         * sysdeps/ieee754/ldbl-128/Makefile: New file.
7049
7050 2007-03-13  Richard Henderson  <rth@redhat.com>
7051
7052         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
7053         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
7054         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
7055         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
7056         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
7057         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
7058
7059 2007-03-13  Richard Henderson  <rth@redhat.com>
7060
7061         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
7062         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
7063         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
7064         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
7065         Move to dl-auxv.h; initialize instead of extern weak.
7066         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
7067         weak symbol.
7068         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
7069         Extern instead of initialized.
7070
7071 2007-03-13  Richard Henderson  <rth@redhat.com>
7072
7073         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
7074         __sigsuspend_nocancel.
7075
7076 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
7077
7078         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
7079         172.16/12 address range.
7080
7081 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
7082
7083         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
7084         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
7085         message.
7086
7087 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
7088
7089         [BZ #4069]
7090         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
7091         earlier.
7092         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
7093
7094         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
7095         for x qNaN and y either +-inf or non-integer value.
7096         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
7097         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
7098         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7099
7100 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
7101
7102         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
7103         from sysdep_headers.
7104
7105 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
7106
7107         * time/tzfile.c (find_transition): Instead of a linear search try to
7108         guess the transition index, use a linear search if the result is at
7109         most 10 transitions away from the guess or binary search otherwise.
7110
7111 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
7112
7113         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7114         memory reallocation.
7115
7116 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
7117
7118         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7119         and fix some typos.
7120         Optimize use of TOLOWER.
7121
7122         [BZ #3325]
7123         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7124         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7125         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7126
7127         [BZ #3458]
7128         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7129         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7130
7131         [BZ #4076]
7132         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7133         (open_dir_stream): Likewise.
7134         * io/Makefile (tests): Add bug-ftw5.
7135         * io/bug-ftw5.c: New file.
7136
7137         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7138         * nscd/servicescache.c (cache_addserv): Likewise.
7139
7140         * nscd/grpcache.c (cache_addgr): In case a record changed on
7141         refresh, adjust key_copy.
7142
7143         [BZ #4074]
7144         * nscd/pwdcache.c (cache_addpw): In case a record changed on
7145         refresh, adjust key_copy.
7146
7147         [BZ #4070]
7148         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
7149         special cases.
7150         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
7151
7152 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
7153
7154         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7155         optimization.
7156
7157         * stdio-common/vfscanf.c: Small cleanups throughout.
7158
7159 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
7160
7161         [BZ #3325]
7162         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7163         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7164         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7165         Patch by Jared Casper <jaredcasper@gmail.com>.
7166
7167         * sysdeps/unix/closedir.c: Outside libc don't use locking.
7168         * sysdeps/unix/opendir.c: Likewise.
7169         * sysdeps/unix/readdir.c: Likewise.
7170
7171         [BZ #2211]
7172         * stdio-common/vfscanf.c: Handle localized digits etc for floating
7173         point numbers.
7174         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7175
7176         * stdio-common/vfscanf.c: Fix problems in width accounting.
7177         * stdio-common/tst-sscanf.c (double_tests): New tests.
7178         (main): Hook them up.
7179
7180         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
7181         More simplifications of floating-point reader.
7182
7183         * stdio-common/Makefile (tests): Add tst-swscanf.
7184         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7185         testing.
7186         * stdio-common/tst-swscanf.c: New file.
7187
7188 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
7189
7190         [BZ #2633]
7191         * libio/stdio.h: Define struct _IO_FILE in global namespace.
7192         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7193         Remove using for __jmp_buf_tag.
7194         * locale/locale.h (struct lconv): Also define in std namespace.
7195         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7196
7197         [BZ #3842]
7198         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7199         using __libc_enable_secure.
7200
7201         [BZ #3818]
7202         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7203
7204         [BZ #3745]
7205         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7206         of names for ellipsises.
7207
7208         [BZ #3348]
7209         * malloc/memusage.sh: Cleanups.
7210         * debug/xtrace.sh: Quoting and trap changes.
7211
7212 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
7213
7214         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7215
7216         * locale/iso-3166.def: Update entry for Serbia.
7217         * locale/iso-4217.def: Define RSD, remove CSD.
7218
7219         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7220         and 64-bit operations.
7221
7222         [BZ #4040]
7223         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7224         16-bit operations.
7225
7226         * nscd/nscd.c (parse_opt): One more conversion to use send instead
7227         of writev.
7228
7229 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
7230
7231         [BZ #3991]
7232         * assert/assert.h (assert): Simplify.
7233         (assert_perror): Likewise.
7234         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7235
7236         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7237         reqdata.
7238
7239         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7240         change: don't pass NULL in place of an integer.
7241
7242 2007-02-02  Bruno Haible  <bruno@clisp.org>
7243
7244         [BZ #3954]
7245         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7246         Add mapping for U+327E.
7247         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7248         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7249         mapping of 0xD9 0xE8.
7250         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7251         mapping of U+327E.
7252         Reported by Jungshik Shin <jungshik@google.com>.
7253
7254         [BZ #3955]
7255         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7256         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7257         Reported by Jungshik Shin <jungshik@google.com>.
7258
7259 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
7260
7261         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7262         byte variants.
7263
7264         [BZ #4040]
7265         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7266         byte variants.  Patch mostly be tom@tommay.net.
7267
7268 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
7269
7270         [BZ #3996]
7271         * posix/glob.c (attribute_hidden): Define if not defined.
7272         (glob): Unescape dirname, filename or username when needed and not
7273         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
7274         is NULL.  Handle unescaped [ in pattern without closing ].
7275         Don't pass GLOB_CHECK down to recursive glob for directories.
7276         (__glob_pattern_type): New function.
7277         (__glob_pattern_p): Implement using __glob_pattern_type.
7278         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7279         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7280         Remove unreachable code.
7281         * posix/globtest.sh: Add a couple of new tests.
7282
7283 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
7284
7285         * po/ru.po: Update from translation team.
7286
7287 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
7288
7289         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7290         to the list of i486+ CPUs.
7291         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7292
7293 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
7294
7295         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7296         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7297         references.
7298
7299 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
7300
7301         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7302
7303         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7304         * resolv/res_mkquery.c: Define __res_nopt.
7305         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7306         try adding EDNS0 record.
7307         * resolv/res_send.c (send_dg): If request failed with FORMERR and
7308         EDNS0 record was send make sure we don't try it again.
7309         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7310         * include/resolv.h: Declare __res_nopt.
7311
7312 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
7313
7314         [BZ #3944]
7315         * time/strptime_l.c (__strptime_internal): Set have_mon for
7316         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
7317         have been computed from tm_yday and tm_year.  Don't crash
7318         in day_of_the_week or day_of_the_year if not have_mon
7319         and tm_mon contains bogus value.
7320         * time/Makefile (tests): Add tst-strptime3.
7321         * time/tst-strptime3.c: New test.
7322
7323 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
7324
7325         [BZ #3957]
7326         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7327         bit for RE_HAT_LISTS_NOT_NEWLINE.
7328         (build_charclass_op): Remove bogus comment.
7329         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7330         * posix/bug-regex27.c: New test.
7331         * posix/bug-regex28.c: New test.
7332
7333 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
7334
7335         * po/sv.po: Update from translation team.
7336
7337 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
7338
7339         * nscd/nscd_helper.c (open_socket): Minor size optimization.
7340
7341 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
7342
7343         * include/locale.h (__uselocale): Add libc_hidden_proto.
7344         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7345
7346         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7347         gettimeofday.
7348
7349 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
7350
7351         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7352         returning.
7353         (PTR_DEMANGLE): Real definition now that it's not the same as
7354         PRT_MANGLE anymore.
7355         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7356
7357         * string/strerror_l.c: New file.
7358         * string/Makefile (routines): Add strerror_l.
7359         * string/string.h: Declare strerror_l.
7360         * string/Versions: Export strerror_l for GLIBC_2.6.
7361
7362 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
7363
7364         * nscd/nscd_helper.c (open_socket): Now takes request type and key
7365         as parameter.  Construct request record.  Try sending request
7366         before the first poll use, it usually succeeds.  Adjust all
7367         callers.
7368         * nscd/nscd-client.h: Define MAXKEYLEN.
7369         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
7370
7371 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
7372
7373         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7374         from return value.
7375         * nscd/nscd_helper.c: Include string.h.
7376         (__nscd_cache_search): Remove const qualifier from return value.
7377         On strict alignment architectures check hash entry and data head
7378         alignment.
7379         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7380         mmapped data during GC cycle contains garbage.  If
7381         __nscd_drop_map_ref fails, decrement mapped->counter when returning
7382         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7383         dropped to 0.
7384         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7385         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7386         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7387         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7388         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7389
7390 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
7391
7392         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7393
7394 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
7395
7396         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7397         names not numbers in cfi_*.
7398
7399 2007-01-26  Andreas Jaeger  <aj@suse.de>
7400
7401         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
7402         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
7403         Correct values of PER_HPUX and PER_OSF4.
7404
7405 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
7406
7407         * elf/dl-minimal.c: Undefine _itoa first.
7408         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7409         * malloc/mtrace.c: Revert last change.
7410         * posix/wordexp.c: Likewise.
7411
7412 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
7413
7414         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7415         and __geode__ to the list of i486+ CPUs.
7416         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7417
7418 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
7419
7420         * stdio-common/_itoa.c: Include <limits.h>.
7421         * stdio-common/_itowa.c: Likewise.
7422
7423 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
7424
7425         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7426         platforms.
7427         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7428         64-bit platforms.
7429         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7430         possible.
7431         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7432         if possible.
7433
7434         [BZ #3902]
7435         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7436         * stdio-common/Makefile (tests): Add bug17.
7437         * stdio-common/bug17.c: New file.
7438
7439 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
7440
7441         * iconvdata/brf.c: New file.
7442         * iconvdata/testdata/BRF: New file.
7443         * iconvdata/testdata/BRF..UTF8: New file.
7444         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7445         * iconvdata/Makefile: Add rules to build BRF.
7446         * iconvdata/TESTS: Add BRF entry.
7447         * iconvdata/gconv-modules: Likewise.
7448         * iconvdata/tst-tables.sh: Likewise.
7449
7450 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
7451
7452         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7453         type `long long int', not `long int'.
7454         (wcstoq): Likewise.
7455
7456 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
7457
7458         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7459         of values on 64-bit platforms which are too large.
7460
7461 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
7462             Joe Kerian  <jkerian@us.us.ibm.com>
7463
7464         [BZ #2749]
7465         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7466         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
7467         (__copysignl): Use signbit() for comparison.
7468         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7469         SET_LDOUBLE_WORDS64.
7470
7471         [BZ #2423, #2749]
7472         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
7473         (__ceill): Remove calls to fegetround(), fesetround().
7474         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7475         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7476         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7477
7478 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
7479
7480         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
7481
7482         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
7483
7484 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
7485
7486         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
7487         demangle pointer.
7488         * csu/libc-start.c: Likewise.
7489
7490 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
7491
7492         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
7493         really work anyway.
7494
7495 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7496
7497         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
7498         users.
7499         (handle_request): Remove unnecessary tests.
7500
7501         * nscd/cache.c (cache_add): Record the failure to add to the cache.
7502
7503 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
7504
7505         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7506         workbits in semi-raw fraction.
7507
7508         * math/test-misc.c: Add new tests.
7509
7510 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
7511
7512         * math/basic-test.c: Include test-skeleton.c.
7513         (TEST_TRUNC): Define.
7514         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7515         (main): Rename to ...
7516         (do_test): ...this.  Run new tests.
7517         (TEST_FUNCTION): Define.
7518
7519 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
7520             Joe Kerian  <jkerian@us.us.ibm.com>
7521
7522         [BZ #2749]
7523         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7524         handling for high words.
7525         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7526         and overflow for infinity.
7527
7528 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7529
7530         * nscd/connections.c (handle_request): Add a __builtin_expect.
7531
7532         * nscd/connections.c (serv2db): Change type into structure which
7533         also says whether this is a request for data.  Renamed to
7534         servinfo.  All users changed.
7535         (handle_request): Much simpler test whether we should search the cache.
7536
7537         * nscd/connections.c (handle_request): Fix thinko in selinux test
7538         invocation.
7539
7540         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7541         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7542         it before getting dl_load_lock and then relock.
7543         (_dl_lookup_symbol_x): Pass flags to add_dependency.
7544         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
7545         case we unlocked the scope.
7546         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
7547         _dl_lookup_symbol_x in case we locked the scope.
7548         (_dl_profile_fixup): Likewise.
7549         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
7550         set DL_LOOKUP_SCOPE_LOCK.
7551
7552 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
7553
7554         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
7555         CFLAGS-getsrvbynpt_r.c.
7556         * nscd/getsrvbynm_r.c: New file.
7557         * nscd/getsrvbypt_r.c: New file.
7558         * nscd/nscd_getserv_r.c: New file.
7559         * nscd/servicescache.c: New file.
7560         * nscd/Makefile (routines): Add nscd_getserv_r.
7561         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
7562         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
7563         CFLAGS-getsrvbypt_r.c.
7564         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
7565         table.  Add entries for services database.
7566         * nscd/connections.c (serv2str): Mark as const.  Add entries for
7567         services database.
7568         (dbs): Add .reset_res and servdb initialization.
7569         (serv2db): Add entries for services database.
7570         (verify_persistent_db): Accept dbnr == servdb.
7571         (invalidate_cache): Rewrite database name recognition to use a table.
7572         Call res_init() if .reset_res is set for database.
7573         (handle_request): Add code to handle services database.
7574         * nscd/gai.c: Don't define __getservbyname_r.
7575         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
7576         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
7577         (serv_response_header): Define.
7578         (struct datahead): Add serv_response_header member.
7579         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
7580         using table.
7581         * nscd/nscd.conf: Add entries for services database.
7582         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
7583         Declare serv_iov_disabled.
7584         Declare addservbyname, readdservbyname, addservbyport, and
7585         readdservbyport.
7586         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
7587         (find_db): Fix error message.
7588         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
7589         __nscd_getservbyname_r, and __nscd_getservbyport_r.
7590         * nscd/selinux.c (perms): Add entries for services database.
7591         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
7592         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
7593
7594         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
7595         * nscd/hstcache.c: Likewise.
7596         * nscd/pwdcache.c: Likewise.
7597
7598         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
7599         computation of keylen.
7600
7601         * include/string.h: Only redefine strndupa if this is really for
7602         libc code.
7603
7604 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
7605
7606         * nscd/nscd_gethst_r.c: Minor cleanups.
7607
7608         * nscd/connections.c (handle_request): Check selinux permissions
7609         for all non-admin commands.
7610
7611         * sysdeps/i386/i486/bits/atomic.h: Define
7612         atomic_compare_and_exchange_val_acq,
7613         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
7614         using __sync_* built-ins for gcc >= 4.1.
7615         * sysdeps/x86_64/bits/atomic.h: Likewise.
7616
7617         [BZ #3840]
7618         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
7619         and .oS.d files.
7620
7621 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
7622
7623         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
7624         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
7625         (do_test): Check errno and exit(0) if ENOSYS.
7626
7627 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7628
7629         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
7630         thousands separators.
7631         * stdlib/Makefile: Add rules to build and run tst-strtod4.
7632         * stdlib/tst-strtod4.c: New test.
7633
7634         [BZ #3855]
7635         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
7636         hexadecimal digit should accept just the initial 0.
7637         * stdlib/tst-strtod2.c (tests): New variable.
7638         (do_test): Run several tests rather than just one.
7639
7640 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7641
7642         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
7643         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
7644
7645 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
7646
7647         * io/fts.c: Make sure fts_cur is always valid after return from
7648         fts_read.
7649         Patch by Miloslav Trmac <mitr@redhat.com>.
7650
7651 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
7652
7653         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
7654         (R_MIPS_NUM): Bump by 1.
7655
7656 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
7657
7658         * posix/execvp.c: Include alloca.h.
7659         (allocate_scripts_argv): Renamed to...
7660         (scripts_argv): ... this.  Don't allocate buffer here nor count
7661         arguments.
7662         (execvp): Use alloca if possible.
7663         * posix/Makefile: Add rules to build and run tst-vfork3 test.
7664         * posix/tst-vfork3.c: New test.
7665
7666 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
7667
7668         * string/Makefile (tst-strxfrm2-ENV): Define.
7669         * stdlib/Makefile (tst-strtod3-ENV): Define.
7670
7671 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
7672
7673         * posix/getconf.c: Update copyright year.
7674         * nss/getent.c: Likewise.
7675         * iconv/iconvconfig.c: Likewise.
7676         * iconv/iconv_prog.c: Likewise.
7677         * elf/ldconfig.c: Likewise.
7678         * catgets/gencat.c: Likewise.
7679         * csu/version.c: Likewise.
7680         * elf/ldd.bash.in: Likewise.
7681         * elf/sprof.c (print_version): Likewise.
7682         * locale/programs/locale.c: Likewise.
7683         * locale/programs/localedef.c: Likewise.
7684         * nscd/nscd.c (print_version): Likewise.
7685         * debug/xtrace.sh: Likewise.
7686         * malloc/memusage.sh: Likewise.
7687         * malloc/mtrace.pl: Likewise.
7688         * debug/catchsegv.sh: Likewise.
7689
7690 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
7691
7692         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
7693         attempts.
7694
7695 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
7696
7697         * posix/wordexp.c: Remove some unnecessary tests.
7698
7699 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
7700
7701         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
7702         blacklist the group till after we look it up.
7703
7704 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
7705
7706         * include/atomic.h (atomic_forced_read): New macro.
7707
7708 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
7709
7710         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
7711
7712 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
7713
7714         * nss/getXXbyYY_r.c: Include atomic.h.
7715         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
7716         add atomic_write_barrier () in between.
7717
7718         * stdlib/Makefile (tests): Add tst-makecontext.
7719         * stdlib/tst-makecontext.c: New test.
7720
7721         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
7722         (__makecontext): Don't realign uc_mcontext.uc_regs.
7723
7724 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
7725
7726         * elf/dl-support.c: Include dl-procinfo.h.
7727         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
7728         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
7729         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
7730         Define.
7731         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
7732         hardcoded constants.
7733         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
7734         PPC_PLATFORM_* macros for array designators.
7735
7736 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
7737
7738         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
7739         names to the beginning.
7740         (_dl_powerpc_platforms): Add "power6x".
7741         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
7742         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
7743         (_DL_PLATFORMS_COUNT): Increase.
7744         (_dl_string_platform): Handle power6x case.
7745         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
7746         PPC_FEATURE_POWER6_EXT): Define.
7747         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
7748
7749 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
7750
7751         [BZ #3747]
7752         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
7753         [-2^31 .. 2^31) range.
7754         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
7755         targets.
7756         * stdlib/tst-rand48-2.c: New test.
7757         * stdlib/Makefile (tests): Add tst-rand48-2.
7758
7759 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
7760
7761         * misc/tst-pselect.c (do_test): Fix sigblock argument.
7762
7763 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
7764
7765         * misc/tst-pselect.c (do_test): Make sure the helper process is
7766         terminating when the test is aborted.
7767
7768 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
7769
7770         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
7771         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7772         Handle relatime mount option.
7773
7774         [BZ #2337]
7775         * libio/Makefile (tests): Add tst-setvbuf1.
7776         * libio/tst-setvbuf1.c: New file.
7777
7778 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
7779
7780         [BZ #2337]
7781         * libio/genops.c (__uflow): Fix a typo.
7782         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
7783         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
7784         the narrow buffer size.
7785
7786 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
7787
7788         [BZ #2337]
7789         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
7790         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
7791         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
7792         in _flags.
7793         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
7794         _IO_wstr_finish): Likewise.
7795         * libio/wmemstream.c (open_wmemstream): Likewise.
7796         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
7797         even for wide streams.
7798
7799 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
7800
7801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
7802         kernel-features.h.
7803
7804 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
7805
7806         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
7807         separators also if no non-zero digits found.
7808         * stdlib/Makefile (tests): Add tst-strtod3.
7809
7810 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
7811
7812         [BZ #3632]
7813         * include/features.h: Fix comment about default value for
7814         _POSIX_C_SOURCE.
7815
7816         [BZ #3664]
7817         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
7818         empty parsed strings.
7819         * stdlib/Makefile (tests): Add tst-strtod2.
7820         * stdlib/tst-strtod2.c: New file.
7821
7822         [BZ #3673]
7823         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
7824         computation.
7825         * stdlib/Makefile (tests): Add tst-atof2.
7826         * stdlib/tst-atof2.c: New file.
7827
7828         [BZ #3674]
7829         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
7830         correctly if removing trailing zero of hex-float.
7831         * stdlib/Makefile (tests): Add tst-atof1.
7832         * stdlib/tst-atof1.c: New file.
7833
7834 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
7835
7836         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
7837         Start searching for next comma at p rather than rest.
7838         * misc/Makefile (tests): Add tst-mntent2.
7839         * misc/tst-mntent2.c: New test.
7840
7841         * misc/getusershell.c (initshells): Check for integer overflows.
7842         Make strings buffer one bigger as fgets always succeeds when second
7843         argument is 1.  Don't use calloc for shells array.  Disallow
7844         / as shell.
7845
7846 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
7847
7848         * malloc/memusage.c: Handle realloc with new size of zero and
7849         non-NULL pointer correctly.
7850         (me): Really write first record twice.
7851         (struct entry): Make format bi-arch safe.
7852         (dest): Write out more realloc statistics.
7853         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
7854
7855 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
7856
7857         * nis/nis_subr.c (nis_getnames): Revert last change.
7858
7859 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
7860
7861         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
7862         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
7863         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
7864         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
7865         ENOTTY.
7866         * io/Makefile: Add rules to build and run tst-ttyname_r test.
7867         * io/tst-ttyname_r.c: New test.
7868
7869 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7870
7871         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
7872
7873 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
7874
7875         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
7876         jump table entries.
7877
7878 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
7879
7880         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
7881         `clone' function to ensure proper unwinding stop of gdb.
7882         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
7883
7884 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
7885
7886         * nscd/nscd.init: Remove obsolete and commented-out -S option
7887         handling.
7888
7889 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
7890
7891         [BZ #3514]
7892         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
7893
7894         [BZ #3515]
7895         * manual/string.texi (strtok): Remove duplicate paragraph.
7896
7897 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
7898
7899         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
7900         libgcc not supporting `rflags' unwinding (register # >= 17).
7901
7902 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
7903
7904         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
7905         succeeded.
7906
7907 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
7908             Jakub Jelinek  <jakub@redhat.com>
7909             Jan Kratochvil  <jan.kratochvil@redhat.com>
7910
7911         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
7912         unwind information.
7913         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
7914         'restore_rt' even in the 'signal' directory.
7915         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
7916
7917 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
7918
7919         [BZ #3559]
7920         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
7921         malloc crashed.  Don't allocate memory unnecessarily in each
7922         loop.
7923
7924 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
7925
7926         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
7927
7928 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
7929
7930         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
7931
7932 2006-11-18  Bruno Haible  <bruno@clisp.org>
7933
7934         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
7935         __sysconf only after having tried to call getgroups32.
7936
7937 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
7938
7939         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
7940         addresses for IPv4 queries if they can be mapped.
7941
7942 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
7943
7944         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
7945         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
7946         (signmask): Add .size directive.
7947         (othermask): Add .type directive.
7948
7949 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
7950
7951         * po/nl.po: Update from translation team.
7952
7953         * timezone/zdump.c: Redo fix for BZ #3137.
7954
7955 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
7956
7957         * nss/nss_files/files-alias.c (get_next_alias): Set line back
7958         to first_unused after parsing :include: file.
7959
7960 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
7961
7962         * timezone/africa: Update from tzdata2006o.
7963         * timezone/antarctica: Likewise.
7964         * timezone/asia: Likewise.
7965         * timezone/australasia: Likewise.
7966         * timezone/backward: Likewise.
7967         * timezone/europe: Likewise.
7968         * timezone/iso3166.tab: Likewise.
7969         * timezone/northamerica: Likewise.
7970         * timezone/southamerica: Likewise.
7971         * timezone/zone.tab: Likewise.
7972
7973         * time/tzfile.c (__tzfile_read): Extend to handle new file format
7974         on machines with 64-bit time_t.
7975
7976         * timezone/checktab.awk: Update from tzcode2006o.
7977         * timezone/ialloc.c: Likewise.
7978         * timezone/private.h: Likewise.
7979         * timezone/scheck.c: Likewise.
7980         * timezone/tzfile.h: Likewise.
7981         * timezone/tzselect.ksh: Likewise.
7982         * timezone/zdump.c: Likewise.
7983         * timezone/zic.c: Likewise.
7984
7985         [BZ #3483]
7986         * elf/ldconfig.c (main): Call setlocale and textdomain.
7987         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
7988
7989         [BZ #3480]
7990         * manual/argp.texi: Fix typos.
7991         * manual/charset.texi: Likewise.
7992         * manual/errno.texi: Likewise.
7993         * manual/filesys.texi: Likewise.
7994         * manual/lang.texi: Likewise.
7995         * manual/maint.texi: Likewise.
7996         * manual/memory.texi: Likewise.
7997         * manual/message.texi: Likewise.
7998         * manual/resource.texi: Likewise.
7999         * manual/search.texi: Likewise.
8000         * manual/signal.texi: Likewise.
8001         * manual/startup.texi: Likewise.
8002         * manual/stdio.texi: Likewise.
8003         * manual/sysinfo.texi: Likewise.
8004         * manual/syslog.texi: Likewise.
8005         * manual/time.texi: Likewise.
8006         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8007
8008         [BZ #3465]
8009         * sunrpc/clnt_raw.c: Minimal message improvements.
8010         * sunrpc/pm_getmaps.c: Likewise.
8011         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8012         * nis/nis_print_group_entry.c: Likewise.
8013         * locale/programs/repertoire.c: Likewise.
8014         * locale/programs/charmap.c: Likewise.
8015         * malloc/memusage.sh: Likewise.
8016         * elf/dl-deps.c: Likewise.
8017         * locale/programs/ld-collate.c: Likewise.
8018         * libio/vswprintf.c: Likewise.
8019         * malloc/memusagestat.c: Likewise.
8020         * sunrpc/auth_unix.c: Likewise.
8021         * sunrpc/rpc_main.c: Likewise.
8022         * nscd/cache.c: Likewise.
8023         * locale/programs/repertoire.c: Unify output messages.
8024         * locale/programs/charmap.c: Likewise.
8025         * locale/programs/ld-ctype.c: Likewise.
8026         * locale/programs/ld-monetary.c: Likewise.
8027         * locale/programs/ld-numeric.c: Likewise.
8028         * locale/programs/ld-time.c: Likewise.
8029         * elf/ldconfig.c: Likewise.
8030         * nscd/selinux.c: Likewise.
8031         * elf/cache.c: Likewise.
8032         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8033
8034         [BZ #3451]
8035         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
8036         change atomic.
8037         (ceil): Likewise.
8038
8039 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8040
8041         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
8042         if N is one bigger than return value.
8043         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
8044         and l1 last arguments, if buf is defined, verify the return value
8045         equals to strlen (buf) and verify no byte beyond passed length
8046         is modified.
8047
8048 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8049
8050         * po/sv.po: Update from translation team.
8051
8052 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8053
8054         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
8055         noinline attribute.
8056
8057 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8058
8059         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
8060         noinline attribute.
8061
8062         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
8063         Use __new_sys_siglist instead of _sys_siglist_internal as
8064         second macro argument.
8065         (_old_sys_siglist): Use declare_symbol_alias macro instead of
8066         strong_alias.
8067
8068 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8069
8070         [BZ #3493]
8071         * posix/unistd.h (sysconf): Remove const attribute.
8072
8073         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
8074         temporary or deprecated addresses.
8075         Patch by Sridhar Samudrala <sri@us.ibm.com>.
8076
8077         * string/Makefile (tests): Add tst-strxfrm2.
8078         * string/tst-strxfrm2.c: New file.
8079
8080 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
8081
8082         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
8083         rather than r->r_brk.
8084
8085 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
8086
8087         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
8088         optimization even if needed > n.
8089
8090         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
8091         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
8092         return false, otherwise return true.
8093         (cache_rpath): Return decompose_rpath return value.
8094
8095 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
8096
8097         * include/libc-symbols.h (declare_symbol): Rename to...
8098         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
8099         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
8100         .size directive.
8101         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
8102         changes.
8103         * sysdeps/gnu/siglist.c: Likewise.
8104
8105 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
8106
8107         * sysdeps/powerpc/fpu/bits/mathinline.h
8108         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8109         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
8110
8111 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
8112
8113         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8114         Update handling of cache descriptor 0x49 for new models.
8115         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8116         Likewise.
8117
8118 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
8119
8120         * malloc/memusage.c (dest): Reset not_me back to false after
8121         printing statistics.
8122
8123 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
8124
8125         * configure.in: Work around ld --help change and avoid -z relro
8126         test completely if the architecture doesn't care about security.
8127
8128 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
8129
8130         * po/sv.po: Update from translation team.
8131
8132 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
8133
8134         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8135         generate compatibility version.
8136
8137 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
8138
8139         * configure.in: Relax -z relro requirement a bit.
8140
8141         * po/sv.po: Update from translation team.
8142
8143 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
8144
8145         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8146         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8147         * elf/dl-close.c (_dl_close_worker): Likewise.
8148         * elf/dl-open.c (_dl_open_worker): Likewise.
8149         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8150
8151 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
8152
8153         * configure.in: Require assembler support for visibility, compiler
8154         support for visibility and aliases, linker support for various -z
8155         options.
8156         * Makeconfig: Remove conditional code which now is unnecessary.
8157         * config.h.in: Likewise.
8158         * config.make.in: Likewise.
8159         * dlfcn/Makefile: Likewise.
8160         * elf/Makefile: Likewise.
8161         * elf/dl-load.c: Likewise.
8162         * elf/rtld.c: Likewise.
8163         * include/libc-symbols.h: Likewise.
8164         * include/stdio.h: Likewise.
8165         * io/Makefile: Likewise.
8166         * io/fstat.c: Likewise.
8167         * io/fstat64.c: Likewise.
8168         * io/fstatat.c: Likewise.
8169         * io/fstatat64.c: Likewise.
8170         * io/lstat.c: Likewise.
8171         * io/lstat64.c: Likewise.
8172         * io/mknod.c: Likewise.
8173         * io/mknodat.c: Likewise.
8174         * io/stat.c: Likewise.
8175         * io/stat64.c: Likewise.
8176         * libio/stdio.c: Likewise.
8177         * nscd/Makefile: Likewise.
8178         * stdlib/Makefile: Likewise.
8179         * stdlib/atexit.c: Likewise.
8180         * sysdeps/generic/ldsodefs.h: Likewise.
8181         * sysdeps/i386/dl-machine.h: Likewise.
8182         * sysdeps/i386/sysdep.h: Likewise.
8183         * sysdeps/i386/i686/memcmp.S: Likewise.
8184         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8185         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8186         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8187
8188         * Makerules: USE_TLS support is now default.
8189         * tls.make.c: Likewise.
8190         * csu/Versions: Likewise.
8191         * csu/libc-start.c: Likewise.
8192         * csu/libc-tls.c: Likewise.
8193         * csu/version.c: Likewise.
8194         * dlfcn/dlinfo.c: Likewise.
8195         * elf/dl-addr.c: Likewise.
8196         * elf/dl-cache.c: Likewise.
8197         * elf/dl-close.c: Likewise.
8198         * elf/dl-iteratephdr.c: Likewise.
8199         * elf/dl-load.c: Likewise.
8200         * elf/dl-lookup.c: Likewise.
8201         * elf/dl-object.c: Likewise.
8202         * elf/dl-open.c: Likewise.
8203         * elf/dl-reloc.c: Likewise.
8204         * elf/dl-support.c: Likewise.
8205         * elf/dl-sym.c: Likewise.
8206         * elf/dl-sysdep.c: Likewise.
8207         * elf/dl-tls.c: Likewise.
8208         * elf/ldconfig.c: Likewise.
8209         * elf/rtld.c: Likewise.
8210         * elf/tst-tls-dlinfo.c: Likewise.
8211         * elf/tst-tls1.c: Likewise.
8212         * elf/tst-tls10.h: Likewise.
8213         * elf/tst-tls14.c: Likewise.
8214         * elf/tst-tls2.c: Likewise.
8215         * elf/tst-tls3.c: Likewise.
8216         * elf/tst-tls4.c: Likewise.
8217         * elf/tst-tls5.c: Likewise.
8218         * elf/tst-tls6.c: Likewise.
8219         * elf/tst-tls7.c: Likewise.
8220         * elf/tst-tls8.c: Likewise.
8221         * elf/tst-tls9.c: Likewise.
8222         * elf/tst-tlsmod1.c: Likewise.
8223         * elf/tst-tlsmod13.c: Likewise.
8224         * elf/tst-tlsmod13a.c: Likewise.
8225         * elf/tst-tlsmod14a.c: Likewise.
8226         * elf/tst-tlsmod2.c: Likewise.
8227         * elf/tst-tlsmod3.c: Likewise.
8228         * elf/tst-tlsmod4.c: Likewise.
8229         * elf/tst-tlsmod5.c: Likewise.
8230         * elf/tst-tlsmod6.c: Likewise.
8231         * include/errno.h: Likewise.
8232         * include/link.h: Likewise.
8233         * include/tls.h: Likewise.
8234         * locale/global-locale.c: Likewise.
8235         * locale/localeinfo.h: Likewise.
8236         * malloc/arena.c: Likewise.
8237         * malloc/hooks.c: Likewise.
8238         * malloc/malloc.c: Likewise.
8239         * resolv/Versions: Likewise.
8240         * sysdeps/alpha/dl-machine.h: Likewise.
8241         * sysdeps/alpha/libc-tls.c: Likewise.
8242         * sysdeps/generic/ldsodefs.h: Likewise.
8243         * sysdeps/generic/tls.h: Likewise.
8244         * sysdeps/i386/dl-machine.h: Likewise.
8245         * sysdeps/ia64/dl-machine.h: Likewise.
8246         * sysdeps/ia64/libc-tls.c: Likewise.
8247         * sysdeps/mach/hurd/fork.c: Likewise.
8248         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8249         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8250         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8251         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8252         * sysdeps/s390/libc-tls.c: Likewise.
8253         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8254         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8255         * sysdeps/sh/dl-machine.h: Likewise.
8256         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8257         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8258         * sysdeps/x86_64/dl-machine.h: Likewise.
8259
8260         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8261         split out locking and parameter checking.
8262         (_dl_close): Call _dl_close_worker after locking and checking.
8263         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8264         _dl_close.
8265         * elf/Makefile: Add rules to build and run tst-thrlock.
8266         * elf/tst-thrlock.c:  New file.
8267
8268         [BZ #3426]
8269         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8270         reality.
8271
8272         [BZ #3429]
8273         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
8274         we are sure we do not need it anymore for _dl_close.  Also move
8275         the asserts inside the lock region.
8276         Patch mostly by Suzuki <suzuki@in.ibm.com>.
8277
8278 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
8279
8280         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8281         argument.
8282         (_dl_lookup_symbol_x): Adjust caller.
8283
8284         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8285         _ns_global_scope.
8286         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8287
8288         * elf/dl-libc.c: Revert l_scope name changes.
8289         * elf/dl-load.c: Likewise.
8290         * elf/dl-object.c: Likewise.
8291         * elf/rtld.c: Likewise.
8292         * elf/dl-close.c (_dl_close): Likewise.
8293         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
8294         always use __rtld_mrlock_{change,done}.  Always free old scope list
8295         here if not l_scope_mem.
8296         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8297         change.  Never free scope list here.  Just __rtld_mrlock_lock before
8298         the lookup and __rtld_mrlock_unlock it after the lookup.
8299         * elf/dl-sym.c: Likewise.
8300         * include/link.h (struct r_scoperec): Remove.
8301         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8302         with l_scope_mem and l_scoperec_lock with l_scope_lock.
8303
8304 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
8305
8306         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8307
8308 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8309
8310         * configure.in: Disable building profile libraries by default.
8311
8312 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8313
8314         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8315         as signed longs, check for x_base + pos overflow.
8316         * sunrpc/Makefile (tests): Add tst-xdrmem2.
8317         * sunrpc/tst-xdrmem2.c: New test.
8318
8319 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8320
8321         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8322         _dl_lookup_symbol_x code.
8323
8324 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8325
8326         * elf/dl-runtime.c: Include sysdep-cancel.h.
8327         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8328         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
8329         instead of catomic_* macros.
8330         * elf/dl-sym.c: Include sysdep-cancel.h.
8331         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8332         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8333         * elf/dl-close.c: Include sysdep-cancel.h.
8334         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8335         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8336         * elf/dl-open.c: Include sysdep-cancel.h.
8337         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8338         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8339
8340 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8341
8342         [BZ #3313]
8343         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8344         fastbin rather than end of fastbin array.
8345
8346 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8347
8348         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8349         body macro.
8350         * sysdeps/x86_64/bits/atomic.h
8351         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8352         (catomic_decrement): Use correct body macro.
8353
8354 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8355
8356         * include/atomic.h: Add a unique prefix to all local variables
8357         in macros.
8358         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8359
8360 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
8361
8362         [BZ #3369]
8363         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8364         and 7.
8365
8366 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
8367
8368         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8369
8370 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
8371
8372         [BZ #3313]
8373         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8374         determine highest fast bin to consolidate, always look into all of
8375         them.
8376         (do_check_malloc_state): Only require for empty bins for large
8377         sizes in main arena.
8378
8379         * libio/stdio.h: Add more __wur attributes.
8380
8381         * elf/dl-minimal.c (realloc): Optimize last patch.
8382
8383 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
8384
8385         [BZ #3352]
8386         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8387         and use memcpy() if it does.
8388
8389 2006-11-12  Andreas Jaeger  <aj@suse.de>
8390
8391         [BZ #2510]
8392         * manual/search.texi (Hash Search Function): Clarify.
8393         (Array Search Function): Clarify.
8394
8395 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
8396
8397         [BZ #2830]
8398         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8399         shifting.
8400         * math/atest-exp2.c (read_mpn_hex): Likewise.
8401         * math/atest-sincos.c (main): Likewise.
8402
8403 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8404
8405         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8406         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8407         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8408         version GLIBC_2.6.
8409         * Versions.def: Add GLIBC_2.6 for libc.
8410
8411         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8412
8413         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8414
8415 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
8416
8417         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8418
8419         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8420
8421         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8422         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8423
8424 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8425
8426         * include/atomic.c: Define catomic_* operations.
8427         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
8428         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8429         * malloc/memusage.c: Likewise.
8430         * gmon/mcount.c: Likewise.
8431         * elf/dl-close.c: Likewise.
8432         * elf/dl-open.c: Likewise.
8433         * elf/dl-profile.c: Likewise.
8434         * elf/dl-sym.c: Likewise.
8435         * elf/dl-runtime.c: Likewise.
8436         * elf/dl-fptr.c: Likewise.
8437         * resolv/res_libc.c: Likewise.
8438
8439 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
8440
8441         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8442         components which lack them.
8443
8444         * nis/nis_subr.c (nis_getnames): Make sure that we always return
8445         at least one entry consisting of the parameter concatenated with
8446         the domain.
8447
8448 2006-10-10  Roland McGrath  <roland@frob.com>
8449
8450         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8451         * sysdeps/mach/hurd/futimes.c: Likewise.
8452         * sysdeps/mach/hurd/lutimes.c: Likewise.
8453
8454 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
8455             Jakub Jelinek  <jakub@redhat.com>
8456
8457         Implement reference counting of scope records.
8458         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8459         from the list in objects which remain.  Always allocate new scope
8460         record.
8461         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8462         don't resize, allocate a new one.
8463         * elf/dl-runtime.c: Update reference counters before using a scope
8464         array.
8465         * elf/dl-sym.c: Likewise.
8466         * elf/dl-libc.c: Adjust for l_scope name change.
8467         * elf/dl-load.c: Likewise.
8468         * elf/dl-object.c: Likewise.
8469         * elf/rtld.c: Likewise.
8470         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
8471         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
8472         Add l_scoperec_lock.
8473         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
8474         * sysdeps/generic/rtld-lowlevel.h: New file.
8475
8476         * include/atomic.h: Rename atomic_and to atomic_and_val and
8477         atomic_or to atomic_or_val.  Define new macros atomic_and and
8478         atomic_or which do not return values.
8479         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
8480         Various cleanups.
8481         * sysdeps/i386/i486/bits/atomic.h: Likewise.
8482
8483         * po/sv.po: Update from translation team.
8484
8485 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
8486
8487         * Versions.def: Add GLIBC_2.6 to libpthread.
8488
8489         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
8490         (versioned_symbol): Likewise.
8491         (compat_symbol): Likewise.
8492
8493         * po/tr.po: Update from translation team.
8494
8495 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8496
8497         * nis/Banner: Removed.  It's been integral part forever and the
8498         author info is incomplete anyway.
8499         * libio/Banner: Likewise.
8500
8501         * nis/nis_table.c (nis_list): If __follow_path fails in the new
8502         code, make sure the nis_freeresult call doesn't crash and that the
8503         result is reported correctly.
8504
8505 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
8506
8507         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8508         when callback is NULL.
8509
8510         * nis/Versions (libnss_nisplus): Add
8511         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8512         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8513         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8514         _nss_create_tablename): Rename to...
8515         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8516         ... these.  No longer static.
8517         (internal_setgrent): Adjust users.
8518         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8519         Don't use locking around _nss_grp_create_tablename call.
8520         * nis/nss_nisplus/nisplus-initgroups.c: New file.
8521
8522 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8523
8524         * version.h (VERSION): Bump to 2.5.90 for new development tree.
8525
8526 2006-10-06  Andreas Jaeger  <aj@suse.de>
8527
8528         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8529
8530 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8531
8532         * po/pl.po: Update from translation team.
8533
8534         * nscd/nscd.c (main): Fix typo in message.
8535         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
8536
8537 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8538
8539         [BZ #3291]
8540         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8541         errno.h, signal.h, unistd.h and sysdep-cancel.h.
8542         (__sigprocmask): Define.
8543
8544 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
8545
8546         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
8547         used.
8548
8549 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8550
8551         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
8552         in oldtotal and newtotal calculation.
8553         * nscd/nscd-client.h (struct mapped_database): Add datasize
8554         field.
8555         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
8556         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
8557         increased.
8558         (__nscd_cache_search): Add checks to make sure we never reference
8559         data beyond the current mapping.
8560
8561 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
8562
8563         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
8564         variables const to avoid compiler warnings.
8565
8566         * io/fts.c (fts_close): Remove redundant checks.
8567         (fts_build): Likewise.
8568         (fts_palloc): Likewise.
8569
8570         * manual/message.texi (Advanced gettext functions,
8571         Using gettextized software): Fix typos.
8572
8573 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
8574
8575         * posix/glob.c (glob_in_dir): Add some comments and asserts to
8576         explain why there are no leaks.
8577
8578 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
8579
8580         * libio/wmemstream.c: Include <wchar.h>.
8581         * libio/bug-wmemstream1.c: Likewise.
8582         * libio/tst-wmemstream1.c: Likewise.
8583         * libio/tst-wmemstream2.c: Likewise.
8584
8585         * version.h (RELEASE): Bump to 2.5.
8586         * README: Regenerated.
8587
8588         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
8589
8590         [BZ #3273]
8591         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
8592         found no group members.
8593         Patch by Petr Baudis.
8594
8595 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
8596
8597         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
8598         assert bootstrap_map.l_tls_modid is zero.
8599         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
8600         if USE___THREAD.
8601
8602 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
8603
8604         * libio/stdio.h: Move open_wmemstream prototype to ...
8605         * wcsmbs/wchar.h: ... here.
8606
8607 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
8608
8609         [BZ #3252]
8610         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
8611         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
8612         __{,l}chown to handle the rest.
8613         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
8614         fchownat syscall and __ASSUME_32BITUIDS case inline, call
8615         __{,l}chown to handle the rest.
8616         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
8617         i386/fchownat.c.
8618         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
8619         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
8620
8621         [BZ #3253]
8622         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8623         time, rather allocate increasingly bigger arrays of pointers, if
8624         possible with alloca, if too large with malloc.
8625
8626 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
8627
8628         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
8629
8630         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
8631
8632 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
8633
8634         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
8635         home addresses.
8636         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
8637         IFA_F_HOMEADDRESS flag for interfaces.
8638         * include/ifaddrs.h (struct in6addrinfo): Define
8639         in6ai_homeaddress.
8640
8641 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
8642
8643         [BZ #3225]
8644         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
8645         PTR_DEMANGLE3): Define.
8646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
8647         PTR_DEMANGLE3): Likewise.
8648         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
8649         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
8650         Likewise.
8651         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8652
8653 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
8654
8655         * po/libc.pot: Regenerated.
8656         * po/be.po: Updated.
8657         * po/ca.po: Likewise.
8658         * po/cs.po: Likewise.
8659         * po/da.po: Likewise.
8660         * po/de.po: Likewise.
8661         * po/el.po: Likewise.
8662         * po/en_GB.po: Likewise.
8663         * po/es.po: Likewise.
8664         * po/fi.po: Likewise.
8665         * po/fr.po: Likewise.
8666         * po/gl.po: Likewise.
8667         * po/hr.po: Likewise.
8668         * po/hu.po: Likewise.
8669         * po/ja.po: Likewise.
8670         * po/ko.po: Likewise.
8671         * po/nb.po: Likewise.
8672         * po/nl.po: Likewise.
8673         * po/pl.po: Likewise.
8674         * po/pt_BR.po: Likewise.
8675         * po/ru.po: Likewise.
8676         * po/rw.po: Likewise.
8677         * po/sk.po: Likewise.
8678         * po/sv.po: Likewise.
8679         * po/tr.po: Likewise.
8680         * po/zh_CN.po: Likewise.
8681         * po/zh_TW.po: Likewise.
8682
8683         [BZ #3137]
8684         * iconv/iconv_prog.c (main): Fix spelling in error message.
8685         * iconv/iconvconfig.c (main): Likewise.
8686         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
8687         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
8688         * locale/programs/localedef.c (main): Likewise.
8689         * locale/programs/repertoire.c (repertoire_read): Likewise.
8690         * timezone/zdump.c (main): Likewise.
8691         * nscd/connections.c (handle_request): Fix spelling in log message.
8692         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
8693
8694 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
8695
8696         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
8697         interfaces.
8698
8699 2006-09-20  Andreas Jaeger  <aj@suse.de>
8700
8701         * math/libm-test.inc (lrint_test_upward): Fix typo.
8702
8703 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
8704
8705         [BZ #2592]
8706         * math/libm-test.inc (lrint_test_tonearest): New function.
8707         (lrint_test_towardzero): New function.
8708         (lrint_test_downward): New function.
8709         (lrint_test_upward): New function.
8710         (main): Run these new tests.
8711         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
8712         of values near to 0.
8713         (two52): Use double not long double.
8714         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8715         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8716         (two23): Use float not double.
8717         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8718         (two23): Use float not double.
8719         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8720         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8721         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8722         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8723
8724 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8725
8726         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
8727         Cast sp to unsigned long to avoid compiler warning.
8728         Use __makecontext_ret function instead of a trampoline on the stack.
8729         (__makecontext_ret): New function.
8730         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
8731
8732 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
8733
8734         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
8735         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
8736         bits.
8737
8738 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
8739
8740         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
8741         sure no reference to the unloaded map's search list remains in the
8742         dependency's scope.
8743
8744 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
8745
8746         * elf/Makefile: Add rules to build and run unload7 test.
8747         * elf/unload7.c: New test.
8748         * elf/unload7mod1.c: New file.
8749         * elf/unload7mod2.c: New file.
8750
8751 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
8752
8753         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
8754         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
8755         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8756         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
8757         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8758         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
8759         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8760         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
8761         PTRACE_GETEVENTMSG): Likewise.
8762         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
8763         values.
8764
8765 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
8766
8767         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
8768         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8769         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
8770         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
8771
8772 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
8773
8774         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
8775         write '\0' to the fd.
8776         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
8777         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
8778         Change regs to unsigned long pointer from unsigned int, fix fscr
8779         offset.
8780
8781 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
8782
8783         * io/Makefile (CFLAGS-fstatat.c): Set.
8784         (CFLAGS-fstatat64.c): Likewise.
8785         (CFLAGS-mknodat.c): Likewise.
8786
8787         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
8788         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8789         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
8790         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
8791
8792 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
8793             Steven Munroe  <sjmunroe@us.ibm.com>
8794
8795         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
8796         names to the beginning.  Rename "cell" to "cellbe".
8797         (_dl_powerpc_platforms): New.
8798         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8799         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
8800         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
8801         (_DL_HWCAP_PLATFORM): Define to new mask.
8802         (_dl_platform_string, _dl_string_platform): New functions.
8803         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
8804         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
8805
8806 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
8807
8808         [BZ #2526]
8809         * README.libm: Fix a thinko in sqrt algorithm description.
8810
8811         [BZ #3143]
8812         * manual/string.texi (argz_delete): Fix prototype.
8813         Patch by <alpt@freaknet.org>.
8814
8815 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
8816
8817         [BZ #3138]
8818         * io/test-lfs.c (do_prepare): Give name_len type size_t.
8819         * io/tst-fcntl.c (do_prepare): Likewise.
8820         * posix/tst-exec.c (do_prepare): Likewise.
8821         * posix/tst-preadwrite.c (do_prepare): Likewise.
8822         * posix/tst-spawn.c (do_prepare): Likewise.
8823         * posix/tst-truncate.c (do_prepare): Likewise.
8824         * rt/tst-aio.c (do_prepare): Likewise.
8825         * rt/tst-aio64.c (do_prepare): Likewise.
8826         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
8827         size_t.
8828
8829 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
8830
8831         [BZ #2821]
8832         * time/mktime.c (guess_time_tm): Fix overflow detection.
8833         * time/Makefile (tests): Add bug-mktime1.
8834         * time/bug-mktime1.c: New file.
8835
8836         [BZ #3189, #3188]
8837         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
8838         (mremap): Likewise.
8839
8840 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
8841
8842         [BZ #1006]
8843         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8844         Ensure relocation doesn't clobber any bits outside of the
8845         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
8846         R_SPARC_HI22 and R_SPARC_H44.
8847
8848         [BZ #2775]
8849         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
8850         (long) (MINSIZE + nb - old_size) is positive.
8851
8852         * malloc/arena.c (grow_heap): When growing bail even if new_size
8853         is negative.
8854
8855         [BZ #3155]
8856         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
8857         stack below r1.
8858
8859 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
8860
8861         * posix/regex_internal.c (re_string_reconstruct): Handle
8862         offset < pstr->valid_raw_len && pstr->offsets_needed case.
8863         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
8864         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
8865         re_string_context_at.
8866         * posix/Makefile: Add rules to build and run bug-regex26 test.
8867         * posix/bug-regex26.c: New test.
8868
8869         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
8870         rather than col_sym_free.  Move seqp declaration earlier.
8871
8872         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
8873
8874 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
8875
8876         * nscd/initgrcache.c (addinitgroupsX): Move any_success
8877         decl before first goto out.
8878
8879 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
8880
8881         * Makerules (shlib.lds): If have-hash-style, put .hash section
8882         at the end of the RO segment.
8883
8884 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
8885
8886         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
8887         style hash table format is used.
8888
8889 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
8890
8891         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
8892         randomization rather than before.
8893         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
8894
8895 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
8896
8897         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
8898
8899         * malloc/malloc.c (_int_malloc): Use full list insert and not
8900         shortcut which assumes the list is empty for large requests
8901         too.
8902
8903         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
8904
8905 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
8906
8907         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
8908         and offout arguments to the prototype.
8909         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
8910         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
8911         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
8912         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
8913         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
8914         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
8915         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
8916         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
8917
8918 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
8919
8920         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
8921
8922         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
8923         dlopen parameters.
8924
8925 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
8926
8927         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
8928         only if herrno is NETDB_INTERNAL.  Handle errors other than
8929         ERANGE outside of the loops, handle TRY_AGAIN.
8930
8931         * locale/programs/ld-ctype.c (translit_flatten): Issue error
8932         if other's ctype category was missing.
8933         * locale/programs/ld-collate.c (collate_read): Return if
8934         copy_locale's collate category is missing.
8935
8936 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
8937
8938         [BZ #2684]
8939         * malloc/malloc.c (public_rEALLOc): Try harder by using other
8940         arenas if allocation failed.
8941         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
8942
8943 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
8944
8945         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
8946         waste bins[0..1].
8947         (malloc_state): Reduce bins size by 2.
8948         (_int_malloc): Fix test for large enough buffer for early termination.
8949         When no unsorted block matches perfectly and an exiting block has
8950         to be split, use full list insert and not shortcut which assumes
8951         the list is empty.
8952
8953         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
8954         failure.
8955
8956 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
8957
8958         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
8959         do anything.
8960
8961         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
8962         symbol require exact match (these are PLTs).
8963         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
8964         (_dl_ppc64_addr_sym_match): Likewise.
8965
8966         [BZ #2683]
8967         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
8968         If symbol has a value use it.
8969         * elf/tst-dladdr1.c: New file.
8970         * elf/Makefile: Add rules to build and run tst-addr1.
8971
8972 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
8973
8974         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
8975         keeps failing and heap growth or new heap creation isn't
8976         successful either.
8977         * malloc/tst-malloc.c (main): Add new tests.
8978
8979 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
8980
8981         [BZ #2734]
8982         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
8983         as in the x86-64 code to use bswap.
8984
8985 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
8986
8987         [BZ #2680]
8988         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
8989         __USE_UNIX98.
8990         * posix/bits/unistd.h: Likewise.
8991
8992 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
8993
8994         [BZ #2751]
8995         * string/strchr.c: Add cast to avoid warning.
8996
8997 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
8998
8999         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
9000         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
9001         limit is needed to avoid the exploding of the address space
9002         requirement for secondary heaps.
9003         * malloc/arena.c (HEAP_MAX_SIZE): Define using
9004         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
9005
9006 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
9007
9008         [BZ #3018]
9009         * Makerules (depfiles): Handle extra-test-objs the same as
9010         extra-objs.
9011         (common-mostlyclean): Likewise.
9012         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
9013         instead.
9014         * elf/Makefile (extra-objs): Likewise.
9015         * stdlib/Makefile (extra-objs): Likewise.
9016
9017 2006-08-14  Eric Blake  <ebb9@byu.net>
9018
9019         [BZ #3044]
9020         * misc/error.h: Assume C89 or better.
9021         * misc/error.c: Likewise.
9022
9023 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9024
9025         [BZ #3040]
9026         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
9027         __ASSUME_ATFCTS is defined.
9028
9029 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
9030
9031         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
9032         to sort in each call.
9033
9034         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
9035         is empty simply return and use next service.
9036         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
9037
9038         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
9039         tells us when not finding a charmap file is an error.
9040         * locale/programs/charmap.h: Adjust charmap_read prototype.
9041         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
9042         cannot find a charmap.
9043         * locale/programs/localedef.c (main): Adjust charmap_read call.
9044
9045 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
9046
9047         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
9048         sysdeps/posix/pause.c implementation instead.
9049
9050 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
9051
9052         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
9053         to EPERM.
9054
9055 2006-08-13  Andreas Schwab  <schwab@suse.de>
9056
9057         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
9058         Don't clobber caller's LRSAVE.
9059         (_dl_prof_resolve): Likewise.
9060
9061 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
9062
9063         [BZ #1996]
9064         * libio/memstream.c (open_memstream): Allocate initial buffer with
9065         calloc.
9066         * libio/wmemstream.c (open_wmemstream): Likewise.
9067         * libio/strops.c: Pretty printing.
9068         (_IO_str_overflow): Clear uninitialized part of the new buffer.
9069         (enlarge_userbuf): New function.
9070         (_IO_str_seekoff): Call it if seek position is larger than current
9071         buffer.
9072         * libio/wstrops.c: Likewise.
9073         * libio/vasprintf.c: Add comment as to why we do not have to use
9074         calloc instead of malloc to allocate initial buffer.
9075         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
9076         * libio/bug-memstream1.c: New file.
9077         * libio/bug-wmemstream1.c: New file.
9078
9079 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9080
9081         * libio/wstrops.c: Remove dead macro definitions and comments.
9082         * libio/strops.c: Likewise.
9083
9084         [BZ #2764]
9085         * login/utmpname.c (__utmpname): Remove unnecessary test.
9086
9087 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
9088
9089         [BZ #2832]
9090         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
9091         0s from integers.
9092
9093 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9094
9095         [BZ #2987]
9096         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
9097         for CPU clocks.
9098         * sysdeps/unix/clock_settime.c: Add support for platform-specific
9099         setting of CPU clocks.
9100
9101 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9102
9103         [BZ #2841]
9104         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
9105         since C99 requires the result to promote to 'int' when uint_least8_t
9106         and uint_least16_t promote to 'int'.
9107
9108 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
9109
9110         [BZ #3013]
9111         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9112         lenght of one output field, correct bitmask creation.
9113         * locale/programs/ld-time.c: Add alignment.
9114
9115         [BZ #2997]
9116         * misc/error.c: Add space between program name and message if file
9117         name is missing.
9118
9119 2006-08-03  Eric Blake  <ebb9@byu.net>
9120
9121         [BZ #2998]
9122         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9123
9124 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
9125
9126         * malloc/memusagestat.c: Silence warnings.
9127
9128         * malloc/malloc.c: Dynamically size mmap treshold if the program
9129         frees mmaped blocks.
9130         Patch by Valerie Henson and Arjan van de Ven.
9131
9132 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
9133
9134         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9135         __USE_GNU.
9136
9137         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9138         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9139         (DEF): Don't put the var into .gnu.linkonce.r.* section.
9140         Only provide var definitions in strtol_l (or for *ull*
9141         in strtoll_l).
9142
9143         * stdio-common/bug16.c (tests): New array.
9144         (do_tests): Allow the first hexadecimal digit
9145         to be 1, 2, 4 or 8.  Do 3 additional tests.
9146
9147         * sysdeps/s390/fpu/libm-test-ulps: Update.
9148
9149         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9150         fchownat syscall if available.
9151         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9152         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9153         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9154
9155 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9156
9157         * nis/nis_xdr.c: Avoid some function calls.
9158
9159 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
9160             Ulrich Drepper  <drepper@redhat.com>
9161
9162         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9163         short cut if only one name component is stripped away.
9164
9165 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9166
9167         * nis/nis_call.c: Minor cleanups throughout.
9168         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
9169         (first_shoot): Add search_parent_first parameter.  Only if it is set
9170         search parent server first.
9171         If directory for table found through cold start cache is not the same
9172         as referenced in the cache, don't use it.
9173         (__nisfind_server): Take additional parameter.  Pass it on to
9174         first_shoot.
9175         (__prepare_niscall): Adjust __nisfind_server call.
9176         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9177         * nis/nis_table.c: Adjust __nisfind_server call.
9178         * nis/nis_lookup.c: Likewise.
9179         (nis_lookup): Don't loop endlessly if name is reduced to ".".
9180
9181 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
9182
9183         [BZ #2182]
9184         * math/s_cacosh.c: Return values from positive branch.
9185         * math/s_cacoshf.c: Likewise.
9186         * math/s_cacoshl.c: Likewise.
9187
9188         [BZ #2883]
9189         * sysvipc/sys/msg.h: Change return value to ssize_t.
9190         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9191         * sysvipc/msgrcv.c: Likewise.
9192         * include/sys/msg.h: Likewise.
9193
9194         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9195         test introduced in patch for bz #661.
9196         (getgrouplist): Simplify code a bit.  Don't allocate one additional
9197         element for NEWGROUPS.
9198
9199         [BZ #2908]
9200         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9201         'f', use '1' as leading digit not '\1'.
9202         * stdio-common/Makefile (tests): Add bug16.
9203         * stdio-common/bug16.c: New file.
9204
9205         [BZ #2914]
9206         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9207         and don't try to open it.  The patch introducing the macro
9208         contained a bug and used the same file name as the new file
9209         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
9210         this out completely.
9211
9212         [BZ #2926]
9213         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9214         Patch by Jerry James <Jerry.James@usu.edu>.
9215
9216         * rt/Makefile (tests): Add tst-clock2.
9217         * rt/tst-clock2.c: New file.
9218
9219         [BZ #2978]
9220         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9221         function and its parameters and pass it to new thread.
9222         (__gai_notify): Add support for alternative waiting for completion.
9223         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9224         waiting for completion.
9225         * resolv/getaddrinfo_a.c: Likewise.
9226         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9227         waiting for completion is used.
9228         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9229         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9230         * resolv/gai_error.c: Likewise.
9231         * resolv/gai_sigqueue.c: Likewise.
9232
9233 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
9234
9235         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
9236         errno to EBADF and return MACH_PORT_NULL.
9237
9238 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
9239
9240         [BZ #2980]
9241         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
9242
9243 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
9244
9245         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9246         walk them instead of the symbol table.
9247
9248 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
9249
9250         [BZ #2098]
9251         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9252         status of NSS calls, not the number of returned entries.
9253
9254         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9255         request_key, keyctl.
9256
9257 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9258
9259         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9260
9261 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
9262
9263         * elf/tst-auditmod1.c: Fix typo in #error.
9264
9265 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9266
9267         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9268
9269         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9270
9271 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
9272
9273         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
9274         that the directory is empty even on non-POSIX filesystems.
9275
9276 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9277
9278         * elf/dl-open.c (dl_open_worker): Add branch prediction.
9279
9280         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9281         the backend NSS module.  If backend setgrent call failed, don't have
9282         internal_setgrent fail.  Just remember this until it is needed.
9283         * nis/nss_compat/compat-pwd.c: Likewise.
9284         * nis/nss_compat/compat-spwd.c: Likewise.
9285
9286 2006-07-30  Roland McGrath  <roland@redhat.com>
9287
9288         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9289         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9290         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9291         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9292
9293         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9294         (nanosleep_not_cancel): New macro.
9295         (sigsuspend_not_cancel): new macro.
9296         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9297         (do_sigsuspend): Define as inline.
9298         (__sigsuspend): Always use do_sigsuspend.
9299         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9300         * include/signal.h: Declare __sigsuspend_nocancel.
9301         * sysdeps/posix/pause.c
9302         [! NO_CANCELLATION] (__pause_nocancel): New function.
9303
9304         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9305         * include/time.h (__nanosleep_nocancel): Likewise.
9306
9307 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
9308
9309         * locale/programs/localedef.c (add_to_readlist): Rename local
9310         variables to avoid confusion.
9311
9312         * locale/programs/charmap.c (charmap_read): Emit error message if
9313         charmap couldn't be found or read.
9314
9315 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
9316
9317         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9318         __ASSUME_FUTEX_LOCK_PI.
9319         * include/time.h: Declare __nanosleep_nocancel.
9320         * include/unistd.h: Declare __pause_nocancel.
9321
9322         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9323         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
9324         get the __stack_chk_fail_local definition when it's needed.
9325
9326 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
9327
9328         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9329         * dlfcn/bug-atexit3.c: New file.
9330         * dlfcn/bug-atexit3-lib.cc: New file.
9331
9332         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9333         used when the namespace is not the base namespace.
9334
9335 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
9336
9337         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9338         (__new_exitfn): Bump it in every successful call.
9339         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9340         more exit handlers, call them right away.
9341         * stdlib/exit.h: Declare __new_exitfn_called.
9342
9343 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
9344
9345         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9346         calling registered handler.
9347
9348         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9349         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9350         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9351         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9352         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9353         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9354         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9355         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9356
9357 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
9358
9359         * elf/dl-lookup.c (dl_new_hash): New functions.
9360         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9361         value here.  Compute new-style hash value.  Pass new hash value
9362         and reference to variable with the old value to do_lookup_x.
9363         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9364         old-style hash table.
9365         (_dl_debug_bindings): Pass new hash value and reference to variable
9366         with the old value to do_lookup_x.
9367         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9368         new-style hash value and change old-style hash value parameter to
9369         be a reference.  Reoganize functions to determine whether
9370         new-style hash table is available.  Only fall back on old-style
9371         table.  If old-style hash value is needed, compute it here.
9372         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9373         entry.
9374         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9375         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
9376         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9377         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9378         * Makeconfig: If linker supports --hash-style option add it to all
9379         linker command lines to build DSOs.
9380         * config.make.in: Define have-hash-style.
9381         * configure.in: Test whether linker supports --hash-style option.
9382
9383         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9384         * sysdeps/generic/ldsodefs.h: Adjust prototype.
9385
9386 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
9387
9388         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9389         auditing.
9390
9391         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9392         RPATH of main map twice.
9393
9394 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
9395
9396         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9397         look further, return original strings.
9398         (_nl_find_msg): Do not return found translation if the conversion
9399         failed.  Either signal the string is unusable or that something went
9400         wrong and the original should be used.
9401
9402 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
9403
9404         * string/_strerror.c (__strerror_r): Add __builtin_expect.
9405
9406 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
9407
9408         [BZ #2766]
9409         * misc/insremque.c (insque): Handle prev == NULL.
9410         * misc/Makefile (tests): Add tst-insremque.
9411         * misc/tst-insremque.c: New test.
9412
9413 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
9414
9415         [BZ #2792]
9416         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9417         conflict with DL_DST_REQUIRED.
9418
9419 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
9420
9421         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9422         match what Solaris does.
9423
9424 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
9425
9426         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9427         local_setegid instead of seteuid and setegid.
9428         * sysdeps/generic/local-setxid.h: New file.
9429         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9430
9431         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9432
9433         * string/Makefile (tests): Add bug-envz1.
9434         * string/bug-envz1.c: New file.
9435
9436 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
9437
9438         * posix/regex_internal.c (re_string_skip_chars): If no character has
9439         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
9440         to the byte which couldn't be converted.
9441         (re_string_reconstruct): Don't clear valid_raw_len before calling
9442         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
9443         tip_context using re_string_context_at.
9444         * posix/Makefile: Add rules to build and run bug-regex25 test.
9445         * posix/bug-regex25.c: New test.
9446
9447 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
9448
9449         [BZ #2703]
9450         * string/envz.c (envz_strip): Correct erroneously reversed src
9451         and dest parameters to memmove() invocation.
9452
9453 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
9454
9455         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9456         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9457         to make sure the database has been already invalidated.
9458         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
9459         after the cache has been invalidated.  Use pthread_mutex_lock rather
9460         than pthread_mutex_trylock if fd != -1.
9461         * nscd/connections.c (invalidate_cache): Add fd argument, write
9462         response to fd if not calling prune_cache, pass fd to prune_cache.
9463         (handle_request): Adjust invalidate_cache caller.
9464         (nscd_run): Pass -1 as fd to prune_cache.
9465
9466 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
9467
9468         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9469         the correct place.
9470
9471 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
9472
9473         * nscd/nscd.h (struct database_dyn): Add prunelock field.
9474         * nscd/cache.c (prune_cache): Take prunelock before starting the
9475         work.  Just return in case it is already taken.
9476         * nscd/connections.c (dbs): Initialize .prunelock.
9477
9478 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
9479
9480         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
9481         copying.  No need to allocate new array for group members.  Just
9482         move the pointers and update the size.
9483
9484         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
9485         Avoid memory leak in case realloc fails.  Simplification for
9486         better code generation.
9487
9488         Avoid deprecation warning because of libc_hidden_proto for
9489         inet6_option_alloc.
9490         * inet/inet6_option.c (option_alloc): Renamed from
9491         inet6_option_alloc.  Made static.
9492         (inet6_option_alloc): Now a simple wrapper around option_alloc.
9493         (inet6_option_append): Call option_alloc.
9494         * include/netinet/in.h: Remove libc_hidden_proto for
9495         inet6_option_alloc.
9496
9497         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
9498         for cleanup when cb!=NULL [Coverity CID 233].
9499
9500 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
9501
9502         [BZ #2693]
9503         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9504         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9505         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9506         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9507         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9508         and inet6_rth_getaddr.
9509         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9510         array.
9511         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9512         Mark inet6_option_* interfaces as deprecated.
9513         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9514         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9515         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9516         inet6_rth_segments, and inet6_rth_getaddr.
9517         * inet/inet6_opt.c: New file.
9518         * inet/inet6_rth.c: New file.
9519
9520         * inet/netinet/icmp6.h: Pretty printing.
9521
9522         [BZ #2683]
9523         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9524
9525 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
9526
9527         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9528         doing it all here.  When server does not know the answer do not
9529         fail immediate, try parent first.
9530
9531         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9532         overflow test.
9533
9534 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
9535
9536         * nis/nis_call.c (__prepare_niscall): New function.  Split out
9537         from __do_niscall.
9538         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
9539         and exported.
9540         (__follow_path): New function.  Split out from nis_list.
9541         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9542         _xdr_nis_result.
9543         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
9544         _xdr_nis_result.
9545         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
9546         and __follow_path.
9547         * nis/Versions: Export __prepare_niscall, __create_ib_request,
9548         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
9549         from libnsl for version GLIBC_PRIVATE.
9550         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
9551         Remove entry parameter from _nss_nisplus_parse_pwent and
9552         _nss_nisplus_parse_grent.
9553         * nis/nss_nisplus/nisplus-parser.c: Likewise.
9554         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
9555         again.  Rewrite getpwent handling to not use nis_first_entry and
9556         nis_next_entry.  Roll out own niscall handling.
9557         * nis/nss_nisplus/nisplus-grp.c: Likewise.
9558
9559         * sunrpc/xdr_rec.c: Fix typo in comment.
9560
9561 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
9562
9563         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
9564         handling.
9565
9566         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
9567         to allocate memory for my_pollfd.  Better initialization of
9568         cb_is_running.  Use TEMP_FAILURE_RETRY.
9569
9570         * malloc/memusage.sh (memusageso): Add quotes.
9571         (memusagestat): Likewise.
9572         * debug/xtrace.sh (pcprofileso): Likewise.
9573         (pcprofiledump): Likewise.
9574         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
9575         replacement.
9576         * malloc/Makefile ($(objpfx)memusage): Likewise.
9577
9578         * nis/nis_callback.c (__nis_create_callback): Calls to
9579         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
9580         asprintf call fails.
9581
9582         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
9583         no uninitialized memory is passed to sendto.
9584
9585 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9586
9587         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
9588         of snprintf+strdup.  Handle OOM.
9589         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
9590         cb->serv together.  Remove now obsolete free calls.
9591         (__nis_destroy_callback): Remove now obsolete free call.
9592
9593 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
9594
9595         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
9596         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
9597         and ULA respectively). Set precedence for IPv4 address to 10 as
9598         defined in RFC3484 for preferring IPv6.
9599         * posix/gai.conf: Update to match the new default tables.
9600
9601 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
9602
9603         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
9604         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
9605         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
9606         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
9607
9608         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
9609         Removed.
9610         (init_nss_interface): Remove initialization of these variables.
9611
9612 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9613
9614         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
9615         nis_free_directory forward to avoid duplication.
9616
9617 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
9618
9619         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
9620         rec_dirsearch returning NULL.
9621         (first_shoot): Handle __nis_finddirectory returning NULL.
9622         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
9623
9624         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
9625         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
9626
9627 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
9628
9629         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
9630         pid changed.
9631
9632 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
9633
9634         * include/rpc/pmap_prot.h: Mark all functions as hidden.
9635
9636         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
9637         * nscd/nscd_getgr_r.c: Likewise.
9638
9639         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
9640
9641         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
9642         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
9643
9644         * stdlib/longlong.h (__clz_tab): Mark as hidden.
9645
9646         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
9647
9648         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
9649
9650         * include/rpc/auth.h: Mark xdr_des_block_internal and
9651         xdr_opaque_auth_internal as hidden.
9652
9653         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
9654         hidden.
9655
9656         * include/rpc/xdr.h: Mark all _internal functions as hidden.
9657
9658         * misc/getusershell.c (okshells): Don't use static initializers,
9659         do it dynamically.
9660
9661         * stdlib/fmtmsg.c (keywords): Change type of len element to
9662         uint32_t to not waste space on 64bit machines.
9663
9664         * locale/setlocale.c: Change _nl_category_names into a string.
9665         Add new _nl_category_name_idxs.  Change all users.
9666         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
9667         Declare _nl_category_name_idxs.
9668         * locale/findlocale.c: Adjust for _nl_category_names change.
9669         * locale/loadlocale.c: Likewise.
9670         * locale/newlocale.c: Likewise.
9671         * intl/dcigettext.c: Likewise.
9672
9673         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
9674         (add_alias2): ...here.  New function.
9675         (__gconv_read_conf): Simplify builtin alias handling.
9676         (builtin_aliases): Convert to string to avoid relocations.
9677         * iconv/gconv_builtin.h: Add comment about correct formatting.
9678
9679 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
9680
9681         * resolv/res_debug.c (loc_ntoa): Make error const.
9682
9683 2006-05-14  Andreas Schwab  <schwab@suse.de>
9684
9685         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
9686
9687 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
9688
9689         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
9690         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
9691         sizeof (cpu_set_t).
9692
9693 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
9694
9695         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
9696
9697         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
9698
9699         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
9700         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
9701
9702         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
9703         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
9704
9705         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
9706         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
9707         xdr_cback_data.
9708
9709         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
9710         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9711         xdr_ypupdate_args.
9712
9713         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
9714         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
9715
9716         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
9717         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
9718
9719         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
9720         * include/rpcsvc/nis_callback.h: New file.
9721
9722         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
9723         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
9724
9725         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9726         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9727
9728         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
9729         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
9730
9731         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9732         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9733
9734         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
9735         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9736         xdr_ypdelete_args.
9737
9738         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
9739         __BEGIN_DECLS and __END_DECLS, the header is not installed.
9740
9741         * nis/nis_error.c: Remove table of strings.  Use position
9742         independent mechanism.
9743         * nis/nis_error.h: New file.
9744
9745 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
9746
9747         * locale/programs/ld-time.c (time_finish): If wide era name or
9748         format aren't provided, set both wname and wformat to L"".
9749
9750 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
9751
9752         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
9753         results if the call was succesful.
9754
9755         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
9756
9757         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
9758         as hidden.
9759
9760 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
9761
9762         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
9763
9764 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
9765
9766         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
9767         caller makes sure this is not the case.
9768         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
9769
9770 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
9771
9772         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
9773         calls.
9774
9775         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
9776         [Coverity CID 229, 230]
9777
9778         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
9779         DGETTEXT calls.
9780         (hol_help): Likewise.  [Coverity CID 226, 227]
9781
9782         * string/argz-replace.c (__argz_replace): Unconditionally call
9783         free on SRC.  [Coverity CID 225]
9784
9785         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
9786         the return value of __nis_default_owner and __nis_default_group,
9787         it has been especially allocated.  [Coverity CID 224]
9788
9789         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
9790         searchgroup and searchowner.  Significantly simplified.
9791         (__nis_default_owner): Remove duplication.  Do not locally copy the
9792         string before duplicating it.
9793         (__nis_default_group): Likewise.
9794
9795         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
9796         we must clear the variable before calling __nisfind_server.
9797
9798         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
9799         nis_getnames.  [Coverity CID 223]
9800
9801         * locale/programs/locfile.c (locfile_read): Use alloca instead of
9802         xmalloc to allocate local repertoire name.  [Coverity CID 222]
9803
9804         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
9805         allocate memory for the input to add_bytes.  [Coverity CID 221]
9806
9807         * posix/wordexp.c (w_addword): Free word if realloc fails and it
9808         was allocated here.  [Coverity CID 219, 220]
9809
9810         * posix/getconf.c (print_all): Free confstr data after printing.
9811         [Coverity CID 218]
9812
9813         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
9814         list allocation fails.  [Coverity CID 215]
9815
9816         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
9817         [Coverity CID 213]
9818
9819         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
9820         string is NULL.  [Coverity CID 212]
9821         * argp/Makefile: Add rules to build and run bug-argp1.
9822         * argp/bug-argp1.c: New file.
9823
9824         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
9825         end of string.
9826         * stdlib/canonicalize.c (__realpath): Likewise.
9827
9828         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
9829         pointer.  [Coverity CID 206]
9830
9831         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
9832         in statically linked code.
9833         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
9834         statically built code, be prepared to have no link map.
9835         [Coverity CID 205]
9836
9837         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
9838         dgettext calls. [Coverity CID 204]
9839
9840         * argp/argp-help.c (struct uparams): Remove valid member.  Change
9841         the one user.
9842         (uparam_names): Reduce size.  Avoid relative relocations.
9843         Moved to read-only segment.
9844         (fill_in_uparams): Update for new layout.
9845
9846         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
9847         assumed to always be != NULL. [Coverity CID 202]
9848
9849         * argp/argp-help.c (hol_entry_help): Remove some dead code
9850         [Coverity CID 200].
9851
9852         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
9853         away a few more unconditional yperr2nss calls.
9854         (_nss_nis_getservbyname_r): Likewise.
9855
9856 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
9857
9858         * sysdeps/generic/ldsodefs.h: Remove support for non-core
9859         architectures.
9860
9861         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
9862         that unused memory passed to sendto is nevertheless initialized.
9863
9864         [BZ #2499]
9865         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
9866         possibly unaligned memory accesses.
9867
9868         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
9869         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
9870         and __putlong respectively.  Correct buffer overflow check for
9871         NS_NOTIFY_OP.
9872
9873         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
9874
9875         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
9876         (send_dg): Rewrite error handling to be more compact and avoid
9877         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
9878
9879         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
9880
9881         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
9882         instead of ns_get16.
9883         (res_queriesmatch): Likewise.  Minor optimization.
9884
9885         [BZ #2499]
9886         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
9887         __libc_res_nsend might reallocate the buffer for the answer.  In
9888         this case we have to reload the HP pointer.
9889
9890 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9891
9892         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
9893         some branch prediction hints.
9894
9895         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
9896         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9897         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9898         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9899         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9900         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9901         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9902         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9903
9904 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9905
9906         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
9907         by a GOT relocation to make Scrt1.o position independent.
9908         * sysdeps/s390/s390-64/elf/start.S: Likewise.
9909
9910         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
9911         six system call parameters.
9912         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9913
9914 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9915
9916         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
9917         malloc&bzero.
9918
9919         * sunrpc/svc_udp.c (BZERO): Remove definition.
9920         (CALLOC): Define.
9921         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
9922
9923         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
9924         (des_SPtrans): Use uint32_t type.
9925         (des_skb): Likewise.
9926
9927         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
9928
9929 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
9930
9931         [BZ #2509]
9932         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
9933         on 32-bit arches.
9934
9935 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9936
9937         * locale/programs/ld-address.c (address_finish): Fix one more
9938         place where the iso639 array might be accessed beyond the limits.
9939
9940 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
9941
9942         * nis/nis_table.c (nis_list): Avoid clearing res twice before
9943         filling it for the first time.
9944
9945         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
9946         Adjust all callers.
9947         Free res object content before returning.
9948
9949         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
9950
9951         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
9952         client->cl_auth.
9953
9954         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
9955         cleanup for initial thread, just the free call on TVP.
9956
9957         * nscd/gai.c (__getline): Define.
9958
9959
9960 See ChangeLog.16 for earlier changes.