[BZ #9726]
[platform/upstream/glibc.git] / ChangeLog
1 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
2
3         [BZ #9726]
4         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
5         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
6
7 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
8
9         [BZ #9726]
10         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
11         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
12         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
13         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
14
15 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
16
17         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
18         memcpy instead of memcmp.
19         (_dl_setup_pointer_guard): Likewise.
20
21 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
22
23         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
24         manipulated brk, use malloc_printerr.
25         * misc/sbrk.c (__sbrk): Better error handling for nonsense
26         requests.
27
28 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
29
30         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
31         rindex): For C++ add inlines so that they can be recognized as
32         builtins.
33         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
34
35 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
36             Jakub Jelinek  <jakub@redhat.com>
37
38         * string/string.h: Define correct C++ prototypes for gcc 4.4.
39         * wcsmbs/wchar.h: Likewise.
40
41 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
42
43         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
44         (stackinfo_sub_sp): Define.
45
46 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
47
48         [BZ #9750]
49         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
50         * include/alloca.h (alloca_account): Define.
51         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
52         (stackinfo_sub_sp): Define.
53
54         * nscd/connections.c (nscd_init): If database file access be
55         opened check whether this is due to permission problems and bail
56         in that case.
57
58         [BZ #9741]
59         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
60         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
61
62 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
63
64         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
65         Add "t" to clobber list.
66         (INTERNAL_SYSCALL_NCS): Likewise.
67
68 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
69
70         * nss/getent.c (print_networks): Don't print comma between aliases.
71
72 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
73
74         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
75
76         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
77         the hash table.
78         * misc/Makefile (tests): Add bug-hsearch1.
79         * misc/bug-hsearch1.c: New file.
80
81 2009-01-22  Roland McGrath  <roland@redhat.com>
82
83         * Makeconfig (%.v.i): Strip trailing # comments,
84         not only whole-line comments.
85
86 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
87
88         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
89         one parameter.  If non-NULL use it to initialize return value.
90         (_dl_setup_pointer_guard): New function.
91         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
92         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
93         * elf/rtld.c (security_init): Pass _dl_random to
94         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
95         pointer_chk_guard.
96         * elf/dl-sysdep.c (_dl_random): New variable.
97         (_dl_sysdep_start): Handle AT_RANDOM.
98         (_dl_show_auxv): Likewise.
99         * elf/dl-support.c (_dl_random): New variable.
100         (_dl_aux_init): Handle AT_RANDOM.
101         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
102         to _dl_setup_stack_chk_guard.
103
104         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
105
106 2009-01-10  Roland McGrath  <roland@redhat.com>
107
108         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
109
110 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
111
112         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
113
114         [BZ #9706]
115         * nss/nss_files/files-parse.c (strtou32): New function.
116         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
117         across 32-bit and 64-bit platforms.
118         (INT_FIELD_MAYBE_NULL): Likewise.
119
120 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
121
122         [BZ #9720]
123         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
124         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
125         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
126         Likewise.
127
128 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
129
130         [BZ #697]
131         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
132         being NULL also if there are no backreferences.
133         * posix/rxspencer/tests: Add testcases.
134
135 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
136
137         [BZ #9697]
138         * posix/bug-regex17.c: Add testcases.
139         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
140         handling.
141
142 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
143
144         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
145         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
146         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
147         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
148         for elf subdir.
149         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
150         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
151         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
152         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
153         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
154         * sysdeps/unix/sysv/linux/s390/Versions: New file.
155
156 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
157
158         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
159         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
160         re_string_skip_chars, re_string_reconstruct): Likewise.
161         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
162
163 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
164
165         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
166         adjust the buffer alignment.
167
168 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
169
170         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
171         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
172         net/route.h.
173
174         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
175         flavor to description only when flavor is not NULL.
176
177         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
178         mutex after SIGIO/SIGURG lookup loop.
179
180 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
181
182         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
183
184 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
185
186         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
187         handling.
188
189 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
190
191         * sysdeps/unix/sysv/linux/kernel-features.h
192         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
193
194         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
195         if no output is written.
196
197         * version.h: Bump to 2.10 development.
198
199         * posix/getconf.c: Update copyright year.
200         * nss/getent.c: Likewise.
201         * iconv/iconvconfig.c: Likewise.
202         * iconv/iconv_prog.c: Likewise.
203         * elf/ldconfig.c: Likewise.
204         * catgets/gencat.c: Likewise.
205         * csu/version.c: Likewise.
206         * elf/ldd.bash.in: Likewise.
207         * elf/sprof.c (print_version): Likewise.
208         * locale/programs/locale.c: Likewise.
209         * locale/programs/localedef.c: Likewise.
210         * nscd/nscd.c (print_version): Likewise.
211         * debug/xtrace.sh: Likewise.
212         * malloc/memusage.sh: Likewise.
213         * malloc/mtrace.pl: Likewise.
214         * debug/catchsegv.sh: Likewise.
215
216 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
217
218         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
219         script.
220
221 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
222
223         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
224         gethostbyname4_r function call succeeded, just leave the loop.
225
226         [BZ #9694]
227         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
228         very end.
229         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
230         * wctype/Makefile (tests): Add bug-wctypeh.
231         * wctype/bug-wctypeh.c: New file.
232
233         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
234         LOCALDOMAIN is defined.
235         * nscd/nscd_getai.c (__nscd_getai): Likewise.
236
237         * sysdeps/x86_64/bits/select.h: New file.
238
239         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
240
241 2008-12-21  Bruno Haible  <bruno@clisp.org>
242
243         [BZ #9677]
244         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
245         if no output is written.
246
247 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
248
249         * login/utmp_file.c (pututline_file): Replace call to dup2 with
250         libc internal symbol __dup2 to avoid access through the PLT.
251
252 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
253
254         [BZ #6545]
255         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
256         available only for __USE_GNU.
257
258         * inet/Makefile (tests): Add tst-getni2.
259         * inet/tst-getni2.c: New file.
260
261         [BZ #7080]
262         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
263         NULL when NI_NAMEREQD is set.
264         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
265         * inet/Makefile (tests): Add tst-getni1.
266         * inet/tst-getni1.c: New file.
267
268 2008-12-03  Petr Baudis  <pasky@suse.cz>
269
270         [BZ #7067]
271         * nscd/connections.c (invalidate_cache): Use prune_run_lock
272         instead of prune_lock.
273         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
274         * nscd/nscd.h (database_dyn): Add prune_run_cache.
275
276 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
277
278         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
279         use.
280
281         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
282         handling.
283
284         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
285         after reading name server list.
286
287         [BZ #7058]
288         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
289         handling for host name aliases.
290
291 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
292
293         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
294         instead of doing things manually.
295
296 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
297
298         * posix/regex_internal.h (build_wcs_upper_buffer):
299         Return type is reg_error_t.
300
301 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
302
303         * posix/globtest.sh: Use mktemp to create temporary file and
304         directory.
305
306         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
307         sets correctly.
308         (__CPU_CLR_S): Likewise.
309         (__CPU_ISSET_S): Likewise.
310
311 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
312             Ulrich Drepper  <drepper@redhat.com>
313
314         * scripts/firstversion.awk: Use custom comparison function to compare
315         version numbers.
316         * scripts/versions.awk: Use sort invocation which can handle
317         multi-digit sub-version numbers.
318
319 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
320
321         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
322         * locale/iso-639.def: Add Chhattisgarhi entry.
323
324 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
325
326         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
327         ESRCH return value.
328         (_nss_dns_gethostbyname4_r): Likewise.
329         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
330         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
331         gethostbyname4_r, we don't have a separate IPv6 status, so copy
332         the no_data variable.
333
334         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
335         information at the correct index.
336
337         * socket/sys/socket.h: Declare accept4.
338         * socket/accept4.c: New file.
339         * sysdeps/unix/sysv/linux/accept4.c: New file.
340         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
341         * socket/Makefile (routines): Add accept4.
342         * socket/Versions: Export accept4 with version GLIBC_2.10.
343         * socket/paccept.c: Removed.
344         * sysdeps/unix/sysv/linux/paccept.c: Removed.
345         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
346         * Versions.def: Define GLIBC_2.10 for libc.
347         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
348
349         * nscd/connections.c: Use accept4.
350
351         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
352
353 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
354
355         * resolv/res_send.c (send_dg): Create sockets with non-blocking
356         flag already set.
357
358         * stdlib/setenv.c (unsetenv): Don't search environment if it does
359         not exist.
360         * stdlib/Makefile (tests): Add tst-unsetenv1.
361         * stdlib/tst-unsetenv1.c: New file.
362
363 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
364
365         * login/utmp_file.c (file_writable): New variable.
366         (setutent_file): Don't try to open file for writing.
367         (pututline_file): Before writing, make descriptor writable if
368         necessary.
369
370 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
371
372         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
373         to IPv4 or IPv6 if an interface has been found.
374
375 2008-11-26  Roland McGrath  <roland@redhat.com>
376
377         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
378         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
379
380         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
381         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
382         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
383
384         * elf/elf.h (NT_386_IOPERM): New macro.
385         (NT_PPC_VSX): New macro.
386
387 2008-11-25  Roland McGrath  <roland@redhat.com>
388
389         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
390         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
391         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
392         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
393         Subdirectories moved to ports repository.
394         * configure.in (base_machine): Remove alpha case.
395
396 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
397
398         * sysdeps/mach/strerror_l.c: New file.
399
400 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
401
402         [BZ #6411]
403         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
404         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
405         magic numbers.
406         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
407         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
408         (relax_fenv_state): Same as above.
409         (FPSCR_29): Reserve bit in ISA 2.05.
410         (FPSCR_NI): Provide define for compat.
411         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
412         magic numbers.
413         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
414         magic numbers.
415         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
416         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
417         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
418         access to hwcap to account for hwcap size increase to uint64_t.
419         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
420         Likewise.
421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
422         (*setcontext): Likewise.
423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
424         New file.
425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
426         New file.
427         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
428         (*setcontext): dynamically select mtfsf insn based on
429         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
430         increase to uint64_t.
431         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
432         (*swapcontext): dynamically select mtfsf insn based on
433         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
434         increase to uint64_t.
435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
436         New file.
437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
438         New file.
439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
440         (*setcontext): dynamically select mtfsf insn based on
441         PPC_FEATURE_HAS_DFP.
442         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
443         (*swapcontext): dynamically select mtfsf insn based on
444         PPC_FEATURE_HAS_DFP.
445
446 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
447
448         * version.h: Bump for 2.9 release.
449         * include/features.h (__GLIBC_MINOR__): Bump to 9.
450
451         [BZ #7029]
452         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
453         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
454         all the rounding.
455
456 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
457
458         [BZ #7009]
459         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
460         unknown request types for now.
461
462 2008-11-11  Roland McGrath  <roland@redhat.com>
463
464         * sysdeps/x86_64/configure: New file.
465
466         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
467         * configure: Regenerated.
468
469 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
470
471         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
472         correct instruction to remove the stack frame.
473
474 2008-11-03  Michael Matz  <matz@suse.de>
475
476         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
477         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
478
479 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
480
481         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
482         Remove.
483
484         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
485         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
486         of the thread variable instead of void *.
487         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
488         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
489         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
490         __libc_tsd_define arguments.
491         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
492         __libc_tsd_address arguments.  Remove union hack.
493         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
494         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
495         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
496         Adjust __libc_tsd_{set,get} arguments.
497         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
498         __libc_tsd_define arguments.
499         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
500         arguments.
501         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
502         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
503         (LOCALE): Adjust __libc_tsd_define arguments.
504         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
505         arguments.
506         (LOCALE): Adjust __libc_tsd_define arguments.
507         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
508         arguments.
509         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
510         arguments.
511
512 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
513
514         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
515         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
516
517 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
518
519         [BZ #6966]
520         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
521
522 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
523             Ulrich Drepper  <drepper@redhat.com>
524
525         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
526         definition for GCC 3.1 and later.
527
528 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
529
530         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
531         refetch dtv, as it might have changed.
532         * elf/Makefile: Add rules to build and run tst-tls18.
533         * elf/tst-tls18.c: New test.
534         * elf/tst-tlsmod18a.c: New file.
535
536 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
537
538         [BZ #6875]
539         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
540
541 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
542
543         [BZ #6867]
544         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
545
546         [BZ #6919]
547         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
548         Fix length of copy operation.
549
550 2008-10-02  Pierre Habouzit <madcoder@debian.org>
551
552         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
553         and fix its calling convention.
554
555 2008-10-07  Andreas Schwab  <schwab@suse.de>
556
557         [BZ #6942]
558         * resolv/res_send.c (send_vc): Fix last change.
559         (send_dg): Align here as well.
560
561 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
562
563         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
564         return value in case rlimit is RLIM_INFINITY.
565
566         [BZ #6947]
567         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
568         for UL_SETFSIZE.
569         * resource/Makefile (tests): Add bug-ulimit1.
570         * resource/bug-ulimit1.c: New file.
571
572         [BZ #6974]
573         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
574         without dot.  Properly terminate the string with a null byte.
575         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
576
577         [BZ #6980]
578         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
579         negative sizees.
580         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
581         negative __size.
582
583         [BZ #6995]
584         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
585
586 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
587
588         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
589         abort if there is no initgroups_dyn function.
590
591         * resolv/res_send.c (send_dg): On timeout, only return nonzero
592         result if any of the queries really provided an answer.
593
594 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
595
596         * po/lt.po: Update from translation team.
597
598 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
599
600         * po/id.po: Update from translation team.
601
602 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
603
604         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
605         Fix tests for existence of second reply.
606
607 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
608
609         * po/id.po: New file.
610         Contributed by the Indonesian translation team.
611
612 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
613
614         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
615         initialization.
616
617 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
618
619         * elf/Makefile: Add rules to build and run tst-tls17.
620         * elf/tst-tls17.c: New test.
621         * elf/tst-tlsmod17a.c: New file.
622         * elf/tst-tlsmod17b.c: Likewise.
623
624 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
625
626         * stdlib/divmod_1.c: Use correct type for dummy variable.
627         * stdlib/mod_1.c: Likewise.
628
629 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
630
631         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
632
633 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
634
635         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
636         __nonnull order for C++.
637         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
638         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
639
640 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
641
642         * stdlib/longlong.h: Update from GCC.
643
644 2008-10-09  Jakub Jelinek <jakub@redhat.com>
645             David S. Miller  <davem@davemloft.net>
646
647         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
648         make sure any registers used with 64-bit 'branch-on-register'
649         instructions have their top 32-bits clear.
650         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
651         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
652
653 2008-09-18  Andreas Schwab  <schwab@suse.de>
654
655         [BZ #6942]
656         * resolv/res_send.c (send_vc): Fix use of unaligned address.
657         Properly handle partial reads.
658
659 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
660
661         * elf/elf.h (STO_MIPS_PLT): New.
662         (R_MIPS_COPY): New.
663         (R_MIPS_JUMP_SLOT): New.
664         (R_MIPS_NUM): Redefine to 128.
665         (DT_MIPS_PLTGOT): New.
666         (DT_MIPS_RWPLT): New.
667         (DT_MIPS_NUM): Redefine to 0x35.
668
669 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
670
671         * timezone/africa: Update from tzdata2008f.
672         * timezone/asia: Likewise.
673         * timezone/australasia: Likewise.
674         * timezone/europe: Likewise.
675         * timezone/leapseconds: Likewise.
676         * timezone/northamerica: Likewise.
677         * timezone/southamerica: Likewise.
678         * timezone/zone.tab: Likewise.
679
680 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
681
682         * nscd/connections.c: Disable use of paccept for now.
683
684 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
685
686         * socket/Versions: Remove paccept export for GLIBC_2.9.
687         * socket/Makefile (routines): Remove paccept.
688         * socket/sys/socket.h: Remove paccept declaration.
689
690         * po/sv.po: Update from translation team.
691
692 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
693
694         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
695         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
696
697 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
698
699         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
700         Patch by Olivier Fourdan <ofourdan@redhat.com>.
701
702 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
703
704         * sunrpc/rpc/svc.h: Declare svcfd_create.
705         Patch by Michael Solberg <msolberg@redhat.com>.
706
707 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
708             Ulrich Drepper  <drepper@redhat.com>
709
710         * malloc/malloc.c (public_vALLOc): Try other arenas in case
711         _int_valloc fails.
712         (public_pVALLOc): Likewise.
713
714 2008-09-02  Andreas Jaeger  <aj@suse.de>
715
716         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
717         commit.
718
719 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
720
721         [BZ #6860]
722         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
723
724 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
725
726         * Makefile (check-data): Check data directory in add-ons.
727         * elf/Makefile (check-data): Likewise.
728
729 2008-08-18  Roland McGrath  <roland@redhat.com>
730
731         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
732         * configure: Regenerated.
733         * config.make.in (cflags-cpu): New substituted variable.
734         (with-cpu): Variable removed.
735         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
736
737 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
738
739         [BZ #6845]
740         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
741         __signbitl definition and __LONG_DOUBLE_128__ guard from:
742         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
743         redundant.  Functions which call floating point assembler operations
744         should go into a sysdeps powerpc/fpu directory.
745
746 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
747
748         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
749         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
750
751 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
752
753         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
754
755         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
756         change related to AT_EXECFN.  We cannot use that string.
757         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
758         _dl_execfn member.
759         * elf/dl-support.c: Remove _dl_execfn variable.
760         (_dl_aux_init): Remove handling of AT_EXECFN.
761         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
762         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
763
764 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
765
766         [BZ #6544]
767         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
768         byte gets added to writes and seeks from the end use the length of
769         the buffer and not the currently terminating NUL byte.
770
771         [BZ #6634]
772         * login/utmp_file.c (getutent_r_file): Take additional parameter.
773         Set to true if locking failed.
774         (getutid_r_file): Adjust caller.
775         (pututline_file): Likewise.  Return NULL in this case.
776         Patch mostly by halesh.s@gmail.com.
777
778 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
779
780         [BZ #6589]
781         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
782         Define.
783         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
784
785 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
786
787         [BZ #6839]
788         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
789         macro since it is now available in elf/dynamic-link.h.
790
791 2008-08-12  Roland McGrath  <roland@frob.com>
792
793         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
794         in case used outside of libc.
795         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
796
797 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
798
799         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
800         directly instead of going through dn_comp.
801
802 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
803
804         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
805         Fix asm constraints.
806
807 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
808
809         [BZ #6790]
810         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
811         (IPV6_PMTUDISC_PROBE): Likewise.
812
813 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
814
815         [BZ #6791]
816         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
817
818 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
819             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
820
821         [BZ #6817]
822         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
823         Added the members 'vsx' and 'arch_2_06'.
824         (_dl_powerpc_platforms): Add the member 'power7'.
825         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
826         to reflect the changes required by VSX and ISA 2.06.
827         Modify _DL_PLATFORMS_COUNT to reflect the addition of
828         'power7'.
829         Defined PPC_PLATFORM_POWER7.
830         (_dl_string_platform): Add support for POWER7.
831         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
832         capability and ISA 2.06.
833
834 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
835
836         [BZ #6824]
837         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
838         macro to detect use of 128 bit long double.
839         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
840
841 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
842
843         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
844
845         [BZ #5794]
846         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
847         parameters.
848         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
849         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
850
851 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
852
853         * nscd/connections.c (main_loop_poll): Pass a buffer which is
854         guaranteed to be large enough to read inotify event.  Ignore
855         EAGAIN error.  Better error message.  Add branch predicition.
856         (main_loop_epoll): Likewise.
857
858 2008-08-02  Roland McGrath  <roland@frob.com>
859
860         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
861         Add memory clobbers.
862
863 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
864
865         * manual/arith.texi: Avoid @strong{Note:}.
866         * manual/creature.texi: Likewise.
867         * manual/filesys.texi: Likewise.
868         * manual/math.texi: Likewise.
869         * manual/memory.texi: Likewise.
870         * manual/resource.texi: Likewise.
871         * manual/syslog.texi: Likewise.
872         * manual/time.texi: Likewise.
873
874         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
875         to prevent warning.
876
877 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
878
879         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
880         new epoll_create1 interface.
881         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
882         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
883         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
884
885         * include/arpa/nameser.h (NS_GET16): Use const pointer.
886         (NS_GET32): Likewise.
887
888         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
889         syscalls, too.
890
891         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
892         use the AT_EXECFN value if it is no absolute path.
893         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
894         __ASSUME_AT_EXECFN.
895
896         * Versions.def: Add GLIBC_2.9 to libresolv.
897         * include/resolv.h: Remove hidden proto declarations for __ns_*
898         functions.  Add them for __dn_count_labels and __p_secstodate.
899         * include/arpa/nameser.h: Add a number of hidden proto declarations.
900         Define ns_msg_getflags macro here.
901         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
902         and __p_secstodate.
903         * resolv/Versions: Export functions from <arpa/nameser.h> from
904         libresolv in version GLIBC_2.9.
905         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
906         hidden definitions.
907         * resolv/ns_netint.c: Likewise.
908         * resolv/ns_parse.c: Likewise.
909         * resolv/ns_print.c: Likewise.
910         * resolv/ns_samedomain.c: Likewise.
911         * resolv/ns_ttl.c: Likewise.
912         * resolv/arpa/nameser_compat.h: Likewise.
913         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
914         function calls.
915         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
916         instead of ns_get16.
917         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
918         __ns_get32 instead of ns_get16 and ns_get32 respectively.
919         (gaih_getanswer_slice): Likewise.
920         * resolv/Makefile (libresolv-routines): Add ns_date.
921         * resolv/ns_date.c: New file.
922
923         * elf/Makefile (check-localplt.out): Also check libresolv and
924         libcrypt.
925
926 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
927
928         * sysdeps/unix/sysv/linux/kernel-features.h: Define
929         __ASSUME_O_CLOEXEC.
930
931 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
932
933         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
934         buffer passed to NSS functions.
935
936         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
937
938         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
939         Define.
940
941         * misc/syslog.c (openlog_internal): Fix compile problem.
942
943 2008-07-28  Roland McGrath  <roland@redhat.com>
944
945         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
946
947 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
948
949         * io/ftw.c (add_object): Remove inline to avoid warning.
950
951         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
952
953         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
954         Use it instead of locally defined resplen2 variable.
955         (res_nsend): Adjust for __libc_res_nsend interface change.
956         (send_vc): Initialize *resplen2 if necessary.  Read length of
957         package into an appropriately aligned variable.  Store converted length
958         in new variable and use it appropriately.
959         Add branch prediction help.
960         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
961         and pass it on to __libc_res_nsend.  Adjust all callers.
962         (__libc_res_nsearch): Likewise.
963         (__libc_res_nqeurydomain): Likewise.
964         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
965         change.
966         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
967         Define resplen2 variable and pass it to __libc_res_nsearch and then
968         to gaih_getanswer.
969         (getanswer_r): In case of incorrect DNS data don't overread buffer.
970         Add branch prediction.
971         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
972         (gaih_getanswer): Don't decode second slice if first one failed due
973         to a too small buffer.  Don't let not found status of second
974         decoder shadow results of the first.
975         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
976         and __libc_res_nquery interface changes
977         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
978         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
979         __libc_res_nsearch, and __libc_res_nsend.
980         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
981         change.
982         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
983         __libc_res_nsearch interface changes.
984
985 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
986
987         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
988
989         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
990         file descriptors with close-on-exec set.
991         (exec_comm_child): Fix the case where the write end of the pipe is
992         STDOUT_FILENO already.  In case it is, clear close-on-exec.
993
994         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
995         * io/pipe2.c: Likewise.
996         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
997         instead of __ASSUME_PACCEPT.
998         * include/unistd.h: Declare __have_pipe2.
999         * libio/iopopen.c: Implement "e" flag.
1000         * libio/Makefile (tests): Add tst-popen1.
1001         * libio/tst-popen1.c: New file.
1002
1003         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
1004         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1005
1006 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1007
1008         [BZ #6771]
1009         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
1010         success call of _IO_SEEKOFF or calls which failed because the
1011         descriptor is for a pipe.
1012
1013         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
1014         magic number.
1015
1016         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
1017
1018         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
1019         F_SETFD use if we know fopen set the flag.
1020
1021         * login/utmp_file.c (setutent_file): Minor optimization in case
1022         O_CLOEXEC is available.
1023
1024 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
1025
1026         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
1027         * elf/Makefile: Use pie-ccflag variable.
1028         * nscd/Makefile: Likewise.
1029         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
1030
1031 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
1032
1033         [BZ #6724]
1034         * Versions.def: Add GLIBC_2.9 version tag for libutil.
1035         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
1036         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
1037         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
1038         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
1039         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
1040         utmp32, utmpx32 and login32.
1041         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
1042         versions of struct utmp functions to libc and libutil.
1043         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
1044         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
1045         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
1046         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
1047         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
1048         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
1049         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
1050         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
1051         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
1052         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
1053         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
1054         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
1055         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
1056         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
1057         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
1058         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
1059         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
1060         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
1061         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
1062         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
1063         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
1064         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
1065
1066 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1067
1068         * scripts/gen-as-const.awk: Generate more widely usable code by
1069         using 64-bit arithmetic.
1070
1071         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
1072         the same treatment as narrow output code in last patch.
1073
1074         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
1075
1076         [BZ #6763]
1077         * elf/dl-load.c (local_strdup): Remove inline.
1078         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
1079         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
1080         part of the object.
1081
1082         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
1083
1084 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
1085
1086         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
1087         the new syscalls, too.
1088
1089         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
1090         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
1091
1092         [BZ #6698]
1093         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
1094         parameter for end of buffer.  If temporary copy is too large use
1095         malloc.
1096         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
1097         interface change.
1098         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
1099         string rewrite when allocating buffer.
1100
1101         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
1102         syscalls, too.
1103
1104         * nscd/connections.c (nscd_init): Clean up fcntl call.
1105
1106         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
1107         SOCK_NONBLOCK if possible.
1108
1109         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
1110         SOCK_CLOEXEC if available.
1111
1112         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
1113         __libc_clntudp_bufcreate_internal.
1114         * include/sys/socket.h: Declare __have_sock_cloexec.
1115         * socket/Makefile (aux): Add have_sock_cloexec.
1116         * socket/have_sock_cloexec.c: New file.
1117         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
1118         __libc_clntudp_bufcreate.
1119         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
1120         which takes an additional parameter.  Create socket with non-blocking
1121         mode and close-on-exec flag set, if wanted.
1122         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
1123         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
1124         instead of clntudp_create.  The socket has already the close-on-exec
1125         flag set if SOCK_CLOEXEC is defined.
1126
1127 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
1128
1129         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1130         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
1131         appropriate.
1132         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
1133         non-blocking mode by using socket, paccept, and inotify_init1.
1134
1135         * Versions.def (glibc): Add GLIBC_2.9.
1136         * io/Makefile (routines): Add dup3 and pipe2.
1137         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
1138         * io/dup3.c: New file.
1139         * io/pipe2.c: New file.
1140         * posix/unistd.h: Declare dup3 and pipe2.
1141         * socket/Makefile (routines): Add paccept.
1142         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
1143         * socket/paccept.c: New file.
1144         * socket/sys/socket.h: Declare paccept.
1145         * sysdeps/unix/syscalls.list: Add entry for dup3.
1146         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
1147         epoll_create2 and inotify_init1.
1148         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
1149         * sysdeps/unix/sysv/linux/paccept.c: New file.
1150         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
1151         possible.
1152         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
1153         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
1154         inotify_init1, and pipe2 entries.
1155         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
1156         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
1157         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
1158         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
1159         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
1160         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
1161         SOCK_NONBLOCK.
1162         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
1163         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
1164         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
1165         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
1166         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
1167         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
1168         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
1169         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
1170         EPOLL_NONBLOCK.  Declare epoll_create2.
1171         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
1172         EFD_NONBLOCK.
1173         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
1174         IN_NONBLOCK.  Declare inotify_init1.
1175         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
1176         SFD_NONBLOCK.
1177         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
1178         TFD_NONBLOCK.
1179
1180         * elf/elf.h: Define AT_EXECFN.
1181         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1182         LD_ORIGIN_PATH.
1183         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1184         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
1185         if __ASSUME_AT_EXECFN is defined.
1186         (_dl_aux_init): Handle AT_EXECFN.
1187         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1188         for 2.6.27 and up.
1189         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1190         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1191         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1192         _dl_execfn if available and avoid compatibility code if
1193         __ASSUME_AT_EXECFN is defined.
1194
1195         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1196         _dl_discover_osversion only for older kernels.
1197
1198 2008-07-22  Roland McGrath  <roland@frob.com>
1199
1200         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1201
1202 2008-07-21  Roland McGrath  <roland@frob.com>
1203
1204         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1205         returned too much data out of line.
1206
1207 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
1208
1209         * locale/setlocale.c (setname): Remove inline to avoid compiler
1210         warning.
1211
1212         [BZ #6712]
1213         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1214
1215 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
1216
1217         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1218         doesn't manage to write anything, fail.
1219
1220         * malloc/hooks.c (__malloc_check_init): Remove printf.
1221
1222 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1223
1224         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1225
1226 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
1227
1228         * nscd/connections.c (main_loop_poll): Fix handling of read errors
1229         from inotify.
1230         (main_loop_epoll): Likewise.
1231
1232 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
1233
1234         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1235
1236         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1237         if DEBUG is defined.
1238
1239         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1240         query.  Adjust buffer size computation for padding.
1241
1242 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
1243
1244         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1245         * stdio-common/tst-setvbuf1.c: New file.
1246         * stdio-common/tst-setvbuf1.expect: New file.
1247
1248         [BZ #6719]
1249         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1250         when selecting fully-buffered stream.
1251         Patch by Wang Xin <wxinee@gmail.com>.
1252
1253 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1254
1255         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1256         (__open_2): New function.
1257         (__open64_2): New alias to __open_2.
1258         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1259         (__openat_2): New function.
1260         (__openat64_2): New alias to __openat_2.
1261
1262 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
1263
1264         [BZ #6723]
1265         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1266
1267 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1268
1269         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1270         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1271         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1272         __hurd_dfail.
1273         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1274         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1275         * sysdeps/mach/hurd/send.c (__send): Likewise.
1276         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1277         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1278
1279 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1280
1281         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1282         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1283         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1284         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1285         * hurd/get-host.c (_hurd_get_host_config): Likewise.
1286         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1287
1288 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
1289
1290         [BZ #6657]
1291         * time/strptime_l.c: Don't clear s.era_cnt after successful match
1292         of %EY.
1293         Patch by Petr Baudis.
1294
1295 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
1296
1297         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
1298         Patch by Peter Jones <pjones@redhat.com>.
1299
1300 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1301
1302         [BZ #6654]
1303         * stdlib/canonicalize.c (__realpath): readlink can write too much
1304         into the buffer on platforms without PATH_MAX.
1305
1306 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
1307
1308         [BZ #6653]
1309         * posix/tst-regex.c (main): Rename to...
1310         (do_test): ... this. Remove cmdline option processing.
1311         (TIMEOUT): Define.
1312         (TEST_FUNCTION): Define.
1313         (CMDLINE_OPTIONS): Define.
1314
1315 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1316
1317         [BZ #5210]
1318         * configure.in: Add -Werror to -fstack-protector test to catch
1319         unsupported architectures.
1320         Patch by Gilles Esponasse <g.esp@free.fr>.
1321
1322 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
1323
1324         * stdlib/tst-setcontext.c: Set back_in_main before exit if
1325         getcontext returns ENOSYS.
1326
1327 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
1328
1329         * nscd/connections.c (main_loop_poll): Fix test for read error.
1330         (main_loop_epoll): Likewise.
1331
1332 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
1333
1334         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1335         better place so it is not called when nscd is used.
1336
1337         * nscd/connections.c: Also recognize and handle changes to the
1338         resolver configuration file.
1339
1340 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1341
1342         * time/strftime.c: Pass reference to tzset_called around to handle
1343         recursive calls.
1344
1345         [BZ #6612]
1346         * time/strftime.c (__strftime_internal): Call tzset() only
1347         when printing timezone-dependent values.
1348         Based on a patch by Petr Baudis <pasky@suse.cz>.
1349
1350         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1351         unconditionally use second gaih_getanswer_slice result.
1352
1353         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1354         (getaddrinfo): RES must always be non-NULL.
1355
1356 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1357
1358         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1359         cr[34] registers.
1360         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1361         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1362         Likewise.
1363         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1364         register.
1365
1366 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1367
1368         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1369         fields.
1370         * nscd/connections.c (inotify_fd): New variable.
1371         (nscd_init): Try to open an inotify descriptor.
1372         If successful, watch files for databases using inotify instead of
1373         having prune threads stat the files.
1374         (nscd_run_prune): Recognize clear_cache flag being set and call
1375         prune_cache appropriately.
1376         (main_loop_poll): Add inotify descriptor to wait set and handle the
1377         reported changes.
1378         (main_loop_epoll): Likewise.
1379         * nscd/cache.c (prune_cache): Don't stat files for databases if
1380         inotify is used.
1381         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1382         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1383
1384         * nscd/grpcache.c (cache_addgr): Correctly compute size of
1385         fixed-size portion of the record.
1386         * nscd/servicescache.c (cache_addserv): Likewise.
1387         * nscd/pwdcache.c (cache_addpw): Likewise.
1388         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1389
1390 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
1391
1392         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1393         out we don't use uninitialized memory.
1394
1395         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1396         the client.
1397
1398 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
1399
1400         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1401         ignore T_DNAME messages.
1402         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1403
1404 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
1405
1406         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1407         Avoid segfault if first GETC returns eof/'\0'/'\n'.
1408
1409 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
1410
1411         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1412         instead of portstr to nscd_getserv_r.  Patch by
1413         Roman Kagan <rkagan@mail.ru>.
1414
1415 2008-05-26  Jim Meyering  <meyering@redhat.com>
1416
1417         Remove more useless "if" tests before "free".
1418         * include/inline-hashtab.h (htab_delete): Likewise.
1419         * libio/freopen.c (freopen): Likewise.
1420         * libio/freopen64.c (freopen64): Likewise.
1421         * locale/programs/ld-collate.c (collate_read): Likewise.
1422         * misc/fstab.c (libc_freeres_fn): Likewise.
1423         * posix/glob.c (globfree): Likewise.
1424
1425 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1426
1427         * string/Makefile (strop-tests): Add memmem.
1428         * string/test-memmem.c: New file.
1429         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1430         (test_init): Size buf1 according to BUF1PAGES.
1431
1432 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
1433
1434         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1435         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1436         (CFLAGS-scanf17.c): New.
1437         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1438         * stdio-common/scanf15.c (main): Likewise.
1439         * stdio-common/scanf16.c: New file.
1440         * stdio-common/scanf17.c: New file.
1441
1442 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1443
1444         * resolv/res_send.c (send_dg): If we already have one of two
1445         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
1446         use the one answer insted of failing.
1447
1448 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
1449
1450         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1451         being executed on PowerPC as the expected result exceeds IBM
1452         long double 128 __LDBL_MAX__.
1453
1454 2008-05-21  Roland McGrath  <roland@redhat.com>
1455
1456         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1457
1458         * Makefile (check-data): Use $(abi-name) before other guesses.
1459         Look in $(add-ons) dirs before scripts/data/.
1460         * elf/Makefile (check-data): Likewise.
1461
1462         * scripts/soversions.awk: Grok ABI line.
1463         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1464         Emit definition for abi-name variable.
1465
1466 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
1467
1468         * string/endian.h: Define new fixed-size hto* and *toh macros only
1469         if [__USE_BSD].
1470
1471         * iconvdata/Depend: Add localedata.
1472
1473 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1474
1475         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1476
1477 2008-05-08  David S. Miller  <davem@davemloft.net>
1478
1479         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1480         HIDDEN_JUMPTARGET.
1481         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1482         (__SYSCALL_CLOBBERS): Remove %g* registers.
1483         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1484         (__SYSCALL_CLOBBERS): Likewise.
1485         * scripts/data/localplt-sparc-linux-gnu.data: New file.
1486         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
1487
1488 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
1489
1490         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1491         (CALL_ERRNO_LOCATION): Define.
1492         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1493         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1494         (CALL_ERRNO_LOCATION): Define.
1495         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1496         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1497         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1498
1499 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
1500
1501         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1502         variable.
1503
1504 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
1505
1506         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1507         (FIRST_FRAME_POINTER): Define.
1508
1509 2008-05-09  David S. Miller  <davem@davemloft.net>
1510
1511         * sysdeps/sparc/sparc64/backtrace.c: New file.
1512
1513 2008-05-14  David S. Miller  <davem@davemloft.net>
1514
1515         * sysdeps/sparc/machine-gmon.h: New file.
1516         * sysdeps/sparc/sparc-mcount.S: Likewise.
1517         * sysdeps/sparc/Makefile: Add sparc-mcount target to
1518         sysdep_routines in gmon directory.
1519
1520 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
1521
1522         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1523
1524 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
1525
1526         * resolv/res_query.c (__libc_res_nquery): In case one of two
1527         answer was too short don't try to read that answer's header.
1528
1529         * resolv/res_send.c (send_dg): In case of timeout and there are
1530         two queries and one has been answered, return value indicating
1531         success.
1532
1533 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
1534
1535         * nscd/cache.c (cache_add): Take additional parameter specifying
1536         whether this is in response of a cache refill.  Check alignment
1537         of package data.  Revamp waking of pruning thread.
1538         (prune_cache): Small optimization.
1539         * nscd/nscd.h: Adjust cache_add prototypes.
1540         * nscd/aicache.c: Adjust cache_add calls.
1541         * nscd/grpcache.c: Likewise.
1542         * nscd/hstcache.c: Likewise.
1543         * nscd/initgrcache.c: Likewise.
1544         * nscd/pwdcache.c: Likewise.
1545         * nscd/servicescache.c: Likewise.
1546         * nscd/connections.c (restart): Really disable cache use before
1547         exec attempt.  If it fails, reenable cache.
1548         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
1549         time to max to be able to notice concurrent cache additions.  Unlock
1550         prune_lock while performing gc.  Afterwards compute wakeup time with
1551         current wakeup_time value in mind.
1552
1553 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
1554
1555         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
1556
1557         * nscd/mem.c (gc): Correctly determine highest used array element
1558         in mark.
1559
1560         * nscd/mem.c (markrange): Add assert to check entries are all
1561         aligned.  Small cleanup in bitmap use.
1562
1563         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
1564         blockoff of type nscd_ssize_t.
1565         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
1566         (mempoll_alloc): Record block offset and not address.
1567
1568         * nscd/mem.c (gc): Fix test for stack overuse.
1569
1570         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
1571         more asserts.
1572
1573         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1574         entry is available, believe it.
1575
1576         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1577         no answers return NSS_STATUS_NOTFOUND.
1578         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1579         buffer does not have any content.
1580
1581 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
1582
1583         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1584
1585         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1586         lookup, don't assign canon unconditionally.
1587
1588 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1589
1590         * string/Makefile (distribute): Add str-two-way.h.
1591
1592 2008-03-29  Eric Blake  <ebb9@byu.net>
1593
1594         Rewrite string searches to O(n) rather than O(n^2).
1595         * string/str-two-way.h: New file.  For linear fixed-allocation
1596         string searching.
1597         * string/memmem.c: New implementation.
1598         * string/strstr.c: New implementation.
1599         * string/strcasestr.c: New implementation.
1600
1601 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
1602
1603         * posix/regcomp.c (optimize_utf8): Add a note on why we test
1604         opr.ctx_type.
1605         (calc_first): Initialize constraint field.
1606         (duplicate_node_closure): Use it instead of special casing ANCHORS.
1607         Use search_duplicated_node to avoid loops.  Fix grammar.
1608         (duplicate_node): Merge constraint field for all node types.
1609         (calc_eclosure_iter): Look at constraint field for all node types.
1610         * posix/regex_internal.c (create_cd_newstate): Don't look at
1611         create_cd_newstate.
1612
1613 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1614
1615         [BZ #6428]
1616         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
1617
1618         [BZ #6442]
1619         * string/endian.h: Add macros for fixed-size endian conversion.
1620         * bits/byteswap.h: Allow inclusion from <endian.h>.
1621         * sysdeps/i386/bits/byteswap.h: Likewise.
1622         * sysdeps/ia64/bits/byteswap.h: Likewise.
1623         * sysdeps/s390/bits/byteswap.h: Likewise.
1624         * sysdeps/x86_64/bits/byteswap.h: Likewise.
1625         * string/Makefile (tests): Add tst-endian.
1626         * string/tst-endian.c: New file.
1627
1628         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
1629         Patch by Reuben Thomas.
1630
1631 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
1632
1633         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
1634
1635 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1636
1637         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
1638
1639         [BZ #6461]
1640         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
1641         Add missing braces.
1642         (BODY for __gconv_transform_internal_ascii): Likewise.
1643
1644         [BZ #6472]
1645         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
1646         to be treated like link-local addresses.
1647         (match_prefix): Don't treat IPv4 loopback address special when
1648         converting to v4 mapped addressed.
1649
1650         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1651         if necessary.
1652         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
1653         * posix/tst-rfc3484-2.c: Likewise.
1654         * posix/tst-rfc3484-3.c: Likewise.
1655
1656         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
1657         and SCTP.
1658
1659         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
1660
1661         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
1662
1663         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
1664
1665 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
1666
1667         * po/lt.po: New file.  From Lituanian translation team.
1668
1669 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
1670
1671         Introduce TLS descriptors for i386 and x86_64.
1672         * include/inline-hashtab.h: New file, copied from 2005's
1673         libiberty, with fix for memory leak imported afterwards by
1674         Glauber de Oliveira Costa.
1675         * elf/tlsdeschtab.h: New file.
1676         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
1677         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
1678         (CHECK_STATIC_TLS): Move to...
1679         * elf/dynamic-link.h: ... this file.
1680         (TRY_STATIC_TLS): New macro.
1681         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
1682         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
1683         R_386_TLS_DESC): Define.
1684         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
1685         binutils.
1686         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
1687         R_X86_64_TLSDESC): Define.
1688         (R_386_NUM, R_X86_64_NUM): Adjust.
1689         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
1690         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1691         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1692         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1693         release tlsdesc_table.
1694         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
1695         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
1696         (elf_machine_rel): Handle R_386_TLS_DESC.
1697         (elf_machine_rela): Likewise.
1698         (elf_machine_lazy_rel): Likewise.
1699         (elf_machine_lazy_rela): Likewise.
1700         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
1701         * sysdeps/i386/dl-tlsdesc.S: New file.
1702         * sysdeps/i386/dl-tlsdesc.h: New file.
1703         * sysdeps/i386/tlsdesc.c: New file.
1704         * sysdeps/i386/tlsdesc.sym: New file.
1705         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
1706         tlsdesc_table.
1707         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
1708         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1709         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1710         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1711         release tlsdesc_table.
1712         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
1713         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
1714         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
1715         (elf_machine_rel): Handle R_X86_64_TLSDESC.
1716         (elf_machine_rela): Likewise.
1717         (elf_machine_lazy_rel): Likewise.
1718         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
1719         (__tls_get_addr): Do not declare for non-shared compiles.
1720         * sysdeps/x86_64/dl-tlsdesc.S: New file.
1721         * sysdeps/x86_64/dl-tlsdesc.h: New file.
1722         * sysdeps/x86_64/tlsdesc.c: New file.
1723         * sysdeps/x86_64/tlsdesc.sym: New file.
1724         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
1725         tlsdesc_table for both 32- and 64-bit structs.
1726
1727 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1728
1729         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
1730         its own function.  This reduces the frame setup costs and more.
1731
1732 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
1733
1734         [BZ #3406]
1735         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
1736         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
1737
1738 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1739
1740         * io/openat.c (__openat_2): Also pass fd to __openat.
1741         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
1742         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
1743
1744         * string/tester.c (test_memcmp): Add a few more tests.
1745         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
1746
1747 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1748
1749         * nscd/cache.c (cache_add): Before returning with failure and this
1750         is the first use of the record, mark it as unusable.
1751         * nscd/aicache.c: Don't touch the dataset after cache_add returns
1752         reporting a failure.
1753         * nscd/grpcache.c: Likewise
1754         * nscd/hstcache.c: Likewise.
1755         * nscd/initgrcache.c: Likewise.
1756         * nscd/pwdcache.c: Likewise.
1757         * nscd/servicescache.c: Likewise.
1758
1759 2008-05-10  Roland McGrath  <roland@redhat.com>
1760
1761         [BZ #6505]
1762         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
1763
1764 2008-05-08  David S. Miller  <davem@davemloft.net>
1765
1766         * misc/truncate64.c (truncate64): Use __truncate not truncate.
1767
1768         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
1769         (__ieee754_y0l): Likewise.
1770         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1771         (__ieee754_y1l): Likewise.
1772         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
1773         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
1774         frexpl and ldexpl.  math_private.h provides them and the latter
1775         is not even used.
1776         (__log1pl): Use __frexpl.
1777
1778 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1779
1780         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
1781         prototypes.
1782         * include/arpa/nameser_compat.h: Define T_UNSPEC.
1783         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
1784         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
1785         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
1786         af==AF_UNSPEC.
1787         (_nss_nis_gethostbyname4_r): New function.
1788         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1789         Change to also handle af==AF_UNSPEC.
1790         (get_tablename): New function.  Use it to avoid duplication.
1791         (_nss_nisplus_gethostbyname4_r): New function.
1792         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
1793         available.
1794         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
1795         * nss/nss.h: Define struct gaih_addrtuple.
1796         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
1797         af==AF_UNSPEC.
1798         (_nss_files_gethostbyname4_r): New function.
1799         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
1800         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
1801         calls.
1802         * resolv/res_query.c (__libc_res_nquery): Take two additional
1803         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
1804         look up IPv4 and IPv6.
1805         Change all callers.
1806         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
1807         for an additional query and answer buffer.  Pass to send_vc and
1808         send_dg.
1809         (send_vc): Send possibly two requests and receive two answers.
1810         (send_dg): Likewise.
1811         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
1812         __libc_res_nquery.
1813         (_nss_dns_gethostbyname4_r): New function.
1814         (gaih_getanswer_slice): Likewise.
1815         (gaih_getanswer): Likewise.
1816         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
1817         __libc_res_nquery call.
1818         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
1819         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
1820         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
1821         available.
1822
1823 2008-05-05  David S. Miller  <davem@davemloft.net>
1824
1825         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
1826         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
1827
1828 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1829
1830         Fix termios bit macros.
1831         Move *DLY definitions where they belong, in termios.h.
1832         Add *[0-3] definitions.
1833         Fixes confusion between VT and FF.
1834         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
1835         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
1836         are already defined to avoid collision with termios.h.
1837         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
1838         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
1839         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
1840         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
1841         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
1842         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
1843         VTDLY, VT0, VT1): New macros.
1844         [__USE_GNU] (OLCUC): Change value of macro.
1845         [__USE_XOPEN] (OFILL): New macro.
1846         [__USE_BSD] (CRTSCTS): Change value.
1847         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
1848         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
1849         (B7200, B14400, B28800, B76800): New macros.
1850
1851 2008-05-01  David S. Miller  <davem@davemloft.net>
1852
1853         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
1854         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
1855         (gen-as-const-headers): Add it.
1856         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
1857         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
1858         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
1859         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
1860
1861         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
1862         six system call parameters.
1863         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
1864
1865 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
1866
1867         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
1868         RUSAGE_LWP.
1869         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1870         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1871
1872 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
1873
1874         * stdlib/tst-setcontext.c: Include unistd.h.
1875
1876 2008-04-25  David S. Miller  <davem@davemloft.net>
1877
1878         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
1879         Pass "union semun" properly in to sys_ipc, it must be passed
1880         by value, not by reference.
1881
1882 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
1883
1884         * nscd/Makefile (nscd-cflags): Set back to -fpie.
1885         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
1886         * nscd/connections.c (mem_in_flight): Likewise.
1887
1888         * nscd/nscd.h (dbs): Make hidden.
1889
1890         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
1891         Avoid returning -1, return 0 instead.
1892
1893 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
1894
1895         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
1896
1897 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
1898
1899         [BZ #5209]
1900         * sysdeps/unix/sysv/linux/times.c: New file.
1901
1902         [BZ #5381]
1903         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
1904         mem_in_flight_list variables.  Add new parameter to mempool_alloc
1905         prototype.
1906         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
1907         appropriate mem_in_flight element.
1908         (gc): Take allocations which have not yet been committed to the
1909         database into account.
1910         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
1911         Reset mem_in_flight before returning.
1912         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
1913         cue it up in mem_in_flight_list.
1914         * nscd/aicache.c: Adjust mempool_alloc call.
1915         * nscd/grpcache.c: Likewise.
1916         * nscd/hstcache.c: Likewise.
1917         * nscd/initgrcache.c: Likewise.
1918         * nscd/pwdcache.c: Likewise.
1919         * nscd/servicescache.c: Likewise.
1920         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
1921         of -fpie.
1922
1923         * nscd/connections.c (handle_request): Provide better error message
1924         in case SELinux forbids the service.
1925
1926         * version.h (VERSION): Bump to 2.8.90.
1927
1928 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
1929
1930         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
1931
1932 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
1933
1934         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
1935         Also use for 32-bit.
1936         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
1937         __nextafter instead of nextafter to avoid local PLT.
1938         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
1939         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1940
1941         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
1942
1943         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
1944         __fe_nomask_env.
1945         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
1946         <fenv_libc.h> instead of <fenv.h>.
1947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
1948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
1949
1950         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
1951
1952         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
1953         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
1954         function from fegetexcept and make old name weak alias.
1955         * include/fenv.h: Declare __fegetexcept.
1956         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
1957         fegetexcept.
1958         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
1959         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
1960         to fetestexcept.
1961         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
1962         instead of frexpl to avoid local PLT.
1963         * math/s_significandl.c (__significandl): Use __ilogbl instead of
1964         ilogbl to avoid local PLT.
1965         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
1966         instead of ldexpl to avoid local PLT.
1967         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
1968         __roundl not roundl to avoid local PLT.
1969         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
1970         local PLTs.  Use __sincosl instead of separate sinl and cosl
1971         calls.
1972         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1973
1974         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
1975         version for ppc64 to 2.4.21 since without it makecontext will fail.
1976
1977         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
1978         to the ABI in use.
1979         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
1980         .__tls_get_addr.
1981         [__powerpc64__] (TLS_GD): Likewise.
1982
1983 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
1984
1985         [BZ #4997]
1986         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
1987         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
1988         mantissa.
1989         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1990         Likewise.  Also account for when x is an odd number between 2^52
1991         and 2^53-1.
1992         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
1993         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1994         * math/libm-test.inc (lround_test, llround_test): Added test cases to
1995         detect aforementioned erroneous conditions.
1996
1997 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
1998
1999         * configure.in: Check for -fno-section-anchors in addition to
2000         -fno-toplevel-reorder.
2001
2002 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
2003
2004         * include/features.h (__GLIBC_MINOR__): Bump to 8.
2005
2006         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
2007         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2008         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2009         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
2010         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
2011         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
2012
2013 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
2014
2015         [BZ #5443]
2016         * time/era.c: Transform __libc_setlocale_lock into rwlock.
2017         * time/alt_digit.c: Likewise.
2018         * wcsmbs/wcsmbsload.c: Likewise.
2019
2020 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
2021
2022         * version.h (VERSION): Bump to 2.8.
2023
2024         * timzeone/asia: Update from tzdata2008b.
2025         * timezone/backward: Likewise.
2026         * timezone/europe: Likewise.
2027         * timezone/northamerica: Likewise.
2028         * timezone/southamerica: Likewise.
2029         * timezone/iso3166.tab: Likewise.
2030         * timezone/leapseconds: Likewise.
2031         * timezone/zone.tab: Likewise.
2032         * timezone/private.h: Update from tzcode2008a.
2033         * timezone/zdump.c: Likewise.
2034         * timezone/zic.c: Likewise.
2035
2036 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
2037
2038         [BZ #5741]
2039         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
2040         Define additonal Data Cache Block instruction macros.
2041         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
2042         Replace dcbst with dcbf and sync with sync/isync.
2043
2044 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
2045
2046         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
2047         Always set ELF_RTYPE_CLASS_PLT.
2048         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
2049
2050 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
2051
2052         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
2053         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
2054         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
2055         For ISA 2.01 and later replace mftb with mfspr 268.
2056
2057 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
2058
2059         [BZ #5768]
2060         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
2061         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
2062
2063 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
2064
2065         [BZ #5768]
2066         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
2067         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
2068         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
2069         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
2070
2071 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
2072
2073         * stdlib/tst-makecontext.c (othervar): New variable.
2074         (cf): Test sign extending the argument to long.
2075
2076 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
2077
2078         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
2079         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
2080         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
2081         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
2082         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
2083         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
2084         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
2085
2086 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
2087
2088         * elf/Makefile (tests): Substitute tests-vis-yes here.
2089         (tests-vis-yes): Delete.
2090         (modules-name, modules-vis-yes): Similarly.
2091
2092 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
2093
2094         [BZ #4407]
2095         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
2096         Preserve sign in signgamp when x is zero.
2097
2098 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
2099
2100         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
2101         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
2102         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
2103         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
2104         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
2105         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
2106
2107 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2108
2109         [BZ #4314]
2110         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
2111         buffers.
2112
2113         [BZ #5209]
2114         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
2115         a reserved error value.
2116
2117         * stdlib/tst-makecontext.c: Change parameter to cf to negative
2118         value to check for correct sign extension.
2119
2120         [BZ #5436]
2121         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2122         Copy 64-bit parameter values even though this is not required in
2123         the standard.
2124
2125         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
2126         PC save.
2127
2128 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
2129
2130         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
2131         PC save.
2132
2133 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
2134
2135         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
2136
2137 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2138
2139         [BZ #5998]
2140         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
2141         in line-buffered stream failed.
2142         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2143
2144 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
2145
2146         [BZ #6024]
2147         * scripts/abi-versions.awk: If the version specified by
2148         --enable-oldest-abi is older than the first version for this
2149         architecture, use the default version.
2150
2151         * locale/programs/ld-collate.c (collate_read): Ignore script lines
2152         as well when ignoring the whole category.
2153
2154 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2155
2156         [BZ #6042]
2157         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
2158         ETHERTYPE_* definitions.
2159         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
2160
2161 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2162
2163         * stdlib/mbtowc.c (__no_r_state): Remove.
2164         (mbtowc): New static state variable.  Use it instead of
2165         __no_r_state.
2166         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
2167         (__wctomb_state): New hidden variable.
2168         (wctomb): Use __wctomb_state instead of __no_r_state.
2169         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
2170         (__wctomb_state): New extern decl.
2171         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
2172
2173 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2174
2175         [BZ #5475]
2176         * resolv/res_init.c: Handle scope IDs in resolv.conf.
2177
2178 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2179
2180         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2181
2182 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
2183
2184         * po/nl.po: Update from translation team.
2185
2186 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
2187
2188         [BZ #6007]
2189         * string/strfry.c: Handle empty strings again.
2190
2191 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2192
2193         [BZ #5443]
2194         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2195         before looking for translation.
2196         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2197         * locale/freelocale.c: Likewise.
2198         * locale/newlocale.c: Likewise.
2199         * locale/setlocale.c: Likewise.
2200         Based partially on a patch by ryo@np.css.fujitsu.com.
2201
2202 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
2203
2204         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2205         acquiring wrlock.  Do conv_tab allocation while holding lock.
2206         * intl/Makefile: Add rules to build and run tst-gettext6.
2207         * intl/tst-gettext6.c: New test.
2208         * intl/tst-gettext6.sh: New file.
2209
2210 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2211
2212         * po/nl.po: Update from translation team.
2213
2214         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2215         provided through st_blksize, try the default size before giving up.
2216
2217 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
2218
2219         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2220
2221         [BZ #5939]
2222         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2223
2224         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2225         error message.  POSIX today does not require the messages to be in
2226         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
2227
2228         [BZ #5979]
2229         * sunrpc/auth_unix.c: Unify printed strings.
2230         * sunrpc/clnt_tcp.c: Likewise.
2231         * sunrpc/clnt_udp.c: Likewise.
2232         * sunrpc/clnt_unix.c: Likewise.
2233         * sunrpc/svc_tcp.c: Likewise.
2234         * sunrpc/svc_udp.c: Likewise.
2235         * sunrpc/svc_unix.c: Likewise.
2236         * sunrpc/xdr.c: Likewise.
2237         * sunrpc/xdr_array.c: Likewise.
2238         * sunrpc/xdr_rec.c: Likewise.
2239         * sunrpc/xdr_ref.c: Likewise.
2240         * locale/programs/ld-time.c (time_finish): Unify messages.
2241         * locale/programs/locfile.c (handle_copy): Fix typo.
2242         * nscd/nscd.c (options): Fix typo.
2243
2244         [BZ #5995]
2245         * stdlib/strtod_l.c: Use correct sign for result in one more
2246         underflow case.
2247         Patch by Eric Blake <ebb9@byu.net>.
2248
2249 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
2250
2251         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2252         and creat system calls.
2253         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2254         call.
2255         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2256         system calls.
2257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2258         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2259         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2260
2261 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
2262
2263         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2264         <linux/limits.h> has defined it.
2265         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2266         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2267         headers.
2268         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2269         it instead of ARG_MAX.
2270
2271 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
2272
2273         * posix/gai.conf: Fix comment for scope nullbits.
2274         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2275         default to 128 bits for v4 mapped addresses.
2276
2277 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2278
2279         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2280         ptrace call to get the ieee_instruction_pointer from the kernel.
2281         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2282         ptrace call to set the ieee_instructtion_pointer.
2283         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2284         Add comment that ieee_instruction_pointer is always 0.
2285
2286 2008-03-09  Andreas Jaeger  <aj@suse.de>
2287
2288         [BZ #5857]
2289         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2290         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2291         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2292
2293         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2294         (rint_test): Likewise.
2295
2296 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
2297
2298         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2299         call.
2300         (__nisfind_server): Similar for open readColdStartFile call.
2301         Patch partially by Jim Meyering.
2302         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2303         around internal_setent call.
2304
2305         * po/vi.po: New Vietnamese translation.
2306
2307         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2308         ADJ_OFFSET_SS_READ.
2309
2310         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2311         remove CLONE_STOPPED.
2312
2313 2008-02-10  Jim Meyering  <meyering@redhat.com>
2314
2315         Remove useless "if" before "free":
2316         * elf/ldconfig.c (parse_conf_include): Likewise.
2317         * gmon/gmon.c (weak_alias): Likewise.
2318         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2319         * inet/rcmd.c (__validuser2_sa): Likewise.
2320         * intl/bindtextdom.c (set_binding_values): Likewise.
2321         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2322         * libio/genops.c (save_for_backup): Likewise.
2323         * libio/wgenops.c (save_for_wbackup): Likewise.
2324         * locale/programs/ld-collate.c (collate_read): Likewise.
2325         * locale/programs/linereader.c (get_string): Likewise.
2326         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2327         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2328         * resolv/res_debug.c (do_section): Likewise.
2329         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2330         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2331         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2332         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2333         * time/tzset.c (tzset_internal): Likewise.
2334
2335 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2336
2337         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2338         of ASSEMBLER.
2339
2340 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
2341
2342         [BZ #5903]
2343         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2344         not stream for output file.  Open output file here.
2345         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2346         and output file name.
2347         (process_fd): Likewise.
2348         (process_file): Likewise.
2349         (main): Adjust callers of changed functions.
2350         * iconv/iconv_prog.h: Adjust prototype.
2351
2352 2008-03-09  Andreas Jaeger  <aj@suse.de>
2353
2354         [BZ #5753]
2355         * sysdeps/ia64/ieee754.h: Use protected namespace
2356         __BIG_ENDIAN/__LITTLE_ENDIAN.
2357         * sysdeps/ieee754/ieee754.h: Likewise.
2358         Patch by Aurelien Jarno <aurelien@aurel32.net>.
2359
2360 2008-03-08  Roland McGrath  <roland@frob.com>
2361
2362         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2363         ignore a signal that came from a machine exception, treat it as a
2364         fatal core-dump signal instead.
2365         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2366
2367         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2368         Clear DF bit in thread state's eflags.
2369         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2370
2371 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
2372
2373         [BZ #5774]
2374         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
2375         of NAN(...) sequence.
2376         * stdlib/Makefile (tests): Add tst-strtod6.
2377         * stdlib/tst-strtod6.c: New file.
2378
2379         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2380
2381         [BZ #5762]
2382         * posix/getopt.c (_getopt_internal_r): Clarify error message by
2383         putting offending option character in quotes.  Clean up error
2384         messages.
2385         * po/be.po: Adjust msgstr in translation file.
2386         * po/bg.po: Likewise.
2387         * po/ca.po: Likewise.
2388         * po/cs.po: Likewise.
2389         * po/da.po: Likewise.
2390         * po/de.po: Likewise.
2391         * po/es.po: Likewise.
2392         * po/fr.po: Likewise.
2393         * po/hr.po: Likewise.
2394         * po/ko.po: Likewise.
2395         * po/nl.po: Likewise.
2396         * po/rw.po: Likewise.
2397         * po/sk.po: Likewise.
2398         * po/sv.po: Likewise.
2399         * po/tr.po: Likewise.
2400         * po/zh_CN.po: Likewise.
2401         * po/zh_TW.po: Likewise.
2402
2403         [BZ #5760]
2404         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2405         Patch by Roland Bless <roland@bless.de>.
2406
2407         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2408         .o file.
2409         * elf/Makefile (routines): Add dl-sysdep.
2410         (elide-routines.os): Likewise.
2411
2412 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
2413
2414         [BZ #5786]
2415         * elf/dl-sysdep.c: Undefine ROUND after use.
2416         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2417         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2418         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2419         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2420         to ...
2421         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2422         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2423         if necessary.
2424         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2425
2426         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2427         _dl_tls_get_addr_soft element.
2428         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2429         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2430         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2431         GLRO.
2432         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2433         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2434         of internal_function.
2435
2436         * stdlib/Makefile (aux): Add tens_in_limb.
2437         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2438         * stdlib/tens_in_limb.c: ...here.  New file.
2439
2440         [BZ #5778]
2441         * sysdeps/unix/sysv/linux/pathconf.h: Declare
2442         __statfs_chown_restricted.
2443         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2444         for _PC_CHOWN_RESTRICTED.
2445         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2446         Implement __statfs_chown_restricted.
2447         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2448         _POSIX_CHOWN_RESTRICTED value to zero.
2449         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2450         defined to zero.
2451
2452         * sysdeps/x86_64/rtld-memset.c: New file.
2453
2454 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
2455
2456         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2457
2458         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2459         Barcelona machine.  Make default fall through branch of
2460         __x86_64_preferred_memory_instruction check as the integer code path.
2461
2462 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2463
2464         * sysdeps/x86_64/cacheinfo.c
2465         (__x86_64_preferred_memory_instruction): New variable.
2466         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2467
2468         * sysdeps/x86_64/memset.S: Rewrite.
2469
2470 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
2471
2472         * include/stdio.h (__asprintf_chk, __dprintf_chk,
2473         __obstack_printf_chk): New prototypes.
2474         (__vasprintf_chk, __vdprintf_chk,
2475         __obstack_vprintf_chk): Likewise.
2476         Add libc_hidden_proto.
2477         * libio/obprintf.c
2478         (_IO_obstack_jumps): No longer static, add attribute_hidden.
2479         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2480         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2481         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2482         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2483         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2484         __obstack_vprintf_chk): New prototypes.
2485         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2486         obstack_vprintf): New inlines.
2487         * debug/dprintf_chk.c: New file.
2488         * debug/vdprintf_chk.c: New file.
2489         * debug/asprintf_chk.c: New file.
2490         * debug/vasprintf_chk.c: New file.
2491         * debug/obprintf_chk.c: New file.
2492         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2493         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2494         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2495         @@GLIBC_2.8.
2496         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2497         vdprintf_chk and obprintf_chk, set CFLAGS for them.
2498         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2499         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2500         libc_hidden_proto.
2501         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2502         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2503         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2504         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2505         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2506         @@GLIBC_2.8.
2507         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2508         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2509         obstack_vprintf_chk.
2510         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2511         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2512         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2513         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2514         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2515         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2516
2517 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
2518
2519         [BZ #5779]
2520         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2521         Patch by Roy Marples <roy@marples.name>.
2522
2523         [BZ #5736]
2524         * malloc/malloc.c: Fix typo in comment.
2525
2526         [BZ #5627]
2527         * locale/iso-639.def: Add Shuswap.
2528
2529 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
2530
2531         [BZ #5790]
2532         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2533         overwrite *h_errnop/*errnop values from getanswer_r in case of
2534         failure.
2535
2536 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
2537
2538         [BZ #5818]
2539         * nscd/connections.c (dbs): Add initializers for .suggested_module.
2540         (verify_persistent_db): Remove one unnecessary test and add a new one
2541         for bad configuration.
2542         (nscd_init): Improve error reported when persistent database cannot
2543         be reused.
2544         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
2545         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
2546         .suggested_module and .max_db_size and case config file says the
2547         values are zero.
2548         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
2549
2550         [BZ #5854]
2551         * nis/ypclnt.c (yp_order): Fix handling of return value of
2552         do_ypcall_tr call.
2553         Patch by Jeff Moyer <jmoyer@redhat.com>.
2554
2555         * po/fr.po: Update from translation team.
2556
2557 2008-02-22  Andreas Jaeger  <aj@suse.de>,
2558             Carlos O'Donell <carlos@systemhalted.org>
2559
2560         [BZ #5012]
2561         * FAQ.in: Describe why glibc needs to be compiled with
2562         optimization.
2563
2564 2008-02-19  Roland McGrath  <roland@redhat.com>
2565
2566         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
2567
2568 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
2569
2570         [BZ #5737]
2571         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
2572         __USE_MISC is defined.
2573
2574 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
2575
2576         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2577         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2578         sys/timerfd.h.
2579         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2580         timerfd_gettime, timerfd_settime.
2581         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2582         timerfd_gettime, timerfd_settime for GLIBC_2.8.
2583
2584 2008-02-08  Roland McGrath  <roland@redhat.com>
2585
2586         * elf/elf.h (NT_PPC_SPE): New macro.
2587
2588 2008-02-06  Roland McGrath  <roland@redhat.com>
2589
2590         * Makerules ($(common-objpfx)sysd-rules):
2591         Depend on $(sysdep-makeconfigs).
2592
2593 2008-01-31  Roland McGrath  <roland@redhat.com>
2594
2595         [BZ #5442]
2596         * configure.in: Use -print-file-name if it yields a directory,
2597         for each of include and include-fixed.
2598         * configure: Regenerated.
2599
2600         * Makeconfig (sysd-rules-targets): New variable.
2601         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2602         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2603
2604 2008-01-30  Roland McGrath  <roland@redhat.com>
2605
2606         * manual/libc.texinfo: Update back-cover text.
2607
2608         * elf/elf.h (NT_386_TLS): New macro.
2609
2610 2008-01-29  Roland McGrath  <roland@redhat.com>
2611
2612         * Makeconfig (sysd-rules-patterns): New variable.
2613         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
2614         (check-inhibit-asm): New canned sequence, replaces ...
2615         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
2616         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
2617         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
2618         (CFLAGS-rtld): Variable removed.
2619
2620 2008-01-24  Roland McGrath  <roland@redhat.com>
2621
2622         * configure.in: Let configure fragments set base_os.
2623         * configure: Regenerated.
2624
2625 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
2626
2627         * po/ko.po: Update from translation team.
2628
2629 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
2630
2631         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
2632
2633 2008-01-12  Andreas Jaeger  <aj@suse.de>
2634
2635         [BZ #5040]
2636         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
2637         Add EPOLLRDHUP.
2638
2639 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2640
2641         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
2642         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
2643         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
2644
2645 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
2646
2647         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
2648         * elf/dl-close.c (_dl_close): Check for it.
2649         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
2650         (_dl_allocate_static_tls): Likewise.
2651         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2652         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
2653         to it.
2654         * elf/tst-tls16.c: New file.
2655         * elf/tst-tlsmod16a.c: New file.
2656         * elf/tst-tlsmod16b.c: New file.
2657         * elf/Makefile: Add rules to build and run tst-tls16.
2658
2659 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
2660
2661         [BZ #5628]
2662         * bits/shm.h: Fix comment describing shmid_ds.
2663         * sysdeps/gnu/bits/shm.h: Likewise.
2664         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2665         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2666         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2667         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2668         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2669         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2670         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2671         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2672         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
2673
2674         [BZ #5607]
2675         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
2676         prototypes.
2677         * conform/data/limits.h-data: Adjust limits changed in v6 and add
2678         additional suffixes.
2679         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
2680         Add optional functions mq_timedreceive and mq_timedsend.
2681         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
2682         * conform/data/pthread.h-data: Fix prototype of
2683         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
2684         * conform/data/semaphore.h-data: Allow time.h definitions.
2685         * conform/data/signal.h-data: Likewise.
2686         * conform/data/stdio.h-data: getw and putw are not required in v6.
2687         * conform/data/stdlib.h-data: Change setstate prototype.
2688         * conform/data/string.h-data: Fix strerror_r prototype.
2689         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
2690         * conform/data/unistd.h-data: pthread_atfork not required in v6.
2691         Fix readlink prototype.
2692         * conform/data/netinet/in.h-data: Add const to in6addr_any and
2693         in6addr_loopback.
2694         * inet/netinet/in.h: Cleanup namespace.
2695         * posix/regex.h: Likewise.
2696         * resolv/netdb.h: Likewise.
2697         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
2698         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2699         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2700         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
2701         of names of in in6_addr.
2702         (default_precedence): Likewise.
2703         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
2704         NULL definition.
2705
2706 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
2707
2708         * conform/data/fmtmsg.h-data: Add missing allows.
2709         * conform/data/ftw.h-data: Likewise.
2710         * conform/data/inttypes.h-data: Likewise.
2711         * conform/data/math.h-data: Likewise.
2712         * conform/data/signal.h-data: Likewise.
2713         * conform/data/net/if.h-data: Likewise.
2714         * conform/data/netinet/in.h-data: Likewise.
2715         * conform/data/sys/socket.h-data: Likewise.
2716
2717         [BZ #5614]
2718         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
2719         (__strtok_r): Simplify.
2720         * string/tester.c (test_strtok_r): Add test case for futile search
2721         with single-character seach string.
2722
2723 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
2724
2725         * po/ko.po: Update from translation team.
2726
2727 2008-01-11  Andreas Jaeger  <aj@suse.de>
2728
2729         [BZ #5600]
2730         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
2731         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
2732         kernel header.
2733
2734 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
2735
2736         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
2737         native interface lookup in all the relevant places.
2738
2739 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
2740             Ulrich Drepper  <drepper@redhat.com>
2741
2742         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
2743         field.  Use sockaddr_in6 for source_addr.
2744         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
2745         (match_prefix): Likewise.
2746         (get_label): Likewise.
2747         (get_precedence): Likewise.
2748         (rfc3484_sort): Change to use indirect access to results array.
2749         Adjust to use of sockaddr_in6.  Replace service_order test with
2750         simple index comparison.
2751         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
2752         service_order field.  Adjust qsort_t calls.  Access sorted result
2753         array indirectly through order array.
2754         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
2755         * posix/tst-rfc3484-2.c: Likewise.
2756         * posix/tst-rfc3484-3.c: Likewise.
2757
2758 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
2759
2760         [BZ #5541]
2761         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
2762         pollfd structures.
2763         Patch by André Cruz.
2764
2765         [BZ #5545]
2766         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
2767         (clnt_spcreateerror): Likewise.
2768
2769         [BZ #5553]
2770         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
2771         (public_mEMALIGn): Likewise.
2772         Patch mostly by Daniel Jacobowitz.
2773
2774 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
2775
2776         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
2777         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
2778         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
2779         * stdlib/tst-makecontext2.c: New test.
2780
2781 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
2782
2783         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
2784         defined.
2785         (REINIT_PARAMS): Likewise.  Undefine before end of file.
2786         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
2787         transliteration hooks and REINIT_PARAMS afterwards.
2788         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
2789         status.
2790         (REINIT_PARAMS): Define.
2791         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
2792         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
2793         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
2794         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
2795         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
2796         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
2797         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
2798         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
2799         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
2800         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
2801         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
2802         * iconvdata/tst-iconv7.c: New test.
2803
2804 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
2805
2806         * libio/stdio.h (vscanf): Fix definition for loser compilers.
2807
2808 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
2809
2810         [BZ #5112]
2811         * nscd/connections.c (restart): Fix condition.
2812
2813 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
2814
2815         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
2816         __ctype_toupper_loc): Add __THROW.
2817
2818 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
2819
2820         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
2821         recognition of interface family.
2822
2823         * posix/getconf.c: Update copyright year.
2824         * nss/getent.c: Likewise.
2825         * iconv/iconvconfig.c: Likewise.
2826         * iconv/iconv_prog.c: Likewise.
2827         * elf/ldconfig.c: Likewise.
2828         * catgets/gencat.c: Likewise.
2829         * csu/version.c: Likewise.
2830         * elf/ldd.bash.in: Likewise.
2831         * elf/sprof.c (print_version): Likewise.
2832         * locale/programs/locale.c: Likewise.
2833         * locale/programs/localedef.c: Likewise.
2834         * nscd/nscd.c (print_version): Likewise.
2835         * debug/xtrace.sh: Likewise.
2836         * malloc/memusage.sh: Likewise.
2837         * malloc/mtrace.pl: Likewise.
2838         * debug/catchsegv.sh: Likewise.
2839
2840 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
2841
2842         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
2843         second lookup.
2844
2845 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
2846
2847         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
2848         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2849
2850 2007-12-17  Roland McGrath  <roland@redhat.com>
2851
2852         * inet/ether_line.c (ether_line): Remove unused variable.
2853
2854 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2855
2856         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
2857         and winp.
2858         * login/openpty.c (openpty): Likewise.
2859         * login/pty.h (openpty, forkpty): Likewise.
2860         * manual/terminal.texi (openpty, forkpty): Likewise.
2861
2862 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
2863
2864         * malloc/malloc.c (public_cALLOc): For arenas other than
2865         main_arena, count all bytes inside the mprotect_size range of the
2866         heap as uninitialized.
2867
2868 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
2869
2870         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
2871         executable stacks.
2872
2873         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
2874         mTRIm for all of them.
2875         (mTRIm): Additionally iterate over all free blocks and use madvise
2876         to free memory for all those blocks which contain at least one
2877         memory page.
2878         * malloc/tst-trim1.c: New file.
2879         * malloc/Makefile (tests): Add tst-trim1.
2880
2881         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
2882
2883 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
2884
2885         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2886         First cast argument to long
2887         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
2888         Return long.
2889         (__vdso_clock_gettime): Likewise.
2890         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
2891         return long.
2892
2893 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
2894
2895         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
2896         * locale/nl_langinfo_l.c: Real implementation, copied from
2897         nl_langinfo.c.
2898         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
2899
2900 2007-12-01  Jim Meyering  <meyering@redhat.com>
2901
2902         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2903         that would inhibit utf8-optimization of a regexp containing line-
2904         or buffer-anchors, e.g., `^', `$'.
2905
2906 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
2907
2908         * time/bug-getdate1.c (do_test): Don't use century values which
2909         aren't valid on 32-bit systems.
2910
2911 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
2912
2913         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
2914         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
2915         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
2916         __strcat_g, __strncat_g): Add __asm__.
2917
2918 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
2919
2920         [BZ #5477]
2921         * io/fchmodat.c: Fix typo in stub_warning use.
2922         Patch by Petr Salinger.
2923
2924 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
2925
2926         * iconvdata/hp-thai8.c: New file.
2927         * iconvdata/Makefile: Add rules for hp-thai8.c.
2928         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
2929         * iconvdata/gconv-modules: Likewise.
2930
2931         [BZ #5464]
2932         * iconvdata/hp-greek8.c: New file.
2933         * iconvdata/Makefile: Add rules for hp-greek8.c.
2934         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
2935         * iconvdata/gconv-modules: Likewise.
2936
2937         [BZ #5463]
2938         * iconvdata/hp-turkish8.c: New file.
2939         * iconvdata/Makefile: Add rules for hp-turkish8.c.
2940         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
2941         * iconvdata/gconv-modules: Likewise.
2942
2943         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
2944         (shrink_heap): ... this new function.
2945         (heap_trim): Call shrink_heap instead of grow_heap.
2946
2947         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
2948         case don't call alloc_perturb.
2949
2950 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
2951
2952         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
2953         possible.
2954         * sysdeps/unix/sysv/linux/kernel-features.h
2955         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
2956         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
2957
2958 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
2959
2960         [BZ #5424]
2961         * stdio-common/vfprintf.c: Do not overflow when adding to done.
2962         * stdio-common/Makefile (tests): Add bug22.
2963         * stdio-common/bug22.c: New file.
2964
2965         [BZ #5451]
2966         * time/getdate.c: Fix filling in default values.
2967         * time/bug-getdate1.c: New file.
2968         * time/Makefile: Add rules to build and run bug-getdate1.
2969
2970         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
2971         * iconvdata/ebcdic-es.c: Likewise.
2972         * iconvdata/ebcdic-es-a.c: Likewise.
2973         * iconvdata/ebcdic-uk.c: Likewise.
2974         * iconvdata/iso8859-16.c: Likewise.
2975         * iconvdata/viscii.c: Likewise.
2976         * iconvdata/iso8859-9e.c: Likewise.
2977         * iconvdata/Makefile: Adjust appropriately.
2978
2979         [BZ #5428]
2980         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
2981         __need_wint_t.
2982
2983 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
2984
2985         [BZ #5427]
2986         * iconvdata/hp-roman9.c: New file.
2987         * iconvdata/Makefile: Add rules for hp-roman9.c.
2988         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
2989         * iconvdata/gconv-modules: Likewise.
2990
2991         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
2992         * iconvdata/Makefile: Adjust appropriately.
2993
2994         [BZ #5441]
2995         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
2996         structure, it's allocated with alloca.
2997         * stdio-common/Makefile (tests): Add bug21.
2998         * stdio-common/bug21.c: New file.
2999
3000 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
3001
3002         [BZ #5452]
3003         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
3004         keyword for gcc's braced-groups.
3005
3006 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
3007
3008         [BZ #5454]
3009         * inet/ether_line.c: Strip hostname of whitespaces.
3010         * inet/Makefile (tests): Add tst-ether_line.
3011         * inet/tst-ether_line.c: New file.
3012
3013 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
3014
3015         [BZ #5439]
3016         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
3017
3018         [BZ #5435]
3019         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
3020
3021         * stdlib/tst-setcontext.c: Catch the case where the links gets
3022         messed up and we do not reach main again.
3023
3024         * po/ca.po: Update from translation team.
3025
3026 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
3027
3028         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
3029         * posix/regex.h (REG_ENOSYS): Likewise.
3030         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
3031
3032 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
3033
3034         * nscd/nscd.h (MAX_STACK_USE): Define.
3035         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
3036         (gc): Initialize stack_used based on allocation in prune_cache.
3037         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
3038         Clear array before use.
3039
3040         * nscd/aicache.c (addhstaiX): Update statistics counter in case
3041         memory allocation failed.
3042         * nscd/hstcache.c (cache_addhst): Likewise.
3043         * nscd/grpcache.c (cache_addgr): Likewise.
3044         * nscd/servicescache.c (cache_addserv): Likewise.
3045         * nscd/pwdcache.c (cache_addpw): Likewise.
3046         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3047
3048 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
3049
3050         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
3051         and creat system calls.
3052
3053         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
3054
3055 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3056
3057         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
3058         Add netiucv/iucv.h.
3059         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
3060         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
3061         protocol.
3062         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
3063         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
3064         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
3065
3066 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3067
3068         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
3069         strncat): Define as macros to avoid compile errors.
3070
3071         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
3072         creat entries.
3073
3074 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
3075
3076         [BZ #5382]
3077         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
3078         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
3079         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
3080         overflow it.
3081         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3082
3083         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
3084         Return zero in case the thread library is not NPTL.
3085
3086         [BZ #5375]
3087         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
3088         initializing interface list.
3089
3090         [BZ #5378]
3091         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
3092         use result of nss_getgrgid_r if nothing was found.  For other
3093         error return with a failure.
3094         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3095
3096         * locale/programs/ld-collate.c (collate_read): Fix loop to match
3097         macro name.
3098
3099 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3100
3101         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
3102         (get_scope): For IPv4 scope, use scopes table.
3103         (fini): Free scopes table if necessary.
3104         (free_scopelist): New function.
3105         (scopecmp): New function.
3106         (gaiconf_init): Also handle scopev4 entries.
3107         * posix/tst-rfc3484.c (do_test): Initialize scopes.
3108         * posix/tst-rfc3484-2.c (do_test): Likewise.
3109         * posix/gai.conf: Document scopev4 defaults.
3110         * posix/Makefile (tests): Add tst-rfc3484-3.
3111         * posix/tst-rfc3484-3.c: New file.
3112
3113         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
3114         Teredo tunnels.
3115         * posix/gai.conf: Update for current default tables.
3116
3117 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3118
3119         * po/tr.po: Update from translation team.
3120
3121 2007-11-18  Roland McGrath  <roland@frob.com>
3122
3123         * manual/arith.texi (Remainder Functions): Spelling fix.
3124         From Shaun Silk <genix@mysoul.com.au>.
3125
3126         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
3127
3128 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
3129
3130         * po/zh_CN.po: Update from translation team.
3131
3132         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3133         Add sys/signalfd.h and sys/eventfd.h.
3134
3135 2007-11-15  Bruno Haible  <bruno@clisp.org>
3136
3137         [BZ #5346]
3138         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
3139         union.
3140         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
3141         (DCIGETTEXT): Change the allocation of the 'search' variable so that
3142         it needs only fixed stack space. Delay the initialization of
3143         msgid_len until it is needed.
3144
3145 2007-11-15  Andreas Jaeger  <aj@suse.de>
3146
3147         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
3148         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
3149
3150 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
3151
3152         * po/ko.po: Update from translation team.
3153
3154 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
3155
3156         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
3157         significantly.  The device type is also part of the ifinfomsg data.
3158
3159         * po/sv.po: Update from translation team.
3160         * po/nl.po: Likewise.
3161
3162         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
3163         to wake up in 24 hours.
3164
3165         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
3166
3167 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
3168
3169         * po/cs.po: Update from translation team.
3170         * po/pl.po: Likewise.
3171
3172         * include/ifaddrs.h: Remove in6ai_temporary.
3173         (struct in6addrinfo): Add index element.
3174         Declare __check_native.
3175         * inet/Makefile (aux): Add check_native.
3176         * sysdeps/unix/sysv/linux/check_native.c: New file.
3177         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
3178         IFA_F_TEMPORARY.  Pass back ifa_index.
3179         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3180         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
3181         call __check_native if necessary.
3182         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
3183         to sort addresses.  Pass information about the results.
3184         * posix/tst-rfc3484.c: Adjust for addition of index field and change
3185         of rfc3484_sort interface.
3186         * posix/tst-rfc3484-2.c: Likewise.
3187
3188         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
3189         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3190         for _quicksort.
3191         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3192         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
3193         on as third parameter to compare function and _quicksort.
3194         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3195         to the compare function.
3196         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3197         * Versions.def: Add GLIBC_2.8 for libc.
3198
3199         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3200         * posix/tst-rfc3484-2.c: Likewise.
3201
3202         * include/kernel-features.h: Moved to...
3203         * sysdeps/mach/hurd/kernel-features.h: ...here.
3204
3205 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3206
3207         * sysdeps/i386/i586/memcpy_chk.S: New file.
3208         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3209         * sysdeps/i386/i586/memset_chk.S: Likewise.
3210
3211 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
3212
3213         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3214         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3215         list of interfaces.  Also store prefix length.
3216         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3217         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3218         prefix if source and destination address are in the same subnet.
3219         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
3220         Always look for matching record in in6ai list.
3221         Correct source_addr_len value for IPv6->IPv4 converted records.
3222
3223 2007-11-11  Roland McGrath  <roland@frob.com>
3224
3225         * include/kernel-features.h: New file.
3226
3227 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
3228
3229         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3230         complications for 64-bit platforms.
3231
3232         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3233         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
3234         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3235         open64_2.
3236         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3237         entries.
3238         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3239         * sysdeps/wordsize-64/alphasort.c: New file.
3240         * sysdeps/wordsize-64/alphasort64.c: New file.
3241         * sysdeps/wordsize-64/fseeko.c: New file.
3242         * sysdeps/wordsize-64/fseeko64.c: New file.
3243         * sysdeps/wordsize-64/ftello.c: New file.
3244         * sysdeps/wordsize-64/ftello64.c: New file.
3245         * sysdeps/wordsize-64/ftw.c: New file.
3246         * sysdeps/wordsize-64/ftw64.c: New file.
3247         * sysdeps/wordsize-64/iofgetpos.c: New file.
3248         * sysdeps/wordsize-64/iofgetpos64.c: New file.
3249         * sysdeps/wordsize-64/iofopen.c: New file.
3250         * sysdeps/wordsize-64/iofopen64.c: New file.
3251         * sysdeps/wordsize-64/iofsetpos.c: New file.
3252         * sysdeps/wordsize-64/iofsetpos64.c: New file.
3253         * sysdeps/wordsize-64/lockf.c: New file.
3254         * sysdeps/wordsize-64/lockf64.c: New file.
3255         * sysdeps/wordsize-64/mkostemp.c: New file.
3256         * sysdeps/wordsize-64/mkostemp64.c: New file.
3257         * sysdeps/wordsize-64/mkstemp.c: New file.
3258         * sysdeps/wordsize-64/mkstemp64.c: New file.
3259         * sysdeps/wordsize-64/scandir.c: New file.
3260         * sysdeps/wordsize-64/scandir64.c: New file.
3261         * sysdeps/wordsize-64/tmpfile.c: New file.
3262         * sysdeps/wordsize-64/tmpfile64.c: New file.
3263         * sysdeps/wordsize-64/versionsort.c: New file.
3264         * sysdeps/wordsize-64/versionsort64.c: New file.
3265         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3266         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3267         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3268         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3269         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3270         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3271         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3272         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3273         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3274         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3275         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3276         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3277
3278         * crypt/sha256-crypt.c: Fix a comment.
3279         * crypt/sha512-crypt.c: Likewise.
3280
3281 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
3282
3283         * sysdeps/x86_64/memset.S: Add sfence after movnti.
3284
3285 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
3286
3287         [BZ #5277]
3288         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3289         because output buffer is too small break, don't loop.
3290         * iconvdata/Makefile (tests): Add bug-iconv6.
3291         * iconvdata/bug-iconv6.c: New file.
3292
3293 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
3294
3295         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3296         with size_t type.
3297         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3298         size_t.  Add casts where needed.
3299
3300         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3301         old headers, don't call avc_has_perm if we don't have the
3302         permission information.
3303
3304 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
3305
3306         * elf/rtld.c (dl_main): Use the page size to find the map start.
3307
3308 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
3309
3310         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3311         Patch by Szymon Siwek <sls@poczta.wp.pl>.
3312
3313         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3314         when the lookup call failed.
3315
3316         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3317         Add prune_cond and wakeup_time.
3318         (CACHE_PRUNE_INTERNAL): Define.
3319         Update declarations of prune_cache and setup_thread.
3320         * nscd/connections.c (dbs): Update initializers.
3321         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3322         (nscd_init): Default number of threads is now 4.
3323         (invalidate_cache): Take lock before calling prune_cache.
3324         (handle_request): If SELinux forbids the request, say so.
3325         (readylist_cond): Use static initializer.
3326         (nscd_run_prune): New function.  Used only by pruning threads.
3327         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
3328         here.
3329         (fd_ready): Update nscd_run reference.
3330         (start_threads): No need to initialize readylist_cond.
3331         Start pruning threads separately.
3332         * nscd/nscd_setup_thread.c: Change return value type to int and always
3333         return 0.
3334         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3335         to int and return nonzero value if we can use the TID address hack.
3336         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3337         the database is later than the new entry's timeout, update the
3338         wakeup time and wake the cleanup thread.
3339         (prune_cache): Return seconds the next entry in the database is still
3340         valid.  Remove locking for pruning here.
3341         * nscd/nscd.conf: Document default number of threads.
3342
3343 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
3344
3345         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3346         stack is properly aligned for the target function.
3347         Correct unwind info.
3348
3349         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3350         when using auditing libraries.
3351
3352 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
3353
3354         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3355         _nss_dns_getnetbyaddr2_r.
3356         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
3357         extra parameter to getanswer_r.
3358         (_nss_dns_getnetbyaddr_r): Now a wrapper around
3359         _nss_dns_getnetbyaddr2_r.
3360
3361         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3362         gethstbynm3_r.
3363         * nscd/gethstbynm2_r.c: Remove.
3364         * nscd/gethstbynm3_r.c: New file.
3365         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3366         __gethostbyaddr_r.
3367         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
3368         __gethostbyaddr_r compatibility wrapper.
3369         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
3370         determining timeout of entry.
3371         (lookup): Take new parameter and pass it to __gethostbyname3_r and
3372         __gethostbyaddr2_r.
3373         (addhstbyX): Pass reference to variable for TTL to lookup and
3374         cache_addhst.
3375         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3376         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3377         and __nss_next2.  Remove __nss_services_lookup.
3378         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
3379         Add compat wrapper.
3380         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3381         __nss_next2.
3382         * nss/getXXent_r.c: Likewise.
3383         * nss/getnssent_r.c: Likewise.
3384         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
3385         does not exist in module, try the optional second name.
3386         (__nss_next2): New function.
3387         (__nss_next): Now wrapper around __nss_next2.
3388         * nss/nsswitch.h: Adjust __nss_lookup prototype.
3389         Declare __nss_next2.
3390         Adjust definition of db_lookup_function type.
3391         * nss/service-lookup.c: Define NO_COMPAT.
3392         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3393         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3394         * inet/ether_ntoh.c: Likewise.
3395         * sunrpc/netname.c: Likewise.
3396         * sunrpc/publickey.c: Likewise.
3397         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
3398         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3399         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3400         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3401         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3402
3403         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3404
3405         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
3406
3407 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
3408
3409         [BZ #5204]
3410         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3411         * crypt/sha512c-test.c: Likewise.
3412
3413         [BZ #5225]
3414         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3415         to keep track of end of %[ format string element.
3416         * stdio-common/Makefile (tests): Add bug20.
3417         * stdio-common/bug20.c: New file.
3418
3419         [BZ #5222]
3420         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3421         path elements in counting mode.
3422
3423 2007-10-27  Andreas Jaeger  <aj@suse.de>
3424
3425         [BZ #5040]
3426         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3427
3428         [BZ #3112]
3429         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3430         (__cleanup): Free shared library when exiting.
3431         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3432         (__cleanup): Free shared library when exiting.
3433
3434 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3435
3436         [BZ #2549]
3437         * math/libm-test.inc (check_float_internal): Support
3438         denormalized return.
3439
3440 2007-10-23  Andreas Jaeger  <aj@suse.de>
3441
3442         [BZ #5208]
3443         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3444         __LONG_LONG_PAIR to handle little endian byte order.
3445         Suggested by abhishekrai@google.com
3446
3447 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
3448
3449         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3450
3451 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
3452
3453         * nscd/cache.c (prune_cache): Move test for modified file outside
3454         of locking.
3455
3456 2007-10-21  Andreas Jaeger  <aj@suse.de>
3457
3458         * manual/texinfo.tex: Update to latest version.
3459
3460         * manual/sysinfo.texi (System Parameters): Fix Formatting.
3461
3462         * manual/arith.texi (Status bit operations): Fix formatting.
3463
3464         * manual/errno.texi (Error Messages): Fix formatting.
3465
3466         * manual/sysinfo.texi (System Parameters): Fix formatting.
3467
3468         * manual/libc.texinfo: Update VERSION and UPDATED.
3469
3470 2007-10-19  Roland McGrath  <roland@redhat.com>
3471
3472         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3473
3474 2007-10-06  David S. Miller  <davem@davemloft.net>
3475
3476         * configure.in: Add sparcv9v2 and sparc64v2.
3477         * scripts/config.sub: Likewise.
3478         * configure: Regenerate.
3479         * elf/elf.h (HWCAP_SPARC_N2): New.
3480         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3481         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3482         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3483         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3484         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3485         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3486         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3487
3488 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
3489
3490         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3491         even if the poll result indicates there is data to read.
3492         Patch by Jeff Moyer <jmoyer@redhat.com>.
3493
3494 2007-10-18  Roland McGrath  <roland@redhat.com>
3495
3496         * elf/elf.h (NT_PPC_VMX): New macro.
3497
3498 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3499
3500         * version.h (VERSION): Set to 2.7.90.
3501
3502 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3503
3504         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
3505         weak_alias.
3506
3507 2007-10-17  Roland McGrath  <roland@frob.com>
3508
3509         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3510         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3511
3512 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3513
3514         * version.h (VERSION): Bump to 2.7.
3515         * include/features.h (__GLIBC_MINOR__): Bump to 7.
3516
3517         [BZ #5186]
3518         * time/tzset.c (__tz_convert): Don't force testing for a change of
3519         TZ if not called from localtime.  But then also see whether the
3520         file changed, in case __use_tzfile is set.
3521
3522         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3523         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3524         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3525         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3526         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3527         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3528         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
3529         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3530
3531 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3532
3533         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3534         and admin selects to be able to replace the gai.conf file, lock
3535         data structures around the qsort call.
3536
3537 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3538
3539         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3540         new memset.
3541         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
3542         too high for the improvements.  Implement bzero unconditionally for
3543         use in libc.
3544
3545 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3546             Jakub Jelinek  <jakub@redhat.com>
3547
3548         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
3549         even when time_t is 32-bit.
3550         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
3551         timezone data read by __tzfile_default.  Ensure __tzname[0] is
3552         always set after the search.
3553
3554 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3555
3556         * time/tzfile.c (__tzfile_read): Help the compiler recognize
3557         unreachable code on 32-bit machines.
3558
3559 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3560
3561         [BZ #5184]
3562         * time/strftime_l.c: Include stdbool.h.
3563         (my_strftime): New wrapper, old function renamed to...
3564         (__strftime_internal): ... new function.  Add tzset_called
3565         argument, pass it down to recursive calls, don't call tzset ()
3566         if already true, set to true after call to tzset ().
3567
3568 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3569
3570         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
3571         into account when copying TZ string.
3572
3573 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3574
3575         * time/tzfile.c (__tzfile_compute): For use_last case set i to
3576         num_transition rather than num_transitions - 1.
3577
3578 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3579
3580         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3581         PIC indirect jump.
3582
3583         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3584         a local label rather than HIDDEN_JUMPTARGET.
3585
3586 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3587
3588         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3589         (init_cacheinfo): Initialize it.
3590         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3591         Always define bzero.
3592         Remove non-glibc code.
3593         * sysdeps/x86_64/bzero.S: Make an empty file.
3594
3595 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3596
3597         * sysdeps/x86_64/cacheinfo.c
3598         (__x86_64_preferred_memory_instruction): New.
3599         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3600
3601         * sysdeps/x86_64/memset.S: Rewrite.
3602
3603 2007-10-15  Roland McGrath  <roland@redhat.com>
3604
3605         * po/libc.pot: Regenerated.
3606
3607 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3608
3609         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
3610         pointers.
3611
3612         [BZ #3425]
3613         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
3614         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
3615         address record to T_A/T_AAAA requests.
3616
3617 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
3618
3619         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
3620
3621         * posix/glob.c: Add some branch prediction throughout.
3622
3623         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
3624         read from nscd.
3625
3626         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
3627         service_order.
3628         (rfc3484_sort): Make sure that even if qsort doesn't support
3629         stable sorting out sorting here is stable by comparing service_order.
3630         (getaddrinfo): Initialize service_order.
3631         * posix/tst-rfc3484.c (do_test): Adjust for addition of
3632         service_order field to sorting structure.
3633         * posix/tst-rfc3484-2.c (do_test): Likewise.
3634
3635         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
3636         * time/tzset.c (tzset_internal): Break TZ string parsing out into
3637         __tzset_parse_tz and updating of daylight, timezone, tzname into
3638         update_vars.
3639         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
3640         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
3641         happens in __tz_compute.
3642         * time/tzfile.c (__tzfile_read): Also read TZ string.
3643         (find_transition): Fold into __tzfile_compute.
3644         (__tzfile_compute): For times beyond the last transition try to
3645         use the TZ string.
3646         * timezone/tst-timezone.c: Information in daylight and tzname does
3647         change for Asia/Tokyo timezone with more concrete information.
3648         Remove the test.
3649
3650         * include/stdio.h: Add libc_hidden_proto for ftello.
3651         * libio/ftello.c: Add libc_hidden_def.
3652
3653         [BZ #1140]
3654         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
3655         on the specified time and not the last entries in the file.  Move
3656         code to determine tzname[] to...
3657         (find_transition): ...here.  Add ugly guess for times before the
3658         first transition.
3659
3660 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3661
3662         [BZ #3195]
3663         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
3664         no entry.
3665         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
3666         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3667         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3668         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3669
3670         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
3671         read mechanism when there are no group members and avoid no-op
3672         read syscall in this case.
3673
3674         [BZ #3242]
3675         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
3676         (__readall): If reading failed due to EAGAIN error wait a bit
3677         and possibly try again.
3678         (__readvall): Likewise.
3679
3680 2007-10-13  Bruno Haible  <bruno@clisp.org>
3681
3682         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
3683         when we cannot recode the message.
3684
3685 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3686
3687         [BZ #4359]
3688         * libio/__freading.c (__freading): Don't return true for
3689         write-only streams.  For read/write streams, check whether we
3690         performed a read operation already.
3691         * libio/Makefile (tests): Add tst-ext2.
3692         * libio/tst-ext2.c: New file.
3693
3694 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3695
3696         * locale/programs/repertoire.c (repertoire_read): Always free
3697         memory for repertoire file name [Coverity CID 270].
3698
3699         * elf/cache.c (save_aux_cache): Free memory allocated for
3700         temporary file name [Coverity CID 267].
3701
3702 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3703
3704         * misc/Makefile (headers): Add bits/error.h.
3705
3706 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3707
3708         * posix/fnmatch_loop.c: Take rule index returned as part of
3709         findidx return value into account when accessing weights.
3710         * posix/regcomp.c: Likewise.
3711         * posix/regexec.c: Likewise.
3712
3713         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
3714         (skip_to): Fix problems with parameter of elifdef/elifndef.
3715
3716 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
3717
3718         * iconv/gconv_simple.c: Add some branch prediction.
3719
3720 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3721
3722         * locale/programs/ld-collate.c (collate_read): If ignore_content
3723         and nowtok is tok_define, eat any tok_eol tokens.
3724
3725 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
3726
3727         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
3728         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
3729
3730         * inet/netinet/in.h: Don't include bits/socket.h.
3731         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
3732         macro.
3733         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3734
3735 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
3736
3737         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
3738         and tok_elifndef.
3739         * locale/programs/locfile-kw.gperf: Likewise.
3740         * locale/programs/ld-collate.c: Implement primitive preprocessor.
3741
3742 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
3743
3744         * stdio-common/printf-parse.h: Include string.h and wchar.h.
3745         (__find_specwc): Change into __extern_always_inline function.
3746         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
3747         (__parse_one_specmb): Remove ps argument.
3748         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
3749         Adjust __find_specmb and __parse_one_specmb callers.
3750         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
3751         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
3752         Removed.
3753         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
3754         caller.
3755
3756 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
3757
3758         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
3759         with some Pentium Ds.
3760
3761 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
3762
3763         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
3764         __read not read.
3765         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
3766         __write not write.
3767
3768 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
3769
3770         [BZ #181]
3771         * locale/C-time.c: Set week_1stday data to 19971201.
3772         * locale/programs/ld-time.c (time_finish): Default for
3773         first_workday is Monday.
3774
3775         [BZ #2633]
3776         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
3777
3778         [BZ #5103]
3779         * posix/glob.c (glob): Recognize patterns starting \/.
3780         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
3781         (main): Add test for pattern starting \/.
3782
3783         * misc/error.h: Use __const instead of const.
3784         * misc/bits/error.h: Likewise.
3785
3786 2007-10-07  Andreas Jaeger  <aj@suse.de>
3787
3788         * include/bits/error.h: New file.
3789
3790         * misc/bits/error.h (error_at_line): Fix prototype.
3791
3792 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
3793
3794         [BZ #3924]
3795         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
3796         more little bugs in creating the stack frame when pltexit has to
3797         be called.
3798
3799         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
3800         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
3801
3802         [BZ #4407]
3803         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
3804         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3805         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3806         * math/libm-test.inc: Add test for this case.
3807
3808         [BZ #5010]
3809         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
3810         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
3811         map service succeeded.
3812         (svc_is_mapped): New function.
3813         (svc_unregister): Use it before trying to unmap service.
3814
3815 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
3816
3817         * timezone/zic.c: Update from tzcode2007h.
3818
3819         [BZ #5063]
3820         * timezone/africa: Update from tzdata2007h.
3821         * timezone/antarctica: Likewise.
3822         * timezone/asia: Likewise.
3823         * timezone/australasia: Likewise.
3824         * timezone/europe: Likewise.
3825         * timezone/leapseconds: Likewise.
3826         * timezone/northamerica: Likewise.
3827         * timezone/southamerica: Likewise.
3828         * timzeone/zone.tab: Likewise.
3829
3830         [BZ #5104]
3831         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
3832
3833         [BZ #5113]
3834         * string/bits/string2.h (__strdup): Cast parameters to calloc to
3835         avoid warning with -Wconversion.
3836         (__strndup): Likewise.
3837         Half the patch by Christian Iseli <christian.iseli@licr.org>.
3838
3839         [BZ #5112]
3840         * nscd/connections.c (restart): Don't resync if database is
3841         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
3842
3843         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
3844         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
3845
3846         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
3847         evetnfd_read, eventfd_write.
3848         * sysdeps/unix/sysv/linux/eventfd.c: New file.
3849         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
3850         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
3851         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
3852         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
3853         eventfd_write for GLIBC_2.7.
3854
3855         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
3856         * sysdeps/unix/sysv/linux/signalfd.c: New file.
3857         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
3858         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
3859
3860 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
3861
3862         * stdlib/msort.c: Include stdint.h.
3863         (struct msort_param): New type.
3864         (msort_with_tmp): Use struct msort_param pointer for unchanging
3865         parameters.  Add optimized handling for several common sizes
3866         and indirect sorting mode.
3867         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
3868         sorting.
3869         Suggested by Belazougui Djamel .
3870
3871         * stdlib/Makefile (tests): Add tst-qsort2.
3872         * stdlib/tst-qsort2.c: New test.
3873
3874 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
3875
3876         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
3877         for dup2 in case another thread races with the current one.  Retry
3878         in this case.
3879
3880         * misc/error.h: Remove support for use outside of libc.  We have to
3881         include <features.h> now.  Include <bits/error.h> if possible.
3882         * misc/bits/error.h: New file.
3883
3884 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
3885
3886         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
3887         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
3888         __extern_always_inline functions unconditionally, drop macros.
3889
3890         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
3891         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
3892         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
3893
3894         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
3895         add __artificial__ attribute.
3896
3897 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
3898
3899         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
3900         backward to forward direction.
3901
3902         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
3903
3904         [BZ #645]
3905         * locale/programs/ld-collate.c (collate_finish): Compare against last
3906         used section which is known to have rules defined.
3907         (collate_read): After order_start, correctly record order of sections
3908         and queue sections up.
3909
3910 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
3911
3912         [BZ #5071]
3913         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
3914         the same number of pages.
3915         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
3916
3917         * locale/programs/ld-collate.c (collate_read): After initial copy
3918         statement, continue in state 0.
3919
3920         * include/stdio_ext.h (__fsetlocking): Define as macro.
3921
3922 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
3923
3924         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
3925         of section order.
3926
3927         * po/pt_BR.po: Fix typo.
3928
3929 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
3930
3931         * iconvdata/Makefile (modules): Add ISO8859-9E.
3932         (distribute): Add iso8859-9e.c.
3933         (gen-8bit-gap-modules): Add iso8859-9e.
3934         * iconvdata/iso8859-9e.c: New file.
3935         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
3936         * iconvdata/TESTS: Likewise.
3937         * iconvdata/tst-tables.sh: Likewise.
3938
3939         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3940
3941         * locale/iso-639.def: Add several new entries.
3942
3943 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
3944
3945         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
3946         void * pointers instead of struct link_map **.
3947         (_dl_scope_free): Change argument type to void *.
3948         * include/link.h (struct link_map): Change type of l_reldeps
3949         to struct link_map_reldeps, move l_reldepsact into that
3950         struct too.
3951         * elf/dl-deps.c: Include atomic.h.
3952         (_dl_map_object_deps): Only change l->l_initfini when it is
3953         fully populated, use _dl_scope_free for freeing it.  Optimize
3954         removal of libs from reldeps by using l_reserved flag, when
3955         some removal is needed, allocate a new list instead of
3956         reallocating and free the old with _dl_scope_free.  Adjust
3957         for l_reldeps and l_reldepsact changes.
3958         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
3959         searching in l_initfini and l_reldeps without holding dl_load_lock.
3960         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
3961         l_reldepsact changes.
3962         * elf/dl-close.c (_dl_close_worker): Likewise.
3963         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
3964
3965 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
3966
3967         * iconvdata/Makefile (modules): Add KOI8-RU.
3968         (distribute): Add koi8-ru.c.
3969         (gen-8bit-gap-modules): Add koi8-ru.
3970         * iconvdata/koi8-ru.c: New file.
3971         * iconvdata/gconv-modules: Add entries for KOI8-RU.
3972         * iconvdata/TESTS: Likewise.
3973         * iconvdata/tst-tables.sh: Likewise.
3974
3975         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3976
3977 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
3978
3979         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
3980         with __warning__/__error__ attributes.
3981         (__warnattr): Define.
3982         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
3983         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
3984         __warnattr.
3985         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
3986         of __*_chk if compile time detectable overflow is found.
3987         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
3988         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
3989         with __warnattr.
3990         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
3991         instead of __*_chk if compile time detectable overflow is found.
3992         (__gets_alias): Rename to...
3993         (__gets_warn): ... this.  Add __warnattr.
3994         (gets): Call __gets_warn instead of __gets_alias.
3995         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
3996         aliases with __warnattr.
3997         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
3998         time detectable overflow is found.
3999         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
4000         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
4001         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
4002         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
4003         __getdomainname_chk_warn): New aliases with __warnattr.
4004         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
4005         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
4006         __*_chk_warn instead of __*_chk if compile time detectable overflow
4007         is found.
4008         (__getgroups_chk): Rename argument to __listlen from listlen.
4009         (__getwd_alias): Rename to...
4010         (__getwd_warn): ... this.  Add __warnattr.
4011         (getwd): Call __getwd_warn instead of __getwd_alias.
4012         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
4013         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
4014         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
4015         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
4016         __wcsnrtombs_chk_warn): New aliases with __warnattr.
4017         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
4018         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
4019         compile time detectable overflow is found.
4020         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
4021         to use __*_chk or not.
4022         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
4023         in comparisons which function should be called and in __*_chk*
4024         arguments.  Call __*_chk_warn instead of __*_chk if compile time
4025         detectable overflow is found.
4026         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
4027         __*_chk argument.
4028         * debug/tst-chk1.c (do_test): Add a few more tests.
4029
4030 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
4031
4032         [BZ #5058]
4033         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
4034         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
4035         (_nl_unload_domain): Finalize conversions_lock.
4036         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
4037         handling table of known conversions.
4038
4039 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
4040
4041         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
4042         close_not_cancel_no_status instead of close.
4043
4044 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
4045
4046         [BZ #5028]
4047         * posix/regcomp.c (lookup_collation_sequence_value): Check that
4048         nrules != 0 for multibyte chars.
4049
4050 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
4051
4052         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
4053         Provide better error message in case the type is unknown.
4054
4055         [BZ #4963]
4056         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
4057         * string/stratcliff.c: Make usable to test wide char functions.
4058         * wcsmbs/wcsatcliff.c: New file.
4059         * wcsmbs/Makefiel (tests): Add wcsatcliff.
4060
4061         [BZ #4972]
4062         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
4063         (distribute): Add mac-centraleurope.c.
4064         (gen-8bit-gap-modules): Add mac-centraleurope.
4065         * iconvdata/mac-centraleurope.c: New file.
4066         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
4067         * iconvdata/TESTS: Likewise.
4068         * iconvdata/tst-tables.sh: Likewise.
4069
4070         [BZ #5043]
4071         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
4072
4073 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
4074
4075         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
4076         from __x86_64_core_cache_size_half.
4077         (init_cacheinfo): Compute shared cache size for AMD processors with
4078         shared L3 correctly.
4079         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
4080         name change.
4081         Patch in large parts by Evandro Menezes.
4082
4083 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
4084
4085         * elf/dl-lookup.c (add_dependency): Handle failing memory
4086         allocation for dependency list.  Remove unnecessary check.
4087
4088         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
4089         open/close when determining source addresses.
4090
4091         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
4092         sha512-crypt, and sha512.
4093         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
4094         (distribute): Add sha256.h and sha512.h.
4095         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
4096         and call the appropriate code.
4097         * crypt/sha256-crypt.c: New file.
4098         * crypt/sha256.c: New file.
4099         * crypt/sha256.h: New file.
4100         * crypt/sha256c-test.c: New file.
4101         * crypt/sha256test.c: New file.
4102         * crypt/sha512-crypt.c: New file.
4103         * crypt/sha512.c: New file.
4104         * crypt/sha512.h: New file.
4105         * crypt/sha512c-test.c: New file.
4106         * crypt/sha512test.c: New file.
4107
4108 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
4109
4110         * misc/bits/syslog.h (syslog): Remove extraneous argument from
4111         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
4112         __syslog_chk.
4113
4114 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
4115
4116         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
4117         %as in fscanf format strings.
4118
4119         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
4120         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4121         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
4122         Likewise.
4123         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
4124         Likewise.
4125
4126         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
4127         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
4128         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
4129         * elf/dl-sym.c (do_sym): Likewise.
4130         * include/link.h (struct link_map): Add l_serial field.
4131         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
4132         * elf/dl-lookup.c (add_dependency): Add flags argument.
4133         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
4134         flags, use THREAD_GSCOPE_RESET_FLAG before and
4135         THREAD_GSCOPE_SET_FLAG after
4136         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
4137         Don't dereference map until it has been found on some list.
4138         If map->l_serial changed, return -1.
4139
4140 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
4141
4142         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
4143         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
4144         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
4145         libc_hidden_proto.
4146         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
4147         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
4148         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
4149         add libc_hidden_proto.
4150         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4151         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4152         conformance requested.
4153         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
4154         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4155         conformance requested.
4156         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4157         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
4158         conformance requested.
4159         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
4160         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
4161         ISO C99 or POSIX conformance requested.
4162         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
4163         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
4164         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
4165         and __isoc99_vsscanf@@GLIBC_2.7.
4166         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
4167         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
4168         (tests): Add scanf14.
4169         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
4170         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
4171         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
4172         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
4173         CFLAGS-isoc99_scanf.c): Add $(exceptions).
4174         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
4175         from using internal headers.
4176         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
4177         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
4178         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4179         and __isoc99_vswscanf@@GLIBC_2.7.
4180         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4181         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4182         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4183         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4184         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4185         * stdio-common/isoc99_scanf.c: New file.
4186         * stdio-common/isoc99_vsscanf.c: New file.
4187         * stdio-common/isoc99_vscanf.c: New file.
4188         * stdio-common/isoc99_vfscanf.c: New file.
4189         * stdio-common/isoc99_fscanf.c: New file.
4190         * stdio-common/isoc99_sscanf.c: New file.
4191         * wcsmbs/isoc99_fwscanf.c: New file.
4192         * wcsmbs/isoc99_vswscanf.c: New file.
4193         * wcsmbs/isoc99_swscanf.c: New file.
4194         * wcsmbs/isoc99_wscanf.c: New file.
4195         * wcsmbs/isoc99_vwscanf.c: New file.
4196         * wcsmbs/isoc99_vfwscanf.c: New file.
4197         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4198         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4199         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4200         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4201         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4202         * stdio-common/scanf14.c: New test.
4203         * stdio-common/scanf15.c: New test.
4204         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4205         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4206         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4207         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4208         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4209         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4210         __nldbl___isoc99_scanf@@GLIBC_2.7,
4211         __nldbl___isoc99_fscanf@@GLIBC_2.7,
4212         __nldbl___isoc99_sscanf@@GLIBC_2.7,
4213         __nldbl___isoc99_vscanf@@GLIBC_2.7,
4214         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4215         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4216         __nldbl___isoc99_wscanf@@GLIBC_2.7,
4217         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4218         __nldbl___isoc99_swscanf@@GLIBC_2.7,
4219         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4220         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4221         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4222         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4223         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4224         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4225         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4226         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4227         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4228         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4229         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4230         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4231         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4232         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4233         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4234         functions.
4235         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4236         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4237         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4238         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4239         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4240         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4241         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4242         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4243         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4244         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4245         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4246         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4247
4248         * stdio-common/Makefile (tests): Add scanf13.
4249         (scanf13-ENV): New.
4250         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4251         m modifier followed by l.
4252         (STRING_ARG): Add width argument.
4253         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4254         <case L_('C')>: Handle %mlc and %mC.
4255         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4256         arguments.
4257         * stdio-common/scanf13.c: New test.
4258
4259         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4260         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4261
4262 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
4263
4264         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
4265         type and __THROW marker of splice, vmsplice, and tee.
4266         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4267         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4268         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4269         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4270         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4271         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4272         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4273         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4274         as cancellation points.
4275
4276 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
4277
4278         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4279         parse more than three parts of the version number.
4280
4281 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
4282
4283         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4284         modifier.  Patch by Jakub Jelinek.
4285
4286 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
4287
4288         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4289         call_fallocate in misc subdir.
4290         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4291         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4292         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4293         instead of __fallocate64.
4294         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4295
4296 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
4297
4298         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4299         * rt/Makefile (headers): Add bits/mqueue2.h.
4300         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4301         optimizing with GCC and __va_arg_pack_len is defined.
4302         * rt/bits/mqueue2.h: New file.
4303         * rt/mq_open.c (__mq_open): Renamed from mq_open.
4304         (mq_open): New strong_alias.
4305         (__mq_open_2): New function.
4306         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4307         (mq_open): New strong_alias.
4308         (__mq_open_2): New function.
4309         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4310         * Versions.def (librt): Add GLIBC_2.7 version.
4311         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4312         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4313
4314         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4315         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4316         is defined rather than when not C++.
4317         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4318         __openat64_alias): New redirects.
4319         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4320         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4321         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4322         (open, open64, openat, openat64): Rewrite as __extern_always_inline
4323         functions instead of function-like macros.
4324
4325 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
4326
4327         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4328         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4329         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4330
4331 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
4332
4333         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4334         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4335
4336 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
4337
4338         * inet/tst-network.c: Increment ERRORS for failing tests.
4339
4340 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
4341
4342         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4343         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4344         implement as __extern_always_inline function.
4345         (vsyslog): Define as __extern_always_inline function unconditionally.
4346         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4347         When __va_arg_pack is defined, implement as __extern_always_inline
4348         functions.
4349         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4350         __extern_always_inline functions unconditionally.
4351         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4352         bits/stdio2.h will be included.
4353         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4354         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4355         implement as __extern_always_inline functions.
4356         (vswprintf, vwprintf, vfwprintf): Define as
4357         __extern_always_inline functions unconditionally.
4358         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4359
4360 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
4361
4362         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4363         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4364         attribute.
4365         * include/features.h (__USE_EXTERN_INLINES): Define only when
4366         __extern_inline is defined.
4367         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4368         is defined instead of when not __cplusplus.
4369         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4370         is defined instead of when not __cplusplus.
4371         * socket/sys/socket.h: Include bits/socket2.h when
4372         __extern_always_inline is defined instead of when not __cplusplus.
4373         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4374         is defined instead of when not __cplusplus.
4375         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4376         is defined instead of when not __cplusplus.
4377         * string/string.h: Include bits/string3.h when __extern_always_inline
4378         is defined instead of when not __cplusplus.
4379         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4380         is defined instead of when not __cplusplus.
4381         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4382         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4383         is not defined.
4384         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4385         defined __extern_always_inline instead of !defined __cplusplus.
4386         * libio/bits/stdio-ldbl.h: Likewise.
4387         * wcsmbs/bits/wchar-ldbl.h: Likewise.
4388         * misc/bits/syslog.h (syslog): Don't define for C++.
4389         (vsyslog): Use __extern_always_inline function for C++ instead of
4390         a macro.
4391         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4392         whenever that macro is defined.
4393         (vprintf): Don't provide the inline for C++.
4394         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4395         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4396         define the macros for C++.
4397         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4398         __extern_always_inline functions for C++.
4399         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4400         stat64, lstat64, fstat64, fstatat64): Don't define if not
4401         __USE_EXTERN_INLINES.
4402         * wcsmbs/bits/wchar2.h: Fix #error message.
4403         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4404         (vswprintf, vwprintf, vfwprintf): Define using
4405         __extern_always_inline functions for C++.
4406         * string/bits/string3.h: Don't #undef macros if __cplusplus.
4407         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4408         strncpy, strcat, strncat): Define as __extern_always_inline
4409         functions instead of macros for C++.
4410         * math/bits/cmathcalls.h: Guard __extern_inline routines with
4411         defined __extern_inline.
4412         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4413         to __extern_inline whenever that macro is defined.
4414         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4415         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4416         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4417         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4418         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4419         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4420         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4421         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4422         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4423         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4424         prototypes.  Only provide __extern_inline routines if
4425         __USE_EXTERN_INLINES.
4426         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4427         tests.
4428         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4429         For now avoid some *printf tests in C++.  Skip all testing
4430         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4431         is not.
4432         * debug/tst-chk4.cc: New file.
4433         * debug/tst-chk5.cc: New file.
4434         * debug/tst-chk6.cc: New file.
4435         * debug/tst-lfschk4.cc: New file.
4436         * debug/tst-lfschk5.cc: New file.
4437         * debug/tst-lfschk6.cc: New file.
4438         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4439         prototypes in C++.
4440         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4441         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4442         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4443
4444 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
4445
4446         * po/cs.po: Update from translation team.
4447
4448 2007-09-11  Roland McGrath  <roland@redhat.com>
4449
4450         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4451         compiling.
4452
4453 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4454
4455         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4456
4457 2007-09-05  Roland McGrath  <roland@redhat.com>
4458
4459         * manual/signal.texi (Signaling Another Process): Typo fix.
4460         From Karl Berry <karl@freefriends.org>.
4461
4462 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
4463
4464         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4465         zero if not defined.
4466         (make_request): Recognize optimistic addresses and treat them like
4467         deprecated addresses.
4468         Reported by Neil Horman <nhorman@redhat.com>.
4469
4470 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
4471
4472         * nscd/connections.c (send_ro_fd): Also transfer file size.
4473         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4474         file size don't call fstat.
4475
4476         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4477         ahead and map the file.  This should always be correct and we can
4478         catch problems later.
4479
4480 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
4481
4482         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4483         prototypes.
4484         (__fread_alias, __fread_unlocked_alias): New aliases.
4485         (fread): New extern inline.
4486         (fread_unlocked): Likewise.  Undef macro before definition of
4487         the inline function.
4488         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4489         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4490         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4491         and __fread_unlocked_chk@@GLIBC_2.7.
4492         * debug/fread_chk.c: New file.
4493         * debug/fread_u_chk.c: New file.
4494         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4495
4496 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
4497
4498         * sysdeps/unix/sysv/linux/syscalls.list
4499         (personality): Change caller to EXTRA.
4500
4501 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
4502
4503         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4504         to keep gcc quiet.
4505         * iconvdata/iso-2022-cn.c (BODY): Likewise.
4506
4507         * locale/programs/ld-collate.c (collate_output): Avoid warning if
4508         NDEBUG is defined.
4509
4510         * Makerules: Use -p option with mkdir.
4511
4512         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4513         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
4514         (_xdr_directory_obj): Likewise.
4515         (xdr_entry_obj): Likewise.
4516         (xdr_group_obj): Likewise.
4517         (xdr_link_obj): Likewise.
4518         (xdr_table_obj): Likewise.
4519         (_xdr_nis_result): Likewise.
4520         (_xdr_ns_request): Likewise.
4521         (_xdr_ib_request): Likewise.
4522         (_xdr_nis_taglist): Likewise.
4523         (xdr_cback_data): Likewise.
4524         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
4525         (xdr_ypresp_maplist): Likewise.
4526
4527         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4528
4529         * posix/regex_internal.h: Prevent some declarations and definitions
4530         to be seen when used in tests.
4531
4532         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4533         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4534
4535         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4536
4537         * config.make.in (datarootdir): Add to shut up configure.
4538
4539         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4540         associativity for fully-associative caches.
4541
4542         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
4543         requests.  Fill on more associativity values for L2.
4544         Patch mostly by Evandro Menezes.
4545
4546 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
4547
4548         * sysdeps/unix/sysv/linux/x86_64/init-first.c
4549         (_libc_vdso_platform_setup): Avoid using exported variable by using
4550         alias.
4551
4552         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
4553
4554         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
4555         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
4556         defined.
4557
4558 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
4559
4560         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
4561         align stack for call if pltexit is to be used.
4562
4563         [BZ #3924]
4564         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
4565         align for function call in case pltexit has to be called later.
4566
4567         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
4568         implicit atomic operation when storing function pointer.
4569         (_dl_runtime_profile): Likewise.
4570
4571 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4572
4573         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4574         NIS_NOTFOUND.
4575
4576 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4577
4578         [BZ #4566]
4579         * string/strtok.c: Fix typo in comment.
4580
4581         [BZ #4582]
4582         * debug/segfault.c: Fix typos in comments.
4583
4584         [BZ #4588]
4585         * stdio-common/tempnam.c: Fix comment, it is not checked that
4586         TMPDIR points to a writable directory.
4587
4588         [BZ #4726]
4589         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4590         memory allocated for the name server address.
4591
4592         [BZ #4946]
4593         * nscd/connections.c (handle_request): Using sendfile always
4594         requires that mmap is used for the database.
4595         Patch by Petr Baudis <pasky@suse.cz>.
4596
4597         [BZ #4905]
4598         * nscd/hstcache.c (cache_addhst): When reloading an entry which
4599         suddenly has two or more addresses, ignore it and remove the old
4600         entry.
4601
4602         [BZ #4814]
4603         * resolv/res_hconf.c: Prepare for compiling outside libc.
4604         * nscd/res_hconf.c: New file.
4605         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
4606         the new file.
4607         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
4608         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
4609
4610         * nscd/hstcache.c (cache_addhst): Minimal optimization.
4611
4612         [BZ #4925]
4613         * debug/pcprofiledump.c: Turn on internationalization by calling
4614         setlocale.  Patch mostly by Benno Schulenberg.
4615
4616         [BZ #4936]
4617         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
4618         the state.
4619         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
4620         * iconvdata/bug-iconv5.c: New file.
4621
4622 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
4623
4624         [BZ #4896]
4625         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
4626         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
4627         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
4628         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
4629         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
4630         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
4631         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
4632         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
4633
4634 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4635
4636         [BZ #4937]
4637         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
4638         lookup loop.  Suggested by John Reiser.
4639
4640 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
4641
4642         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
4643
4644 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
4645
4646         * csu/libc-start.c: Don't handle VDSO_SETUP here.
4647         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
4648         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
4649         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
4650         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
4651         to...
4652         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
4653
4654 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
4655
4656         * po/nl.po: Update from translation team.
4657
4658 2007-08-16  Andreas Jaeger  <aj@suse.de>
4659
4660         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
4661         Reported by Peter Festner <peter.festner@ewetel.net>.
4662
4663 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4664
4665         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
4666
4667 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
4668
4669         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
4670         to check for undefined symbols.
4671
4672         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
4673         If the syscall fails, set errno to the actual returned error number
4674         rather than EINVAL.
4675         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
4676         arguments are incorrect, set errno to EINVAL, if the syscall
4677         fails, set errno to the actual returned error number.
4678
4679         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
4680         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
4681
4682         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
4683         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
4684         file.
4685         (ASI_PNF, ASI_BLK_P): Don't define.
4686         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
4687         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
4688         file.
4689         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
4690         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
4691         file.
4692
4693 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
4694
4695         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
4696         FE_UNDERFLOW on Niagara CPUs.
4697
4698         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
4699         exceptions.
4700
4701 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
4702
4703         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
4704         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
4705         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
4706         flush should be used or not inside of the function.
4707         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
4708
4709         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
4710         __thread_start): Use HIDDEN_JUMPTARGET.
4711         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
4712         __thread_start): Likewise.
4713         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
4714
4715         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
4716         Add libc_hidden_proto.
4717         (STRTOF): Add libc_hidden_proto.
4718         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
4719         (strtold_l, wcstold_l): Use them as second argument for
4720         long_double_symbol.
4721
4722 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4723
4724         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
4725
4726 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4727
4728         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
4729
4730 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4731
4732         * po/bg.po: New file.  From the translation team.
4733
4734 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4735
4736         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
4737         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
4738         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
4739         when each feature was introduced.
4740
4741         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
4742         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
4743         (CHECK_HASH): New macro.
4744         (PREPARE_VERSION): Use it.
4745
4746         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
4747         prototype if not __ASSUME_PSELECT.
4748         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
4749         prototype if not __ASSUME_PPOLL.
4750
4751         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
4752
4753         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
4754         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
4755         is defined.
4756
4757 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
4758
4759         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4760         (_libc_vdso_platform_setup): If vDSO is not available point
4761         __vdso_gettimeofday to the vsyscall.
4762         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
4763         __vdso_gettimeofday instead of vsyscall.
4764
4765 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4766
4767         * nscd/servicescache.c: Include kernel-features.h.
4768         * nscd/gai.c: Likewise.
4769         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
4770         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
4771         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
4772         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
4773         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
4774         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
4775         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
4776         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
4777         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4778
4779 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
4780
4781         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
4782         and _dl_get_origin defines anymore.
4783
4784         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
4785         Build fix for systems which might lack POSIX timer support.
4786
4787         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4788         (_libc_vdso_platform_setup): Mangle function pointers before storing
4789         them.
4790         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
4791         Demangle vdso pointer before use.
4792         (INTERNAL_VSYSCALL): Likewise.
4793
4794         * elf/cache.c (primes): Mark as const.
4795         Noted by Roland McGrath.
4796
4797 2007-08-01  Andreas Jaeger  <aj@suse.de>
4798             Jakub Jelinek  <jakub@redhat.com>
4799
4800         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
4801         (options): Add option.
4802         (parse_opt): Handle option.
4803         (manual_link): Adjust process_file caller.  Call implicit_soname.
4804         (search_dir): Formatting.  Use and populate auxiliary cache.
4805         (main): Load and save auxiliary cache.
4806         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
4807         stat64 from fstat64 to caller.
4808         (implicit_soname): New function.
4809         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
4810         leave *soname as NULL.
4811         * elf/cache.c: Include libgen.h.
4812         (print_entry, print_cache, compare, save_cache, add_to_cache):
4813         Formatting and cleanups.
4814         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
4815         aux_cache_file): New structures.
4816         (AUX_CACHEMAGIC): Define.
4817         (primes): New array.
4818         (aux_hash_size, aux_hash): New variables.
4819         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
4820         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
4821         load_aux_cache, save_aux_cache): New functions.
4822         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
4823         (init_aux_cache, search_aux_cache, add_to_aux_cache,
4824         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
4825         (process_file): Adjust prototype.
4826
4827 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
4828
4829         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
4830         with __need_size_t.
4831
4832 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
4833
4834         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
4835         r_found_version structure as second parameter.
4836         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
4837         (_dl_vdso_vsym): Change type of second parameter accordingly.
4838         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
4839         (_libc_vdso_platform_setup): Adjust.
4840         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
4841         (_libc_vdso_platform_setup): Likewise.
4842
4843         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
4844         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
4845         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
4846         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
4847         * csu/libc-start.c: Pretty printing.
4848         Use VDSO_SETUP if defined.
4849         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
4850         and let generic code call into _libc_vdso_platform_setup.
4851         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
4852         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
4853         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
4854         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
4855         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
4856         for GLIBC_PRIVATE.
4857         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
4858         (sysdep_rountines): Add dl-vdso.
4859
4860         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
4861         of routines.
4862
4863         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
4864         attribute_hidden to __vdso_gettimeofday prototype.
4865
4866 2007-08-12  Roland McGrath  <roland@redhat.com>
4867
4868         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
4869         From: Karl Berry <karl@freefriends.org>.
4870
4871 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
4872
4873         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
4874         an atime update for the files we read.
4875
4876 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
4877
4878         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
4879
4880         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
4881         instead of mkstemp.
4882
4883         * misc/Makefile (routines): Add mkostemp and mkostemp64.
4884         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
4885         * misc/mkostemp.c: New file.
4886         * misc/mkostemp64.c: New file.
4887         * stdlib/stdlib.h: Declare the new functions.
4888         * sysdeps/posix/tempname.c: Add new parameter which is added to
4889         the flags for open.  Remove __GT_BIGFILE handling.
4890         * stdio-common/tempname.c: Likewise.
4891         * include/stdio.h: Adjust __gen_tempname prototype.
4892         Renumber __GT_* constants.
4893         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
4894         * misc/mkdtemp.c: Likewise.
4895         * misc/mkstemp.c: Likewise.
4896         * misc/mkstemp64.c: Likewise.
4897         * misc/mktemp.c: Likewise.
4898         * stdio-common/tempnam.c: Likewise.
4899         * stdio-common/tmpfile.c: Likewise.
4900         * stdio-common/tmpfile64.c: Likewise.
4901         * stdio-common/tmpnam.c: Likewise.
4902         * stdio-common/tmpnam_r.c: Likewise.
4903
4904 2007-08-10  Roland McGrath  <roland@frob.com>
4905
4906         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
4907         New macros.
4908         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
4909         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4910
4911 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
4912
4913         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
4914         possible.
4915         * nss/nss_files/files-alias.c (internal_setent): Likewise.
4916         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
4917         * nss/nss_files/files-have_o_cloexec.c: New file.
4918
4919         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
4920         available.
4921
4922 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
4923
4924         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
4925         ___new_wcstold_l): New weak aliases.
4926         (strtold_l, wcstold_l): Use them as second argument for
4927         long_double_symbol.
4928
4929 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
4930
4931         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
4932         register in test for error.
4933
4934         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
4935         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
4936
4937         * po/sv.po: Update from translation team.
4938
4939 2007-08-06  Roland McGrath  <roland@redhat.com>
4940
4941         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
4942         Remove __strto*_l inlines.
4943         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
4944         * stdlib/strtod.c: Add libc_hidden_def.
4945         * stdlib/strtod_l.c: Likewise.
4946         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
4947         for __new_strtold and __new_wcstold.
4948         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
4949         __STRTOF, STRTOF.
4950         * stdlib/strtol.c: Add libc_hidden_def.
4951         * stdlib/strtol_l.c: Likewise.
4952         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
4953         strtoq.
4954
4955         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
4956
4957         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
4958         * scripts/data/localplt-generic.data: ... here.
4959         * elf/Makefile (check-data): Get generic file if no other.
4960         ($(objpfx)check-localplt.out): Make target unconditional.
4961
4962         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
4963         Use ElfW(Nhdr).
4964
4965 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
4966
4967         * po/zh_CN.po: Updated translation from translation team.
4968
4969 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
4970
4971         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
4972         Don't use CGOTSETUP and CGOTRESTORE macros.
4973
4974 2007-08-04  Roland McGrath  <roland@redhat.com>
4975
4976         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
4977
4978 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
4979
4980         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
4981         __extension__ around the whole statement expression.
4982
4983 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
4984
4985         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
4986         elements during initialization.
4987
4988         * po/pl.po: Updated translation from translation team.
4989         * po/tr.po: Likewise.
4990         * po/nl.po: Likewise.
4991
4992 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
4993
4994         * rt/aio.h: Add __nonnull attributes.
4995
4996 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
4997
4998         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
4999         * stdlib/Makefile (tests): Add tst-strtod5.
5000         (tst-strtod5-ENV): New.
5001         * stdlib/tst-strtod5.c: New file.
5002
5003         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
5004         failed.
5005         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
5006         on failure.
5007
5008         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
5009         allocated.
5010
5011 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
5012
5013         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
5014         numbers.
5015
5016 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
5017
5018         * io/Makefile (aux): Add have_o_cloexec.
5019         * include/fcntl.h: Declare __have_o_cloexec.
5020         * io/have_o_cloexec.c: New file.
5021         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
5022         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
5023         fcntl call if not necessary.
5024         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
5025         of local variable.
5026
5027         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
5028         Avoid memset, add explicit initialization.
5029         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
5030         to the end and change into zero-sized array.
5031         Move lock member to fill a hole on 64-bit platforms.
5032
5033         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
5034         inline functions.
5035         * include/stdlib.h: Add __strto*_internal prototypes here.
5036         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
5037         inline functions.
5038         * include/wchar.h: Add __wcsto*_internal prototypes.
5039         * sysdeps/generic/inttypes.h: No need to protect the declaration
5040         of the __strto*_internal and __wcsto*_internal members here.
5041
5042         * rt/mqueue.h: Change const to __const and add nonnull attributes.
5043
5044 2007-08-02  Roland McGrath  <roland@redhat.com>
5045
5046         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
5047         $(inst_bindir)/getconf if possible.
5048
5049         * posix/Makefile ($(objpfx)getconf.speclist): New target.
5050         (generated): Add it.
5051         ($(inst_libexecdir)/getconf): Use it.
5052
5053 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
5054
5055         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
5056         /proc is faster and sufficient.  /sys is still needed for
5057         __get_nprocs_conf.
5058
5059 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
5060
5061         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
5062         syscall as __fallocate64.
5063         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
5064         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
5065
5066 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
5067
5068         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
5069         value.
5070
5071         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
5072         if off_t is different rank from size_t.
5073
5074         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
5075         uw_frame_state_for): Avoid type punning warnings.
5076         * sysdeps/generic/unwind-dw2-fde-glibc.c
5077         (_Unwind_IteratePhdrCallback): Likewise.
5078         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
5079         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
5080         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
5081         pointers.
5082
5083 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
5084
5085         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
5086         total processors using sysfs.
5087         (__get_nprocs): Use sysfs to determine which processors are online.
5088
5089 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
5090
5091         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
5092         syscall arguments count.
5093
5094         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
5095
5096 2007-07-30  Roland McGrath  <roland@redhat.com>
5097
5098         * manual/libc.texinfo: Update copyrights, formatting magic, and
5099         @dircategory.  From Karl Berry <karl@freefriends.org>.
5100
5101 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
5102
5103         [BZ #4860]
5104         * io/Makefile (headers): Add bits/fcntl2.h.
5105
5106         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
5107         using gcc builtin.
5108         (__CPU_EQUAL_S): Likewise.
5109
5110         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
5111         (tests): Add tst-cpuset.
5112         * posix/sched_cpualloc.c: New file.
5113         * posix/sched_cpufree.c: New file.
5114         * posix/tst-cpuset.c: New file.
5115         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
5116         GLIBC_2.7.
5117         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
5118         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
5119         macros.  Define CPU_*_S macros.
5120
5121 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5122
5123         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
5124         entry.
5125
5126         [BZ #4858]
5127         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
5128         #.0g and value rounded to 1.0.
5129         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
5130
5131 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
5132
5133         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
5134         for int_frac_digits and frac_digits.
5135
5136         * login/logout.c (logout): Avoid aliasing violation.
5137         * login/logwtmp.c (logwtmp): Likewise.
5138
5139         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
5140
5141         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
5142         to avoid warning.
5143         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
5144         warning.
5145         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
5146         warning.
5147         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
5148         to avoid warnings.
5149
5150         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
5151         void **.
5152         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
5153
5154         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
5155         char * to avoid warning.
5156         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
5157
5158         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
5159
5160         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
5161         allocate_arrays): Cast second argument to charmap_find_symbol
5162         to char * to avoid warnings.
5163
5164         * locale/programs/repertoire.c (repertoire_new_char): Change
5165         from_nr, to_nr and cnt to unsigned long, adjust printf format
5166         string.
5167
5168         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
5169         Cast second argument to new_element to char * to avoid warnings.
5170
5171         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
5172
5173         * intl/gettextP.h (struct loaded_domain): Change plural to const
5174         struct expression *.
5175         * intl/plural-eval.c (plural_eval): Change first argument to
5176         const struct expression *.
5177         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
5178         argument to const struct expression **.
5179         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5180         prototypes.
5181         * intl/loadmsgcat (_nl_unload_domain): Cast away const
5182         in call to __gettext_free_exp.
5183
5184         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5185         unitialized wstring/wpattern var warnings.
5186
5187         * posix/runtests.c (struct a_test): Make data field const char *.
5188
5189         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5190         vars if not LDBL_MANT_DIG >= 106.
5191
5192         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5193
5194         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5195         __find_specmb to avoid warning.
5196
5197         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5198
5199         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5200         to avoid warnings.
5201
5202         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5203         initializer.
5204
5205         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5206         tv var when it will be actually used.
5207
5208         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5209         to avoid warnings.
5210
5211         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5212         char array resp. pointer.
5213         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5214         char array.
5215         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5216         to const unsigned char **.
5217         (ucs4_to_cns11643): Change second argument to unsigned char *.
5218         * iconvdata/euc-tw.c (BODY): Change endp type to
5219         const unsigned char *.
5220         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5221         to unsigned char *.
5222         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5223         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5224         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5225         types to unsigned char pointers/arrays instead of char.
5226         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5227         to unsigned char *.
5228         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5229         * iconvdata/jis0212.h: Include assert.h.
5230         (ucs4_to_jisx0212): Change second argument to unsigned char *.
5231         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5232         of trying to handle that.
5233         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5234         shut up a warning.
5235         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5236         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5237         two dimensional const unsigned char arrays.
5238         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5239         Initialize endp to inptr to shut up a warning.
5240
5241 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5242
5243         [BZ #4772]
5244         * time/strptime_l.c (__strptime_internal): Silently ignore
5245         strftime modifiers and field width in recursive calls.
5246
5247         * include/time.h (enum ptime_locale_status): Remove.
5248         (__strptime_internal): Remove decided and era_cnt arguments,
5249         add statep argument.
5250         * time/strptime_l.c (__strptime_internal): Remove decided
5251         and era_cnt arguments, add statep argument.  Don't recompute
5252         any fields in recursive calls, only update caller's tm
5253         and state, if recursive call fails, don't change tm nor
5254         any state.
5255         (get_alt_number): Adjust.
5256         (recursive): Adjust caller.
5257         (strptime): Likewise.
5258         * time/strptime.c (strptime): Likewise.
5259
5260 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
5261
5262         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5263         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5264         if from and to charsets are the same.
5265         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5266         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5267         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5268
5269 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5270
5271         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5272         Don't define wint_t when __need_mbstate_t unless it
5273         is necessary.
5274         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5275         in the typedef if possible.
5276         * wctype/wctype.h (wint_t): Define by including
5277         wchar.h with __need_wint_t instead of including stddef.h
5278         with __need_wint_t and as fallback definining it ourselves.
5279         * iconv/gconv.h (__need_wint_t): Define before including
5280         wchar.h.
5281         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5282         or _GLIBCPP_USE_WCHAR_T.
5283         (__need_wchar_t): Don't define
5284         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5285         (__need_wint_t): Don't define before including stddef.h,
5286         define before including wchar.h only if _LIBC or
5287         _GLIBCPP_USE_WCHAR_T.
5288         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5289         * sysdeps/mach/hurd/_G_config.h: Likewise.
5290         * sysdeps/generic/_G_config.h: Likewise.
5291         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5292         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5293         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5294         if _LIBC or _GLIBCPP_USE_WCHAR_T.
5295
5296 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5297
5298         * sysdeps/posix/posix_fallocate64.c: Undefine
5299         __posix_fallocate64_l64 before alias handling.
5300         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5301         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5302         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5303         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5304
5305         * io/tst-posix_fallocate.c: Include <fcntl.h>.
5306
5307 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
5308
5309         * locale/programs/ld-collate.c (atwc): New variable.
5310         (add_to_tablewc): New toplevel function, moved from collate_output.
5311         (collate_output): Remove add_to_tablewc nested function.
5312
5313         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5314         (name_insert): New function.
5315         (write_output): Remove hash_table and hash_size vars and name_insert
5316         nested function.
5317
5318 2007-07-24  Roland McGrath  <roland@redhat.com>
5319
5320         * Makerules (install-others-programs-nosubdir): New target.
5321         (install-no-libc.a-nosubdir): Depend on it.
5322
5323         * iconv/Makefile (install-others-programs): Set this instead of
5324         install-others.
5325         * login/Makefile (install-others-programs): Likewise.
5326         * posix/Makefile (install-others-programs): Likewise.
5327
5328         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5329         dependencies.
5330
5331 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
5332
5333         * io/Makefile (tests): Add tst-posix_fallocate.
5334         * io/tst-posix_fallocate.c: New file.
5335
5336         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5337         __ASSUME_FALLOCATE.
5338
5339 2007-07-22  Roland McGrath  <roland@frob.com>
5340
5341         * hurd/getdport.c: Add missing copyright year update.
5342
5343         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5344         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5345
5346 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
5347
5348         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5349
5350         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5351         O_CLOEXEC is needed.
5352         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5353         Avoid additional fcntl to set O_CLOEXEC if not needed.
5354         * nis/nss_compat/compat-initgroups.c: Likewise.
5355         * nis/nss_compat/compat-pwd.c: Likewise.
5356         * nis/nss_compat/compat-spwd.c: Likewise.
5357
5358 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5359
5360         [BZ #3665]
5361         * manual/errno.texi: Change ECANCELED value to 119.
5362
5363         [BZ #4610]
5364         * mach/lock-intern.h: Include <sys/cdefs.h>.
5365
5366         [BZ #4178]
5367         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5368         reading A.
5369
5370         [BZ #4126]
5371         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5372         to __sigsuspend.
5373
5374         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5375
5376 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
5377
5378         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5379         `__ASSEMBLER__'.
5380         * sysdeps/mach/hurd/i386/tls.h: Likewise.
5381
5382 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
5383
5384         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5385         descriptor received from nscd.
5386
5387         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5388
5389         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5390         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5391         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5392         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5393         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5394         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5395
5396 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5397
5398         [BZ #4816]
5399         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5400
5401         [BZ #4813]
5402         * login/forkpty.c (forkpty): Close master and slave fds on
5403         fork failure.  Patch by
5404         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5405
5406 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
5407
5408         * include/features.h (__USE_ISOC95): New define.
5409         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5410         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5411         for -std=iso9899:199409.
5412         * CONFORMANCE: Remove comments about unsupported AMD1.
5413
5414 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5415
5416         * sysdeps/ia64/sched_cpucount.c: New file.
5417         * sysdeps/powerpc/sched_cpucount.c: New file.
5418
5419         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5420         __BEGIN_DECLS/__END_DECLS around the prototype.
5421         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
5422         pointer to const cpu_set_t.
5423
5424         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5425         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5426         __need_size_t and include stddef.h.
5427         * sysvipc/sys/msg.h: Likewise.
5428         * posix/sched.h: Likewise.
5429         * hurd/hurd/signal.h (__need_size_t): Define.
5430
5431         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5432         neither does signal.h in pedantic ISO C namespaces.  stdio.h
5433         no longer defines wint_t or wchar_t.
5434
5435         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5436         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5437         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5438         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5439         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5440         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5441         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5442         * debug/printf_chk.c (__printf_chk): Likewise.
5443         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5444         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5445
5446         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5447         Define.
5448
5449         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5450         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5451
5452 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
5453
5454         [BZ #4792]
5455         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5456         * malloc/malloc.h (realloc): Likewise.
5457
5458         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5459         if one of proc_file_chain streams has that fileno.
5460         * stdio-common/Makefile (tests): Add tst-popen2.
5461         * stdio-common/tst-popen2.c: New test.
5462
5463 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
5464
5465         * elf/ldconfig.c: Allow GPLv2 or any later version.
5466         * elf/readlib.c: Likewise.
5467         * elf/chroot_canon.c: Likewise.
5468         * elf/cache.c: Likewise.
5469         * nscd/mem.c: Likewise.
5470         * nscd/getpwuid_r.c: Likewise.
5471         * nscd/grpcache.c: Likewise.
5472         * nscd/aicache.c: Likewise.
5473         * nscd/getsrvbynm_r.c: Likewise.
5474         * nscd/nscd.c: Likewise.
5475         * nscd/servicescache.c: Likewise.
5476         * nscd/getsrvbypt_r.c: Likewise.
5477         * nscd/initgrcache.c: Likewise.
5478         * nscd/gethstbyad_r.c: Likewise.
5479         * nscd/gethstbynm2_r.c: Likewise.
5480         * nscd/getgrnam_r.c: Likewise.
5481         * nscd/nscd_setup_thread.c: Likewise.
5482         * nscd/getpwnam_r.c: Likewise.
5483         * nscd/gai.c: Likewise.
5484         * nscd/connections.c: Likewise.
5485         * nscd/dbg_log.c: Likewise.
5486         * nscd/cache.c: Likewise.
5487         * nscd/hstcache.c: Likewise.
5488         * nscd/nscd_conf.c: Likewise.
5489         * nscd/getgrgid_r.c: Likewise.
5490         * nscd/pwdcache.c: Likewise.
5491         * catgets/gencat.c: Likewise.
5492         * locale/programs/linereader.h: Likewise.
5493         * locale/programs/locarchive.c: Likewise.
5494         * locale/programs/ld-paper.c: Likewise.
5495         * locale/programs/locfile-kw.h: Likewise.
5496         * locale/programs/ld-address.c: Likewise.
5497         * locale/programs/xmalloc.c: Likewise.
5498         * locale/programs/ld-time.c: Likewise.
5499         * locale/programs/localedef.c: Likewise.
5500         * locale/programs/simple-hash.c: Likewise.
5501         * locale/programs/xstrdup.c: Likewise.
5502         * locale/programs/ld-numeric.c: Likewise.
5503         * locale/programs/locfile-kw.gperf: Likewise.
5504         * locale/programs/ld-collate.c: Likewise.
5505         * locale/programs/charmap-kw.gperf: Likewise.
5506         * locale/programs/charmap.h: Likewise.
5507         * locale/programs/charmap-kw.h: Likewise.
5508         * locale/programs/config.h: Likewise.
5509         * locale/programs/locfile.c: Likewise.
5510         * locale/programs/ld-ctype.c: Likewise.
5511         * locale/programs/charmap.c: Likewise.
5512         * locale/programs/ld-messages.c: Likewise.
5513         * locale/programs/repertoire.h: Likewise.
5514         * locale/programs/locale.c: Likewise.
5515         * locale/programs/ld-name.c: Likewise.
5516         * locale/programs/linereader.c: Likewise.
5517         * locale/programs/locfile.h: Likewise.
5518         * locale/programs/3level.h: Likewise.
5519         * locale/programs/ld-monetary.c: Likewise.
5520         * locale/programs/ld-measurement.c: Likewise.
5521         * locale/programs/charmap-dir.c: Likewise.
5522         * locale/programs/ld-identification.c: Likewise.
5523         * locale/programs/localedef.h: Likewise.
5524         * locale/programs/charmap-dir.h: Likewise.
5525         * locale/programs/repertoire.c: Likewise.
5526         * locale/programs/simple-hash.h: Likewise.
5527         * locale/programs/ld-telephone.c: Likewise.
5528         * locale/programs/locale-spec.c: Likewise.
5529         * locale/programs/locfile-token.h: Likewise.
5530         * posix/getconf.c: Likewise.
5531         * iconv/dummy-repertoire.c: Likewise.
5532         * iconv/iconv_charmap.c: Likewise.
5533         * iconv/iconvconfig.c: Likewise.
5534         * iconv/iconv_prog.c: Likewise.
5535         * malloc/memusagestat.c: Likewise.
5536         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5537
5538 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5539
5540         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
5541         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
5542         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
5543         check for the first argument.
5544
5545 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
5546
5547         [BZ #4775]
5548         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
5549         (__tgmath_real_type): Fix if expr is const int or other const
5550         qualified integral type.
5551         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
5552         expressions and handle const qualified arguments.
5553         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
5554         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5555         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
5556         statement expressions.
5557         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
5558         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
5559         (__TGMATH_UNARY_IMAG): Define.
5560         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
5561         * math/Makefile (tests): Add test-tgmath2.
5562         (CFLAGS-test-tgmath2.c): Add.
5563         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
5564         count_cfloat, count_cldouble): New variables.
5565         (NCCALLS): Define.
5566         (main): Check number of complex calls as well.
5567         (F(compile_test)): Add complex tests and tests with const qualified
5568         arguments.
5569         (y, z, ccount): Define.
5570         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
5571         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
5572         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
5573         F(cproj)): New functions.
5574         * math/test-tgmath2.c: New test.
5575
5576 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
5577
5578         [BZ #4776]
5579         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5580         RPATH etc. as "/" rather than "", don't segfault on empty paths,
5581         instead output ".".
5582         * dlfcn/Makefile (distribute): Add glreflib3.c.
5583         (module-names): Add glreflib3.
5584         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5585         glreflib1.so.
5586         (LDFLAGS_glreflib3.so): New.
5587         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5588         glreflib1.so.
5589         * dlfcn/glreflib3.c: New file.
5590
5591         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5592         returned -1, return NULL.
5593         * intl/explodename.c (_nl_explode_name): Return -1 if
5594         _nl_normalize_codeset failed.
5595
5596 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
5597
5598         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5599         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
5600         and avoid branch misspredicts for > 31 bytes memset case.
5601         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5602         Remove toc ref to __cache_line_size.
5603
5604         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
5605         to get ISA-V2.0 branch hints.
5606         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
5607         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
5608         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5609         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5610         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5611         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5612         Remove toc ref to __cache_line_size.
5613
5614         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
5615         Include math_ldbl_opt.h.
5616
5617 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
5618
5619         [BZ #4773]
5620         * time/strptime_l.c (__strptime_internal): Implement greedy
5621         matching of weekday and month names.
5622
5623 2007-07-09  Roland McGrath  <roland@redhat.com>
5624
5625         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
5626         (ELF_NOTE_ABI): Use it.
5627         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
5628
5629 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
5630
5631         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
5632         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5633
5634 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
5635
5636         [BZ #4745]
5637         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
5638         in loop to look for conversion specifier to avoid testing of
5639         wrong errno value.
5640         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
5641         * stdio-common/bug18.c: New file.
5642         * stdio-common/bug18a.c: New file.
5643         * stdio-common/bug19.c: New file.
5644         * stdio-common/bug19a.c: New file.
5645
5646 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
5647
5648         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
5649         running awk script.
5650
5651 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
5652
5653         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
5654         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
5655         Return NULL if mmap failed instead of asserting it does not.
5656         (calloc): Check for integer overflow.
5657
5658         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
5659         than LONG_MAX / 10.
5660
5661 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
5662
5663         [BZ #4702]
5664         * nis/nss-default.c: Include errno.h.
5665         (init): Preserve errno.
5666
5667 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
5668
5669         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
5670
5671 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
5672
5673         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
5674
5675 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5676
5677         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
5678
5679 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5680
5681         * sysdeps/s390/dl-procinfo.c: New file.
5682         * sysdeps/s390/dl-procinfo.h: New file.
5683         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
5684
5685 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
5686
5687         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
5688         in PT_NOTE segments with multiple notes.
5689         * elf/readelflib.c (process_elf_file): Likewise.
5690
5691 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
5692
5693         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
5694         ISO C compliant.
5695
5696 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5697
5698         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
5699
5700 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
5701
5702         * include/link.h: Don't include rtld-lowlevel.h.
5703         (struct link_map): Remove l_scope_lock.
5704         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
5705         (_dl_scope_free_list): New field (variable) in _rtld_global.
5706         (DL_LOOKUP_SCOPE_LOCK): Remove.
5707         (_dl_scope_free): New prototype.
5708         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
5709         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
5710         (_dl_profile_fixup): Likewise.
5711         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
5712         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
5713         THREAD_GSCOPE_RESET_FLAG around it.
5714         * elf/dl-close.c (_dl_close_worker): Don't use
5715         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
5716         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
5717         scopes were queued or if l_scope_mem has been abandoned.
5718         * elf/dl-open.c (_dl_scope_free): New function.
5719         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
5720         * elf/dl-support.c (_dl_scope_free_list): New variable.
5721         * elf/dl-lookup.c (add_dependency): Remove flags argument.
5722         Remove DL_LOOKUP_SCOPE_LOCK handling.
5723         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
5724         handling.
5725         * elf/dl-object.c (_dl_new_object): Don't use
5726         __rtld_mrlock_initialize.
5727
5728 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5729
5730         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
5731         to fill in holes
5732         (rtld_global_ro): Likewise.
5733
5734 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5735
5736         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
5737         Move PT_LOAD checking to...
5738         (_dl_addr_inside_object): ... here, new function.
5739         * elf/dl-sym.c (do_sym): If not l_contiguous,
5740         call _dl_addr_inside_object.
5741         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5742         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5743         * elf/dl-open.c (dl_open_worker): Likewise.
5744         (_dl_addr_inside_object): New function if IS_IN_rtld.
5745         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
5746         holes are present or are PROT_NONE protected.
5747         * include/link.h (struct link_map): Add l_contiguous field.
5748         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
5749
5750 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5751             Tomas Janousek  <tjanouse@redhat.com>
5752             Ulrich Drepper  <drepper@redhat.com>
5753
5754         [BZ #4647]
5755         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
5756         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
5757         socket.
5758         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
5759         unused member a bitmap.
5760         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
5761         servers are configured.
5762
5763 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5764
5765         * elf/rtld.c (dl_main): Don't call init_tls more than once.
5766
5767 2007-06-17  Andreas Schwab  <schwab@suse.de>
5768
5769         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
5770
5771 2007-06-16  Andreas Jaeger  <aj@suse.de>
5772
5773         [BZ #4125]
5774         * sysdeps/unix/sysv/linux/sys/ptrace.h
5775         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
5776         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
5777         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
5778         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
5779         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
5780         Define.
5781         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5782         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5783         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5784         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5785
5786 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
5787
5788         [BZ #4599]
5789         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
5790         determining whether there are IPv4/IPv6 addresses, ignore loopback
5791         addresses.
5792
5793 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
5794
5795         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
5796         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
5797         as the return type.  Change type of "r" variable to CMPtype.
5798         * soft-fp/eqsf2.c (__eqsf2): Likewise.
5799         * soft-fp/eqtf2.c (__eqtf2): Likewise.
5800         * soft-fp/gedf2.c (__gedf2): Likewise.
5801         * soft-fp/gesf2.c (__gesf2): Likewise.
5802         * soft-fp/getf2.c (__getf2): Likewise.
5803         * soft-fp/ledf2.c (__ledf2): Likewise.
5804         * soft-fp/lesf2.c (__lesf2): Likewise.
5805         * soft-fp/letf2.c (__letf2): Likewise.
5806         * soft-fp/unorddf2 (__unorddf2): Likewise.
5807         * soft-fp/unordsf2 (__unordsf2): Likewise.
5808         * soft-fp/unordtf2 (__unordtf2): Likewise.
5809
5810 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
5811
5812         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
5813         make sure gcc doesn't mess around with this.
5814
5815 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
5816
5817         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
5818
5819 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
5820
5821         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
5822         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
5823         at most once per _dl_close_worker.
5824
5825 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
5826
5827         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
5828         __sched_cpucount as const.
5829         * posix/sched_cpucount.c: Adjust.
5830
5831         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
5832         instruction for counting bits.
5833         * sysdeps/x86_64/sched_cpucount.c: New file.
5834
5835 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
5836
5837         * configure.in: Avoid variable named BASH.
5838         * config.make.in: Likewise.
5839         Patch in part by Mike Frysinger.
5840
5841 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
5842
5843         [BZ #4586]
5844         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
5845         pseudo-zeros as zero.
5846         * sysdeps/x86_64/ldbl2mpn.c: New file.
5847         * sysdeps/ia64/ldbl2mpn.c: New file.
5848
5849 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
5850
5851         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
5852         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
5853         Remove unreachable code at the end.
5854
5855 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
5856
5857         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
5858         ldbl-128ibm in comment.
5859         (fpclassifyl): Correct classification of denormals.
5860         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
5861         return value for MIN denormal. Rewrite using long double math too
5862         correctly handle denormals and canonicalize the results.
5863
5864 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
5865
5866         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5867         (__mpn_construct_long_double): Fix conversion where result ought
5868         to be smaller than __LDBL_MIN__, or the low double should be
5869         denormal.  Fix decision where to negate low double - honor round
5870         to even rules.
5871         * stdio-common/tst-sprintf2.c: Include string.h.
5872         (COMPARE_LDBL): Define.
5873         (TEST): Also test whether a string hexadecimal float representation
5874         can be parsed back to the number.
5875         (main): Add a couple of further tests.
5876
5877 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
5878
5879         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5880         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
5881         is non-zero, but smaller than 2 * __DBL_MIN__.
5882         * stdio-common/tst-sprintf2.c: New test.
5883         * stdio-common/Makefile (tests): Add tst-sprintf2.
5884
5885         * math/test-misc.c (main): Don't run last batch of tests with
5886         IBM long double format.
5887
5888 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5889
5890         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
5891         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
5892         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
5893         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
5894         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5895         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
5896         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
5897         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
5898         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
5899         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
5901         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
5902         New file.
5903         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
5904         New file.
5905         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
5906         New file.
5907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
5908         New file.
5909         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
5910         New file.
5911         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
5912         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
5913         New file.
5914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
5915         New file.
5916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
5917         New file.
5918         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
5919         New file.
5920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
5921         New file.
5922
5923 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5924
5925         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
5926         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
5927         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
5928         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
5929         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
5930         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
5931         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
5932         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
5933
5934 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
5935
5936         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
5937         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5938         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
5939         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5940         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
5941         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5942         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
5943         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5944
5945 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
5946
5947         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
5948         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
5949         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
5950         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
5951
5952 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
5953
5954         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
5955         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
5956
5957 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
5958
5959         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
5960         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
5961         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
5962         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
5963
5964 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
5965
5966         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
5967         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
5968
5969 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
5970
5971         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
5972         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
5973
5974         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
5975         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
5976         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
5977         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5978
5979 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
5980
5981         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
5982         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
5983         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
5984         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
5985
5986 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
5987
5988         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
5989         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
5990         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
5991         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5992         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
5993         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5994
5995 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
5996
5997         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
5998         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
5999         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
6000         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
6001
6002 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
6003
6004         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
6005         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
6006         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
6007         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
6008         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
6009         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
6010         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
6011         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
6012         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
6013         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
6014         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
6015         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
6016         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
6017         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
6018         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
6019         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
6020
6021 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6022
6023         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
6024         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
6025
6026 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
6027
6028         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
6029         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
6030
6031 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6032
6033         * sysdeps/powerpc/powerpc32/970/Implies: New file.
6034         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
6035         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
6036         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
6037         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
6038         * sysdeps/powerpc/powerpc64/970/Implies: New file.
6039         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
6040         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
6041         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
6042         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
6043
6044 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
6045
6046         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
6047
6048 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
6049
6050         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
6051         branch miss-predicts. Ensure that cache line crossing does not impact
6052         dispatch grouping.
6053
6054 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
6055
6056         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
6057         "../../powerpc32/power4/memcopy.h".
6058         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
6059         "../../powerpc32/power4/wordcopy.c".
6060
6061 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
6062
6063         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
6064         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
6065         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
6066         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
6067         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
6068         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
6069
6070 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
6071
6072         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
6073
6074 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6075
6076         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
6077         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
6078         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
6079         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
6080         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
6081         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
6082         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
6083         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
6084
6085 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
6086
6087         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
6088
6089 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6090
6091         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
6092         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
6093         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
6094         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
6095         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
6096         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
6097         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
6098
6099 2007-05-29  Roland McGrath  <roland@redhat.com>
6100
6101         * po/Makefile (po-sed-cmd): New variable.
6102         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
6103
6104 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
6105
6106         * crypt/md5-crypt.c: Fix comment.
6107
6108         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
6109         of crashing.  When this is the case or if the reply is malformed,
6110         don't try to close the new file descriptor since it does not
6111         exist.
6112         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
6113
6114 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
6115
6116         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
6117         if __NR_utimensat is not defined.
6118
6119 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
6120
6121         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
6122
6123 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
6124
6125         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
6126         (open): Fix comment typos.  Don't call __open_2 if flags
6127         is a compile time constant without O_CREAT.
6128         (__open64_2): Add nonnull attribute.
6129         (open64): Fix comment typos.  Don't call __open64_2 if flags
6130         is a compile time constant without O_CREAT.
6131         (__openat_2): Add nonnull attribute, fix nonnull attribute
6132         on redirect.
6133         (openat): Fix comment typos.  Don't call __openat_2 if flags
6134         is a compile time constant without O_CREAT.
6135         (__openat64_2): Add nonnull attribute, fix nonnull attribute
6136         on redirect.
6137         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
6138         is a compile time constant without O_CREAT.
6139
6140 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
6141
6142         * Makerules (sysd-rules): Define PTW for ptw-* files.
6143         * Versions: Define GLIBC_2.7 for libc.
6144         * include/stdio.h: Declare __fortify_fail.
6145         * debug/fortify_fail.c: New file.
6146         * debug/Makefile (routines): Add fortify_fail.
6147         * debug/chk_fail.c: Use __fortify_fail.
6148         * debug/stack_chk_fail.c: Likewise.
6149         * io/Versions: Export __open_2, __open64_2, __openat_2, and
6150         __openat64_2 for GLIBC_2.7.
6151         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
6152         * io/open.c: Define *_2 variant of function which checks for O_CREAT
6153         and fails if necessary.
6154         * io/open64.c: Likewise.
6155         * io/openat.c: Likewise.
6156         * io/openat64.c: Likewise.
6157         * sysdeps/unix/sysv/linux/open64.c: Likewise.
6158         * sysdeps/unix/sysv/linux/openat.c: Likewise.
6159         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
6160         * io/bits/fcntl2.h: New file.
6161         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
6162         __openat64_2.
6163         * include/bits/fcntl2.h: New file.
6164         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6165         Add open_2.
6166         * sysdeps/unix/sysv/linux/open_2.c: New file.
6167
6168 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
6169
6170         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
6171         as second parameter to handle_intel.
6172
6173         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
6174         the entry.
6175
6176         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
6177         handling to ...
6178         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
6179         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6180         cacheinfo.
6181         * sysdeps/x86_64/memcpy.S: Complete rewrite.
6182         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6183         Patch by Evandro Menezes <evandro.menezes@amd.com>.
6184
6185         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6186
6187 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
6188
6189         [BZ #4525]
6190         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6191         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6192         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6193
6194         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6195
6196         [BZ #4514]
6197         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6198         reinitialize workend at the start of each do_positional format spec
6199         loop, free workstart before do_positional loops.
6200         (printf_unknown): Fix size of work_buffer.
6201         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6202
6203         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6204         (public_sET_STATe): If ms->version < 3, put all chunks into
6205         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6206         chunks.
6207
6208         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6209         * malloc/hooks.c: Likewise.
6210         * malloc/arena.c: Likewise.
6211         * malloc/malloc.c (do_check_malloc_state): Don't assert
6212         n_mmaps is not greater than n_mmaps_max.  This removes the need
6213         for the previous change.
6214
6215         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6216         2007-05-07 commit.
6217
6218 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
6219
6220         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6221         Define for kernel >= 2.6.22.
6222
6223 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
6224
6225         * elf/dl-close.c (_dl_close_worker): When removing object from
6226         global scope, wait for all lookups to finish afterwards.
6227         * elf/dl-open.c (add_to_global): When global scope array must
6228         grow, allocate a new one and free old array only after all
6229         lookups finish.
6230         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6231         (_dl_lookup_symbol_x): Likewise.
6232         * elf/dl-support.c: Define _dl_wait_lookup_done.
6233         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6234         _dl_wait_lookup_done.
6235
6236         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6237         not overlapping with arena.
6238
6239         * malloc/mcheck.c (reallochook): If size==0, free the block.
6240
6241         * rt/tst-shm.c: Use fstat64 instead of fstat.
6242
6243         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6244         __NR_sync_file_range is not defined.
6245
6246 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
6247
6248         Dummy files to prevent stub versions from being used.
6249         * sysdeps/x86_64/fpu/k_cosl.c: New file.
6250         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6251         * sysdeps/x86_64/fpu/k_sinl.c: New file.
6252         * sysdeps/x86_64/fpu/k_tanl.c: New file.
6253
6254         * version.h (VERSION): Set to 2.6.90.
6255
6256 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
6257
6258         * version.h (VERSION): Define to 2.6.
6259         * include/features.h (__GLIBC_MINOR__): Define to 6.
6260
6261         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6262
6263         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6264         sizes.
6265
6266 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
6267
6268         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6269         number of mmaps.  n_mmaps_max is the target.
6270         * malloc/hooks.c: Likewise.
6271         * malloc/arena.c: Likewise.
6272
6273 2007-05-12  Andreas Jaeger  <aj@suse.de>
6274
6275         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6276         getpid.
6277
6278 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
6279
6280         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6281         adding new variables.
6282
6283         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
6284         optimize.  Completely extend global scope array before making the
6285         new entries visible.
6286
6287 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
6288
6289         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6290         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6291         tst-getcpu.
6292
6293         * include/link.h: Move l_version and l_nversion members around to
6294         fill gaps.
6295
6296         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6297
6298         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6299         (__sched_setaffinity_new): If syscall was successful and
6300         RESET_VGETCPU_CACHE is defined, use it before returning.
6301         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6302
6303         * io/sys/stat.h: Make sure struct timespec is defined for
6304         __USE_ATFILE.
6305
6306         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6307         UTIME_OMIT.
6308         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6309         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6310         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6311         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6312         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6313         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6314         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6315         * io/sys/stat.h: Declare utimensat, futimens.
6316         * io/utimensat.c: New file.
6317         * io/futimens.c: New file.
6318         * sysdeps/unix/sysv/linux/utimensat.c: New file.
6319         * sysdeps/unix/sysv/linux/futimens.c: New file.
6320         * io/Makefile (routines): Add utimensat, futimens.
6321         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6322         * sysdeps/unix/sysv/linux/lutimes.c: New file.
6323         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6324         available.
6325
6326         * include/sys/cdefs.h: Redefine __nonnull so that test for
6327         incorrect parameters in the libc code itself are not omitted.
6328
6329 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
6330
6331         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6332         exception in addition to inexact when asked to raise only FE_INEXACT.
6333
6334         [BZ #3427]
6335         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6336         in *envp.
6337
6338 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6339
6340         [BZ #4403]
6341         * string/strfry.c (strfry): Make result more random.
6342
6343 2007-05-07  Richard Henderson  <rth@redhat.com>
6344
6345         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6346         if __NO_LONG_DOUBLE_MATH.
6347         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
6348         available in the compiler, add .arch directive to the assembly.
6349
6350 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
6351
6352         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6353         compat_symbol to GLIBC_2_1.
6354         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6355         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6356         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6357         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6358         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6359         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6360         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6361         libc, not libm.
6362         (__isnanl): New compat_symbol.
6363
6364 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6365             Jakub Jelinek  <jakub@redhat.com>
6366
6367         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6368         (new_heap): Initialize mprotect_size.
6369         (grow_heap): When growing, only mprotect from mprotect_size till
6370         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
6371         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6372
6373 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
6374             Peter Bergner  <bergner@us.ibm.com>
6375
6376         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6377         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
6378         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6379         * sysdeps/powerpc/fpu/fe_mask.c: New file.
6380         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6381         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6382         Call __fe_mask_env() if all FP exceptions disabled.
6383         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6384         from old FPSCR to new fenv to propagate DFP rounding modes.
6385         Call __fe_mask_env() if FP exceptions previously enabled.
6386         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6387         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
6388         transitioning from all exceptions disabled to any exception enabled
6389         or visa versa.
6390         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6391         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
6392         when transitioning from all exceptions disabled to any exception
6393         enabled or visa versa.
6394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6400
6401 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6402
6403         [BZ #4465]
6404         * posix/unistd.h: Remove __THROW from fdatasync.
6405
6406 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
6407
6408         [BZ #4465]
6409         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6410
6411 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6412
6413         * stdio-common/vfprintf.c (process_string_arg): Optimize
6414         ridiculous precision in wide char code printing multi-byte string.
6415         Reported by Jim Meyering <jim@meyering.net>.
6416
6417         [BZ #4131]
6418         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6419         boundaries to work around systems with overlapping binary loading.
6420         Based on a patch by Suzuki <suzuki@in.ibm.com>.
6421
6422 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
6423
6424         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6425         __mbsnrtowcs after last change.
6426
6427         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6428         (get_ident): Likewise.
6429
6430 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6431
6432         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6433         with setting the sticky bit.
6434         * math/test-misc.c (main): Add more truncation tests.
6435
6436 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
6437
6438         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6439         double in the function declaration.
6440         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6441         double in the function declaration.
6442         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6443         float in the function declaration.
6444         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6445         float in the function declaration.
6446
6447         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6448         denormal operands.  Do not generate FP_EX_DENORM exception.
6449         (FP_UNPACK_RAW_EP): Ditto.
6450         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6451         undefined _FP_UNPACK_RAW_E.
6452         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6453         undefined _FP_UNPACK_RAW_EP.
6454         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6455         undefined _FP_PACK_RAW_E.
6456         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6457         undefined _FP_PACK_RAW_EP.
6458
6459         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6460         _FP_FRAC_COPY_2.
6461         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6462         _FP_FRAC_COPY_4.
6463
6464 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
6465             Jakub Jelinek  <jakub@redhat.com>
6466
6467         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6468         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
6469         this case.
6470         * soft-fp/op-common.h (FP_TRUNC): Ditto.
6471
6472 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6473
6474         * math/test-misc.c (main): Add tests for rounding long double
6475         values close to smallest double denormalized value to double.
6476
6477 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
6478
6479         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6480         condition for truncating to 0.  Set sticky bit for such
6481         truncation.
6482
6483 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
6484
6485         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6486         fixed length array for ignore.
6487
6488 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6489
6490         [BZ #4438]
6491         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6492         stack for large precisions.
6493         * stdio-common/test-vfprintf.c (main): Add test for large
6494         precision.
6495
6496 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
6497
6498         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6499         for exponent 0.
6500         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6501
6502         [BZ #4439]
6503         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6504         account in the size check.
6505         * resolv/tst-inet_ntop.c: New test.
6506         * resolv/Makefile (tests): Add tst-inet_ntop.
6507
6508 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6509             Jakub Jelinek  <jakub@redhat.com>
6510
6511         [BZ #4349]
6512         * malloc/malloc.c: Keep separate list for first blocks on the bin
6513         lists with a given size.  This helps skipping over list elements
6514         we know won't fit in two places.
6515         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6516
6517 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
6518
6519         [BZ #4102]
6520         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6521         label to Teredo tunnel addresses 2001://32.
6522
6523 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
6524
6525         * locale/programs/ld-collate.c (collate_read): Allow order_start
6526         after copy.
6527
6528         * locale/programs/ld-collate.c (collate_read): Fix printing of
6529         error message.
6530
6531         [BZ #3213]
6532         * locale/C-translit.h.in: Add entry for U2044.
6533
6534         [BZ #4342]
6535         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6536         hexa-decimal floats without exponent.
6537         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6538
6539 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6540
6541         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
6542         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
6543         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
6544         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
6545         GLIBC_2.6.
6546         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
6547         Add sched_getcpu.
6548
6549 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6550
6551         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
6552         of 0 after the out_fail label.
6553
6554 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6555
6556         [BZ #4406]
6557         * iconv/gconv_charset.h (strip): Allow ':'.
6558         * iconv/iconv_open.c (iconv_open): Adjust comment.
6559
6560 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6561
6562         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
6563         version.
6564
6565 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6566
6567         [BZ #4381]
6568         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
6569         alignment of buffer and tmp_buffer.
6570         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
6571         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
6572         alignment of buffer.
6573         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
6574         bigger than INT_MAX.
6575         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
6576         h_errnop arguments.  Fail if buflen is too small.
6577         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6578
6579 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6580
6581         [BZ #4405]
6582         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6583         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
6584
6585 2007-04-22  Roland McGrath  <roland@redhat.com>
6586
6587         * elf/elf.h (NT_PRXFPREG): New macro.
6588
6589 2007-04-19  Andreas Jaeger  <aj@suse.de>
6590
6591         [BZ #3905]
6592         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6593         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6594         Added.
6595
6596 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
6597
6598         * include/sys/mman.h: Mark madvise hidden.
6599         * misc/madvise.c: Add libc_hidden_def.
6600
6601 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
6602
6603         * nis/nis_domain_of.c (__nis_domain_of): New function.
6604         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
6605         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6606         * nis/nis_call.c (rec_dirsearch): Likewise.
6607         (first_shoot): Likewise.  Remove search_parent_first argument.
6608         (struct nis_server_cache): Rename search_parent_first field
6609         to search_parent.
6610         (nis_server_cache_search, nis_server_cache_add): Rename
6611         search_parent_first argument to search_parent.
6612         (__nisfind_server): Likewise.  If search_parent, call
6613         __nis_domain_of.
6614
6615 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
6616
6617         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
6618
6619 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
6620
6621         [BZ #4368]
6622         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
6623
6624 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
6625
6626         [BZ #4364]
6627         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
6628
6629 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
6630
6631         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
6632         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
6633         current number of locales in SUPPORTED.
6634         (create_archive): Initialize serial.
6635         (enlarge_archive): Preserve aliases rather than duplicating
6636         their locrecs.
6637
6638 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6639
6640         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
6641         after _IO_un_link, not before it.
6642
6643         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
6644         special case handling when wcp == wstartp + 1.  Fix a comment typo.
6645         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
6646
6647 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
6648
6649         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
6650         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
6651         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
6652         Remove __THROW.
6653         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
6654         _IO_file_xsgetn_maybe_mmap): Likewise.
6655         * libio/oldfileops.c (old_do_write): Likewise.
6656         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
6657         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
6658         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
6659         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
6660         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
6661         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
6662         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
6663         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
6664         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
6665         _IO_file_underflow, _IO_file_underflow_mmap,
6666         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
6667         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
6668         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
6669         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
6670         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
6671         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
6672         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
6673         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
6674         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
6675         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
6676         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
6677         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
6678         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
6679         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
6680         _IO_adjust_column_internal, _IO_default_uflow_internal,
6681         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
6682         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
6683         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
6684         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
6685         _IO_file_close_it_internal, _IO_file_underflow_internal,
6686         _IO_file_overflow_internal, _IO_file_attach_internal,
6687         _IO_file_fopen_internal, _IO_file_sync_internal,
6688         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
6689         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
6690         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
6691         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
6692         _IO_seekpos_unlocked): Likewise.
6693         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
6694         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
6695
6696 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
6697
6698         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
6699         argument in xmalloc size computation.
6700
6701 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
6702
6703         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
6704         math_opt_barrier and math_force_eval macros.
6705
6706 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6707
6708         [BZ #3306]
6709         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
6710         * sysdeps/i386/fpu/math_private.h: New file.
6711         * sysdeps/x86_64/fpu/math_private.h: New file.
6712         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
6713         math_force_eval macros.  Use "+m" constraint on asm rather than
6714         "=m" and "m".
6715         * math/s_nextafter.c (__nextafter): Likewise.
6716         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
6717         Likewise.
6718         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6719         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
6720         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6721         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
6722         math_opt_barrier and math_force_eval macros.
6723         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
6724         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
6725         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
6726         (__nexttoward): Use math_opt_barrier and
6727         math_force_eval macros.  Use "+m" constraint on asm rather than
6728         "=m" and "m".  Only use asm to force double result if
6729         FLT_EVAL_METHOD is 2.
6730         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
6731         (__nexttowardf): Use math_opt_barrier and
6732         math_force_eval macros.  Use "+m" constraint on asm rather than
6733         "=m" and "m".  Only use asm to force double result if
6734         FLT_EVAL_METHOD is not 0.
6735         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
6736         (__nexttowardf): Use math_opt_barrier and
6737         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6738         x to float using asm.
6739         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
6740         (__nldbl_nexttowardf): Use math_opt_barrier and
6741         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6742         x to float using asm.
6743         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
6744         (__nexttowardf): Use math_opt_barrier and math_force_eval
6745         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
6746         * math/bug-nextafter.c (zero, inf): New variables.
6747         (main): Add new tests.
6748         * math/bug-nexttoward.c (zero, inf): New variables.
6749         (main): Add new tests.
6750
6751 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
6752
6753         [BZ #3427]
6754         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
6755         exceptions both in SW and MXCSR.
6756         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
6757         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
6758         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6759         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6760         in MXCSR if SSE is available.
6761         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
6762         and ldsodefs.h.
6763         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
6764         Fix comment typo.
6765         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
6766         Return 0 rather than 1.
6767         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
6768         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
6769         * math/test-fenv.c (feholdexcept_tests): New function.
6770         (main): Call it.
6771
6772 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
6773
6774         [BZ #3427]
6775         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6776         in SW.
6777
6778 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6779
6780         [BZ #4344]
6781         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
6782         Reported by David Anderson <davea42@earthlink.net>.
6783
6784 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
6785
6786         * posix/sys/wait.h: Remove unnecessary forward declaration.
6787
6788 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
6789
6790         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
6791         with obj->do_servers after first_shoot.
6792
6793 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
6794
6795         * posix/Makefile (routines): Add sched_cpucount.
6796         (tests): Add tst-cpucount.
6797         * posix/sched_cpucount.c: New file.
6798         * posix/tst-cpucount.c: New file.
6799         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
6800         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
6801         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6802         * posix/sched.h: Define CPU_COUNT.
6803
6804 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6805
6806         * posix/fnmatch.c (STRUCT): Define.
6807         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
6808         * posix/fnmatch_loop.c (struct STRUCT): New type.
6809         (FCT): Add ends argument.  If ends != NULL and normal * is
6810         seen in the pattern, store current pattern and string pointers
6811         and return.  Adjust recursive calls.
6812         (EXT): Adjust FCT callers.
6813         (STRUCT): Undef at the end of the file.
6814         * posix/Makefile (tests): Add tst-fnmatch2.
6815         * posix/tst-fnmatch2.c: New test.
6816
6817 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
6818
6819         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
6820         and 1 on failure.
6821
6822         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
6823         Change last argument to unsigned int.
6824
6825 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
6826
6827         * scripts/check-local-headers.sh: Filter out sys/capability.h.
6828
6829 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
6830
6831         * config.h.in (HAVE_LIBCAP): Add.
6832         * nscd/selinux.h: Include sys/capability.h rather than non-existent
6833         sys/capabilities.h.
6834         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
6835         free_caps.  Cast away const from 4th cap_set_flag argument.
6836
6837 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
6838
6839         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
6840         GLIBC_2.6.
6841         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6842         Add sync_file_range.
6843         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
6844
6845 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
6846
6847         * sysdeps/powerpc/bits/atomic.h
6848         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
6849         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
6850         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6851         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
6852         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6853         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
6854         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
6855         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6856         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6857         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6858         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
6859         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6860         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6861         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6862         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6863         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
6864         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6865         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
6866         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6867         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
6868
6869 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
6870
6871         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6872         (__cache_line_size): Define the variable here.  Add
6873         attribute_hidden, remove weak_extern.
6874         (__libc_start_main): Set __cache_line_size
6875         unconditionally.
6876         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
6877         (__cache_line_size): Define the variable here.  Add
6878         attribute_hidden, remove weak_extern.
6879         (DL_PLATFORM_AUXV): Set __cache_line_size
6880         unconditionally.
6881         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
6882         weak_extern, add attribute_hidden.
6883         (__elf_machine_runtime_setup): Assume __cache_line_size is always
6884         defined in ld.so.
6885         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
6886         definition.
6887         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
6888
6889 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
6890
6891         [BZ #4276]
6892         * timezone/africa: Update from tzdata2007d.
6893         * timezone/asia: Likewise.
6894         * timezone/australasia: Likewise.
6895         * timezone/backward: Likewise.
6896         * timezone/europe: Likewise.
6897         * timezone/iso3166.tab: Likewise.
6898         * timezone/leapseconds: Likewise.
6899         * timezone/northamerica: Likewise.
6900         * timezone/southamerica: Likewise.
6901         * timezone/zone.tab: Likewise.
6902
6903         * timezone/private.h: Update from tzcode2007d.
6904         * timezone/zdump.c: Likewise.
6905         * timezone/zic.c: Likewise.
6906
6907 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
6908
6909         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
6910         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
6911         variables.
6912         (nis_server_cache_search, nis_server_cache_add): New functions.
6913         (__nisfind_server): Use them.  Add dbp and flags argument, if
6914         call __nisbind_create.
6915         (__nisbind_create): Add server_used and current_ep arguments,
6916         only call __nis_findfastest if server_used is ~0.
6917         (__do_niscall2, __prepare_niscall): Adjust callers.
6918         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
6919         ckey_cache_euid, ckey_cache_lock): New variables.
6920         (get_ckey): New function.
6921         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
6922         __pmap_getnisport.  Save __pmap_getnisport result in
6923         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
6924         key.
6925         * nis/nis_lookup.c (nis_lookup): Likewise.
6926         * nis/nis_table.c (nis_list): Likewise.
6927         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
6928         prototypes.
6929
6930         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
6931         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
6932         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
6933         _nss_nisplus_getservbyport_r): Likewise.
6934         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
6935         _nss_nisplus_getnetbyaddr_r): Likewise.
6936         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
6937         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
6938         _nss_nisplus_getntohost_r): Likewise.
6939         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
6940         _nss_nisplus_getrpcbynumber_r): Likewise.
6941
6942 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
6943
6944         * configure.in (libc_cv_gnu89_inline): Only do compile test.
6945         * configure: Rebuilt.
6946
6947         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
6948         bit-fields.
6949         * soft-fp/extended.h (_FP_UNION_E): Likewise.
6950
6951 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
6952
6953         [BZ #2831]
6954         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
6955         bit-fields.
6956
6957 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
6958
6959         * nscd/gai.c: Include alloca.h.
6960         (__libc_use_alloca): Define.
6961
6962 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
6963
6964         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
6965         smaller scopes.
6966         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
6967         (DL_DST_REQUIRED): Adjust user.
6968
6969         * include/dlfcn.h (struct link_map): New forward decl.
6970
6971         * inet/getnameinfo.c: Include stddef.h.
6972         (getnameinfo): Use offsetof.
6973
6974         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
6975
6976         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
6977
6978         * string/strerror_l.c: Include stdlib.h.
6979
6980         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
6981         * config.make.in (gnu89-inline-CFLAGS): New variable.
6982         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
6983         -std=gnu99.
6984         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
6985         * argp/argp.h: Use it.
6986         * bits/mathinline.h: Likewise.
6987         * bits/sigset.h: Likewise.
6988         * bits/string.h: Likewise.
6989         * ctype/ctype.h: Likewise.
6990         * hurd/hurd.h: Likewise.
6991         * hurd/hurd/fd.h: Likewise.
6992         * hurd/hurd/port.h: Likewise.
6993         * hurd/hurd/signal.h: Likewise.
6994         * hurd/hurd/threadvar.h: Likewise.
6995         * hurd/hurd/userlink.h: Likewise.
6996         * io/sys/stat.h: Likewise.
6997         * libio/bits/stdio.h: Likewise.
6998         * libio/bits/stdio2.h: Likewise.
6999         * mach/lock-intern.h: Likewise.
7000         * mach/mach/mig_support.h: Likewise.
7001         * math/bits/cmathcalls.h: Likewise.
7002         * posix/bits/unistd.h: Likewise.
7003         * socket/bits/socket2.h: Likewise.
7004         * stdlib/bits/stdlib.h: Likewise.
7005         * stdlib/stdlib.h: Likewise.
7006         * string/argz.h: Likewise.
7007         * string/bits/string2.h: Likewise.
7008         * string/bits/string3.h: Likewise.
7009         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
7010         * sysdeps/generic/inttypes.h: Likewise.
7011         * sysdeps/generic/machine-lock.h: Likewise.
7012         * sysdeps/generic/machine-sp.h: Likewise.
7013         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7014         * sysdeps/i386/i486/bits/string.h: Likewise.
7015         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
7016         * sysdeps/mach/alpha/machine-lock.h: Likewise.
7017         * sysdeps/mach/alpha/machine-sp.h: Likewise.
7018         * sysdeps/mach/i386/machine-lock.h: Likewise.
7019         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
7020         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
7021         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7022         * sysdeps/s390/bits/string.h: Likewise.
7023         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
7024         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7025         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7026         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
7027         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7028         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
7029         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
7030         * wcsmbs/bits/wchar2.h: Likewise.
7031         * wcsmbs/wchar.h: Likewise.
7032         * stdlib/gmp.h: Likewise.  Include <features.h> to get
7033         __extern_inline definition.
7034
7035 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
7036
7037         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
7038         NULL.
7039
7040         [BZ #3919]
7041         * math/libm-test.inc (log_test): Test -Inf and NaN.
7042         (log10_test, log1p_test, log2_test): Test -Inf.
7043         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
7044         FE_INVALID when argument is qNaN.
7045         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
7046         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
7047         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
7048         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
7049         andb $1, %ah with testb $1, %ah, don't test for parity, instead
7050         testb $4, %ah and jump if non-zero.
7051         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
7052         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
7053
7054         [BZ #4101]
7055         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
7056         ancestors with the same depths.
7057         Patch by Niels Moeller <nisse@lysator.liu.se>.
7058         (filter_doc): Don't crash if argp is NULL.
7059         * argp/Makefile (tests): Add tst-argp2.
7060         * argp/tst-argp2.c: New test.
7061
7062         [BZ #4130]
7063         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
7064         open_not_cancel_2.
7065         (updwtmp_file): Likewise.
7066
7067         [BZ #4181]
7068         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
7069         (inet6_opt_append): Don't check extlen is big enough if extbuf
7070         is NULL.
7071         (inet6_opt_finish): Likewise.
7072         * inet/Makefile (tests): Add test-inet6_opt.
7073         * inet/test-inet6_opt.c: New test.
7074
7075         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
7076         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
7077         NLMSG_ERR.  Instead use a page sized buffer.
7078         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
7079         buffer.
7080
7081 2007-03-14  Richard Henderson  <rth@redhat.com>
7082
7083         * sysdeps/alpha/fpu/s_llround.c: New file.
7084         * sysdeps/alpha/fpu/s_llroundf.c: New file.
7085         * sysdeps/alpha/fpu/s_lround.c: New file.
7086         * sysdeps/alpha/fpu/s_lroundf.c: New file.
7087         * sysdeps/alpha/fpu/s_round.c: New file.
7088         * sysdeps/alpha/fpu/s_roundf.c: New file.
7089         * sysdeps/alpha/fpu/s_trunc.c: New file.
7090         * sysdeps/alpha/fpu/s_truncf.c: New file.
7091
7092         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
7093         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
7094         * sysdeps/alpha/fpu/s_floor.c: Likewise.
7095         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
7096         * sysdeps/alpha/fpu/s_rint.c: Likewise.
7097         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7098
7099         * sysdeps/alpha/fpu/s_fmax.S: New file.
7100         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
7101         * sysdeps/alpha/fpu/s_fmin.S: New file.
7102         * sysdeps/alpha/fpu/s_fminf.S: New file.
7103         * sysdeps/alpha/fpu/s_isnan.c: New file.
7104         * sysdeps/alpha/fpu/s_isnanf.c: New file.
7105         * sysdeps/alpha/fpu/s_llrint.c: New file.
7106         * sysdeps/alpha/fpu/s_llrintf.c: New file.
7107         * sysdeps/alpha/fpu/s_lrint.c: New file.
7108         * sysdeps/alpha/fpu/s_lrintf.c: New file.
7109         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
7110         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
7111
7112         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
7113         (__fdimf, fdimf, __fdim, fdim): Remove.
7114         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
7115         (__isnanf, __isnan, __isnanl): New.
7116
7117 2007-03-13  Richard Henderson  <rth@redhat.com>
7118
7119         * sysdeps/ieee754/ldbl-128/Makefile: New file.
7120
7121 2007-03-13  Richard Henderson  <rth@redhat.com>
7122
7123         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
7124         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
7125         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
7126         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
7127         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
7128         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
7129
7130 2007-03-13  Richard Henderson  <rth@redhat.com>
7131
7132         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
7133         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
7134         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
7135         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
7136         Move to dl-auxv.h; initialize instead of extern weak.
7137         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
7138         weak symbol.
7139         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
7140         Extern instead of initialized.
7141
7142 2007-03-13  Richard Henderson  <rth@redhat.com>
7143
7144         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
7145         __sigsuspend_nocancel.
7146
7147 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
7148
7149         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
7150         172.16/12 address range.
7151
7152 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
7153
7154         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
7155         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
7156         message.
7157
7158 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
7159
7160         [BZ #4069]
7161         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
7162         earlier.
7163         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
7164
7165         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
7166         for x qNaN and y either +-inf or non-integer value.
7167         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
7168         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
7169         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7170
7171 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
7172
7173         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
7174         from sysdep_headers.
7175
7176 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
7177
7178         * time/tzfile.c (find_transition): Instead of a linear search try to
7179         guess the transition index, use a linear search if the result is at
7180         most 10 transitions away from the guess or binary search otherwise.
7181
7182 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
7183
7184         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7185         memory reallocation.
7186
7187 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
7188
7189         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7190         and fix some typos.
7191         Optimize use of TOLOWER.
7192
7193         [BZ #3325]
7194         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7195         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7196         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7197
7198         [BZ #3458]
7199         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7200         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7201
7202         [BZ #4076]
7203         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7204         (open_dir_stream): Likewise.
7205         * io/Makefile (tests): Add bug-ftw5.
7206         * io/bug-ftw5.c: New file.
7207
7208         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7209         * nscd/servicescache.c (cache_addserv): Likewise.
7210
7211         * nscd/grpcache.c (cache_addgr): In case a record changed on
7212         refresh, adjust key_copy.
7213
7214         [BZ #4074]
7215         * nscd/pwdcache.c (cache_addpw): In case a record changed on
7216         refresh, adjust key_copy.
7217
7218         [BZ #4070]
7219         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
7220         special cases.
7221         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
7222
7223 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
7224
7225         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7226         optimization.
7227
7228         * stdio-common/vfscanf.c: Small cleanups throughout.
7229
7230 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
7231
7232         [BZ #3325]
7233         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7234         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7235         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7236         Patch by Jared Casper <jaredcasper@gmail.com>.
7237
7238         * sysdeps/unix/closedir.c: Outside libc don't use locking.
7239         * sysdeps/unix/opendir.c: Likewise.
7240         * sysdeps/unix/readdir.c: Likewise.
7241
7242         [BZ #2211]
7243         * stdio-common/vfscanf.c: Handle localized digits etc for floating
7244         point numbers.
7245         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7246
7247         * stdio-common/vfscanf.c: Fix problems in width accounting.
7248         * stdio-common/tst-sscanf.c (double_tests): New tests.
7249         (main): Hook them up.
7250
7251         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
7252         More simplifications of floating-point reader.
7253
7254         * stdio-common/Makefile (tests): Add tst-swscanf.
7255         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7256         testing.
7257         * stdio-common/tst-swscanf.c: New file.
7258
7259 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
7260
7261         [BZ #2633]
7262         * libio/stdio.h: Define struct _IO_FILE in global namespace.
7263         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7264         Remove using for __jmp_buf_tag.
7265         * locale/locale.h (struct lconv): Also define in std namespace.
7266         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7267
7268         [BZ #3842]
7269         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7270         using __libc_enable_secure.
7271
7272         [BZ #3818]
7273         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7274
7275         [BZ #3745]
7276         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7277         of names for ellipsises.
7278
7279         [BZ #3348]
7280         * malloc/memusage.sh: Cleanups.
7281         * debug/xtrace.sh: Quoting and trap changes.
7282
7283 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
7284
7285         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7286
7287         * locale/iso-3166.def: Update entry for Serbia.
7288         * locale/iso-4217.def: Define RSD, remove CSD.
7289
7290         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7291         and 64-bit operations.
7292
7293         [BZ #4040]
7294         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7295         16-bit operations.
7296
7297         * nscd/nscd.c (parse_opt): One more conversion to use send instead
7298         of writev.
7299
7300 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
7301
7302         [BZ #3991]
7303         * assert/assert.h (assert): Simplify.
7304         (assert_perror): Likewise.
7305         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7306
7307         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7308         reqdata.
7309
7310         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7311         change: don't pass NULL in place of an integer.
7312
7313 2007-02-02  Bruno Haible  <bruno@clisp.org>
7314
7315         [BZ #3954]
7316         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7317         Add mapping for U+327E.
7318         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7319         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7320         mapping of 0xD9 0xE8.
7321         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7322         mapping of U+327E.
7323         Reported by Jungshik Shin <jungshik@google.com>.
7324
7325         [BZ #3955]
7326         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7327         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7328         Reported by Jungshik Shin <jungshik@google.com>.
7329
7330 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
7331
7332         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7333         byte variants.
7334
7335         [BZ #4040]
7336         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7337         byte variants.  Patch mostly be tom@tommay.net.
7338
7339 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
7340
7341         [BZ #3996]
7342         * posix/glob.c (attribute_hidden): Define if not defined.
7343         (glob): Unescape dirname, filename or username when needed and not
7344         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
7345         is NULL.  Handle unescaped [ in pattern without closing ].
7346         Don't pass GLOB_CHECK down to recursive glob for directories.
7347         (__glob_pattern_type): New function.
7348         (__glob_pattern_p): Implement using __glob_pattern_type.
7349         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7350         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7351         Remove unreachable code.
7352         * posix/globtest.sh: Add a couple of new tests.
7353
7354 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
7355
7356         * po/ru.po: Update from translation team.
7357
7358 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
7359
7360         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7361         to the list of i486+ CPUs.
7362         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7363
7364 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
7365
7366         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7367         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7368         references.
7369
7370 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
7371
7372         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7373
7374         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7375         * resolv/res_mkquery.c: Define __res_nopt.
7376         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7377         try adding EDNS0 record.
7378         * resolv/res_send.c (send_dg): If request failed with FORMERR and
7379         EDNS0 record was send make sure we don't try it again.
7380         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7381         * include/resolv.h: Declare __res_nopt.
7382
7383 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
7384
7385         [BZ #3944]
7386         * time/strptime_l.c (__strptime_internal): Set have_mon for
7387         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
7388         have been computed from tm_yday and tm_year.  Don't crash
7389         in day_of_the_week or day_of_the_year if not have_mon
7390         and tm_mon contains bogus value.
7391         * time/Makefile (tests): Add tst-strptime3.
7392         * time/tst-strptime3.c: New test.
7393
7394 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
7395
7396         [BZ #3957]
7397         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7398         bit for RE_HAT_LISTS_NOT_NEWLINE.
7399         (build_charclass_op): Remove bogus comment.
7400         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7401         * posix/bug-regex27.c: New test.
7402         * posix/bug-regex28.c: New test.
7403
7404 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
7405
7406         * po/sv.po: Update from translation team.
7407
7408 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
7409
7410         * nscd/nscd_helper.c (open_socket): Minor size optimization.
7411
7412 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
7413
7414         * include/locale.h (__uselocale): Add libc_hidden_proto.
7415         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7416
7417         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7418         gettimeofday.
7419
7420 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
7421
7422         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7423         returning.
7424         (PTR_DEMANGLE): Real definition now that it's not the same as
7425         PRT_MANGLE anymore.
7426         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7427
7428         * string/strerror_l.c: New file.
7429         * string/Makefile (routines): Add strerror_l.
7430         * string/string.h: Declare strerror_l.
7431         * string/Versions: Export strerror_l for GLIBC_2.6.
7432
7433 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
7434
7435         * nscd/nscd_helper.c (open_socket): Now takes request type and key
7436         as parameter.  Construct request record.  Try sending request
7437         before the first poll use, it usually succeeds.  Adjust all
7438         callers.
7439         * nscd/nscd-client.h: Define MAXKEYLEN.
7440         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
7441
7442 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
7443
7444         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7445         from return value.
7446         * nscd/nscd_helper.c: Include string.h.
7447         (__nscd_cache_search): Remove const qualifier from return value.
7448         On strict alignment architectures check hash entry and data head
7449         alignment.
7450         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7451         mmapped data during GC cycle contains garbage.  If
7452         __nscd_drop_map_ref fails, decrement mapped->counter when returning
7453         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7454         dropped to 0.
7455         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7456         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7457         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7458         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7459         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7460
7461 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
7462
7463         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7464
7465 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
7466
7467         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7468         names not numbers in cfi_*.
7469
7470 2007-01-26  Andreas Jaeger  <aj@suse.de>
7471
7472         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
7473         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
7474         Correct values of PER_HPUX and PER_OSF4.
7475
7476 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
7477
7478         * elf/dl-minimal.c: Undefine _itoa first.
7479         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7480         * malloc/mtrace.c: Revert last change.
7481         * posix/wordexp.c: Likewise.
7482
7483 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
7484
7485         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7486         and __geode__ to the list of i486+ CPUs.
7487         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7488
7489 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
7490
7491         * stdio-common/_itoa.c: Include <limits.h>.
7492         * stdio-common/_itowa.c: Likewise.
7493
7494 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
7495
7496         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7497         platforms.
7498         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7499         64-bit platforms.
7500         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7501         possible.
7502         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7503         if possible.
7504
7505         [BZ #3902]
7506         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7507         * stdio-common/Makefile (tests): Add bug17.
7508         * stdio-common/bug17.c: New file.
7509
7510 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
7511
7512         * iconvdata/brf.c: New file.
7513         * iconvdata/testdata/BRF: New file.
7514         * iconvdata/testdata/BRF..UTF8: New file.
7515         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7516         * iconvdata/Makefile: Add rules to build BRF.
7517         * iconvdata/TESTS: Add BRF entry.
7518         * iconvdata/gconv-modules: Likewise.
7519         * iconvdata/tst-tables.sh: Likewise.
7520
7521 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
7522
7523         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7524         type `long long int', not `long int'.
7525         (wcstoq): Likewise.
7526
7527 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
7528
7529         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7530         of values on 64-bit platforms which are too large.
7531
7532 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
7533             Joe Kerian  <jkerian@us.us.ibm.com>
7534
7535         [BZ #2749]
7536         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7537         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
7538         (__copysignl): Use signbit() for comparison.
7539         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7540         SET_LDOUBLE_WORDS64.
7541
7542         [BZ #2423, #2749]
7543         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
7544         (__ceill): Remove calls to fegetround(), fesetround().
7545         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7546         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7547         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7548
7549 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
7550
7551         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
7552
7553         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
7554
7555 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
7556
7557         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
7558         demangle pointer.
7559         * csu/libc-start.c: Likewise.
7560
7561 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
7562
7563         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
7564         really work anyway.
7565
7566 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7567
7568         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
7569         users.
7570         (handle_request): Remove unnecessary tests.
7571
7572         * nscd/cache.c (cache_add): Record the failure to add to the cache.
7573
7574 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
7575
7576         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7577         workbits in semi-raw fraction.
7578
7579         * math/test-misc.c: Add new tests.
7580
7581 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
7582
7583         * math/basic-test.c: Include test-skeleton.c.
7584         (TEST_TRUNC): Define.
7585         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7586         (main): Rename to ...
7587         (do_test): ...this.  Run new tests.
7588         (TEST_FUNCTION): Define.
7589
7590 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
7591             Joe Kerian  <jkerian@us.us.ibm.com>
7592
7593         [BZ #2749]
7594         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7595         handling for high words.
7596         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7597         and overflow for infinity.
7598
7599 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7600
7601         * nscd/connections.c (handle_request): Add a __builtin_expect.
7602
7603         * nscd/connections.c (serv2db): Change type into structure which
7604         also says whether this is a request for data.  Renamed to
7605         servinfo.  All users changed.
7606         (handle_request): Much simpler test whether we should search the cache.
7607
7608         * nscd/connections.c (handle_request): Fix thinko in selinux test
7609         invocation.
7610
7611         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7612         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7613         it before getting dl_load_lock and then relock.
7614         (_dl_lookup_symbol_x): Pass flags to add_dependency.
7615         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
7616         case we unlocked the scope.
7617         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
7618         _dl_lookup_symbol_x in case we locked the scope.
7619         (_dl_profile_fixup): Likewise.
7620         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
7621         set DL_LOOKUP_SCOPE_LOCK.
7622
7623 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
7624
7625         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
7626         CFLAGS-getsrvbynpt_r.c.
7627         * nscd/getsrvbynm_r.c: New file.
7628         * nscd/getsrvbypt_r.c: New file.
7629         * nscd/nscd_getserv_r.c: New file.
7630         * nscd/servicescache.c: New file.
7631         * nscd/Makefile (routines): Add nscd_getserv_r.
7632         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
7633         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
7634         CFLAGS-getsrvbypt_r.c.
7635         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
7636         table.  Add entries for services database.
7637         * nscd/connections.c (serv2str): Mark as const.  Add entries for
7638         services database.
7639         (dbs): Add .reset_res and servdb initialization.
7640         (serv2db): Add entries for services database.
7641         (verify_persistent_db): Accept dbnr == servdb.
7642         (invalidate_cache): Rewrite database name recognition to use a table.
7643         Call res_init() if .reset_res is set for database.
7644         (handle_request): Add code to handle services database.
7645         * nscd/gai.c: Don't define __getservbyname_r.
7646         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
7647         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
7648         (serv_response_header): Define.
7649         (struct datahead): Add serv_response_header member.
7650         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
7651         using table.
7652         * nscd/nscd.conf: Add entries for services database.
7653         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
7654         Declare serv_iov_disabled.
7655         Declare addservbyname, readdservbyname, addservbyport, and
7656         readdservbyport.
7657         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
7658         (find_db): Fix error message.
7659         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
7660         __nscd_getservbyname_r, and __nscd_getservbyport_r.
7661         * nscd/selinux.c (perms): Add entries for services database.
7662         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
7663         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
7664
7665         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
7666         * nscd/hstcache.c: Likewise.
7667         * nscd/pwdcache.c: Likewise.
7668
7669         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
7670         computation of keylen.
7671
7672         * include/string.h: Only redefine strndupa if this is really for
7673         libc code.
7674
7675 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
7676
7677         * nscd/nscd_gethst_r.c: Minor cleanups.
7678
7679         * nscd/connections.c (handle_request): Check selinux permissions
7680         for all non-admin commands.
7681
7682         * sysdeps/i386/i486/bits/atomic.h: Define
7683         atomic_compare_and_exchange_val_acq,
7684         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
7685         using __sync_* built-ins for gcc >= 4.1.
7686         * sysdeps/x86_64/bits/atomic.h: Likewise.
7687
7688         [BZ #3840]
7689         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
7690         and .oS.d files.
7691
7692 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
7693
7694         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
7695         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
7696         (do_test): Check errno and exit(0) if ENOSYS.
7697
7698 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7699
7700         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
7701         thousands separators.
7702         * stdlib/Makefile: Add rules to build and run tst-strtod4.
7703         * stdlib/tst-strtod4.c: New test.
7704
7705         [BZ #3855]
7706         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
7707         hexadecimal digit should accept just the initial 0.
7708         * stdlib/tst-strtod2.c (tests): New variable.
7709         (do_test): Run several tests rather than just one.
7710
7711 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7712
7713         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
7714         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
7715
7716 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
7717
7718         * io/fts.c: Make sure fts_cur is always valid after return from
7719         fts_read.
7720         Patch by Miloslav Trmac <mitr@redhat.com>.
7721
7722 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
7723
7724         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
7725         (R_MIPS_NUM): Bump by 1.
7726
7727 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
7728
7729         * posix/execvp.c: Include alloca.h.
7730         (allocate_scripts_argv): Renamed to...
7731         (scripts_argv): ... this.  Don't allocate buffer here nor count
7732         arguments.
7733         (execvp): Use alloca if possible.
7734         * posix/Makefile: Add rules to build and run tst-vfork3 test.
7735         * posix/tst-vfork3.c: New test.
7736
7737 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
7738
7739         * string/Makefile (tst-strxfrm2-ENV): Define.
7740         * stdlib/Makefile (tst-strtod3-ENV): Define.
7741
7742 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
7743
7744         * posix/getconf.c: Update copyright year.
7745         * nss/getent.c: Likewise.
7746         * iconv/iconvconfig.c: Likewise.
7747         * iconv/iconv_prog.c: Likewise.
7748         * elf/ldconfig.c: Likewise.
7749         * catgets/gencat.c: Likewise.
7750         * csu/version.c: Likewise.
7751         * elf/ldd.bash.in: Likewise.
7752         * elf/sprof.c (print_version): Likewise.
7753         * locale/programs/locale.c: Likewise.
7754         * locale/programs/localedef.c: Likewise.
7755         * nscd/nscd.c (print_version): Likewise.
7756         * debug/xtrace.sh: Likewise.
7757         * malloc/memusage.sh: Likewise.
7758         * malloc/mtrace.pl: Likewise.
7759         * debug/catchsegv.sh: Likewise.
7760
7761 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
7762
7763         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
7764         attempts.
7765
7766 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
7767
7768         * posix/wordexp.c: Remove some unnecessary tests.
7769
7770 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
7771
7772         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
7773         blacklist the group till after we look it up.
7774
7775 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
7776
7777         * include/atomic.h (atomic_forced_read): New macro.
7778
7779 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
7780
7781         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
7782
7783 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
7784
7785         * nss/getXXbyYY_r.c: Include atomic.h.
7786         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
7787         add atomic_write_barrier () in between.
7788
7789         * stdlib/Makefile (tests): Add tst-makecontext.
7790         * stdlib/tst-makecontext.c: New test.
7791
7792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
7793         (__makecontext): Don't realign uc_mcontext.uc_regs.
7794
7795 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
7796
7797         * elf/dl-support.c: Include dl-procinfo.h.
7798         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
7799         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
7800         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
7801         Define.
7802         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
7803         hardcoded constants.
7804         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
7805         PPC_PLATFORM_* macros for array designators.
7806
7807 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
7808
7809         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
7810         names to the beginning.
7811         (_dl_powerpc_platforms): Add "power6x".
7812         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
7813         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
7814         (_DL_PLATFORMS_COUNT): Increase.
7815         (_dl_string_platform): Handle power6x case.
7816         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
7817         PPC_FEATURE_POWER6_EXT): Define.
7818         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
7819
7820 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
7821
7822         [BZ #3747]
7823         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
7824         [-2^31 .. 2^31) range.
7825         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
7826         targets.
7827         * stdlib/tst-rand48-2.c: New test.
7828         * stdlib/Makefile (tests): Add tst-rand48-2.
7829
7830 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
7831
7832         * misc/tst-pselect.c (do_test): Fix sigblock argument.
7833
7834 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
7835
7836         * misc/tst-pselect.c (do_test): Make sure the helper process is
7837         terminating when the test is aborted.
7838
7839 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
7840
7841         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
7842         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7843         Handle relatime mount option.
7844
7845         [BZ #2337]
7846         * libio/Makefile (tests): Add tst-setvbuf1.
7847         * libio/tst-setvbuf1.c: New file.
7848
7849 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
7850
7851         [BZ #2337]
7852         * libio/genops.c (__uflow): Fix a typo.
7853         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
7854         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
7855         the narrow buffer size.
7856
7857 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
7858
7859         [BZ #2337]
7860         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
7861         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
7862         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
7863         in _flags.
7864         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
7865         _IO_wstr_finish): Likewise.
7866         * libio/wmemstream.c (open_wmemstream): Likewise.
7867         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
7868         even for wide streams.
7869
7870 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
7871
7872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
7873         kernel-features.h.
7874
7875 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
7876
7877         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
7878         separators also if no non-zero digits found.
7879         * stdlib/Makefile (tests): Add tst-strtod3.
7880
7881 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
7882
7883         [BZ #3632]
7884         * include/features.h: Fix comment about default value for
7885         _POSIX_C_SOURCE.
7886
7887         [BZ #3664]
7888         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
7889         empty parsed strings.
7890         * stdlib/Makefile (tests): Add tst-strtod2.
7891         * stdlib/tst-strtod2.c: New file.
7892
7893         [BZ #3673]
7894         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
7895         computation.
7896         * stdlib/Makefile (tests): Add tst-atof2.
7897         * stdlib/tst-atof2.c: New file.
7898
7899         [BZ #3674]
7900         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
7901         correctly if removing trailing zero of hex-float.
7902         * stdlib/Makefile (tests): Add tst-atof1.
7903         * stdlib/tst-atof1.c: New file.
7904
7905 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
7906
7907         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
7908         Start searching for next comma at p rather than rest.
7909         * misc/Makefile (tests): Add tst-mntent2.
7910         * misc/tst-mntent2.c: New test.
7911
7912         * misc/getusershell.c (initshells): Check for integer overflows.
7913         Make strings buffer one bigger as fgets always succeeds when second
7914         argument is 1.  Don't use calloc for shells array.  Disallow
7915         / as shell.
7916
7917 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
7918
7919         * malloc/memusage.c: Handle realloc with new size of zero and
7920         non-NULL pointer correctly.
7921         (me): Really write first record twice.
7922         (struct entry): Make format bi-arch safe.
7923         (dest): Write out more realloc statistics.
7924         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
7925
7926 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
7927
7928         * nis/nis_subr.c (nis_getnames): Revert last change.
7929
7930 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
7931
7932         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
7933         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
7934         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
7935         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
7936         ENOTTY.
7937         * io/Makefile: Add rules to build and run tst-ttyname_r test.
7938         * io/tst-ttyname_r.c: New test.
7939
7940 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7941
7942         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
7943
7944 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
7945
7946         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
7947         jump table entries.
7948
7949 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
7950
7951         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
7952         `clone' function to ensure proper unwinding stop of gdb.
7953         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
7954
7955 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
7956
7957         * nscd/nscd.init: Remove obsolete and commented-out -S option
7958         handling.
7959
7960 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
7961
7962         [BZ #3514]
7963         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
7964
7965         [BZ #3515]
7966         * manual/string.texi (strtok): Remove duplicate paragraph.
7967
7968 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
7969
7970         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
7971         libgcc not supporting `rflags' unwinding (register # >= 17).
7972
7973 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
7974
7975         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
7976         succeeded.
7977
7978 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
7979             Jakub Jelinek  <jakub@redhat.com>
7980             Jan Kratochvil  <jan.kratochvil@redhat.com>
7981
7982         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
7983         unwind information.
7984         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
7985         'restore_rt' even in the 'signal' directory.
7986         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
7987
7988 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
7989
7990         [BZ #3559]
7991         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
7992         malloc crashed.  Don't allocate memory unnecessarily in each
7993         loop.
7994
7995 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
7996
7997         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
7998
7999 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
8000
8001         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
8002
8003 2006-11-18  Bruno Haible  <bruno@clisp.org>
8004
8005         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
8006         __sysconf only after having tried to call getgroups32.
8007
8008 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
8009
8010         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
8011         addresses for IPv4 queries if they can be mapped.
8012
8013 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
8014
8015         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
8016         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
8017         (signmask): Add .size directive.
8018         (othermask): Add .type directive.
8019
8020 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
8021
8022         * po/nl.po: Update from translation team.
8023
8024         * timezone/zdump.c: Redo fix for BZ #3137.
8025
8026 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
8027
8028         * nss/nss_files/files-alias.c (get_next_alias): Set line back
8029         to first_unused after parsing :include: file.
8030
8031 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8032
8033         * timezone/africa: Update from tzdata2006o.
8034         * timezone/antarctica: Likewise.
8035         * timezone/asia: Likewise.
8036         * timezone/australasia: Likewise.
8037         * timezone/backward: Likewise.
8038         * timezone/europe: Likewise.
8039         * timezone/iso3166.tab: Likewise.
8040         * timezone/northamerica: Likewise.
8041         * timezone/southamerica: Likewise.
8042         * timezone/zone.tab: Likewise.
8043
8044         * time/tzfile.c (__tzfile_read): Extend to handle new file format
8045         on machines with 64-bit time_t.
8046
8047         * timezone/checktab.awk: Update from tzcode2006o.
8048         * timezone/ialloc.c: Likewise.
8049         * timezone/private.h: Likewise.
8050         * timezone/scheck.c: Likewise.
8051         * timezone/tzfile.h: Likewise.
8052         * timezone/tzselect.ksh: Likewise.
8053         * timezone/zdump.c: Likewise.
8054         * timezone/zic.c: Likewise.
8055
8056         [BZ #3483]
8057         * elf/ldconfig.c (main): Call setlocale and textdomain.
8058         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8059
8060         [BZ #3480]
8061         * manual/argp.texi: Fix typos.
8062         * manual/charset.texi: Likewise.
8063         * manual/errno.texi: Likewise.
8064         * manual/filesys.texi: Likewise.
8065         * manual/lang.texi: Likewise.
8066         * manual/maint.texi: Likewise.
8067         * manual/memory.texi: Likewise.
8068         * manual/message.texi: Likewise.
8069         * manual/resource.texi: Likewise.
8070         * manual/search.texi: Likewise.
8071         * manual/signal.texi: Likewise.
8072         * manual/startup.texi: Likewise.
8073         * manual/stdio.texi: Likewise.
8074         * manual/sysinfo.texi: Likewise.
8075         * manual/syslog.texi: Likewise.
8076         * manual/time.texi: Likewise.
8077         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8078
8079         [BZ #3465]
8080         * sunrpc/clnt_raw.c: Minimal message improvements.
8081         * sunrpc/pm_getmaps.c: Likewise.
8082         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8083         * nis/nis_print_group_entry.c: Likewise.
8084         * locale/programs/repertoire.c: Likewise.
8085         * locale/programs/charmap.c: Likewise.
8086         * malloc/memusage.sh: Likewise.
8087         * elf/dl-deps.c: Likewise.
8088         * locale/programs/ld-collate.c: Likewise.
8089         * libio/vswprintf.c: Likewise.
8090         * malloc/memusagestat.c: Likewise.
8091         * sunrpc/auth_unix.c: Likewise.
8092         * sunrpc/rpc_main.c: Likewise.
8093         * nscd/cache.c: Likewise.
8094         * locale/programs/repertoire.c: Unify output messages.
8095         * locale/programs/charmap.c: Likewise.
8096         * locale/programs/ld-ctype.c: Likewise.
8097         * locale/programs/ld-monetary.c: Likewise.
8098         * locale/programs/ld-numeric.c: Likewise.
8099         * locale/programs/ld-time.c: Likewise.
8100         * elf/ldconfig.c: Likewise.
8101         * nscd/selinux.c: Likewise.
8102         * elf/cache.c: Likewise.
8103         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8104
8105         [BZ #3451]
8106         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
8107         change atomic.
8108         (ceil): Likewise.
8109
8110 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8111
8112         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
8113         if N is one bigger than return value.
8114         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
8115         and l1 last arguments, if buf is defined, verify the return value
8116         equals to strlen (buf) and verify no byte beyond passed length
8117         is modified.
8118
8119 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8120
8121         * po/sv.po: Update from translation team.
8122
8123 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8124
8125         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
8126         noinline attribute.
8127
8128 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8129
8130         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
8131         noinline attribute.
8132
8133         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
8134         Use __new_sys_siglist instead of _sys_siglist_internal as
8135         second macro argument.
8136         (_old_sys_siglist): Use declare_symbol_alias macro instead of
8137         strong_alias.
8138
8139 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8140
8141         [BZ #3493]
8142         * posix/unistd.h (sysconf): Remove const attribute.
8143
8144         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
8145         temporary or deprecated addresses.
8146         Patch by Sridhar Samudrala <sri@us.ibm.com>.
8147
8148         * string/Makefile (tests): Add tst-strxfrm2.
8149         * string/tst-strxfrm2.c: New file.
8150
8151 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
8152
8153         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
8154         rather than r->r_brk.
8155
8156 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
8157
8158         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
8159         optimization even if needed > n.
8160
8161         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
8162         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
8163         return false, otherwise return true.
8164         (cache_rpath): Return decompose_rpath return value.
8165
8166 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
8167
8168         * include/libc-symbols.h (declare_symbol): Rename to...
8169         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
8170         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
8171         .size directive.
8172         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
8173         changes.
8174         * sysdeps/gnu/siglist.c: Likewise.
8175
8176 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
8177
8178         * sysdeps/powerpc/fpu/bits/mathinline.h
8179         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8180         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
8181
8182 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
8183
8184         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8185         Update handling of cache descriptor 0x49 for new models.
8186         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8187         Likewise.
8188
8189 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
8190
8191         * malloc/memusage.c (dest): Reset not_me back to false after
8192         printing statistics.
8193
8194 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
8195
8196         * configure.in: Work around ld --help change and avoid -z relro
8197         test completely if the architecture doesn't care about security.
8198
8199 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
8200
8201         * po/sv.po: Update from translation team.
8202
8203 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
8204
8205         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8206         generate compatibility version.
8207
8208 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
8209
8210         * configure.in: Relax -z relro requirement a bit.
8211
8212         * po/sv.po: Update from translation team.
8213
8214 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
8215
8216         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8217         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8218         * elf/dl-close.c (_dl_close_worker): Likewise.
8219         * elf/dl-open.c (_dl_open_worker): Likewise.
8220         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8221
8222 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
8223
8224         * configure.in: Require assembler support for visibility, compiler
8225         support for visibility and aliases, linker support for various -z
8226         options.
8227         * Makeconfig: Remove conditional code which now is unnecessary.
8228         * config.h.in: Likewise.
8229         * config.make.in: Likewise.
8230         * dlfcn/Makefile: Likewise.
8231         * elf/Makefile: Likewise.
8232         * elf/dl-load.c: Likewise.
8233         * elf/rtld.c: Likewise.
8234         * include/libc-symbols.h: Likewise.
8235         * include/stdio.h: Likewise.
8236         * io/Makefile: Likewise.
8237         * io/fstat.c: Likewise.
8238         * io/fstat64.c: Likewise.
8239         * io/fstatat.c: Likewise.
8240         * io/fstatat64.c: Likewise.
8241         * io/lstat.c: Likewise.
8242         * io/lstat64.c: Likewise.
8243         * io/mknod.c: Likewise.
8244         * io/mknodat.c: Likewise.
8245         * io/stat.c: Likewise.
8246         * io/stat64.c: Likewise.
8247         * libio/stdio.c: Likewise.
8248         * nscd/Makefile: Likewise.
8249         * stdlib/Makefile: Likewise.
8250         * stdlib/atexit.c: Likewise.
8251         * sysdeps/generic/ldsodefs.h: Likewise.
8252         * sysdeps/i386/dl-machine.h: Likewise.
8253         * sysdeps/i386/sysdep.h: Likewise.
8254         * sysdeps/i386/i686/memcmp.S: Likewise.
8255         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8256         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8257         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8258
8259         * Makerules: USE_TLS support is now default.
8260         * tls.make.c: Likewise.
8261         * csu/Versions: Likewise.
8262         * csu/libc-start.c: Likewise.
8263         * csu/libc-tls.c: Likewise.
8264         * csu/version.c: Likewise.
8265         * dlfcn/dlinfo.c: Likewise.
8266         * elf/dl-addr.c: Likewise.
8267         * elf/dl-cache.c: Likewise.
8268         * elf/dl-close.c: Likewise.
8269         * elf/dl-iteratephdr.c: Likewise.
8270         * elf/dl-load.c: Likewise.
8271         * elf/dl-lookup.c: Likewise.
8272         * elf/dl-object.c: Likewise.
8273         * elf/dl-open.c: Likewise.
8274         * elf/dl-reloc.c: Likewise.
8275         * elf/dl-support.c: Likewise.
8276         * elf/dl-sym.c: Likewise.
8277         * elf/dl-sysdep.c: Likewise.
8278         * elf/dl-tls.c: Likewise.
8279         * elf/ldconfig.c: Likewise.
8280         * elf/rtld.c: Likewise.
8281         * elf/tst-tls-dlinfo.c: Likewise.
8282         * elf/tst-tls1.c: Likewise.
8283         * elf/tst-tls10.h: Likewise.
8284         * elf/tst-tls14.c: Likewise.
8285         * elf/tst-tls2.c: Likewise.
8286         * elf/tst-tls3.c: Likewise.
8287         * elf/tst-tls4.c: Likewise.
8288         * elf/tst-tls5.c: Likewise.
8289         * elf/tst-tls6.c: Likewise.
8290         * elf/tst-tls7.c: Likewise.
8291         * elf/tst-tls8.c: Likewise.
8292         * elf/tst-tls9.c: Likewise.
8293         * elf/tst-tlsmod1.c: Likewise.
8294         * elf/tst-tlsmod13.c: Likewise.
8295         * elf/tst-tlsmod13a.c: Likewise.
8296         * elf/tst-tlsmod14a.c: Likewise.
8297         * elf/tst-tlsmod2.c: Likewise.
8298         * elf/tst-tlsmod3.c: Likewise.
8299         * elf/tst-tlsmod4.c: Likewise.
8300         * elf/tst-tlsmod5.c: Likewise.
8301         * elf/tst-tlsmod6.c: Likewise.
8302         * include/errno.h: Likewise.
8303         * include/link.h: Likewise.
8304         * include/tls.h: Likewise.
8305         * locale/global-locale.c: Likewise.
8306         * locale/localeinfo.h: Likewise.
8307         * malloc/arena.c: Likewise.
8308         * malloc/hooks.c: Likewise.
8309         * malloc/malloc.c: Likewise.
8310         * resolv/Versions: Likewise.
8311         * sysdeps/alpha/dl-machine.h: Likewise.
8312         * sysdeps/alpha/libc-tls.c: Likewise.
8313         * sysdeps/generic/ldsodefs.h: Likewise.
8314         * sysdeps/generic/tls.h: Likewise.
8315         * sysdeps/i386/dl-machine.h: Likewise.
8316         * sysdeps/ia64/dl-machine.h: Likewise.
8317         * sysdeps/ia64/libc-tls.c: Likewise.
8318         * sysdeps/mach/hurd/fork.c: Likewise.
8319         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8320         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8321         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8322         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8323         * sysdeps/s390/libc-tls.c: Likewise.
8324         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8325         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8326         * sysdeps/sh/dl-machine.h: Likewise.
8327         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8328         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8329         * sysdeps/x86_64/dl-machine.h: Likewise.
8330
8331         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8332         split out locking and parameter checking.
8333         (_dl_close): Call _dl_close_worker after locking and checking.
8334         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8335         _dl_close.
8336         * elf/Makefile: Add rules to build and run tst-thrlock.
8337         * elf/tst-thrlock.c:  New file.
8338
8339         [BZ #3426]
8340         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8341         reality.
8342
8343         [BZ #3429]
8344         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
8345         we are sure we do not need it anymore for _dl_close.  Also move
8346         the asserts inside the lock region.
8347         Patch mostly by Suzuki <suzuki@in.ibm.com>.
8348
8349 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
8350
8351         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8352         argument.
8353         (_dl_lookup_symbol_x): Adjust caller.
8354
8355         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8356         _ns_global_scope.
8357         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8358
8359         * elf/dl-libc.c: Revert l_scope name changes.
8360         * elf/dl-load.c: Likewise.
8361         * elf/dl-object.c: Likewise.
8362         * elf/rtld.c: Likewise.
8363         * elf/dl-close.c (_dl_close): Likewise.
8364         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
8365         always use __rtld_mrlock_{change,done}.  Always free old scope list
8366         here if not l_scope_mem.
8367         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8368         change.  Never free scope list here.  Just __rtld_mrlock_lock before
8369         the lookup and __rtld_mrlock_unlock it after the lookup.
8370         * elf/dl-sym.c: Likewise.
8371         * include/link.h (struct r_scoperec): Remove.
8372         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8373         with l_scope_mem and l_scoperec_lock with l_scope_lock.
8374
8375 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
8376
8377         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8378
8379 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8380
8381         * configure.in: Disable building profile libraries by default.
8382
8383 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8384
8385         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8386         as signed longs, check for x_base + pos overflow.
8387         * sunrpc/Makefile (tests): Add tst-xdrmem2.
8388         * sunrpc/tst-xdrmem2.c: New test.
8389
8390 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8391
8392         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8393         _dl_lookup_symbol_x code.
8394
8395 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8396
8397         * elf/dl-runtime.c: Include sysdep-cancel.h.
8398         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8399         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
8400         instead of catomic_* macros.
8401         * elf/dl-sym.c: Include sysdep-cancel.h.
8402         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8403         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8404         * elf/dl-close.c: Include sysdep-cancel.h.
8405         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8406         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8407         * elf/dl-open.c: Include sysdep-cancel.h.
8408         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8409         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8410
8411 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8412
8413         [BZ #3313]
8414         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8415         fastbin rather than end of fastbin array.
8416
8417 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8418
8419         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8420         body macro.
8421         * sysdeps/x86_64/bits/atomic.h
8422         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8423         (catomic_decrement): Use correct body macro.
8424
8425 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8426
8427         * include/atomic.h: Add a unique prefix to all local variables
8428         in macros.
8429         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8430
8431 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
8432
8433         [BZ #3369]
8434         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8435         and 7.
8436
8437 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
8438
8439         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8440
8441 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
8442
8443         [BZ #3313]
8444         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8445         determine highest fast bin to consolidate, always look into all of
8446         them.
8447         (do_check_malloc_state): Only require for empty bins for large
8448         sizes in main arena.
8449
8450         * libio/stdio.h: Add more __wur attributes.
8451
8452         * elf/dl-minimal.c (realloc): Optimize last patch.
8453
8454 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
8455
8456         [BZ #3352]
8457         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8458         and use memcpy() if it does.
8459
8460 2006-11-12  Andreas Jaeger  <aj@suse.de>
8461
8462         [BZ #2510]
8463         * manual/search.texi (Hash Search Function): Clarify.
8464         (Array Search Function): Clarify.
8465
8466 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
8467
8468         [BZ #2830]
8469         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8470         shifting.
8471         * math/atest-exp2.c (read_mpn_hex): Likewise.
8472         * math/atest-sincos.c (main): Likewise.
8473
8474 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8475
8476         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8477         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8478         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8479         version GLIBC_2.6.
8480         * Versions.def: Add GLIBC_2.6 for libc.
8481
8482         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8483
8484         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8485
8486 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
8487
8488         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8489
8490         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8491
8492         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8493         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8494
8495 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8496
8497         * include/atomic.c: Define catomic_* operations.
8498         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
8499         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8500         * malloc/memusage.c: Likewise.
8501         * gmon/mcount.c: Likewise.
8502         * elf/dl-close.c: Likewise.
8503         * elf/dl-open.c: Likewise.
8504         * elf/dl-profile.c: Likewise.
8505         * elf/dl-sym.c: Likewise.
8506         * elf/dl-runtime.c: Likewise.
8507         * elf/dl-fptr.c: Likewise.
8508         * resolv/res_libc.c: Likewise.
8509
8510 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
8511
8512         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8513         components which lack them.
8514
8515         * nis/nis_subr.c (nis_getnames): Make sure that we always return
8516         at least one entry consisting of the parameter concatenated with
8517         the domain.
8518
8519 2006-10-10  Roland McGrath  <roland@frob.com>
8520
8521         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8522         * sysdeps/mach/hurd/futimes.c: Likewise.
8523         * sysdeps/mach/hurd/lutimes.c: Likewise.
8524
8525 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
8526             Jakub Jelinek  <jakub@redhat.com>
8527
8528         Implement reference counting of scope records.
8529         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8530         from the list in objects which remain.  Always allocate new scope
8531         record.
8532         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8533         don't resize, allocate a new one.
8534         * elf/dl-runtime.c: Update reference counters before using a scope
8535         array.
8536         * elf/dl-sym.c: Likewise.
8537         * elf/dl-libc.c: Adjust for l_scope name change.
8538         * elf/dl-load.c: Likewise.
8539         * elf/dl-object.c: Likewise.
8540         * elf/rtld.c: Likewise.
8541         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
8542         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
8543         Add l_scoperec_lock.
8544         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
8545         * sysdeps/generic/rtld-lowlevel.h: New file.
8546
8547         * include/atomic.h: Rename atomic_and to atomic_and_val and
8548         atomic_or to atomic_or_val.  Define new macros atomic_and and
8549         atomic_or which do not return values.
8550         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
8551         Various cleanups.
8552         * sysdeps/i386/i486/bits/atomic.h: Likewise.
8553
8554         * po/sv.po: Update from translation team.
8555
8556 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
8557
8558         * Versions.def: Add GLIBC_2.6 to libpthread.
8559
8560         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
8561         (versioned_symbol): Likewise.
8562         (compat_symbol): Likewise.
8563
8564         * po/tr.po: Update from translation team.
8565
8566 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8567
8568         * nis/Banner: Removed.  It's been integral part forever and the
8569         author info is incomplete anyway.
8570         * libio/Banner: Likewise.
8571
8572         * nis/nis_table.c (nis_list): If __follow_path fails in the new
8573         code, make sure the nis_freeresult call doesn't crash and that the
8574         result is reported correctly.
8575
8576 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
8577
8578         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8579         when callback is NULL.
8580
8581         * nis/Versions (libnss_nisplus): Add
8582         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8583         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8584         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8585         _nss_create_tablename): Rename to...
8586         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8587         ... these.  No longer static.
8588         (internal_setgrent): Adjust users.
8589         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8590         Don't use locking around _nss_grp_create_tablename call.
8591         * nis/nss_nisplus/nisplus-initgroups.c: New file.
8592
8593 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8594
8595         * version.h (VERSION): Bump to 2.5.90 for new development tree.
8596
8597 2006-10-06  Andreas Jaeger  <aj@suse.de>
8598
8599         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8600
8601 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8602
8603         * po/pl.po: Update from translation team.
8604
8605         * nscd/nscd.c (main): Fix typo in message.
8606         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
8607
8608 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8609
8610         [BZ #3291]
8611         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8612         errno.h, signal.h, unistd.h and sysdep-cancel.h.
8613         (__sigprocmask): Define.
8614
8615 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
8616
8617         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
8618         used.
8619
8620 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8621
8622         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
8623         in oldtotal and newtotal calculation.
8624         * nscd/nscd-client.h (struct mapped_database): Add datasize
8625         field.
8626         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
8627         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
8628         increased.
8629         (__nscd_cache_search): Add checks to make sure we never reference
8630         data beyond the current mapping.
8631
8632 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
8633
8634         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
8635         variables const to avoid compiler warnings.
8636
8637         * io/fts.c (fts_close): Remove redundant checks.
8638         (fts_build): Likewise.
8639         (fts_palloc): Likewise.
8640
8641         * manual/message.texi (Advanced gettext functions,
8642         Using gettextized software): Fix typos.
8643
8644 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
8645
8646         * posix/glob.c (glob_in_dir): Add some comments and asserts to
8647         explain why there are no leaks.
8648
8649 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
8650
8651         * libio/wmemstream.c: Include <wchar.h>.
8652         * libio/bug-wmemstream1.c: Likewise.
8653         * libio/tst-wmemstream1.c: Likewise.
8654         * libio/tst-wmemstream2.c: Likewise.
8655
8656         * version.h (RELEASE): Bump to 2.5.
8657         * README: Regenerated.
8658
8659         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
8660
8661         [BZ #3273]
8662         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
8663         found no group members.
8664         Patch by Petr Baudis.
8665
8666 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
8667
8668         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
8669         assert bootstrap_map.l_tls_modid is zero.
8670         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
8671         if USE___THREAD.
8672
8673 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
8674
8675         * libio/stdio.h: Move open_wmemstream prototype to ...
8676         * wcsmbs/wchar.h: ... here.
8677
8678 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
8679
8680         [BZ #3252]
8681         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
8682         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
8683         __{,l}chown to handle the rest.
8684         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
8685         fchownat syscall and __ASSUME_32BITUIDS case inline, call
8686         __{,l}chown to handle the rest.
8687         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
8688         i386/fchownat.c.
8689         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
8690         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
8691
8692         [BZ #3253]
8693         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8694         time, rather allocate increasingly bigger arrays of pointers, if
8695         possible with alloca, if too large with malloc.
8696
8697 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
8698
8699         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
8700
8701         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
8702
8703 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
8704
8705         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
8706         home addresses.
8707         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
8708         IFA_F_HOMEADDRESS flag for interfaces.
8709         * include/ifaddrs.h (struct in6addrinfo): Define
8710         in6ai_homeaddress.
8711
8712 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
8713
8714         [BZ #3225]
8715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
8716         PTR_DEMANGLE3): Define.
8717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
8718         PTR_DEMANGLE3): Likewise.
8719         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
8720         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
8721         Likewise.
8722         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8723
8724 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
8725
8726         * po/libc.pot: Regenerated.
8727         * po/be.po: Updated.
8728         * po/ca.po: Likewise.
8729         * po/cs.po: Likewise.
8730         * po/da.po: Likewise.
8731         * po/de.po: Likewise.
8732         * po/el.po: Likewise.
8733         * po/en_GB.po: Likewise.
8734         * po/es.po: Likewise.
8735         * po/fi.po: Likewise.
8736         * po/fr.po: Likewise.
8737         * po/gl.po: Likewise.
8738         * po/hr.po: Likewise.
8739         * po/hu.po: Likewise.
8740         * po/ja.po: Likewise.
8741         * po/ko.po: Likewise.
8742         * po/nb.po: Likewise.
8743         * po/nl.po: Likewise.
8744         * po/pl.po: Likewise.
8745         * po/pt_BR.po: Likewise.
8746         * po/ru.po: Likewise.
8747         * po/rw.po: Likewise.
8748         * po/sk.po: Likewise.
8749         * po/sv.po: Likewise.
8750         * po/tr.po: Likewise.
8751         * po/zh_CN.po: Likewise.
8752         * po/zh_TW.po: Likewise.
8753
8754         [BZ #3137]
8755         * iconv/iconv_prog.c (main): Fix spelling in error message.
8756         * iconv/iconvconfig.c (main): Likewise.
8757         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
8758         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
8759         * locale/programs/localedef.c (main): Likewise.
8760         * locale/programs/repertoire.c (repertoire_read): Likewise.
8761         * timezone/zdump.c (main): Likewise.
8762         * nscd/connections.c (handle_request): Fix spelling in log message.
8763         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
8764
8765 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
8766
8767         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
8768         interfaces.
8769
8770 2006-09-20  Andreas Jaeger  <aj@suse.de>
8771
8772         * math/libm-test.inc (lrint_test_upward): Fix typo.
8773
8774 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
8775
8776         [BZ #2592]
8777         * math/libm-test.inc (lrint_test_tonearest): New function.
8778         (lrint_test_towardzero): New function.
8779         (lrint_test_downward): New function.
8780         (lrint_test_upward): New function.
8781         (main): Run these new tests.
8782         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
8783         of values near to 0.
8784         (two52): Use double not long double.
8785         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8786         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8787         (two23): Use float not double.
8788         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8789         (two23): Use float not double.
8790         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8791         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8792         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8793         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8794
8795 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8796
8797         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
8798         Cast sp to unsigned long to avoid compiler warning.
8799         Use __makecontext_ret function instead of a trampoline on the stack.
8800         (__makecontext_ret): New function.
8801         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
8802
8803 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
8804
8805         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
8806         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
8807         bits.
8808
8809 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
8810
8811         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
8812         sure no reference to the unloaded map's search list remains in the
8813         dependency's scope.
8814
8815 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
8816
8817         * elf/Makefile: Add rules to build and run unload7 test.
8818         * elf/unload7.c: New test.
8819         * elf/unload7mod1.c: New file.
8820         * elf/unload7mod2.c: New file.
8821
8822 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
8823
8824         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
8825         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
8826         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8827         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
8828         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8829         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
8830         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8831         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
8832         PTRACE_GETEVENTMSG): Likewise.
8833         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
8834         values.
8835
8836 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
8837
8838         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
8839         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8840         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
8841         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
8842
8843 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
8844
8845         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
8846         write '\0' to the fd.
8847         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
8848         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
8849         Change regs to unsigned long pointer from unsigned int, fix fscr
8850         offset.
8851
8852 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
8853
8854         * io/Makefile (CFLAGS-fstatat.c): Set.
8855         (CFLAGS-fstatat64.c): Likewise.
8856         (CFLAGS-mknodat.c): Likewise.
8857
8858         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
8859         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8860         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
8861         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
8862
8863 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
8864             Steven Munroe  <sjmunroe@us.ibm.com>
8865
8866         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
8867         names to the beginning.  Rename "cell" to "cellbe".
8868         (_dl_powerpc_platforms): New.
8869         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8870         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
8871         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
8872         (_DL_HWCAP_PLATFORM): Define to new mask.
8873         (_dl_platform_string, _dl_string_platform): New functions.
8874         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
8875         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
8876
8877 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
8878
8879         [BZ #2526]
8880         * README.libm: Fix a thinko in sqrt algorithm description.
8881
8882         [BZ #3143]
8883         * manual/string.texi (argz_delete): Fix prototype.
8884         Patch by <alpt@freaknet.org>.
8885
8886 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
8887
8888         [BZ #3138]
8889         * io/test-lfs.c (do_prepare): Give name_len type size_t.
8890         * io/tst-fcntl.c (do_prepare): Likewise.
8891         * posix/tst-exec.c (do_prepare): Likewise.
8892         * posix/tst-preadwrite.c (do_prepare): Likewise.
8893         * posix/tst-spawn.c (do_prepare): Likewise.
8894         * posix/tst-truncate.c (do_prepare): Likewise.
8895         * rt/tst-aio.c (do_prepare): Likewise.
8896         * rt/tst-aio64.c (do_prepare): Likewise.
8897         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
8898         size_t.
8899
8900 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
8901
8902         [BZ #2821]
8903         * time/mktime.c (guess_time_tm): Fix overflow detection.
8904         * time/Makefile (tests): Add bug-mktime1.
8905         * time/bug-mktime1.c: New file.
8906
8907         [BZ #3189, #3188]
8908         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
8909         (mremap): Likewise.
8910
8911 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
8912
8913         [BZ #1006]
8914         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8915         Ensure relocation doesn't clobber any bits outside of the
8916         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
8917         R_SPARC_HI22 and R_SPARC_H44.
8918
8919         [BZ #2775]
8920         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
8921         (long) (MINSIZE + nb - old_size) is positive.
8922
8923         * malloc/arena.c (grow_heap): When growing bail even if new_size
8924         is negative.
8925
8926         [BZ #3155]
8927         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
8928         stack below r1.
8929
8930 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
8931
8932         * posix/regex_internal.c (re_string_reconstruct): Handle
8933         offset < pstr->valid_raw_len && pstr->offsets_needed case.
8934         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
8935         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
8936         re_string_context_at.
8937         * posix/Makefile: Add rules to build and run bug-regex26 test.
8938         * posix/bug-regex26.c: New test.
8939
8940         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
8941         rather than col_sym_free.  Move seqp declaration earlier.
8942
8943         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
8944
8945 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
8946
8947         * nscd/initgrcache.c (addinitgroupsX): Move any_success
8948         decl before first goto out.
8949
8950 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
8951
8952         * Makerules (shlib.lds): If have-hash-style, put .hash section
8953         at the end of the RO segment.
8954
8955 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
8956
8957         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
8958         style hash table format is used.
8959
8960 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
8961
8962         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
8963         randomization rather than before.
8964         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
8965
8966 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
8967
8968         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
8969
8970         * malloc/malloc.c (_int_malloc): Use full list insert and not
8971         shortcut which assumes the list is empty for large requests
8972         too.
8973
8974         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
8975
8976 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
8977
8978         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
8979         and offout arguments to the prototype.
8980         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
8981         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
8982         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
8983         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
8984         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
8985         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
8986         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
8987         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
8988
8989 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
8990
8991         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
8992
8993         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
8994         dlopen parameters.
8995
8996 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
8997
8998         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
8999         only if herrno is NETDB_INTERNAL.  Handle errors other than
9000         ERANGE outside of the loops, handle TRY_AGAIN.
9001
9002         * locale/programs/ld-ctype.c (translit_flatten): Issue error
9003         if other's ctype category was missing.
9004         * locale/programs/ld-collate.c (collate_read): Return if
9005         copy_locale's collate category is missing.
9006
9007 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
9008
9009         [BZ #2684]
9010         * malloc/malloc.c (public_rEALLOc): Try harder by using other
9011         arenas if allocation failed.
9012         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
9013
9014 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
9015
9016         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
9017         waste bins[0..1].
9018         (malloc_state): Reduce bins size by 2.
9019         (_int_malloc): Fix test for large enough buffer for early termination.
9020         When no unsorted block matches perfectly and an exiting block has
9021         to be split, use full list insert and not shortcut which assumes
9022         the list is empty.
9023
9024         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
9025         failure.
9026
9027 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9028
9029         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
9030         do anything.
9031
9032         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
9033         symbol require exact match (these are PLTs).
9034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
9035         (_dl_ppc64_addr_sym_match): Likewise.
9036
9037         [BZ #2683]
9038         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
9039         If symbol has a value use it.
9040         * elf/tst-dladdr1.c: New file.
9041         * elf/Makefile: Add rules to build and run tst-addr1.
9042
9043 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
9044
9045         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
9046         keeps failing and heap growth or new heap creation isn't
9047         successful either.
9048         * malloc/tst-malloc.c (main): Add new tests.
9049
9050 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9051
9052         [BZ #2734]
9053         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
9054         as in the x86-64 code to use bswap.
9055
9056 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
9057
9058         [BZ #2680]
9059         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
9060         __USE_UNIX98.
9061         * posix/bits/unistd.h: Likewise.
9062
9063 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
9064
9065         [BZ #2751]
9066         * string/strchr.c: Add cast to avoid warning.
9067
9068 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9069
9070         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
9071         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
9072         limit is needed to avoid the exploding of the address space
9073         requirement for secondary heaps.
9074         * malloc/arena.c (HEAP_MAX_SIZE): Define using
9075         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
9076
9077 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
9078
9079         [BZ #3018]
9080         * Makerules (depfiles): Handle extra-test-objs the same as
9081         extra-objs.
9082         (common-mostlyclean): Likewise.
9083         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
9084         instead.
9085         * elf/Makefile (extra-objs): Likewise.
9086         * stdlib/Makefile (extra-objs): Likewise.
9087
9088 2006-08-14  Eric Blake  <ebb9@byu.net>
9089
9090         [BZ #3044]
9091         * misc/error.h: Assume C89 or better.
9092         * misc/error.c: Likewise.
9093
9094 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9095
9096         [BZ #3040]
9097         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
9098         __ASSUME_ATFCTS is defined.
9099
9100 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
9101
9102         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
9103         to sort in each call.
9104
9105         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
9106         is empty simply return and use next service.
9107         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
9108
9109         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
9110         tells us when not finding a charmap file is an error.
9111         * locale/programs/charmap.h: Adjust charmap_read prototype.
9112         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
9113         cannot find a charmap.
9114         * locale/programs/localedef.c (main): Adjust charmap_read call.
9115
9116 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
9117
9118         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
9119         sysdeps/posix/pause.c implementation instead.
9120
9121 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
9122
9123         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
9124         to EPERM.
9125
9126 2006-08-13  Andreas Schwab  <schwab@suse.de>
9127
9128         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
9129         Don't clobber caller's LRSAVE.
9130         (_dl_prof_resolve): Likewise.
9131
9132 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
9133
9134         [BZ #1996]
9135         * libio/memstream.c (open_memstream): Allocate initial buffer with
9136         calloc.
9137         * libio/wmemstream.c (open_wmemstream): Likewise.
9138         * libio/strops.c: Pretty printing.
9139         (_IO_str_overflow): Clear uninitialized part of the new buffer.
9140         (enlarge_userbuf): New function.
9141         (_IO_str_seekoff): Call it if seek position is larger than current
9142         buffer.
9143         * libio/wstrops.c: Likewise.
9144         * libio/vasprintf.c: Add comment as to why we do not have to use
9145         calloc instead of malloc to allocate initial buffer.
9146         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
9147         * libio/bug-memstream1.c: New file.
9148         * libio/bug-wmemstream1.c: New file.
9149
9150 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9151
9152         * libio/wstrops.c: Remove dead macro definitions and comments.
9153         * libio/strops.c: Likewise.
9154
9155         [BZ #2764]
9156         * login/utmpname.c (__utmpname): Remove unnecessary test.
9157
9158 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
9159
9160         [BZ #2832]
9161         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
9162         0s from integers.
9163
9164 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9165
9166         [BZ #2987]
9167         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
9168         for CPU clocks.
9169         * sysdeps/unix/clock_settime.c: Add support for platform-specific
9170         setting of CPU clocks.
9171
9172 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9173
9174         [BZ #2841]
9175         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
9176         since C99 requires the result to promote to 'int' when uint_least8_t
9177         and uint_least16_t promote to 'int'.
9178
9179 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
9180
9181         [BZ #3013]
9182         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9183         lenght of one output field, correct bitmask creation.
9184         * locale/programs/ld-time.c: Add alignment.
9185
9186         [BZ #2997]
9187         * misc/error.c: Add space between program name and message if file
9188         name is missing.
9189
9190 2006-08-03  Eric Blake  <ebb9@byu.net>
9191
9192         [BZ #2998]
9193         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9194
9195 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
9196
9197         * malloc/memusagestat.c: Silence warnings.
9198
9199         * malloc/malloc.c: Dynamically size mmap treshold if the program
9200         frees mmaped blocks.
9201         Patch by Valerie Henson and Arjan van de Ven.
9202
9203 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
9204
9205         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9206         __USE_GNU.
9207
9208         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9209         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9210         (DEF): Don't put the var into .gnu.linkonce.r.* section.
9211         Only provide var definitions in strtol_l (or for *ull*
9212         in strtoll_l).
9213
9214         * stdio-common/bug16.c (tests): New array.
9215         (do_tests): Allow the first hexadecimal digit
9216         to be 1, 2, 4 or 8.  Do 3 additional tests.
9217
9218         * sysdeps/s390/fpu/libm-test-ulps: Update.
9219
9220         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9221         fchownat syscall if available.
9222         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9223         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9224         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9225
9226 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9227
9228         * nis/nis_xdr.c: Avoid some function calls.
9229
9230 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
9231             Ulrich Drepper  <drepper@redhat.com>
9232
9233         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9234         short cut if only one name component is stripped away.
9235
9236 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9237
9238         * nis/nis_call.c: Minor cleanups throughout.
9239         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
9240         (first_shoot): Add search_parent_first parameter.  Only if it is set
9241         search parent server first.
9242         If directory for table found through cold start cache is not the same
9243         as referenced in the cache, don't use it.
9244         (__nisfind_server): Take additional parameter.  Pass it on to
9245         first_shoot.
9246         (__prepare_niscall): Adjust __nisfind_server call.
9247         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9248         * nis/nis_table.c: Adjust __nisfind_server call.
9249         * nis/nis_lookup.c: Likewise.
9250         (nis_lookup): Don't loop endlessly if name is reduced to ".".
9251
9252 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
9253
9254         [BZ #2182]
9255         * math/s_cacosh.c: Return values from positive branch.
9256         * math/s_cacoshf.c: Likewise.
9257         * math/s_cacoshl.c: Likewise.
9258
9259         [BZ #2883]
9260         * sysvipc/sys/msg.h: Change return value to ssize_t.
9261         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9262         * sysvipc/msgrcv.c: Likewise.
9263         * include/sys/msg.h: Likewise.
9264
9265         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9266         test introduced in patch for bz #661.
9267         (getgrouplist): Simplify code a bit.  Don't allocate one additional
9268         element for NEWGROUPS.
9269
9270         [BZ #2908]
9271         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9272         'f', use '1' as leading digit not '\1'.
9273         * stdio-common/Makefile (tests): Add bug16.
9274         * stdio-common/bug16.c: New file.
9275
9276         [BZ #2914]
9277         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9278         and don't try to open it.  The patch introducing the macro
9279         contained a bug and used the same file name as the new file
9280         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
9281         this out completely.
9282
9283         [BZ #2926]
9284         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9285         Patch by Jerry James <Jerry.James@usu.edu>.
9286
9287         * rt/Makefile (tests): Add tst-clock2.
9288         * rt/tst-clock2.c: New file.
9289
9290         [BZ #2978]
9291         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9292         function and its parameters and pass it to new thread.
9293         (__gai_notify): Add support for alternative waiting for completion.
9294         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9295         waiting for completion.
9296         * resolv/getaddrinfo_a.c: Likewise.
9297         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9298         waiting for completion is used.
9299         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9300         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9301         * resolv/gai_error.c: Likewise.
9302         * resolv/gai_sigqueue.c: Likewise.
9303
9304 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
9305
9306         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
9307         errno to EBADF and return MACH_PORT_NULL.
9308
9309 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
9310
9311         [BZ #2980]
9312         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
9313
9314 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
9315
9316         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9317         walk them instead of the symbol table.
9318
9319 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
9320
9321         [BZ #2098]
9322         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9323         status of NSS calls, not the number of returned entries.
9324
9325         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9326         request_key, keyctl.
9327
9328 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9329
9330         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9331
9332 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
9333
9334         * elf/tst-auditmod1.c: Fix typo in #error.
9335
9336 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9337
9338         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9339
9340         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9341
9342 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
9343
9344         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
9345         that the directory is empty even on non-POSIX filesystems.
9346
9347 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9348
9349         * elf/dl-open.c (dl_open_worker): Add branch prediction.
9350
9351         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9352         the backend NSS module.  If backend setgrent call failed, don't have
9353         internal_setgrent fail.  Just remember this until it is needed.
9354         * nis/nss_compat/compat-pwd.c: Likewise.
9355         * nis/nss_compat/compat-spwd.c: Likewise.
9356
9357 2006-07-30  Roland McGrath  <roland@redhat.com>
9358
9359         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9360         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9361         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9362         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9363
9364         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9365         (nanosleep_not_cancel): New macro.
9366         (sigsuspend_not_cancel): new macro.
9367         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9368         (do_sigsuspend): Define as inline.
9369         (__sigsuspend): Always use do_sigsuspend.
9370         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9371         * include/signal.h: Declare __sigsuspend_nocancel.
9372         * sysdeps/posix/pause.c
9373         [! NO_CANCELLATION] (__pause_nocancel): New function.
9374
9375         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9376         * include/time.h (__nanosleep_nocancel): Likewise.
9377
9378 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
9379
9380         * locale/programs/localedef.c (add_to_readlist): Rename local
9381         variables to avoid confusion.
9382
9383         * locale/programs/charmap.c (charmap_read): Emit error message if
9384         charmap couldn't be found or read.
9385
9386 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
9387
9388         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9389         __ASSUME_FUTEX_LOCK_PI.
9390         * include/time.h: Declare __nanosleep_nocancel.
9391         * include/unistd.h: Declare __pause_nocancel.
9392
9393         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9394         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
9395         get the __stack_chk_fail_local definition when it's needed.
9396
9397 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
9398
9399         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9400         * dlfcn/bug-atexit3.c: New file.
9401         * dlfcn/bug-atexit3-lib.cc: New file.
9402
9403         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9404         used when the namespace is not the base namespace.
9405
9406 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
9407
9408         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9409         (__new_exitfn): Bump it in every successful call.
9410         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9411         more exit handlers, call them right away.
9412         * stdlib/exit.h: Declare __new_exitfn_called.
9413
9414 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
9415
9416         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9417         calling registered handler.
9418
9419         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9420         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9421         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9422         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9423         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9424         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9425         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9426         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9427
9428 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
9429
9430         * elf/dl-lookup.c (dl_new_hash): New functions.
9431         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9432         value here.  Compute new-style hash value.  Pass new hash value
9433         and reference to variable with the old value to do_lookup_x.
9434         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9435         old-style hash table.
9436         (_dl_debug_bindings): Pass new hash value and reference to variable
9437         with the old value to do_lookup_x.
9438         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9439         new-style hash value and change old-style hash value parameter to
9440         be a reference.  Reoganize functions to determine whether
9441         new-style hash table is available.  Only fall back on old-style
9442         table.  If old-style hash value is needed, compute it here.
9443         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9444         entry.
9445         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9446         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
9447         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9448         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9449         * Makeconfig: If linker supports --hash-style option add it to all
9450         linker command lines to build DSOs.
9451         * config.make.in: Define have-hash-style.
9452         * configure.in: Test whether linker supports --hash-style option.
9453
9454         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9455         * sysdeps/generic/ldsodefs.h: Adjust prototype.
9456
9457 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
9458
9459         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9460         auditing.
9461
9462         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9463         RPATH of main map twice.
9464
9465 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
9466
9467         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9468         look further, return original strings.
9469         (_nl_find_msg): Do not return found translation if the conversion
9470         failed.  Either signal the string is unusable or that something went
9471         wrong and the original should be used.
9472
9473 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
9474
9475         * string/_strerror.c (__strerror_r): Add __builtin_expect.
9476
9477 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
9478
9479         [BZ #2766]
9480         * misc/insremque.c (insque): Handle prev == NULL.
9481         * misc/Makefile (tests): Add tst-insremque.
9482         * misc/tst-insremque.c: New test.
9483
9484 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
9485
9486         [BZ #2792]
9487         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9488         conflict with DL_DST_REQUIRED.
9489
9490 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
9491
9492         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9493         match what Solaris does.
9494
9495 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
9496
9497         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9498         local_setegid instead of seteuid and setegid.
9499         * sysdeps/generic/local-setxid.h: New file.
9500         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9501
9502         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9503
9504         * string/Makefile (tests): Add bug-envz1.
9505         * string/bug-envz1.c: New file.
9506
9507 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
9508
9509         * posix/regex_internal.c (re_string_skip_chars): If no character has
9510         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
9511         to the byte which couldn't be converted.
9512         (re_string_reconstruct): Don't clear valid_raw_len before calling
9513         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
9514         tip_context using re_string_context_at.
9515         * posix/Makefile: Add rules to build and run bug-regex25 test.
9516         * posix/bug-regex25.c: New test.
9517
9518 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
9519
9520         [BZ #2703]
9521         * string/envz.c (envz_strip): Correct erroneously reversed src
9522         and dest parameters to memmove() invocation.
9523
9524 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
9525
9526         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9527         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9528         to make sure the database has been already invalidated.
9529         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
9530         after the cache has been invalidated.  Use pthread_mutex_lock rather
9531         than pthread_mutex_trylock if fd != -1.
9532         * nscd/connections.c (invalidate_cache): Add fd argument, write
9533         response to fd if not calling prune_cache, pass fd to prune_cache.
9534         (handle_request): Adjust invalidate_cache caller.
9535         (nscd_run): Pass -1 as fd to prune_cache.
9536
9537 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
9538
9539         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9540         the correct place.
9541
9542 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
9543
9544         * nscd/nscd.h (struct database_dyn): Add prunelock field.
9545         * nscd/cache.c (prune_cache): Take prunelock before starting the
9546         work.  Just return in case it is already taken.
9547         * nscd/connections.c (dbs): Initialize .prunelock.
9548
9549 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
9550
9551         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
9552         copying.  No need to allocate new array for group members.  Just
9553         move the pointers and update the size.
9554
9555         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
9556         Avoid memory leak in case realloc fails.  Simplification for
9557         better code generation.
9558
9559         Avoid deprecation warning because of libc_hidden_proto for
9560         inet6_option_alloc.
9561         * inet/inet6_option.c (option_alloc): Renamed from
9562         inet6_option_alloc.  Made static.
9563         (inet6_option_alloc): Now a simple wrapper around option_alloc.
9564         (inet6_option_append): Call option_alloc.
9565         * include/netinet/in.h: Remove libc_hidden_proto for
9566         inet6_option_alloc.
9567
9568         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
9569         for cleanup when cb!=NULL [Coverity CID 233].
9570
9571 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
9572
9573         [BZ #2693]
9574         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9575         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9576         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9577         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9578         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9579         and inet6_rth_getaddr.
9580         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9581         array.
9582         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9583         Mark inet6_option_* interfaces as deprecated.
9584         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9585         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9586         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9587         inet6_rth_segments, and inet6_rth_getaddr.
9588         * inet/inet6_opt.c: New file.
9589         * inet/inet6_rth.c: New file.
9590
9591         * inet/netinet/icmp6.h: Pretty printing.
9592
9593         [BZ #2683]
9594         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9595
9596 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
9597
9598         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9599         doing it all here.  When server does not know the answer do not
9600         fail immediate, try parent first.
9601
9602         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9603         overflow test.
9604
9605 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
9606
9607         * nis/nis_call.c (__prepare_niscall): New function.  Split out
9608         from __do_niscall.
9609         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
9610         and exported.
9611         (__follow_path): New function.  Split out from nis_list.
9612         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9613         _xdr_nis_result.
9614         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
9615         _xdr_nis_result.
9616         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
9617         and __follow_path.
9618         * nis/Versions: Export __prepare_niscall, __create_ib_request,
9619         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
9620         from libnsl for version GLIBC_PRIVATE.
9621         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
9622         Remove entry parameter from _nss_nisplus_parse_pwent and
9623         _nss_nisplus_parse_grent.
9624         * nis/nss_nisplus/nisplus-parser.c: Likewise.
9625         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
9626         again.  Rewrite getpwent handling to not use nis_first_entry and
9627         nis_next_entry.  Roll out own niscall handling.
9628         * nis/nss_nisplus/nisplus-grp.c: Likewise.
9629
9630         * sunrpc/xdr_rec.c: Fix typo in comment.
9631
9632 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
9633
9634         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
9635         handling.
9636
9637         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
9638         to allocate memory for my_pollfd.  Better initialization of
9639         cb_is_running.  Use TEMP_FAILURE_RETRY.
9640
9641         * malloc/memusage.sh (memusageso): Add quotes.
9642         (memusagestat): Likewise.
9643         * debug/xtrace.sh (pcprofileso): Likewise.
9644         (pcprofiledump): Likewise.
9645         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
9646         replacement.
9647         * malloc/Makefile ($(objpfx)memusage): Likewise.
9648
9649         * nis/nis_callback.c (__nis_create_callback): Calls to
9650         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
9651         asprintf call fails.
9652
9653         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
9654         no uninitialized memory is passed to sendto.
9655
9656 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9657
9658         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
9659         of snprintf+strdup.  Handle OOM.
9660         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
9661         cb->serv together.  Remove now obsolete free calls.
9662         (__nis_destroy_callback): Remove now obsolete free call.
9663
9664 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
9665
9666         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
9667         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
9668         and ULA respectively). Set precedence for IPv4 address to 10 as
9669         defined in RFC3484 for preferring IPv6.
9670         * posix/gai.conf: Update to match the new default tables.
9671
9672 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
9673
9674         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
9675         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
9676         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
9677         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
9678
9679         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
9680         Removed.
9681         (init_nss_interface): Remove initialization of these variables.
9682
9683 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9684
9685         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
9686         nis_free_directory forward to avoid duplication.
9687
9688 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
9689
9690         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
9691         rec_dirsearch returning NULL.
9692         (first_shoot): Handle __nis_finddirectory returning NULL.
9693         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
9694
9695         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
9696         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
9697
9698 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
9699
9700         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
9701         pid changed.
9702
9703 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
9704
9705         * include/rpc/pmap_prot.h: Mark all functions as hidden.
9706
9707         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
9708         * nscd/nscd_getgr_r.c: Likewise.
9709
9710         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
9711
9712         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
9713         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
9714
9715         * stdlib/longlong.h (__clz_tab): Mark as hidden.
9716
9717         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
9718
9719         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
9720
9721         * include/rpc/auth.h: Mark xdr_des_block_internal and
9722         xdr_opaque_auth_internal as hidden.
9723
9724         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
9725         hidden.
9726
9727         * include/rpc/xdr.h: Mark all _internal functions as hidden.
9728
9729         * misc/getusershell.c (okshells): Don't use static initializers,
9730         do it dynamically.
9731
9732         * stdlib/fmtmsg.c (keywords): Change type of len element to
9733         uint32_t to not waste space on 64bit machines.
9734
9735         * locale/setlocale.c: Change _nl_category_names into a string.
9736         Add new _nl_category_name_idxs.  Change all users.
9737         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
9738         Declare _nl_category_name_idxs.
9739         * locale/findlocale.c: Adjust for _nl_category_names change.
9740         * locale/loadlocale.c: Likewise.
9741         * locale/newlocale.c: Likewise.
9742         * intl/dcigettext.c: Likewise.
9743
9744         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
9745         (add_alias2): ...here.  New function.
9746         (__gconv_read_conf): Simplify builtin alias handling.
9747         (builtin_aliases): Convert to string to avoid relocations.
9748         * iconv/gconv_builtin.h: Add comment about correct formatting.
9749
9750 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
9751
9752         * resolv/res_debug.c (loc_ntoa): Make error const.
9753
9754 2006-05-14  Andreas Schwab  <schwab@suse.de>
9755
9756         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
9757
9758 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
9759
9760         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
9761         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
9762         sizeof (cpu_set_t).
9763
9764 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
9765
9766         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
9767
9768         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
9769
9770         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
9771         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
9772
9773         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
9774         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
9775
9776         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
9777         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
9778         xdr_cback_data.
9779
9780         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
9781         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9782         xdr_ypupdate_args.
9783
9784         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
9785         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
9786
9787         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
9788         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
9789
9790         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
9791         * include/rpcsvc/nis_callback.h: New file.
9792
9793         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
9794         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
9795
9796         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9797         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9798
9799         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
9800         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
9801
9802         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9803         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9804
9805         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
9806         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9807         xdr_ypdelete_args.
9808
9809         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
9810         __BEGIN_DECLS and __END_DECLS, the header is not installed.
9811
9812         * nis/nis_error.c: Remove table of strings.  Use position
9813         independent mechanism.
9814         * nis/nis_error.h: New file.
9815
9816 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
9817
9818         * locale/programs/ld-time.c (time_finish): If wide era name or
9819         format aren't provided, set both wname and wformat to L"".
9820
9821 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
9822
9823         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
9824         results if the call was succesful.
9825
9826         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
9827
9828         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
9829         as hidden.
9830
9831 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
9832
9833         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
9834
9835 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
9836
9837         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
9838         caller makes sure this is not the case.
9839         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
9840
9841 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
9842
9843         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
9844         calls.
9845
9846         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
9847         [Coverity CID 229, 230]
9848
9849         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
9850         DGETTEXT calls.
9851         (hol_help): Likewise.  [Coverity CID 226, 227]
9852
9853         * string/argz-replace.c (__argz_replace): Unconditionally call
9854         free on SRC.  [Coverity CID 225]
9855
9856         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
9857         the return value of __nis_default_owner and __nis_default_group,
9858         it has been especially allocated.  [Coverity CID 224]
9859
9860         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
9861         searchgroup and searchowner.  Significantly simplified.
9862         (__nis_default_owner): Remove duplication.  Do not locally copy the
9863         string before duplicating it.
9864         (__nis_default_group): Likewise.
9865
9866         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
9867         we must clear the variable before calling __nisfind_server.
9868
9869         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
9870         nis_getnames.  [Coverity CID 223]
9871
9872         * locale/programs/locfile.c (locfile_read): Use alloca instead of
9873         xmalloc to allocate local repertoire name.  [Coverity CID 222]
9874
9875         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
9876         allocate memory for the input to add_bytes.  [Coverity CID 221]
9877
9878         * posix/wordexp.c (w_addword): Free word if realloc fails and it
9879         was allocated here.  [Coverity CID 219, 220]
9880
9881         * posix/getconf.c (print_all): Free confstr data after printing.
9882         [Coverity CID 218]
9883
9884         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
9885         list allocation fails.  [Coverity CID 215]
9886
9887         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
9888         [Coverity CID 213]
9889
9890         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
9891         string is NULL.  [Coverity CID 212]
9892         * argp/Makefile: Add rules to build and run bug-argp1.
9893         * argp/bug-argp1.c: New file.
9894
9895         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
9896         end of string.
9897         * stdlib/canonicalize.c (__realpath): Likewise.
9898
9899         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
9900         pointer.  [Coverity CID 206]
9901
9902         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
9903         in statically linked code.
9904         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
9905         statically built code, be prepared to have no link map.
9906         [Coverity CID 205]
9907
9908         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
9909         dgettext calls. [Coverity CID 204]
9910
9911         * argp/argp-help.c (struct uparams): Remove valid member.  Change
9912         the one user.
9913         (uparam_names): Reduce size.  Avoid relative relocations.
9914         Moved to read-only segment.
9915         (fill_in_uparams): Update for new layout.
9916
9917         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
9918         assumed to always be != NULL. [Coverity CID 202]
9919
9920         * argp/argp-help.c (hol_entry_help): Remove some dead code
9921         [Coverity CID 200].
9922
9923         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
9924         away a few more unconditional yperr2nss calls.
9925         (_nss_nis_getservbyname_r): Likewise.
9926
9927 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
9928
9929         * sysdeps/generic/ldsodefs.h: Remove support for non-core
9930         architectures.
9931
9932         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
9933         that unused memory passed to sendto is nevertheless initialized.
9934
9935         [BZ #2499]
9936         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
9937         possibly unaligned memory accesses.
9938
9939         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
9940         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
9941         and __putlong respectively.  Correct buffer overflow check for
9942         NS_NOTIFY_OP.
9943
9944         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
9945
9946         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
9947         (send_dg): Rewrite error handling to be more compact and avoid
9948         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
9949
9950         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
9951
9952         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
9953         instead of ns_get16.
9954         (res_queriesmatch): Likewise.  Minor optimization.
9955
9956         [BZ #2499]
9957         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
9958         __libc_res_nsend might reallocate the buffer for the answer.  In
9959         this case we have to reload the HP pointer.
9960
9961 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9962
9963         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
9964         some branch prediction hints.
9965
9966         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
9967         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9968         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9969         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9970         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9971         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9972         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9973         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9974
9975 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9976
9977         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
9978         by a GOT relocation to make Scrt1.o position independent.
9979         * sysdeps/s390/s390-64/elf/start.S: Likewise.
9980
9981         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
9982         six system call parameters.
9983         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9984
9985 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9986
9987         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
9988         malloc&bzero.
9989
9990         * sunrpc/svc_udp.c (BZERO): Remove definition.
9991         (CALLOC): Define.
9992         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
9993
9994         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
9995         (des_SPtrans): Use uint32_t type.
9996         (des_skb): Likewise.
9997
9998         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
9999
10000 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
10001
10002         [BZ #2509]
10003         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
10004         on 32-bit arches.
10005
10006 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10007
10008         * locale/programs/ld-address.c (address_finish): Fix one more
10009         place where the iso639 array might be accessed beyond the limits.
10010
10011 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
10012
10013         * nis/nis_table.c (nis_list): Avoid clearing res twice before
10014         filling it for the first time.
10015
10016         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
10017         Adjust all callers.
10018         Free res object content before returning.
10019
10020         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
10021
10022         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
10023         client->cl_auth.
10024
10025         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
10026         cleanup for initial thread, just the free call on TVP.
10027
10028         * nscd/gai.c (__getline): Define.
10029
10030
10031 See ChangeLog.16 for earlier changes.