* nss/getent.c (print_networks): Don't print comma between aliases.
[platform/upstream/glibc.git] / ChangeLog
1 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
2
3         * nss/getent.c (print_networks): Don't print comma between aliases.
4
5 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
6
7         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
8
9         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
10         the hash table.
11         * misc/Makefile (tests): Add bug-hsearch1.
12         * misc/bug-hsearch1.c: New file.
13
14 2009-01-22  Roland McGrath  <roland@redhat.com>
15
16         * Makeconfig (%.v.i): Strip trailing # comments,
17         not only whole-line comments.
18
19 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
20
21         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
22         one parameter.  If non-NULL use it to initialize return value.
23         (_dl_setup_pointer_guard): New function.
24         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
25         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
26         * elf/rtld.c (security_init): Pass _dl_random to
27         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
28         pointer_chk_guard.
29         * elf/dl-sysdep.c (_dl_random): New variable.
30         (_dl_sysdep_start): Handle AT_RANDOM.
31         (_dl_show_auxv): Likewise.
32         * elf/dl-support.c (_dl_random): New variable.
33         (_dl_aux_init): Handle AT_RANDOM.
34         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
35         to _dl_setup_stack_chk_guard.
36
37         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
38
39 2009-01-10  Roland McGrath  <roland@redhat.com>
40
41         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
42
43 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
44
45         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
46
47         [BZ #9706]
48         * nss/nss_files/files-parse.c (strtou32): New function.
49         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
50         across 32-bit and 64-bit platforms.
51         (INT_FIELD_MAYBE_NULL): Likewise.
52
53 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
54
55         [BZ #9720]
56         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
57         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
58         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
59         Likewise.
60
61 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
62
63         [BZ #697]
64         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
65         being NULL also if there are no backreferences.
66         * posix/rxspencer/tests: Add testcases.
67
68 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
69
70         [BZ #9697]
71         * posix/bug-regex17.c: Add testcases.
72         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
73         handling.
74
75 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
76
77         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
78         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
79         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
80         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
81         for elf subdir.
82         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
83         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
84         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
85         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
86         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
87         * sysdeps/unix/sysv/linux/s390/Versions: New file.
88
89 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
90
91         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
92         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
93         re_string_skip_chars, re_string_reconstruct): Likewise.
94         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
95
96 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
97
98         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
99         adjust the buffer alignment.
100
101 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
102
103         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
104         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
105         net/route.h.
106
107         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
108         flavor to description only when flavor is not NULL.
109
110         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
111         mutex after SIGIO/SIGURG lookup loop.
112
113 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
114
115         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
116
117 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
118
119         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
120         handling.
121
122 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
123
124         * sysdeps/unix/sysv/linux/kernel-features.h
125         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
126
127         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
128         if no output is written.
129
130         * version.h: Bump to 2.10 development.
131
132         * posix/getconf.c: Update copyright year.
133         * nss/getent.c: Likewise.
134         * iconv/iconvconfig.c: Likewise.
135         * iconv/iconv_prog.c: Likewise.
136         * elf/ldconfig.c: Likewise.
137         * catgets/gencat.c: Likewise.
138         * csu/version.c: Likewise.
139         * elf/ldd.bash.in: Likewise.
140         * elf/sprof.c (print_version): Likewise.
141         * locale/programs/locale.c: Likewise.
142         * locale/programs/localedef.c: Likewise.
143         * nscd/nscd.c (print_version): Likewise.
144         * debug/xtrace.sh: Likewise.
145         * malloc/memusage.sh: Likewise.
146         * malloc/mtrace.pl: Likewise.
147         * debug/catchsegv.sh: Likewise.
148
149 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
150
151         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
152         script.
153
154 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
155
156         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
157         gethostbyname4_r function call succeeded, just leave the loop.
158
159         [BZ #9694]
160         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
161         very end.
162         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
163         * wctype/Makefile (tests): Add bug-wctypeh.
164         * wctype/bug-wctypeh.c: New file.
165
166         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
167         LOCALDOMAIN is defined.
168         * nscd/nscd_getai.c (__nscd_getai): Likewise.
169
170         * sysdeps/x86_64/bits/select.h: New file.
171
172         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
173
174 2008-12-21  Bruno Haible  <bruno@clisp.org>
175
176         [BZ #9677]
177         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
178         if no output is written.
179
180 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
181
182         * login/utmp_file.c (pututline_file): Replace call to dup2 with
183         libc internal symbol __dup2 to avoid access through the PLT.
184
185 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
186
187         [BZ #6545]
188         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
189         available only for __USE_GNU.
190
191         * inet/Makefile (tests): Add tst-getni2.
192         * inet/tst-getni2.c: New file.
193
194         [BZ #7080]
195         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
196         NULL when NI_NAMEREQD is set.
197         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
198         * inet/Makefile (tests): Add tst-getni1.
199         * inet/tst-getni1.c: New file.
200
201 2008-12-03  Petr Baudis  <pasky@suse.cz>
202
203         [BZ #7067]
204         * nscd/connections.c (invalidate_cache): Use prune_run_lock
205         instead of prune_lock.
206         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
207         * nscd/nscd.h (database_dyn): Add prune_run_cache.
208
209 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
210
211         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
212         use.
213
214         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
215         handling.
216
217         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
218         after reading name server list.
219
220         [BZ #7058]
221         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
222         handling for host name aliases.
223
224 2008-11-24  Arkadiusz Miƛkiewicz  <arekm@maven.pl>
225
226         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
227         instead of doing things manually.
228
229 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
230
231         * posix/regex_internal.h (build_wcs_upper_buffer):
232         Return type is reg_error_t.
233
234 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
235
236         * posix/globtest.sh: Use mktemp to create temporary file and
237         directory.
238
239         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
240         sets correctly.
241         (__CPU_CLR_S): Likewise.
242         (__CPU_ISSET_S): Likewise.
243
244 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
245             Ulrich Drepper  <drepper@redhat.com>
246
247         * scripts/firstversion.awk: Use custom comparison function to compare
248         version numbers.
249         * scripts/versions.awk: Use sort invocation which can handle
250         multi-digit sub-version numbers.
251
252 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
253
254         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
255         * locale/iso-639.def: Add Chhattisgarhi entry.
256
257 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
258
259         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
260         ESRCH return value.
261         (_nss_dns_gethostbyname4_r): Likewise.
262         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
263         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
264         gethostbyname4_r, we don't have a separate IPv6 status, so copy
265         the no_data variable.
266
267         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
268         information at the correct index.
269
270         * socket/sys/socket.h: Declare accept4.
271         * socket/accept4.c: New file.
272         * sysdeps/unix/sysv/linux/accept4.c: New file.
273         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
274         * socket/Makefile (routines): Add accept4.
275         * socket/Versions: Export accept4 with version GLIBC_2.10.
276         * socket/paccept.c: Removed.
277         * sysdeps/unix/sysv/linux/paccept.c: Removed.
278         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
279         * Versions.def: Define GLIBC_2.10 for libc.
280         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
281
282         * nscd/connections.c: Use accept4.
283
284         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
285
286 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
287
288         * resolv/res_send.c (send_dg): Create sockets with non-blocking
289         flag already set.
290
291         * stdlib/setenv.c (unsetenv): Don't search environment if it does
292         not exist.
293         * stdlib/Makefile (tests): Add tst-unsetenv1.
294         * stdlib/tst-unsetenv1.c: New file.
295
296 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
297
298         * login/utmp_file.c (file_writable): New variable.
299         (setutent_file): Don't try to open file for writing.
300         (pututline_file): Before writing, make descriptor writable if
301         necessary.
302
303 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
304
305         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
306         to IPv4 or IPv6 if an interface has been found.
307
308 2008-11-26  Roland McGrath  <roland@redhat.com>
309
310         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
311         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
312
313         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
314         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
315         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
316
317         * elf/elf.h (NT_386_IOPERM): New macro.
318         (NT_PPC_VSX): New macro.
319
320 2008-11-25  Roland McGrath  <roland@redhat.com>
321
322         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
323         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
324         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
325         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
326         Subdirectories moved to ports repository.
327         * configure.in (base_machine): Remove alpha case.
328
329 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
330
331         * sysdeps/mach/strerror_l.c: New file.
332
333 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
334
335         [BZ #6411]
336         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
337         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
338         magic numbers.
339         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
340         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
341         (relax_fenv_state): Same as above.
342         (FPSCR_29): Reserve bit in ISA 2.05.
343         (FPSCR_NI): Provide define for compat.
344         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
345         magic numbers.
346         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
347         magic numbers.
348         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
349         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
350         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
351         access to hwcap to account for hwcap size increase to uint64_t.
352         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
353         Likewise.
354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
355         (*setcontext): Likewise.
356         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
357         New file.
358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
359         New file.
360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
361         (*setcontext): dynamically select mtfsf insn based on
362         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
363         increase to uint64_t.
364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
365         (*swapcontext): dynamically select mtfsf insn based on
366         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
367         increase to uint64_t.
368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
369         New file.
370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
371         New file.
372         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
373         (*setcontext): dynamically select mtfsf insn based on
374         PPC_FEATURE_HAS_DFP.
375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
376         (*swapcontext): dynamically select mtfsf insn based on
377         PPC_FEATURE_HAS_DFP.
378
379 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
380
381         * version.h: Bump for 2.9 release.
382         * include/features.h (__GLIBC_MINOR__): Bump to 9.
383
384         [BZ #7029]
385         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
386         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
387         all the rounding.
388
389 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
390
391         [BZ #7009]
392         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
393         unknown request types for now.
394
395 2008-11-11  Roland McGrath  <roland@redhat.com>
396
397         * sysdeps/x86_64/configure: New file.
398
399         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
400         * configure: Regenerated.
401
402 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
403
404         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
405         correct instruction to remove the stack frame.
406
407 2008-11-03  Michael Matz  <matz@suse.de>
408
409         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
410         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
411
412 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
413
414         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
415         Remove.
416
417         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
418         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
419         of the thread variable instead of void *.
420         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
421         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
422         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
423         __libc_tsd_define arguments.
424         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
425         __libc_tsd_address arguments.  Remove union hack.
426         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
427         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
428         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
429         Adjust __libc_tsd_{set,get} arguments.
430         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
431         __libc_tsd_define arguments.
432         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
433         arguments.
434         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
435         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
436         (LOCALE): Adjust __libc_tsd_define arguments.
437         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
438         arguments.
439         (LOCALE): Adjust __libc_tsd_define arguments.
440         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
441         arguments.
442         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
443         arguments.
444
445 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
446
447         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
448         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
449
450 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
451
452         [BZ #6966]
453         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
454
455 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
456             Ulrich Drepper  <drepper@redhat.com>
457
458         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
459         definition for GCC 3.1 and later.
460
461 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
462
463         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
464         refetch dtv, as it might have changed.
465         * elf/Makefile: Add rules to build and run tst-tls18.
466         * elf/tst-tls18.c: New test.
467         * elf/tst-tlsmod18a.c: New file.
468
469 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
470
471         [BZ #6875]
472         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
473
474 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
475
476         [BZ #6867]
477         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
478
479         [BZ #6919]
480         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
481         Fix length of copy operation.
482
483 2008-10-02  Pierre Habouzit <madcoder@debian.org>
484
485         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
486         and fix its calling convention.
487
488 2008-10-07  Andreas Schwab  <schwab@suse.de>
489
490         [BZ #6942]
491         * resolv/res_send.c (send_vc): Fix last change.
492         (send_dg): Align here as well.
493
494 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
495
496         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
497         return value in case rlimit is RLIM_INFINITY.
498
499         [BZ #6947]
500         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
501         for UL_SETFSIZE.
502         * resource/Makefile (tests): Add bug-ulimit1.
503         * resource/bug-ulimit1.c: New file.
504
505         [BZ #6974]
506         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
507         without dot.  Properly terminate the string with a null byte.
508         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
509
510         [BZ #6980]
511         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
512         negative sizees.
513         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
514         negative __size.
515
516         [BZ #6995]
517         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
518
519 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
520
521         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
522         abort if there is no initgroups_dyn function.
523
524         * resolv/res_send.c (send_dg): On timeout, only return nonzero
525         result if any of the queries really provided an answer.
526
527 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
528
529         * po/lt.po: Update from translation team.
530
531 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
532
533         * po/id.po: Update from translation team.
534
535 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
536
537         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
538         Fix tests for existence of second reply.
539
540 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
541
542         * po/id.po: New file.
543         Contributed by the Indonesian translation team.
544
545 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
546
547         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
548         initialization.
549
550 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
551
552         * elf/Makefile: Add rules to build and run tst-tls17.
553         * elf/tst-tls17.c: New test.
554         * elf/tst-tlsmod17a.c: New file.
555         * elf/tst-tlsmod17b.c: Likewise.
556
557 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
558
559         * stdlib/divmod_1.c: Use correct type for dummy variable.
560         * stdlib/mod_1.c: Likewise.
561
562 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
563
564         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
565
566 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
567
568         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
569         __nonnull order for C++.
570         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
571         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
572
573 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
574
575         * stdlib/longlong.h: Update from GCC.
576
577 2008-10-09  Jakub Jelinek <jakub@redhat.com>
578             David S. Miller  <davem@davemloft.net>
579
580         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
581         make sure any registers used with 64-bit 'branch-on-register'
582         instructions have their top 32-bits clear.
583         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
584         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
585
586 2008-09-18  Andreas Schwab  <schwab@suse.de>
587
588         [BZ #6942]
589         * resolv/res_send.c (send_vc): Fix use of unaligned address.
590         Properly handle partial reads.
591
592 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
593
594         * elf/elf.h (STO_MIPS_PLT): New.
595         (R_MIPS_COPY): New.
596         (R_MIPS_JUMP_SLOT): New.
597         (R_MIPS_NUM): Redefine to 128.
598         (DT_MIPS_PLTGOT): New.
599         (DT_MIPS_RWPLT): New.
600         (DT_MIPS_NUM): Redefine to 0x35.
601
602 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
603
604         * timezone/africa: Update from tzdata2008f.
605         * timezone/asia: Likewise.
606         * timezone/australasia: Likewise.
607         * timezone/europe: Likewise.
608         * timezone/leapseconds: Likewise.
609         * timezone/northamerica: Likewise.
610         * timezone/southamerica: Likewise.
611         * timezone/zone.tab: Likewise.
612
613 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
614
615         * nscd/connections.c: Disable use of paccept for now.
616
617 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
618
619         * socket/Versions: Remove paccept export for GLIBC_2.9.
620         * socket/Makefile (routines): Remove paccept.
621         * socket/sys/socket.h: Remove paccept declaration.
622
623         * po/sv.po: Update from translation team.
624
625 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
626
627         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
628         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
629
630 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
631
632         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
633         Patch by Olivier Fourdan <ofourdan@redhat.com>.
634
635 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
636
637         * sunrpc/rpc/svc.h: Declare svcfd_create.
638         Patch by Michael Solberg <msolberg@redhat.com>.
639
640 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
641             Ulrich Drepper  <drepper@redhat.com>
642
643         * malloc/malloc.c (public_vALLOc): Try other arenas in case
644         _int_valloc fails.
645         (public_pVALLOc): Likewise.
646
647 2008-09-02  Andreas Jaeger  <aj@suse.de>
648
649         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
650         commit.
651
652 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
653
654         [BZ #6860]
655         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
656
657 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
658
659         * Makefile (check-data): Check data directory in add-ons.
660         * elf/Makefile (check-data): Likewise.
661
662 2008-08-18  Roland McGrath  <roland@redhat.com>
663
664         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
665         * configure: Regenerated.
666         * config.make.in (cflags-cpu): New substituted variable.
667         (with-cpu): Variable removed.
668         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
669
670 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
671
672         [BZ #6845]
673         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
674         __signbitl definition and __LONG_DOUBLE_128__ guard from:
675         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
676         redundant.  Functions which call floating point assembler operations
677         should go into a sysdeps powerpc/fpu directory.
678
679 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
680
681         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
682         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
683
684 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
685
686         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
687
688         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
689         change related to AT_EXECFN.  We cannot use that string.
690         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
691         _dl_execfn member.
692         * elf/dl-support.c: Remove _dl_execfn variable.
693         (_dl_aux_init): Remove handling of AT_EXECFN.
694         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
695         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
696
697 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
698
699         [BZ #6544]
700         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
701         byte gets added to writes and seeks from the end use the length of
702         the buffer and not the currently terminating NUL byte.
703
704         [BZ #6634]
705         * login/utmp_file.c (getutent_r_file): Take additional parameter.
706         Set to true if locking failed.
707         (getutid_r_file): Adjust caller.
708         (pututline_file): Likewise.  Return NULL in this case.
709         Patch mostly by halesh.s@gmail.com.
710
711 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
712
713         [BZ #6589]
714         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
715         Define.
716         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
717
718 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
719
720         [BZ #6839]
721         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
722         macro since it is now available in elf/dynamic-link.h.
723
724 2008-08-12  Roland McGrath  <roland@frob.com>
725
726         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
727         in case used outside of libc.
728         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
729
730 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
731
732         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
733         directly instead of going through dn_comp.
734
735 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
736
737         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
738         Fix asm constraints.
739
740 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
741
742         [BZ #6790]
743         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
744         (IPV6_PMTUDISC_PROBE): Likewise.
745
746 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
747
748         [BZ #6791]
749         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
750
751 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
752             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
753
754         [BZ #6817]
755         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
756         Added the members 'vsx' and 'arch_2_06'.
757         (_dl_powerpc_platforms): Add the member 'power7'.
758         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
759         to reflect the changes required by VSX and ISA 2.06.
760         Modify _DL_PLATFORMS_COUNT to reflect the addition of
761         'power7'.
762         Defined PPC_PLATFORM_POWER7.
763         (_dl_string_platform): Add support for POWER7.
764         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
765         capability and ISA 2.06.
766
767 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
768
769         [BZ #6824]
770         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
771         macro to detect use of 128 bit long double.
772         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
773
774 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
775
776         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
777
778         [BZ #5794]
779         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
780         parameters.
781         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
782         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
783
784 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
785
786         * nscd/connections.c (main_loop_poll): Pass a buffer which is
787         guaranteed to be large enough to read inotify event.  Ignore
788         EAGAIN error.  Better error message.  Add branch predicition.
789         (main_loop_epoll): Likewise.
790
791 2008-08-02  Roland McGrath  <roland@frob.com>
792
793         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
794         Add memory clobbers.
795
796 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
797
798         * manual/arith.texi: Avoid @strong{Note:}.
799         * manual/creature.texi: Likewise.
800         * manual/filesys.texi: Likewise.
801         * manual/math.texi: Likewise.
802         * manual/memory.texi: Likewise.
803         * manual/resource.texi: Likewise.
804         * manual/syslog.texi: Likewise.
805         * manual/time.texi: Likewise.
806
807         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
808         to prevent warning.
809
810 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
811
812         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
813         new epoll_create1 interface.
814         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
815         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
816         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
817
818         * include/arpa/nameser.h (NS_GET16): Use const pointer.
819         (NS_GET32): Likewise.
820
821         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
822         syscalls, too.
823
824         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
825         use the AT_EXECFN value if it is no absolute path.
826         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
827         __ASSUME_AT_EXECFN.
828
829         * Versions.def: Add GLIBC_2.9 to libresolv.
830         * include/resolv.h: Remove hidden proto declarations for __ns_*
831         functions.  Add them for __dn_count_labels and __p_secstodate.
832         * include/arpa/nameser.h: Add a number of hidden proto declarations.
833         Define ns_msg_getflags macro here.
834         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
835         and __p_secstodate.
836         * resolv/Versions: Export functions from <arpa/nameser.h> from
837         libresolv in version GLIBC_2.9.
838         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
839         hidden definitions.
840         * resolv/ns_netint.c: Likewise.
841         * resolv/ns_parse.c: Likewise.
842         * resolv/ns_print.c: Likewise.
843         * resolv/ns_samedomain.c: Likewise.
844         * resolv/ns_ttl.c: Likewise.
845         * resolv/arpa/nameser_compat.h: Likewise.
846         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
847         function calls.
848         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
849         instead of ns_get16.
850         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
851         __ns_get32 instead of ns_get16 and ns_get32 respectively.
852         (gaih_getanswer_slice): Likewise.
853         * resolv/Makefile (libresolv-routines): Add ns_date.
854         * resolv/ns_date.c: New file.
855
856         * elf/Makefile (check-localplt.out): Also check libresolv and
857         libcrypt.
858
859 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
860
861         * sysdeps/unix/sysv/linux/kernel-features.h: Define
862         __ASSUME_O_CLOEXEC.
863
864 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
865
866         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
867         buffer passed to NSS functions.
868
869         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
870
871         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
872         Define.
873
874         * misc/syslog.c (openlog_internal): Fix compile problem.
875
876 2008-07-28  Roland McGrath  <roland@redhat.com>
877
878         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
879
880 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
881
882         * io/ftw.c (add_object): Remove inline to avoid warning.
883
884         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
885
886         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
887         Use it instead of locally defined resplen2 variable.
888         (res_nsend): Adjust for __libc_res_nsend interface change.
889         (send_vc): Initialize *resplen2 if necessary.  Read length of
890         package into an appropriately aligned variable.  Store converted length
891         in new variable and use it appropriately.
892         Add branch prediction help.
893         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
894         and pass it on to __libc_res_nsend.  Adjust all callers.
895         (__libc_res_nsearch): Likewise.
896         (__libc_res_nqeurydomain): Likewise.
897         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
898         change.
899         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
900         Define resplen2 variable and pass it to __libc_res_nsearch and then
901         to gaih_getanswer.
902         (getanswer_r): In case of incorrect DNS data don't overread buffer.
903         Add branch prediction.
904         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
905         (gaih_getanswer): Don't decode second slice if first one failed due
906         to a too small buffer.  Don't let not found status of second
907         decoder shadow results of the first.
908         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
909         and __libc_res_nquery interface changes
910         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
911         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
912         __libc_res_nsearch, and __libc_res_nsend.
913         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
914         change.
915         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
916         __libc_res_nsearch interface changes.
917
918 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
919
920         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
921
922         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
923         file descriptors with close-on-exec set.
924         (exec_comm_child): Fix the case where the write end of the pipe is
925         STDOUT_FILENO already.  In case it is, clear close-on-exec.
926
927         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
928         * io/pipe2.c: Likewise.
929         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
930         instead of __ASSUME_PACCEPT.
931         * include/unistd.h: Declare __have_pipe2.
932         * libio/iopopen.c: Implement "e" flag.
933         * libio/Makefile (tests): Add tst-popen1.
934         * libio/tst-popen1.c: New file.
935
936         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
937         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
938
939 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
940
941         [BZ #6771]
942         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
943         success call of _IO_SEEKOFF or calls which failed because the
944         descriptor is for a pipe.
945
946         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
947         magic number.
948
949         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
950
951         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
952         F_SETFD use if we know fopen set the flag.
953
954         * login/utmp_file.c (setutent_file): Minor optimization in case
955         O_CLOEXEC is available.
956
957 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
958
959         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
960         * elf/Makefile: Use pie-ccflag variable.
961         * nscd/Makefile: Likewise.
962         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
963
964 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
965
966         [BZ #6724]
967         * Versions.def: Add GLIBC_2.9 version tag for libutil.
968         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
969         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
970         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
971         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
972         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
973         utmp32, utmpx32 and login32.
974         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
975         versions of struct utmp functions to libc and libutil.
976         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
977         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
978         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
979         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
980         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
981         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
982         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
983         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
984         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
985         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
986         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
987         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
988         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
989         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
990         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
991         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
992         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
993         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
994         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
995         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
996         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
997         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
998
999 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1000
1001         * scripts/gen-as-const.awk: Generate more widely usable code by
1002         using 64-bit arithmetic.
1003
1004         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
1005         the same treatment as narrow output code in last patch.
1006
1007         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
1008
1009         [BZ #6763]
1010         * elf/dl-load.c (local_strdup): Remove inline.
1011         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
1012         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
1013         part of the object.
1014
1015         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
1016
1017 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
1018
1019         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
1020         the new syscalls, too.
1021
1022         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
1023         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
1024
1025         [BZ #6698]
1026         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
1027         parameter for end of buffer.  If temporary copy is too large use
1028         malloc.
1029         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
1030         interface change.
1031         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
1032         string rewrite when allocating buffer.
1033
1034         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
1035         syscalls, too.
1036
1037         * nscd/connections.c (nscd_init): Clean up fcntl call.
1038
1039         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
1040         SOCK_NONBLOCK if possible.
1041
1042         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
1043         SOCK_CLOEXEC if available.
1044
1045         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
1046         __libc_clntudp_bufcreate_internal.
1047         * include/sys/socket.h: Declare __have_sock_cloexec.
1048         * socket/Makefile (aux): Add have_sock_cloexec.
1049         * socket/have_sock_cloexec.c: New file.
1050         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
1051         __libc_clntudp_bufcreate.
1052         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
1053         which takes an additional parameter.  Create socket with non-blocking
1054         mode and close-on-exec flag set, if wanted.
1055         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
1056         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
1057         instead of clntudp_create.  The socket has already the close-on-exec
1058         flag set if SOCK_CLOEXEC is defined.
1059
1060 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
1061
1062         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1063         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
1064         appropriate.
1065         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
1066         non-blocking mode by using socket, paccept, and inotify_init1.
1067
1068         * Versions.def (glibc): Add GLIBC_2.9.
1069         * io/Makefile (routines): Add dup3 and pipe2.
1070         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
1071         * io/dup3.c: New file.
1072         * io/pipe2.c: New file.
1073         * posix/unistd.h: Declare dup3 and pipe2.
1074         * socket/Makefile (routines): Add paccept.
1075         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
1076         * socket/paccept.c: New file.
1077         * socket/sys/socket.h: Declare paccept.
1078         * sysdeps/unix/syscalls.list: Add entry for dup3.
1079         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
1080         epoll_create2 and inotify_init1.
1081         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
1082         * sysdeps/unix/sysv/linux/paccept.c: New file.
1083         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
1084         possible.
1085         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
1086         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
1087         inotify_init1, and pipe2 entries.
1088         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
1089         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
1090         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
1091         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
1092         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
1093         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
1094         SOCK_NONBLOCK.
1095         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
1096         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
1097         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
1098         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
1099         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
1100         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
1101         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
1102         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
1103         EPOLL_NONBLOCK.  Declare epoll_create2.
1104         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
1105         EFD_NONBLOCK.
1106         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
1107         IN_NONBLOCK.  Declare inotify_init1.
1108         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
1109         SFD_NONBLOCK.
1110         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
1111         TFD_NONBLOCK.
1112
1113         * elf/elf.h: Define AT_EXECFN.
1114         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1115         LD_ORIGIN_PATH.
1116         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1117         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
1118         if __ASSUME_AT_EXECFN is defined.
1119         (_dl_aux_init): Handle AT_EXECFN.
1120         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1121         for 2.6.27 and up.
1122         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1123         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1124         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1125         _dl_execfn if available and avoid compatibility code if
1126         __ASSUME_AT_EXECFN is defined.
1127
1128         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1129         _dl_discover_osversion only for older kernels.
1130
1131 2008-07-22  Roland McGrath  <roland@frob.com>
1132
1133         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1134
1135 2008-07-21  Roland McGrath  <roland@frob.com>
1136
1137         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1138         returned too much data out of line.
1139
1140 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
1141
1142         * locale/setlocale.c (setname): Remove inline to avoid compiler
1143         warning.
1144
1145         [BZ #6712]
1146         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1147
1148 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
1149
1150         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1151         doesn't manage to write anything, fail.
1152
1153         * malloc/hooks.c (__malloc_check_init): Remove printf.
1154
1155 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1156
1157         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1158
1159 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
1160
1161         * nscd/connections.c (main_loop_poll): Fix handling of read errors
1162         from inotify.
1163         (main_loop_epoll): Likewise.
1164
1165 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
1166
1167         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1168
1169         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1170         if DEBUG is defined.
1171
1172         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1173         query.  Adjust buffer size computation for padding.
1174
1175 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
1176
1177         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1178         * stdio-common/tst-setvbuf1.c: New file.
1179         * stdio-common/tst-setvbuf1.expect: New file.
1180
1181         [BZ #6719]
1182         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1183         when selecting fully-buffered stream.
1184         Patch by Wang Xin <wxinee@gmail.com>.
1185
1186 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1187
1188         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1189         (__open_2): New function.
1190         (__open64_2): New alias to __open_2.
1191         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1192         (__openat_2): New function.
1193         (__openat64_2): New alias to __openat_2.
1194
1195 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
1196
1197         [BZ #6723]
1198         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1199
1200 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1201
1202         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1203         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1204         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1205         __hurd_dfail.
1206         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1207         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1208         * sysdeps/mach/hurd/send.c (__send): Likewise.
1209         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1210         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1211
1212 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1213
1214         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1215         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1216         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1217         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1218         * hurd/get-host.c (_hurd_get_host_config): Likewise.
1219         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1220
1221 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
1222
1223         [BZ #6657]
1224         * time/strptime_l.c: Don't clear s.era_cnt after successful match
1225         of %EY.
1226         Patch by Petr Baudis.
1227
1228 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
1229
1230         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
1231         Patch by Peter Jones <pjones@redhat.com>.
1232
1233 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1234
1235         [BZ #6654]
1236         * stdlib/canonicalize.c (__realpath): readlink can write too much
1237         into the buffer on platforms without PATH_MAX.
1238
1239 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
1240
1241         [BZ #6653]
1242         * posix/tst-regex.c (main): Rename to...
1243         (do_test): ... this. Remove cmdline option processing.
1244         (TIMEOUT): Define.
1245         (TEST_FUNCTION): Define.
1246         (CMDLINE_OPTIONS): Define.
1247
1248 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1249
1250         [BZ #5210]
1251         * configure.in: Add -Werror to -fstack-protector test to catch
1252         unsupported architectures.
1253         Patch by Gilles Esponasse <g.esp@free.fr>.
1254
1255 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
1256
1257         * stdlib/tst-setcontext.c: Set back_in_main before exit if
1258         getcontext returns ENOSYS.
1259
1260 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
1261
1262         * nscd/connections.c (main_loop_poll): Fix test for read error.
1263         (main_loop_epoll): Likewise.
1264
1265 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
1266
1267         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1268         better place so it is not called when nscd is used.
1269
1270         * nscd/connections.c: Also recognize and handle changes to the
1271         resolver configuration file.
1272
1273 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1274
1275         * time/strftime.c: Pass reference to tzset_called around to handle
1276         recursive calls.
1277
1278         [BZ #6612]
1279         * time/strftime.c (__strftime_internal): Call tzset() only
1280         when printing timezone-dependent values.
1281         Based on a patch by Petr Baudis <pasky@suse.cz>.
1282
1283         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1284         unconditionally use second gaih_getanswer_slice result.
1285
1286         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1287         (getaddrinfo): RES must always be non-NULL.
1288
1289 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1290
1291         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1292         cr[34] registers.
1293         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1294         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1295         Likewise.
1296         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1297         register.
1298
1299 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1300
1301         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1302         fields.
1303         * nscd/connections.c (inotify_fd): New variable.
1304         (nscd_init): Try to open an inotify descriptor.
1305         If successful, watch files for databases using inotify instead of
1306         having prune threads stat the files.
1307         (nscd_run_prune): Recognize clear_cache flag being set and call
1308         prune_cache appropriately.
1309         (main_loop_poll): Add inotify descriptor to wait set and handle the
1310         reported changes.
1311         (main_loop_epoll): Likewise.
1312         * nscd/cache.c (prune_cache): Don't stat files for databases if
1313         inotify is used.
1314         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1315         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1316
1317         * nscd/grpcache.c (cache_addgr): Correctly compute size of
1318         fixed-size portion of the record.
1319         * nscd/servicescache.c (cache_addserv): Likewise.
1320         * nscd/pwdcache.c (cache_addpw): Likewise.
1321         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1322
1323 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
1324
1325         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1326         out we don't use uninitialized memory.
1327
1328         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1329         the client.
1330
1331 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
1332
1333         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1334         ignore T_DNAME messages.
1335         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1336
1337 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
1338
1339         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1340         Avoid segfault if first GETC returns eof/'\0'/'\n'.
1341
1342 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
1343
1344         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1345         instead of portstr to nscd_getserv_r.  Patch by
1346         Roman Kagan <rkagan@mail.ru>.
1347
1348 2008-05-26  Jim Meyering  <meyering@redhat.com>
1349
1350         Remove more useless "if" tests before "free".
1351         * include/inline-hashtab.h (htab_delete): Likewise.
1352         * libio/freopen.c (freopen): Likewise.
1353         * libio/freopen64.c (freopen64): Likewise.
1354         * locale/programs/ld-collate.c (collate_read): Likewise.
1355         * misc/fstab.c (libc_freeres_fn): Likewise.
1356         * posix/glob.c (globfree): Likewise.
1357
1358 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1359
1360         * string/Makefile (strop-tests): Add memmem.
1361         * string/test-memmem.c: New file.
1362         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1363         (test_init): Size buf1 according to BUF1PAGES.
1364
1365 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
1366
1367         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1368         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1369         (CFLAGS-scanf17.c): New.
1370         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1371         * stdio-common/scanf15.c (main): Likewise.
1372         * stdio-common/scanf16.c: New file.
1373         * stdio-common/scanf17.c: New file.
1374
1375 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1376
1377         * resolv/res_send.c (send_dg): If we already have one of two
1378         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
1379         use the one answer insted of failing.
1380
1381 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
1382
1383         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1384         being executed on PowerPC as the expected result exceeds IBM
1385         long double 128 __LDBL_MAX__.
1386
1387 2008-05-21  Roland McGrath  <roland@redhat.com>
1388
1389         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1390
1391         * Makefile (check-data): Use $(abi-name) before other guesses.
1392         Look in $(add-ons) dirs before scripts/data/.
1393         * elf/Makefile (check-data): Likewise.
1394
1395         * scripts/soversions.awk: Grok ABI line.
1396         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1397         Emit definition for abi-name variable.
1398
1399 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
1400
1401         * string/endian.h: Define new fixed-size hto* and *toh macros only
1402         if [__USE_BSD].
1403
1404         * iconvdata/Depend: Add localedata.
1405
1406 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1407
1408         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1409
1410 2008-05-08  David S. Miller  <davem@davemloft.net>
1411
1412         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1413         HIDDEN_JUMPTARGET.
1414         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1415         (__SYSCALL_CLOBBERS): Remove %g* registers.
1416         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1417         (__SYSCALL_CLOBBERS): Likewise.
1418         * scripts/data/localplt-sparc-linux-gnu.data: New file.
1419         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
1420
1421 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
1422
1423         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1424         (CALL_ERRNO_LOCATION): Define.
1425         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1426         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1427         (CALL_ERRNO_LOCATION): Define.
1428         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1429         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1430         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1431
1432 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
1433
1434         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1435         variable.
1436
1437 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
1438
1439         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1440         (FIRST_FRAME_POINTER): Define.
1441
1442 2008-05-09  David S. Miller  <davem@davemloft.net>
1443
1444         * sysdeps/sparc/sparc64/backtrace.c: New file.
1445
1446 2008-05-14  David S. Miller  <davem@davemloft.net>
1447
1448         * sysdeps/sparc/machine-gmon.h: New file.
1449         * sysdeps/sparc/sparc-mcount.S: Likewise.
1450         * sysdeps/sparc/Makefile: Add sparc-mcount target to
1451         sysdep_routines in gmon directory.
1452
1453 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
1454
1455         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1456
1457 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
1458
1459         * resolv/res_query.c (__libc_res_nquery): In case one of two
1460         answer was too short don't try to read that answer's header.
1461
1462         * resolv/res_send.c (send_dg): In case of timeout and there are
1463         two queries and one has been answered, return value indicating
1464         success.
1465
1466 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
1467
1468         * nscd/cache.c (cache_add): Take additional parameter specifying
1469         whether this is in response of a cache refill.  Check alignment
1470         of package data.  Revamp waking of pruning thread.
1471         (prune_cache): Small optimization.
1472         * nscd/nscd.h: Adjust cache_add prototypes.
1473         * nscd/aicache.c: Adjust cache_add calls.
1474         * nscd/grpcache.c: Likewise.
1475         * nscd/hstcache.c: Likewise.
1476         * nscd/initgrcache.c: Likewise.
1477         * nscd/pwdcache.c: Likewise.
1478         * nscd/servicescache.c: Likewise.
1479         * nscd/connections.c (restart): Really disable cache use before
1480         exec attempt.  If it fails, reenable cache.
1481         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
1482         time to max to be able to notice concurrent cache additions.  Unlock
1483         prune_lock while performing gc.  Afterwards compute wakeup time with
1484         current wakeup_time value in mind.
1485
1486 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
1487
1488         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
1489
1490         * nscd/mem.c (gc): Correctly determine highest used array element
1491         in mark.
1492
1493         * nscd/mem.c (markrange): Add assert to check entries are all
1494         aligned.  Small cleanup in bitmap use.
1495
1496         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
1497         blockoff of type nscd_ssize_t.
1498         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
1499         (mempoll_alloc): Record block offset and not address.
1500
1501         * nscd/mem.c (gc): Fix test for stack overuse.
1502
1503         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
1504         more asserts.
1505
1506         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1507         entry is available, believe it.
1508
1509         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1510         no answers return NSS_STATUS_NOTFOUND.
1511         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1512         buffer does not have any content.
1513
1514 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
1515
1516         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1517
1518         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1519         lookup, don't assign canon unconditionally.
1520
1521 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1522
1523         * string/Makefile (distribute): Add str-two-way.h.
1524
1525 2008-03-29  Eric Blake  <ebb9@byu.net>
1526
1527         Rewrite string searches to O(n) rather than O(n^2).
1528         * string/str-two-way.h: New file.  For linear fixed-allocation
1529         string searching.
1530         * string/memmem.c: New implementation.
1531         * string/strstr.c: New implementation.
1532         * string/strcasestr.c: New implementation.
1533
1534 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
1535
1536         * posix/regcomp.c (optimize_utf8): Add a note on why we test
1537         opr.ctx_type.
1538         (calc_first): Initialize constraint field.
1539         (duplicate_node_closure): Use it instead of special casing ANCHORS.
1540         Use search_duplicated_node to avoid loops.  Fix grammar.
1541         (duplicate_node): Merge constraint field for all node types.
1542         (calc_eclosure_iter): Look at constraint field for all node types.
1543         * posix/regex_internal.c (create_cd_newstate): Don't look at
1544         create_cd_newstate.
1545
1546 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1547
1548         [BZ #6428]
1549         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
1550
1551         [BZ #6442]
1552         * string/endian.h: Add macros for fixed-size endian conversion.
1553         * bits/byteswap.h: Allow inclusion from <endian.h>.
1554         * sysdeps/i386/bits/byteswap.h: Likewise.
1555         * sysdeps/ia64/bits/byteswap.h: Likewise.
1556         * sysdeps/s390/bits/byteswap.h: Likewise.
1557         * sysdeps/x86_64/bits/byteswap.h: Likewise.
1558         * string/Makefile (tests): Add tst-endian.
1559         * string/tst-endian.c: New file.
1560
1561         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
1562         Patch by Reuben Thomas.
1563
1564 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
1565
1566         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
1567
1568 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1569
1570         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
1571
1572         [BZ #6461]
1573         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
1574         Add missing braces.
1575         (BODY for __gconv_transform_internal_ascii): Likewise.
1576
1577         [BZ #6472]
1578         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
1579         to be treated like link-local addresses.
1580         (match_prefix): Don't treat IPv4 loopback address special when
1581         converting to v4 mapped addressed.
1582
1583         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1584         if necessary.
1585         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
1586         * posix/tst-rfc3484-2.c: Likewise.
1587         * posix/tst-rfc3484-3.c: Likewise.
1588
1589         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
1590         and SCTP.
1591
1592         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
1593
1594         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
1595
1596         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
1597
1598 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
1599
1600         * po/lt.po: New file.  From Lituanian translation team.
1601
1602 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
1603
1604         Introduce TLS descriptors for i386 and x86_64.
1605         * include/inline-hashtab.h: New file, copied from 2005's
1606         libiberty, with fix for memory leak imported afterwards by
1607         Glauber de Oliveira Costa.
1608         * elf/tlsdeschtab.h: New file.
1609         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
1610         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
1611         (CHECK_STATIC_TLS): Move to...
1612         * elf/dynamic-link.h: ... this file.
1613         (TRY_STATIC_TLS): New macro.
1614         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
1615         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
1616         R_386_TLS_DESC): Define.
1617         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
1618         binutils.
1619         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
1620         R_X86_64_TLSDESC): Define.
1621         (R_386_NUM, R_X86_64_NUM): Adjust.
1622         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
1623         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1624         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1625         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1626         release tlsdesc_table.
1627         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
1628         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
1629         (elf_machine_rel): Handle R_386_TLS_DESC.
1630         (elf_machine_rela): Likewise.
1631         (elf_machine_lazy_rel): Likewise.
1632         (elf_machine_lazy_rela): Likewise.
1633         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
1634         * sysdeps/i386/dl-tlsdesc.S: New file.
1635         * sysdeps/i386/dl-tlsdesc.h: New file.
1636         * sysdeps/i386/tlsdesc.c: New file.
1637         * sysdeps/i386/tlsdesc.sym: New file.
1638         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
1639         tlsdesc_table.
1640         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
1641         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1642         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1643         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1644         release tlsdesc_table.
1645         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
1646         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
1647         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
1648         (elf_machine_rel): Handle R_X86_64_TLSDESC.
1649         (elf_machine_rela): Likewise.
1650         (elf_machine_lazy_rel): Likewise.
1651         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
1652         (__tls_get_addr): Do not declare for non-shared compiles.
1653         * sysdeps/x86_64/dl-tlsdesc.S: New file.
1654         * sysdeps/x86_64/dl-tlsdesc.h: New file.
1655         * sysdeps/x86_64/tlsdesc.c: New file.
1656         * sysdeps/x86_64/tlsdesc.sym: New file.
1657         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
1658         tlsdesc_table for both 32- and 64-bit structs.
1659
1660 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1661
1662         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
1663         its own function.  This reduces the frame setup costs and more.
1664
1665 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
1666
1667         [BZ #3406]
1668         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
1669         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
1670
1671 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1672
1673         * io/openat.c (__openat_2): Also pass fd to __openat.
1674         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
1675         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
1676
1677         * string/tester.c (test_memcmp): Add a few more tests.
1678         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
1679
1680 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1681
1682         * nscd/cache.c (cache_add): Before returning with failure and this
1683         is the first use of the record, mark it as unusable.
1684         * nscd/aicache.c: Don't touch the dataset after cache_add returns
1685         reporting a failure.
1686         * nscd/grpcache.c: Likewise
1687         * nscd/hstcache.c: Likewise.
1688         * nscd/initgrcache.c: Likewise.
1689         * nscd/pwdcache.c: Likewise.
1690         * nscd/servicescache.c: Likewise.
1691
1692 2008-05-10  Roland McGrath  <roland@redhat.com>
1693
1694         [BZ #6505]
1695         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
1696
1697 2008-05-08  David S. Miller  <davem@davemloft.net>
1698
1699         * misc/truncate64.c (truncate64): Use __truncate not truncate.
1700
1701         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
1702         (__ieee754_y0l): Likewise.
1703         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1704         (__ieee754_y1l): Likewise.
1705         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
1706         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
1707         frexpl and ldexpl.  math_private.h provides them and the latter
1708         is not even used.
1709         (__log1pl): Use __frexpl.
1710
1711 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1712
1713         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
1714         prototypes.
1715         * include/arpa/nameser_compat.h: Define T_UNSPEC.
1716         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
1717         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
1718         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
1719         af==AF_UNSPEC.
1720         (_nss_nis_gethostbyname4_r): New function.
1721         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1722         Change to also handle af==AF_UNSPEC.
1723         (get_tablename): New function.  Use it to avoid duplication.
1724         (_nss_nisplus_gethostbyname4_r): New function.
1725         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
1726         available.
1727         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
1728         * nss/nss.h: Define struct gaih_addrtuple.
1729         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
1730         af==AF_UNSPEC.
1731         (_nss_files_gethostbyname4_r): New function.
1732         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
1733         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
1734         calls.
1735         * resolv/res_query.c (__libc_res_nquery): Take two additional
1736         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
1737         look up IPv4 and IPv6.
1738         Change all callers.
1739         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
1740         for an additional query and answer buffer.  Pass to send_vc and
1741         send_dg.
1742         (send_vc): Send possibly two requests and receive two answers.
1743         (send_dg): Likewise.
1744         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
1745         __libc_res_nquery.
1746         (_nss_dns_gethostbyname4_r): New function.
1747         (gaih_getanswer_slice): Likewise.
1748         (gaih_getanswer): Likewise.
1749         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
1750         __libc_res_nquery call.
1751         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
1752         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
1753         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
1754         available.
1755
1756 2008-05-05  David S. Miller  <davem@davemloft.net>
1757
1758         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
1759         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
1760
1761 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1762
1763         Fix termios bit macros.
1764         Move *DLY definitions where they belong, in termios.h.
1765         Add *[0-3] definitions.
1766         Fixes confusion between VT and FF.
1767         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
1768         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
1769         are already defined to avoid collision with termios.h.
1770         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
1771         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
1772         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
1773         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
1774         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
1775         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
1776         VTDLY, VT0, VT1): New macros.
1777         [__USE_GNU] (OLCUC): Change value of macro.
1778         [__USE_XOPEN] (OFILL): New macro.
1779         [__USE_BSD] (CRTSCTS): Change value.
1780         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
1781         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
1782         (B7200, B14400, B28800, B76800): New macros.
1783
1784 2008-05-01  David S. Miller  <davem@davemloft.net>
1785
1786         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
1787         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
1788         (gen-as-const-headers): Add it.
1789         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
1790         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
1791         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
1792         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
1793
1794         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
1795         six system call parameters.
1796         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
1797
1798 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
1799
1800         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
1801         RUSAGE_LWP.
1802         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1803         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1804
1805 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
1806
1807         * stdlib/tst-setcontext.c: Include unistd.h.
1808
1809 2008-04-25  David S. Miller  <davem@davemloft.net>
1810
1811         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
1812         Pass "union semun" properly in to sys_ipc, it must be passed
1813         by value, not by reference.
1814
1815 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
1816
1817         * nscd/Makefile (nscd-cflags): Set back to -fpie.
1818         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
1819         * nscd/connections.c (mem_in_flight): Likewise.
1820
1821         * nscd/nscd.h (dbs): Make hidden.
1822
1823         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
1824         Avoid returning -1, return 0 instead.
1825
1826 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
1827
1828         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
1829
1830 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
1831
1832         [BZ #5209]
1833         * sysdeps/unix/sysv/linux/times.c: New file.
1834
1835         [BZ #5381]
1836         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
1837         mem_in_flight_list variables.  Add new parameter to mempool_alloc
1838         prototype.
1839         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
1840         appropriate mem_in_flight element.
1841         (gc): Take allocations which have not yet been committed to the
1842         database into account.
1843         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
1844         Reset mem_in_flight before returning.
1845         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
1846         cue it up in mem_in_flight_list.
1847         * nscd/aicache.c: Adjust mempool_alloc call.
1848         * nscd/grpcache.c: Likewise.
1849         * nscd/hstcache.c: Likewise.
1850         * nscd/initgrcache.c: Likewise.
1851         * nscd/pwdcache.c: Likewise.
1852         * nscd/servicescache.c: Likewise.
1853         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
1854         of -fpie.
1855
1856         * nscd/connections.c (handle_request): Provide better error message
1857         in case SELinux forbids the service.
1858
1859         * version.h (VERSION): Bump to 2.8.90.
1860
1861 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
1862
1863         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
1864
1865 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
1866
1867         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
1868         Also use for 32-bit.
1869         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
1870         __nextafter instead of nextafter to avoid local PLT.
1871         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
1872         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1873
1874         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
1875
1876         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
1877         __fe_nomask_env.
1878         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
1879         <fenv_libc.h> instead of <fenv.h>.
1880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
1881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
1882
1883         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
1884
1885         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
1886         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
1887         function from fegetexcept and make old name weak alias.
1888         * include/fenv.h: Declare __fegetexcept.
1889         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
1890         fegetexcept.
1891         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
1892         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
1893         to fetestexcept.
1894         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
1895         instead of frexpl to avoid local PLT.
1896         * math/s_significandl.c (__significandl): Use __ilogbl instead of
1897         ilogbl to avoid local PLT.
1898         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
1899         instead of ldexpl to avoid local PLT.
1900         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
1901         __roundl not roundl to avoid local PLT.
1902         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
1903         local PLTs.  Use __sincosl instead of separate sinl and cosl
1904         calls.
1905         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1906
1907         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
1908         version for ppc64 to 2.4.21 since without it makecontext will fail.
1909
1910         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
1911         to the ABI in use.
1912         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
1913         .__tls_get_addr.
1914         [__powerpc64__] (TLS_GD): Likewise.
1915
1916 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
1917
1918         [BZ #4997]
1919         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
1920         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
1921         mantissa.
1922         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1923         Likewise.  Also account for when x is an odd number between 2^52
1924         and 2^53-1.
1925         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
1926         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1927         * math/libm-test.inc (lround_test, llround_test): Added test cases to
1928         detect aforementioned erroneous conditions.
1929
1930 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
1931
1932         * configure.in: Check for -fno-section-anchors in addition to
1933         -fno-toplevel-reorder.
1934
1935 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
1936
1937         * include/features.h (__GLIBC_MINOR__): Bump to 8.
1938
1939         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
1940         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
1941         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
1942         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
1943         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
1944         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
1945
1946 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
1947
1948         [BZ #5443]
1949         * time/era.c: Transform __libc_setlocale_lock into rwlock.
1950         * time/alt_digit.c: Likewise.
1951         * wcsmbs/wcsmbsload.c: Likewise.
1952
1953 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
1954
1955         * version.h (VERSION): Bump to 2.8.
1956
1957         * timzeone/asia: Update from tzdata2008b.
1958         * timezone/backward: Likewise.
1959         * timezone/europe: Likewise.
1960         * timezone/northamerica: Likewise.
1961         * timezone/southamerica: Likewise.
1962         * timezone/iso3166.tab: Likewise.
1963         * timezone/leapseconds: Likewise.
1964         * timezone/zone.tab: Likewise.
1965         * timezone/private.h: Update from tzcode2008a.
1966         * timezone/zdump.c: Likewise.
1967         * timezone/zic.c: Likewise.
1968
1969 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
1970
1971         [BZ #5741]
1972         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
1973         Define additonal Data Cache Block instruction macros.
1974         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
1975         Replace dcbst with dcbf and sync with sync/isync.
1976
1977 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
1978
1979         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
1980         Always set ELF_RTYPE_CLASS_PLT.
1981         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
1982
1983 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
1984
1985         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
1986         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
1987         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
1988         For ISA 2.01 and later replace mftb with mfspr 268.
1989
1990 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
1991
1992         [BZ #5768]
1993         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
1994         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
1995
1996 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
1997
1998         [BZ #5768]
1999         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
2000         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
2001         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
2002         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
2003
2004 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
2005
2006         * stdlib/tst-makecontext.c (othervar): New variable.
2007         (cf): Test sign extending the argument to long.
2008
2009 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
2010
2011         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
2012         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
2013         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
2014         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
2015         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
2016         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
2017         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
2018
2019 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
2020
2021         * elf/Makefile (tests): Substitute tests-vis-yes here.
2022         (tests-vis-yes): Delete.
2023         (modules-name, modules-vis-yes): Similarly.
2024
2025 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
2026
2027         [BZ #4407]
2028         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
2029         Preserve sign in signgamp when x is zero.
2030
2031 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
2032
2033         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
2034         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
2035         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
2036         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
2037         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
2038         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
2039
2040 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2041
2042         [BZ #4314]
2043         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
2044         buffers.
2045
2046         [BZ #5209]
2047         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
2048         a reserved error value.
2049
2050         * stdlib/tst-makecontext.c: Change parameter to cf to negative
2051         value to check for correct sign extension.
2052
2053         [BZ #5436]
2054         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2055         Copy 64-bit parameter values even though this is not required in
2056         the standard.
2057
2058         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
2059         PC save.
2060
2061 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
2062
2063         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
2064         PC save.
2065
2066 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
2067
2068         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
2069
2070 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2071
2072         [BZ #5998]
2073         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
2074         in line-buffered stream failed.
2075         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2076
2077 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
2078
2079         [BZ #6024]
2080         * scripts/abi-versions.awk: If the version specified by
2081         --enable-oldest-abi is older than the first version for this
2082         architecture, use the default version.
2083
2084         * locale/programs/ld-collate.c (collate_read): Ignore script lines
2085         as well when ignoring the whole category.
2086
2087 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2088
2089         [BZ #6042]
2090         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
2091         ETHERTYPE_* definitions.
2092         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
2093
2094 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2095
2096         * stdlib/mbtowc.c (__no_r_state): Remove.
2097         (mbtowc): New static state variable.  Use it instead of
2098         __no_r_state.
2099         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
2100         (__wctomb_state): New hidden variable.
2101         (wctomb): Use __wctomb_state instead of __no_r_state.
2102         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
2103         (__wctomb_state): New extern decl.
2104         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
2105
2106 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2107
2108         [BZ #5475]
2109         * resolv/res_init.c: Handle scope IDs in resolv.conf.
2110
2111 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2112
2113         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2114
2115 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
2116
2117         * po/nl.po: Update from translation team.
2118
2119 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
2120
2121         [BZ #6007]
2122         * string/strfry.c: Handle empty strings again.
2123
2124 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2125
2126         [BZ #5443]
2127         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2128         before looking for translation.
2129         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2130         * locale/freelocale.c: Likewise.
2131         * locale/newlocale.c: Likewise.
2132         * locale/setlocale.c: Likewise.
2133         Based partially on a patch by ryo@np.css.fujitsu.com.
2134
2135 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
2136
2137         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2138         acquiring wrlock.  Do conv_tab allocation while holding lock.
2139         * intl/Makefile: Add rules to build and run tst-gettext6.
2140         * intl/tst-gettext6.c: New test.
2141         * intl/tst-gettext6.sh: New file.
2142
2143 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2144
2145         * po/nl.po: Update from translation team.
2146
2147         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2148         provided through st_blksize, try the default size before giving up.
2149
2150 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
2151
2152         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2153
2154         [BZ #5939]
2155         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2156
2157         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2158         error message.  POSIX today does not require the messages to be in
2159         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
2160
2161         [BZ #5979]
2162         * sunrpc/auth_unix.c: Unify printed strings.
2163         * sunrpc/clnt_tcp.c: Likewise.
2164         * sunrpc/clnt_udp.c: Likewise.
2165         * sunrpc/clnt_unix.c: Likewise.
2166         * sunrpc/svc_tcp.c: Likewise.
2167         * sunrpc/svc_udp.c: Likewise.
2168         * sunrpc/svc_unix.c: Likewise.
2169         * sunrpc/xdr.c: Likewise.
2170         * sunrpc/xdr_array.c: Likewise.
2171         * sunrpc/xdr_rec.c: Likewise.
2172         * sunrpc/xdr_ref.c: Likewise.
2173         * locale/programs/ld-time.c (time_finish): Unify messages.
2174         * locale/programs/locfile.c (handle_copy): Fix typo.
2175         * nscd/nscd.c (options): Fix typo.
2176
2177         [BZ #5995]
2178         * stdlib/strtod_l.c: Use correct sign for result in one more
2179         underflow case.
2180         Patch by Eric Blake <ebb9@byu.net>.
2181
2182 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
2183
2184         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2185         and creat system calls.
2186         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2187         call.
2188         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2189         system calls.
2190         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2191         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2192         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2193
2194 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
2195
2196         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2197         <linux/limits.h> has defined it.
2198         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2199         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2200         headers.
2201         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2202         it instead of ARG_MAX.
2203
2204 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
2205
2206         * posix/gai.conf: Fix comment for scope nullbits.
2207         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2208         default to 128 bits for v4 mapped addresses.
2209
2210 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2211
2212         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2213         ptrace call to get the ieee_instruction_pointer from the kernel.
2214         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2215         ptrace call to set the ieee_instructtion_pointer.
2216         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2217         Add comment that ieee_instruction_pointer is always 0.
2218
2219 2008-03-09  Andreas Jaeger  <aj@suse.de>
2220
2221         [BZ #5857]
2222         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2223         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2224         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2225
2226         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2227         (rint_test): Likewise.
2228
2229 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
2230
2231         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2232         call.
2233         (__nisfind_server): Similar for open readColdStartFile call.
2234         Patch partially by Jim Meyering.
2235         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2236         around internal_setent call.
2237
2238         * po/vi.po: New Vietnamese translation.
2239
2240         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2241         ADJ_OFFSET_SS_READ.
2242
2243         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2244         remove CLONE_STOPPED.
2245
2246 2008-02-10  Jim Meyering  <meyering@redhat.com>
2247
2248         Remove useless "if" before "free":
2249         * elf/ldconfig.c (parse_conf_include): Likewise.
2250         * gmon/gmon.c (weak_alias): Likewise.
2251         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2252         * inet/rcmd.c (__validuser2_sa): Likewise.
2253         * intl/bindtextdom.c (set_binding_values): Likewise.
2254         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2255         * libio/genops.c (save_for_backup): Likewise.
2256         * libio/wgenops.c (save_for_wbackup): Likewise.
2257         * locale/programs/ld-collate.c (collate_read): Likewise.
2258         * locale/programs/linereader.c (get_string): Likewise.
2259         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2260         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2261         * resolv/res_debug.c (do_section): Likewise.
2262         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2263         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2264         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2265         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2266         * time/tzset.c (tzset_internal): Likewise.
2267
2268 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2269
2270         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2271         of ASSEMBLER.
2272
2273 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
2274
2275         [BZ #5903]
2276         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2277         not stream for output file.  Open output file here.
2278         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2279         and output file name.
2280         (process_fd): Likewise.
2281         (process_file): Likewise.
2282         (main): Adjust callers of changed functions.
2283         * iconv/iconv_prog.h: Adjust prototype.
2284
2285 2008-03-09  Andreas Jaeger  <aj@suse.de>
2286
2287         [BZ #5753]
2288         * sysdeps/ia64/ieee754.h: Use protected namespace
2289         __BIG_ENDIAN/__LITTLE_ENDIAN.
2290         * sysdeps/ieee754/ieee754.h: Likewise.
2291         Patch by Aurelien Jarno <aurelien@aurel32.net>.
2292
2293 2008-03-08  Roland McGrath  <roland@frob.com>
2294
2295         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2296         ignore a signal that came from a machine exception, treat it as a
2297         fatal core-dump signal instead.
2298         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2299
2300         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2301         Clear DF bit in thread state's eflags.
2302         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2303
2304 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
2305
2306         [BZ #5774]
2307         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
2308         of NAN(...) sequence.
2309         * stdlib/Makefile (tests): Add tst-strtod6.
2310         * stdlib/tst-strtod6.c: New file.
2311
2312         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2313
2314         [BZ #5762]
2315         * posix/getopt.c (_getopt_internal_r): Clarify error message by
2316         putting offending option character in quotes.  Clean up error
2317         messages.
2318         * po/be.po: Adjust msgstr in translation file.
2319         * po/bg.po: Likewise.
2320         * po/ca.po: Likewise.
2321         * po/cs.po: Likewise.
2322         * po/da.po: Likewise.
2323         * po/de.po: Likewise.
2324         * po/es.po: Likewise.
2325         * po/fr.po: Likewise.
2326         * po/hr.po: Likewise.
2327         * po/ko.po: Likewise.
2328         * po/nl.po: Likewise.
2329         * po/rw.po: Likewise.
2330         * po/sk.po: Likewise.
2331         * po/sv.po: Likewise.
2332         * po/tr.po: Likewise.
2333         * po/zh_CN.po: Likewise.
2334         * po/zh_TW.po: Likewise.
2335
2336         [BZ #5760]
2337         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2338         Patch by Roland Bless <roland@bless.de>.
2339
2340         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2341         .o file.
2342         * elf/Makefile (routines): Add dl-sysdep.
2343         (elide-routines.os): Likewise.
2344
2345 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
2346
2347         [BZ #5786]
2348         * elf/dl-sysdep.c: Undefine ROUND after use.
2349         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2350         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2351         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2352         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2353         to ...
2354         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2355         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2356         if necessary.
2357         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2358
2359         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2360         _dl_tls_get_addr_soft element.
2361         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2362         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2363         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2364         GLRO.
2365         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2366         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2367         of internal_function.
2368
2369         * stdlib/Makefile (aux): Add tens_in_limb.
2370         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2371         * stdlib/tens_in_limb.c: ...here.  New file.
2372
2373         [BZ #5778]
2374         * sysdeps/unix/sysv/linux/pathconf.h: Declare
2375         __statfs_chown_restricted.
2376         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2377         for _PC_CHOWN_RESTRICTED.
2378         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2379         Implement __statfs_chown_restricted.
2380         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2381         _POSIX_CHOWN_RESTRICTED value to zero.
2382         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2383         defined to zero.
2384
2385         * sysdeps/x86_64/rtld-memset.c: New file.
2386
2387 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
2388
2389         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2390
2391         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2392         Barcelona machine.  Make default fall through branch of
2393         __x86_64_preferred_memory_instruction check as the integer code path.
2394
2395 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2396
2397         * sysdeps/x86_64/cacheinfo.c
2398         (__x86_64_preferred_memory_instruction): New variable.
2399         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2400
2401         * sysdeps/x86_64/memset.S: Rewrite.
2402
2403 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
2404
2405         * include/stdio.h (__asprintf_chk, __dprintf_chk,
2406         __obstack_printf_chk): New prototypes.
2407         (__vasprintf_chk, __vdprintf_chk,
2408         __obstack_vprintf_chk): Likewise.
2409         Add libc_hidden_proto.
2410         * libio/obprintf.c
2411         (_IO_obstack_jumps): No longer static, add attribute_hidden.
2412         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2413         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2414         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2415         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2416         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2417         __obstack_vprintf_chk): New prototypes.
2418         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2419         obstack_vprintf): New inlines.
2420         * debug/dprintf_chk.c: New file.
2421         * debug/vdprintf_chk.c: New file.
2422         * debug/asprintf_chk.c: New file.
2423         * debug/vasprintf_chk.c: New file.
2424         * debug/obprintf_chk.c: New file.
2425         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2426         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2427         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2428         @@GLIBC_2.8.
2429         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2430         vdprintf_chk and obprintf_chk, set CFLAGS for them.
2431         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2432         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2433         libc_hidden_proto.
2434         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2435         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2436         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2437         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2438         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2439         @@GLIBC_2.8.
2440         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2441         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2442         obstack_vprintf_chk.
2443         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2444         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2445         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2446         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2447         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2448         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2449
2450 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
2451
2452         [BZ #5779]
2453         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2454         Patch by Roy Marples <roy@marples.name>.
2455
2456         [BZ #5736]
2457         * malloc/malloc.c: Fix typo in comment.
2458
2459         [BZ #5627]
2460         * locale/iso-639.def: Add Shuswap.
2461
2462 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
2463
2464         [BZ #5790]
2465         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2466         overwrite *h_errnop/*errnop values from getanswer_r in case of
2467         failure.
2468
2469 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
2470
2471         [BZ #5818]
2472         * nscd/connections.c (dbs): Add initializers for .suggested_module.
2473         (verify_persistent_db): Remove one unnecessary test and add a new one
2474         for bad configuration.
2475         (nscd_init): Improve error reported when persistent database cannot
2476         be reused.
2477         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
2478         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
2479         .suggested_module and .max_db_size and case config file says the
2480         values are zero.
2481         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
2482
2483         [BZ #5854]
2484         * nis/ypclnt.c (yp_order): Fix handling of return value of
2485         do_ypcall_tr call.
2486         Patch by Jeff Moyer <jmoyer@redhat.com>.
2487
2488         * po/fr.po: Update from translation team.
2489
2490 2008-02-22  Andreas Jaeger  <aj@suse.de>,
2491             Carlos O'Donell <carlos@systemhalted.org>
2492
2493         [BZ #5012]
2494         * FAQ.in: Describe why glibc needs to be compiled with
2495         optimization.
2496
2497 2008-02-19  Roland McGrath  <roland@redhat.com>
2498
2499         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
2500
2501 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
2502
2503         [BZ #5737]
2504         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
2505         __USE_MISC is defined.
2506
2507 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
2508
2509         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2510         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2511         sys/timerfd.h.
2512         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2513         timerfd_gettime, timerfd_settime.
2514         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2515         timerfd_gettime, timerfd_settime for GLIBC_2.8.
2516
2517 2008-02-08  Roland McGrath  <roland@redhat.com>
2518
2519         * elf/elf.h (NT_PPC_SPE): New macro.
2520
2521 2008-02-06  Roland McGrath  <roland@redhat.com>
2522
2523         * Makerules ($(common-objpfx)sysd-rules):
2524         Depend on $(sysdep-makeconfigs).
2525
2526 2008-01-31  Roland McGrath  <roland@redhat.com>
2527
2528         [BZ #5442]
2529         * configure.in: Use -print-file-name if it yields a directory,
2530         for each of include and include-fixed.
2531         * configure: Regenerated.
2532
2533         * Makeconfig (sysd-rules-targets): New variable.
2534         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2535         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2536
2537 2008-01-30  Roland McGrath  <roland@redhat.com>
2538
2539         * manual/libc.texinfo: Update back-cover text.
2540
2541         * elf/elf.h (NT_386_TLS): New macro.
2542
2543 2008-01-29  Roland McGrath  <roland@redhat.com>
2544
2545         * Makeconfig (sysd-rules-patterns): New variable.
2546         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
2547         (check-inhibit-asm): New canned sequence, replaces ...
2548         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
2549         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
2550         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
2551         (CFLAGS-rtld): Variable removed.
2552
2553 2008-01-24  Roland McGrath  <roland@redhat.com>
2554
2555         * configure.in: Let configure fragments set base_os.
2556         * configure: Regenerated.
2557
2558 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
2559
2560         * po/ko.po: Update from translation team.
2561
2562 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
2563
2564         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
2565
2566 2008-01-12  Andreas Jaeger  <aj@suse.de>
2567
2568         [BZ #5040]
2569         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
2570         Add EPOLLRDHUP.
2571
2572 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2573
2574         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
2575         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
2576         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
2577
2578 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
2579
2580         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
2581         * elf/dl-close.c (_dl_close): Check for it.
2582         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
2583         (_dl_allocate_static_tls): Likewise.
2584         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2585         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
2586         to it.
2587         * elf/tst-tls16.c: New file.
2588         * elf/tst-tlsmod16a.c: New file.
2589         * elf/tst-tlsmod16b.c: New file.
2590         * elf/Makefile: Add rules to build and run tst-tls16.
2591
2592 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
2593
2594         [BZ #5628]
2595         * bits/shm.h: Fix comment describing shmid_ds.
2596         * sysdeps/gnu/bits/shm.h: Likewise.
2597         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2598         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2599         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2600         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2601         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2602         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2603         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2604         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2605         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
2606
2607         [BZ #5607]
2608         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
2609         prototypes.
2610         * conform/data/limits.h-data: Adjust limits changed in v6 and add
2611         additional suffixes.
2612         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
2613         Add optional functions mq_timedreceive and mq_timedsend.
2614         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
2615         * conform/data/pthread.h-data: Fix prototype of
2616         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
2617         * conform/data/semaphore.h-data: Allow time.h definitions.
2618         * conform/data/signal.h-data: Likewise.
2619         * conform/data/stdio.h-data: getw and putw are not required in v6.
2620         * conform/data/stdlib.h-data: Change setstate prototype.
2621         * conform/data/string.h-data: Fix strerror_r prototype.
2622         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
2623         * conform/data/unistd.h-data: pthread_atfork not required in v6.
2624         Fix readlink prototype.
2625         * conform/data/netinet/in.h-data: Add const to in6addr_any and
2626         in6addr_loopback.
2627         * inet/netinet/in.h: Cleanup namespace.
2628         * posix/regex.h: Likewise.
2629         * resolv/netdb.h: Likewise.
2630         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
2631         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2632         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2633         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
2634         of names of in in6_addr.
2635         (default_precedence): Likewise.
2636         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
2637         NULL definition.
2638
2639 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
2640
2641         * conform/data/fmtmsg.h-data: Add missing allows.
2642         * conform/data/ftw.h-data: Likewise.
2643         * conform/data/inttypes.h-data: Likewise.
2644         * conform/data/math.h-data: Likewise.
2645         * conform/data/signal.h-data: Likewise.
2646         * conform/data/net/if.h-data: Likewise.
2647         * conform/data/netinet/in.h-data: Likewise.
2648         * conform/data/sys/socket.h-data: Likewise.
2649
2650         [BZ #5614]
2651         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
2652         (__strtok_r): Simplify.
2653         * string/tester.c (test_strtok_r): Add test case for futile search
2654         with single-character seach string.
2655
2656 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
2657
2658         * po/ko.po: Update from translation team.
2659
2660 2008-01-11  Andreas Jaeger  <aj@suse.de>
2661
2662         [BZ #5600]
2663         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
2664         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
2665         kernel header.
2666
2667 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
2668
2669         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
2670         native interface lookup in all the relevant places.
2671
2672 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
2673             Ulrich Drepper  <drepper@redhat.com>
2674
2675         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
2676         field.  Use sockaddr_in6 for source_addr.
2677         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
2678         (match_prefix): Likewise.
2679         (get_label): Likewise.
2680         (get_precedence): Likewise.
2681         (rfc3484_sort): Change to use indirect access to results array.
2682         Adjust to use of sockaddr_in6.  Replace service_order test with
2683         simple index comparison.
2684         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
2685         service_order field.  Adjust qsort_t calls.  Access sorted result
2686         array indirectly through order array.
2687         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
2688         * posix/tst-rfc3484-2.c: Likewise.
2689         * posix/tst-rfc3484-3.c: Likewise.
2690
2691 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
2692
2693         [BZ #5541]
2694         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
2695         pollfd structures.
2696         Patch by AndrĂ© Cruz.
2697
2698         [BZ #5545]
2699         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
2700         (clnt_spcreateerror): Likewise.
2701
2702         [BZ #5553]
2703         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
2704         (public_mEMALIGn): Likewise.
2705         Patch mostly by Daniel Jacobowitz.
2706
2707 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
2708
2709         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
2710         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
2711         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
2712         * stdlib/tst-makecontext2.c: New test.
2713
2714 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
2715
2716         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
2717         defined.
2718         (REINIT_PARAMS): Likewise.  Undefine before end of file.
2719         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
2720         transliteration hooks and REINIT_PARAMS afterwards.
2721         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
2722         status.
2723         (REINIT_PARAMS): Define.
2724         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
2725         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
2726         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
2727         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
2728         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
2729         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
2730         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
2731         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
2732         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
2733         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
2734         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
2735         * iconvdata/tst-iconv7.c: New test.
2736
2737 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
2738
2739         * libio/stdio.h (vscanf): Fix definition for loser compilers.
2740
2741 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
2742
2743         [BZ #5112]
2744         * nscd/connections.c (restart): Fix condition.
2745
2746 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
2747
2748         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
2749         __ctype_toupper_loc): Add __THROW.
2750
2751 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
2752
2753         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
2754         recognition of interface family.
2755
2756         * posix/getconf.c: Update copyright year.
2757         * nss/getent.c: Likewise.
2758         * iconv/iconvconfig.c: Likewise.
2759         * iconv/iconv_prog.c: Likewise.
2760         * elf/ldconfig.c: Likewise.
2761         * catgets/gencat.c: Likewise.
2762         * csu/version.c: Likewise.
2763         * elf/ldd.bash.in: Likewise.
2764         * elf/sprof.c (print_version): Likewise.
2765         * locale/programs/locale.c: Likewise.
2766         * locale/programs/localedef.c: Likewise.
2767         * nscd/nscd.c (print_version): Likewise.
2768         * debug/xtrace.sh: Likewise.
2769         * malloc/memusage.sh: Likewise.
2770         * malloc/mtrace.pl: Likewise.
2771         * debug/catchsegv.sh: Likewise.
2772
2773 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
2774
2775         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
2776         second lookup.
2777
2778 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
2779
2780         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
2781         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2782
2783 2007-12-17  Roland McGrath  <roland@redhat.com>
2784
2785         * inet/ether_line.c (ether_line): Remove unused variable.
2786
2787 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2788
2789         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
2790         and winp.
2791         * login/openpty.c (openpty): Likewise.
2792         * login/pty.h (openpty, forkpty): Likewise.
2793         * manual/terminal.texi (openpty, forkpty): Likewise.
2794
2795 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
2796
2797         * malloc/malloc.c (public_cALLOc): For arenas other than
2798         main_arena, count all bytes inside the mprotect_size range of the
2799         heap as uninitialized.
2800
2801 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
2802
2803         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
2804         executable stacks.
2805
2806         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
2807         mTRIm for all of them.
2808         (mTRIm): Additionally iterate over all free blocks and use madvise
2809         to free memory for all those blocks which contain at least one
2810         memory page.
2811         * malloc/tst-trim1.c: New file.
2812         * malloc/Makefile (tests): Add tst-trim1.
2813
2814         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
2815
2816 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
2817
2818         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2819         First cast argument to long
2820         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
2821         Return long.
2822         (__vdso_clock_gettime): Likewise.
2823         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
2824         return long.
2825
2826 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
2827
2828         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
2829         * locale/nl_langinfo_l.c: Real implementation, copied from
2830         nl_langinfo.c.
2831         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
2832
2833 2007-12-01  Jim Meyering  <meyering@redhat.com>
2834
2835         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2836         that would inhibit utf8-optimization of a regexp containing line-
2837         or buffer-anchors, e.g., `^', `$'.
2838
2839 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
2840
2841         * time/bug-getdate1.c (do_test): Don't use century values which
2842         aren't valid on 32-bit systems.
2843
2844 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
2845
2846         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
2847         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
2848         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
2849         __strcat_g, __strncat_g): Add __asm__.
2850
2851 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
2852
2853         [BZ #5477]
2854         * io/fchmodat.c: Fix typo in stub_warning use.
2855         Patch by Petr Salinger.
2856
2857 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
2858
2859         * iconvdata/hp-thai8.c: New file.
2860         * iconvdata/Makefile: Add rules for hp-thai8.c.
2861         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
2862         * iconvdata/gconv-modules: Likewise.
2863
2864         [BZ #5464]
2865         * iconvdata/hp-greek8.c: New file.
2866         * iconvdata/Makefile: Add rules for hp-greek8.c.
2867         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
2868         * iconvdata/gconv-modules: Likewise.
2869
2870         [BZ #5463]
2871         * iconvdata/hp-turkish8.c: New file.
2872         * iconvdata/Makefile: Add rules for hp-turkish8.c.
2873         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
2874         * iconvdata/gconv-modules: Likewise.
2875
2876         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
2877         (shrink_heap): ... this new function.
2878         (heap_trim): Call shrink_heap instead of grow_heap.
2879
2880         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
2881         case don't call alloc_perturb.
2882
2883 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
2884
2885         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
2886         possible.
2887         * sysdeps/unix/sysv/linux/kernel-features.h
2888         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
2889         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
2890
2891 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
2892
2893         [BZ #5424]
2894         * stdio-common/vfprintf.c: Do not overflow when adding to done.
2895         * stdio-common/Makefile (tests): Add bug22.
2896         * stdio-common/bug22.c: New file.
2897
2898         [BZ #5451]
2899         * time/getdate.c: Fix filling in default values.
2900         * time/bug-getdate1.c: New file.
2901         * time/Makefile: Add rules to build and run bug-getdate1.
2902
2903         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
2904         * iconvdata/ebcdic-es.c: Likewise.
2905         * iconvdata/ebcdic-es-a.c: Likewise.
2906         * iconvdata/ebcdic-uk.c: Likewise.
2907         * iconvdata/iso8859-16.c: Likewise.
2908         * iconvdata/viscii.c: Likewise.
2909         * iconvdata/iso8859-9e.c: Likewise.
2910         * iconvdata/Makefile: Adjust appropriately.
2911
2912         [BZ #5428]
2913         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
2914         __need_wint_t.
2915
2916 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
2917
2918         [BZ #5427]
2919         * iconvdata/hp-roman9.c: New file.
2920         * iconvdata/Makefile: Add rules for hp-roman9.c.
2921         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
2922         * iconvdata/gconv-modules: Likewise.
2923
2924         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
2925         * iconvdata/Makefile: Adjust appropriately.
2926
2927         [BZ #5441]
2928         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
2929         structure, it's allocated with alloca.
2930         * stdio-common/Makefile (tests): Add bug21.
2931         * stdio-common/bug21.c: New file.
2932
2933 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
2934
2935         [BZ #5452]
2936         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
2937         keyword for gcc's braced-groups.
2938
2939 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
2940
2941         [BZ #5454]
2942         * inet/ether_line.c: Strip hostname of whitespaces.
2943         * inet/Makefile (tests): Add tst-ether_line.
2944         * inet/tst-ether_line.c: New file.
2945
2946 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
2947
2948         [BZ #5439]
2949         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
2950
2951         [BZ #5435]
2952         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
2953
2954         * stdlib/tst-setcontext.c: Catch the case where the links gets
2955         messed up and we do not reach main again.
2956
2957         * po/ca.po: Update from translation team.
2958
2959 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
2960
2961         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
2962         * posix/regex.h (REG_ENOSYS): Likewise.
2963         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
2964
2965 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
2966
2967         * nscd/nscd.h (MAX_STACK_USE): Define.
2968         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
2969         (gc): Initialize stack_used based on allocation in prune_cache.
2970         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
2971         Clear array before use.
2972
2973         * nscd/aicache.c (addhstaiX): Update statistics counter in case
2974         memory allocation failed.
2975         * nscd/hstcache.c (cache_addhst): Likewise.
2976         * nscd/grpcache.c (cache_addgr): Likewise.
2977         * nscd/servicescache.c (cache_addserv): Likewise.
2978         * nscd/pwdcache.c (cache_addpw): Likewise.
2979         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2980
2981 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
2982
2983         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
2984         and creat system calls.
2985
2986         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
2987
2988 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2989
2990         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
2991         Add netiucv/iucv.h.
2992         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
2993         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
2994         protocol.
2995         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
2996         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
2997         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
2998
2999 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3000
3001         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
3002         strncat): Define as macros to avoid compile errors.
3003
3004         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
3005         creat entries.
3006
3007 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
3008
3009         [BZ #5382]
3010         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
3011         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
3012         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
3013         overflow it.
3014         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3015
3016         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
3017         Return zero in case the thread library is not NPTL.
3018
3019         [BZ #5375]
3020         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
3021         initializing interface list.
3022
3023         [BZ #5378]
3024         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
3025         use result of nss_getgrgid_r if nothing was found.  For other
3026         error return with a failure.
3027         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3028
3029         * locale/programs/ld-collate.c (collate_read): Fix loop to match
3030         macro name.
3031
3032 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3033
3034         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
3035         (get_scope): For IPv4 scope, use scopes table.
3036         (fini): Free scopes table if necessary.
3037         (free_scopelist): New function.
3038         (scopecmp): New function.
3039         (gaiconf_init): Also handle scopev4 entries.
3040         * posix/tst-rfc3484.c (do_test): Initialize scopes.
3041         * posix/tst-rfc3484-2.c (do_test): Likewise.
3042         * posix/gai.conf: Document scopev4 defaults.
3043         * posix/Makefile (tests): Add tst-rfc3484-3.
3044         * posix/tst-rfc3484-3.c: New file.
3045
3046         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
3047         Teredo tunnels.
3048         * posix/gai.conf: Update for current default tables.
3049
3050 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3051
3052         * po/tr.po: Update from translation team.
3053
3054 2007-11-18  Roland McGrath  <roland@frob.com>
3055
3056         * manual/arith.texi (Remainder Functions): Spelling fix.
3057         From Shaun Silk <genix@mysoul.com.au>.
3058
3059         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
3060
3061 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
3062
3063         * po/zh_CN.po: Update from translation team.
3064
3065         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3066         Add sys/signalfd.h and sys/eventfd.h.
3067
3068 2007-11-15  Bruno Haible  <bruno@clisp.org>
3069
3070         [BZ #5346]
3071         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
3072         union.
3073         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
3074         (DCIGETTEXT): Change the allocation of the 'search' variable so that
3075         it needs only fixed stack space. Delay the initialization of
3076         msgid_len until it is needed.
3077
3078 2007-11-15  Andreas Jaeger  <aj@suse.de>
3079
3080         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
3081         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
3082
3083 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
3084
3085         * po/ko.po: Update from translation team.
3086
3087 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
3088
3089         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
3090         significantly.  The device type is also part of the ifinfomsg data.
3091
3092         * po/sv.po: Update from translation team.
3093         * po/nl.po: Likewise.
3094
3095         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
3096         to wake up in 24 hours.
3097
3098         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
3099
3100 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
3101
3102         * po/cs.po: Update from translation team.
3103         * po/pl.po: Likewise.
3104
3105         * include/ifaddrs.h: Remove in6ai_temporary.
3106         (struct in6addrinfo): Add index element.
3107         Declare __check_native.
3108         * inet/Makefile (aux): Add check_native.
3109         * sysdeps/unix/sysv/linux/check_native.c: New file.
3110         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
3111         IFA_F_TEMPORARY.  Pass back ifa_index.
3112         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3113         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
3114         call __check_native if necessary.
3115         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
3116         to sort addresses.  Pass information about the results.
3117         * posix/tst-rfc3484.c: Adjust for addition of index field and change
3118         of rfc3484_sort interface.
3119         * posix/tst-rfc3484-2.c: Likewise.
3120
3121         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
3122         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3123         for _quicksort.
3124         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3125         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
3126         on as third parameter to compare function and _quicksort.
3127         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3128         to the compare function.
3129         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3130         * Versions.def: Add GLIBC_2.8 for libc.
3131
3132         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3133         * posix/tst-rfc3484-2.c: Likewise.
3134
3135         * include/kernel-features.h: Moved to...
3136         * sysdeps/mach/hurd/kernel-features.h: ...here.
3137
3138 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3139
3140         * sysdeps/i386/i586/memcpy_chk.S: New file.
3141         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3142         * sysdeps/i386/i586/memset_chk.S: Likewise.
3143
3144 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
3145
3146         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3147         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3148         list of interfaces.  Also store prefix length.
3149         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3150         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3151         prefix if source and destination address are in the same subnet.
3152         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
3153         Always look for matching record in in6ai list.
3154         Correct source_addr_len value for IPv6->IPv4 converted records.
3155
3156 2007-11-11  Roland McGrath  <roland@frob.com>
3157
3158         * include/kernel-features.h: New file.
3159
3160 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
3161
3162         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3163         complications for 64-bit platforms.
3164
3165         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3166         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
3167         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3168         open64_2.
3169         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3170         entries.
3171         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3172         * sysdeps/wordsize-64/alphasort.c: New file.
3173         * sysdeps/wordsize-64/alphasort64.c: New file.
3174         * sysdeps/wordsize-64/fseeko.c: New file.
3175         * sysdeps/wordsize-64/fseeko64.c: New file.
3176         * sysdeps/wordsize-64/ftello.c: New file.
3177         * sysdeps/wordsize-64/ftello64.c: New file.
3178         * sysdeps/wordsize-64/ftw.c: New file.
3179         * sysdeps/wordsize-64/ftw64.c: New file.
3180         * sysdeps/wordsize-64/iofgetpos.c: New file.
3181         * sysdeps/wordsize-64/iofgetpos64.c: New file.
3182         * sysdeps/wordsize-64/iofopen.c: New file.
3183         * sysdeps/wordsize-64/iofopen64.c: New file.
3184         * sysdeps/wordsize-64/iofsetpos.c: New file.
3185         * sysdeps/wordsize-64/iofsetpos64.c: New file.
3186         * sysdeps/wordsize-64/lockf.c: New file.
3187         * sysdeps/wordsize-64/lockf64.c: New file.
3188         * sysdeps/wordsize-64/mkostemp.c: New file.
3189         * sysdeps/wordsize-64/mkostemp64.c: New file.
3190         * sysdeps/wordsize-64/mkstemp.c: New file.
3191         * sysdeps/wordsize-64/mkstemp64.c: New file.
3192         * sysdeps/wordsize-64/scandir.c: New file.
3193         * sysdeps/wordsize-64/scandir64.c: New file.
3194         * sysdeps/wordsize-64/tmpfile.c: New file.
3195         * sysdeps/wordsize-64/tmpfile64.c: New file.
3196         * sysdeps/wordsize-64/versionsort.c: New file.
3197         * sysdeps/wordsize-64/versionsort64.c: New file.
3198         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3199         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3200         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3201         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3202         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3203         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3204         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3205         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3206         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3207         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3208         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3209         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3210
3211         * crypt/sha256-crypt.c: Fix a comment.
3212         * crypt/sha512-crypt.c: Likewise.
3213
3214 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
3215
3216         * sysdeps/x86_64/memset.S: Add sfence after movnti.
3217
3218 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
3219
3220         [BZ #5277]
3221         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3222         because output buffer is too small break, don't loop.
3223         * iconvdata/Makefile (tests): Add bug-iconv6.
3224         * iconvdata/bug-iconv6.c: New file.
3225
3226 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
3227
3228         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3229         with size_t type.
3230         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3231         size_t.  Add casts where needed.
3232
3233         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3234         old headers, don't call avc_has_perm if we don't have the
3235         permission information.
3236
3237 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
3238
3239         * elf/rtld.c (dl_main): Use the page size to find the map start.
3240
3241 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
3242
3243         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3244         Patch by Szymon Siwek <sls@poczta.wp.pl>.
3245
3246         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3247         when the lookup call failed.
3248
3249         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3250         Add prune_cond and wakeup_time.
3251         (CACHE_PRUNE_INTERNAL): Define.
3252         Update declarations of prune_cache and setup_thread.
3253         * nscd/connections.c (dbs): Update initializers.
3254         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3255         (nscd_init): Default number of threads is now 4.
3256         (invalidate_cache): Take lock before calling prune_cache.
3257         (handle_request): If SELinux forbids the request, say so.
3258         (readylist_cond): Use static initializer.
3259         (nscd_run_prune): New function.  Used only by pruning threads.
3260         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
3261         here.
3262         (fd_ready): Update nscd_run reference.
3263         (start_threads): No need to initialize readylist_cond.
3264         Start pruning threads separately.
3265         * nscd/nscd_setup_thread.c: Change return value type to int and always
3266         return 0.
3267         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3268         to int and return nonzero value if we can use the TID address hack.
3269         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3270         the database is later than the new entry's timeout, update the
3271         wakeup time and wake the cleanup thread.
3272         (prune_cache): Return seconds the next entry in the database is still
3273         valid.  Remove locking for pruning here.
3274         * nscd/nscd.conf: Document default number of threads.
3275
3276 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
3277
3278         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3279         stack is properly aligned for the target function.
3280         Correct unwind info.
3281
3282         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3283         when using auditing libraries.
3284
3285 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
3286
3287         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3288         _nss_dns_getnetbyaddr2_r.
3289         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
3290         extra parameter to getanswer_r.
3291         (_nss_dns_getnetbyaddr_r): Now a wrapper around
3292         _nss_dns_getnetbyaddr2_r.
3293
3294         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3295         gethstbynm3_r.
3296         * nscd/gethstbynm2_r.c: Remove.
3297         * nscd/gethstbynm3_r.c: New file.
3298         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3299         __gethostbyaddr_r.
3300         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
3301         __gethostbyaddr_r compatibility wrapper.
3302         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
3303         determining timeout of entry.
3304         (lookup): Take new parameter and pass it to __gethostbyname3_r and
3305         __gethostbyaddr2_r.
3306         (addhstbyX): Pass reference to variable for TTL to lookup and
3307         cache_addhst.
3308         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3309         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3310         and __nss_next2.  Remove __nss_services_lookup.
3311         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
3312         Add compat wrapper.
3313         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3314         __nss_next2.
3315         * nss/getXXent_r.c: Likewise.
3316         * nss/getnssent_r.c: Likewise.
3317         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
3318         does not exist in module, try the optional second name.
3319         (__nss_next2): New function.
3320         (__nss_next): Now wrapper around __nss_next2.
3321         * nss/nsswitch.h: Adjust __nss_lookup prototype.
3322         Declare __nss_next2.
3323         Adjust definition of db_lookup_function type.
3324         * nss/service-lookup.c: Define NO_COMPAT.
3325         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3326         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3327         * inet/ether_ntoh.c: Likewise.
3328         * sunrpc/netname.c: Likewise.
3329         * sunrpc/publickey.c: Likewise.
3330         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
3331         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3332         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3333         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3334         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3335
3336         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3337
3338         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
3339
3340 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
3341
3342         [BZ #5204]
3343         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3344         * crypt/sha512c-test.c: Likewise.
3345
3346         [BZ #5225]
3347         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3348         to keep track of end of %[ format string element.
3349         * stdio-common/Makefile (tests): Add bug20.
3350         * stdio-common/bug20.c: New file.
3351
3352         [BZ #5222]
3353         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3354         path elements in counting mode.
3355
3356 2007-10-27  Andreas Jaeger  <aj@suse.de>
3357
3358         [BZ #5040]
3359         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3360
3361         [BZ #3112]
3362         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3363         (__cleanup): Free shared library when exiting.
3364         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3365         (__cleanup): Free shared library when exiting.
3366
3367 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3368
3369         [BZ #2549]
3370         * math/libm-test.inc (check_float_internal): Support
3371         denormalized return.
3372
3373 2007-10-23  Andreas Jaeger  <aj@suse.de>
3374
3375         [BZ #5208]
3376         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3377         __LONG_LONG_PAIR to handle little endian byte order.
3378         Suggested by abhishekrai@google.com
3379
3380 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
3381
3382         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3383
3384 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
3385
3386         * nscd/cache.c (prune_cache): Move test for modified file outside
3387         of locking.
3388
3389 2007-10-21  Andreas Jaeger  <aj@suse.de>
3390
3391         * manual/texinfo.tex: Update to latest version.
3392
3393         * manual/sysinfo.texi (System Parameters): Fix Formatting.
3394
3395         * manual/arith.texi (Status bit operations): Fix formatting.
3396
3397         * manual/errno.texi (Error Messages): Fix formatting.
3398
3399         * manual/sysinfo.texi (System Parameters): Fix formatting.
3400
3401         * manual/libc.texinfo: Update VERSION and UPDATED.
3402
3403 2007-10-19  Roland McGrath  <roland@redhat.com>
3404
3405         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3406
3407 2007-10-06  David S. Miller  <davem@davemloft.net>
3408
3409         * configure.in: Add sparcv9v2 and sparc64v2.
3410         * scripts/config.sub: Likewise.
3411         * configure: Regenerate.
3412         * elf/elf.h (HWCAP_SPARC_N2): New.
3413         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3414         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3415         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3416         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3417         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3418         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3419         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3420
3421 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
3422
3423         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3424         even if the poll result indicates there is data to read.
3425         Patch by Jeff Moyer <jmoyer@redhat.com>.
3426
3427 2007-10-18  Roland McGrath  <roland@redhat.com>
3428
3429         * elf/elf.h (NT_PPC_VMX): New macro.
3430
3431 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3432
3433         * version.h (VERSION): Set to 2.7.90.
3434
3435 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3436
3437         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
3438         weak_alias.
3439
3440 2007-10-17  Roland McGrath  <roland@frob.com>
3441
3442         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3443         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3444
3445 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3446
3447         * version.h (VERSION): Bump to 2.7.
3448         * include/features.h (__GLIBC_MINOR__): Bump to 7.
3449
3450         [BZ #5186]
3451         * time/tzset.c (__tz_convert): Don't force testing for a change of
3452         TZ if not called from localtime.  But then also see whether the
3453         file changed, in case __use_tzfile is set.
3454
3455         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3456         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3457         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3458         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3459         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3460         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3461         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
3462         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3463
3464 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3465
3466         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3467         and admin selects to be able to replace the gai.conf file, lock
3468         data structures around the qsort call.
3469
3470 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3471
3472         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3473         new memset.
3474         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
3475         too high for the improvements.  Implement bzero unconditionally for
3476         use in libc.
3477
3478 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3479             Jakub Jelinek  <jakub@redhat.com>
3480
3481         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
3482         even when time_t is 32-bit.
3483         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
3484         timezone data read by __tzfile_default.  Ensure __tzname[0] is
3485         always set after the search.
3486
3487 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3488
3489         * time/tzfile.c (__tzfile_read): Help the compiler recognize
3490         unreachable code on 32-bit machines.
3491
3492 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3493
3494         [BZ #5184]
3495         * time/strftime_l.c: Include stdbool.h.
3496         (my_strftime): New wrapper, old function renamed to...
3497         (__strftime_internal): ... new function.  Add tzset_called
3498         argument, pass it down to recursive calls, don't call tzset ()
3499         if already true, set to true after call to tzset ().
3500
3501 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3502
3503         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
3504         into account when copying TZ string.
3505
3506 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3507
3508         * time/tzfile.c (__tzfile_compute): For use_last case set i to
3509         num_transition rather than num_transitions - 1.
3510
3511 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3512
3513         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3514         PIC indirect jump.
3515
3516         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3517         a local label rather than HIDDEN_JUMPTARGET.
3518
3519 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3520
3521         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3522         (init_cacheinfo): Initialize it.
3523         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3524         Always define bzero.
3525         Remove non-glibc code.
3526         * sysdeps/x86_64/bzero.S: Make an empty file.
3527
3528 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3529
3530         * sysdeps/x86_64/cacheinfo.c
3531         (__x86_64_preferred_memory_instruction): New.
3532         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3533
3534         * sysdeps/x86_64/memset.S: Rewrite.
3535
3536 2007-10-15  Roland McGrath  <roland@redhat.com>
3537
3538         * po/libc.pot: Regenerated.
3539
3540 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3541
3542         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
3543         pointers.
3544
3545         [BZ #3425]
3546         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
3547         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
3548         address record to T_A/T_AAAA requests.
3549
3550 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
3551
3552         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
3553
3554         * posix/glob.c: Add some branch prediction throughout.
3555
3556         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
3557         read from nscd.
3558
3559         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
3560         service_order.
3561         (rfc3484_sort): Make sure that even if qsort doesn't support
3562         stable sorting out sorting here is stable by comparing service_order.
3563         (getaddrinfo): Initialize service_order.
3564         * posix/tst-rfc3484.c (do_test): Adjust for addition of
3565         service_order field to sorting structure.
3566         * posix/tst-rfc3484-2.c (do_test): Likewise.
3567
3568         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
3569         * time/tzset.c (tzset_internal): Break TZ string parsing out into
3570         __tzset_parse_tz and updating of daylight, timezone, tzname into
3571         update_vars.
3572         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
3573         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
3574         happens in __tz_compute.
3575         * time/tzfile.c (__tzfile_read): Also read TZ string.
3576         (find_transition): Fold into __tzfile_compute.
3577         (__tzfile_compute): For times beyond the last transition try to
3578         use the TZ string.
3579         * timezone/tst-timezone.c: Information in daylight and tzname does
3580         change for Asia/Tokyo timezone with more concrete information.
3581         Remove the test.
3582
3583         * include/stdio.h: Add libc_hidden_proto for ftello.
3584         * libio/ftello.c: Add libc_hidden_def.
3585
3586         [BZ #1140]
3587         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
3588         on the specified time and not the last entries in the file.  Move
3589         code to determine tzname[] to...
3590         (find_transition): ...here.  Add ugly guess for times before the
3591         first transition.
3592
3593 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3594
3595         [BZ #3195]
3596         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
3597         no entry.
3598         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
3599         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3600         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3601         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3602
3603         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
3604         read mechanism when there are no group members and avoid no-op
3605         read syscall in this case.
3606
3607         [BZ #3242]
3608         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
3609         (__readall): If reading failed due to EAGAIN error wait a bit
3610         and possibly try again.
3611         (__readvall): Likewise.
3612
3613 2007-10-13  Bruno Haible  <bruno@clisp.org>
3614
3615         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
3616         when we cannot recode the message.
3617
3618 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3619
3620         [BZ #4359]
3621         * libio/__freading.c (__freading): Don't return true for
3622         write-only streams.  For read/write streams, check whether we
3623         performed a read operation already.
3624         * libio/Makefile (tests): Add tst-ext2.
3625         * libio/tst-ext2.c: New file.
3626
3627 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3628
3629         * locale/programs/repertoire.c (repertoire_read): Always free
3630         memory for repertoire file name [Coverity CID 270].
3631
3632         * elf/cache.c (save_aux_cache): Free memory allocated for
3633         temporary file name [Coverity CID 267].
3634
3635 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3636
3637         * misc/Makefile (headers): Add bits/error.h.
3638
3639 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3640
3641         * posix/fnmatch_loop.c: Take rule index returned as part of
3642         findidx return value into account when accessing weights.
3643         * posix/regcomp.c: Likewise.
3644         * posix/regexec.c: Likewise.
3645
3646         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
3647         (skip_to): Fix problems with parameter of elifdef/elifndef.
3648
3649 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
3650
3651         * iconv/gconv_simple.c: Add some branch prediction.
3652
3653 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3654
3655         * locale/programs/ld-collate.c (collate_read): If ignore_content
3656         and nowtok is tok_define, eat any tok_eol tokens.
3657
3658 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
3659
3660         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
3661         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
3662
3663         * inet/netinet/in.h: Don't include bits/socket.h.
3664         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
3665         macro.
3666         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3667
3668 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
3669
3670         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
3671         and tok_elifndef.
3672         * locale/programs/locfile-kw.gperf: Likewise.
3673         * locale/programs/ld-collate.c: Implement primitive preprocessor.
3674
3675 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
3676
3677         * stdio-common/printf-parse.h: Include string.h and wchar.h.
3678         (__find_specwc): Change into __extern_always_inline function.
3679         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
3680         (__parse_one_specmb): Remove ps argument.
3681         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
3682         Adjust __find_specmb and __parse_one_specmb callers.
3683         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
3684         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
3685         Removed.
3686         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
3687         caller.
3688
3689 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
3690
3691         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
3692         with some Pentium Ds.
3693
3694 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
3695
3696         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
3697         __read not read.
3698         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
3699         __write not write.
3700
3701 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
3702
3703         [BZ #181]
3704         * locale/C-time.c: Set week_1stday data to 19971201.
3705         * locale/programs/ld-time.c (time_finish): Default for
3706         first_workday is Monday.
3707
3708         [BZ #2633]
3709         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
3710
3711         [BZ #5103]
3712         * posix/glob.c (glob): Recognize patterns starting \/.
3713         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
3714         (main): Add test for pattern starting \/.
3715
3716         * misc/error.h: Use __const instead of const.
3717         * misc/bits/error.h: Likewise.
3718
3719 2007-10-07  Andreas Jaeger  <aj@suse.de>
3720
3721         * include/bits/error.h: New file.
3722
3723         * misc/bits/error.h (error_at_line): Fix prototype.
3724
3725 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
3726
3727         [BZ #3924]
3728         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
3729         more little bugs in creating the stack frame when pltexit has to
3730         be called.
3731
3732         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
3733         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
3734
3735         [BZ #4407]
3736         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
3737         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3738         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3739         * math/libm-test.inc: Add test for this case.
3740
3741         [BZ #5010]
3742         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
3743         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
3744         map service succeeded.
3745         (svc_is_mapped): New function.
3746         (svc_unregister): Use it before trying to unmap service.
3747
3748 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
3749
3750         * timezone/zic.c: Update from tzcode2007h.
3751
3752         [BZ #5063]
3753         * timezone/africa: Update from tzdata2007h.
3754         * timezone/antarctica: Likewise.
3755         * timezone/asia: Likewise.
3756         * timezone/australasia: Likewise.
3757         * timezone/europe: Likewise.
3758         * timezone/leapseconds: Likewise.
3759         * timezone/northamerica: Likewise.
3760         * timezone/southamerica: Likewise.
3761         * timzeone/zone.tab: Likewise.
3762
3763         [BZ #5104]
3764         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
3765
3766         [BZ #5113]
3767         * string/bits/string2.h (__strdup): Cast parameters to calloc to
3768         avoid warning with -Wconversion.
3769         (__strndup): Likewise.
3770         Half the patch by Christian Iseli <christian.iseli@licr.org>.
3771
3772         [BZ #5112]
3773         * nscd/connections.c (restart): Don't resync if database is
3774         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
3775
3776         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
3777         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
3778
3779         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
3780         evetnfd_read, eventfd_write.
3781         * sysdeps/unix/sysv/linux/eventfd.c: New file.
3782         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
3783         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
3784         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
3785         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
3786         eventfd_write for GLIBC_2.7.
3787
3788         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
3789         * sysdeps/unix/sysv/linux/signalfd.c: New file.
3790         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
3791         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
3792
3793 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
3794
3795         * stdlib/msort.c: Include stdint.h.
3796         (struct msort_param): New type.
3797         (msort_with_tmp): Use struct msort_param pointer for unchanging
3798         parameters.  Add optimized handling for several common sizes
3799         and indirect sorting mode.
3800         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
3801         sorting.
3802         Suggested by Belazougui Djamel .
3803
3804         * stdlib/Makefile (tests): Add tst-qsort2.
3805         * stdlib/tst-qsort2.c: New test.
3806
3807 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
3808
3809         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
3810         for dup2 in case another thread races with the current one.  Retry
3811         in this case.
3812
3813         * misc/error.h: Remove support for use outside of libc.  We have to
3814         include <features.h> now.  Include <bits/error.h> if possible.
3815         * misc/bits/error.h: New file.
3816
3817 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
3818
3819         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
3820         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
3821         __extern_always_inline functions unconditionally, drop macros.
3822
3823         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
3824         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
3825         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
3826
3827         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
3828         add __artificial__ attribute.
3829
3830 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
3831
3832         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
3833         backward to forward direction.
3834
3835         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
3836
3837         [BZ #645]
3838         * locale/programs/ld-collate.c (collate_finish): Compare against last
3839         used section which is known to have rules defined.
3840         (collate_read): After order_start, correctly record order of sections
3841         and queue sections up.
3842
3843 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
3844
3845         [BZ #5071]
3846         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
3847         the same number of pages.
3848         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
3849
3850         * locale/programs/ld-collate.c (collate_read): After initial copy
3851         statement, continue in state 0.
3852
3853         * include/stdio_ext.h (__fsetlocking): Define as macro.
3854
3855 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
3856
3857         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
3858         of section order.
3859
3860         * po/pt_BR.po: Fix typo.
3861
3862 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
3863
3864         * iconvdata/Makefile (modules): Add ISO8859-9E.
3865         (distribute): Add iso8859-9e.c.
3866         (gen-8bit-gap-modules): Add iso8859-9e.
3867         * iconvdata/iso8859-9e.c: New file.
3868         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
3869         * iconvdata/TESTS: Likewise.
3870         * iconvdata/tst-tables.sh: Likewise.
3871
3872         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3873
3874         * locale/iso-639.def: Add several new entries.
3875
3876 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
3877
3878         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
3879         void * pointers instead of struct link_map **.
3880         (_dl_scope_free): Change argument type to void *.
3881         * include/link.h (struct link_map): Change type of l_reldeps
3882         to struct link_map_reldeps, move l_reldepsact into that
3883         struct too.
3884         * elf/dl-deps.c: Include atomic.h.
3885         (_dl_map_object_deps): Only change l->l_initfini when it is
3886         fully populated, use _dl_scope_free for freeing it.  Optimize
3887         removal of libs from reldeps by using l_reserved flag, when
3888         some removal is needed, allocate a new list instead of
3889         reallocating and free the old with _dl_scope_free.  Adjust
3890         for l_reldeps and l_reldepsact changes.
3891         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
3892         searching in l_initfini and l_reldeps without holding dl_load_lock.
3893         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
3894         l_reldepsact changes.
3895         * elf/dl-close.c (_dl_close_worker): Likewise.
3896         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
3897
3898 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
3899
3900         * iconvdata/Makefile (modules): Add KOI8-RU.
3901         (distribute): Add koi8-ru.c.
3902         (gen-8bit-gap-modules): Add koi8-ru.
3903         * iconvdata/koi8-ru.c: New file.
3904         * iconvdata/gconv-modules: Add entries for KOI8-RU.
3905         * iconvdata/TESTS: Likewise.
3906         * iconvdata/tst-tables.sh: Likewise.
3907
3908         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3909
3910 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
3911
3912         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
3913         with __warning__/__error__ attributes.
3914         (__warnattr): Define.
3915         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
3916         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
3917         __warnattr.
3918         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
3919         of __*_chk if compile time detectable overflow is found.
3920         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
3921         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
3922         with __warnattr.
3923         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
3924         instead of __*_chk if compile time detectable overflow is found.
3925         (__gets_alias): Rename to...
3926         (__gets_warn): ... this.  Add __warnattr.
3927         (gets): Call __gets_warn instead of __gets_alias.
3928         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
3929         aliases with __warnattr.
3930         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
3931         time detectable overflow is found.
3932         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
3933         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
3934         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
3935         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
3936         __getdomainname_chk_warn): New aliases with __warnattr.
3937         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
3938         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
3939         __*_chk_warn instead of __*_chk if compile time detectable overflow
3940         is found.
3941         (__getgroups_chk): Rename argument to __listlen from listlen.
3942         (__getwd_alias): Rename to...
3943         (__getwd_warn): ... this.  Add __warnattr.
3944         (getwd): Call __getwd_warn instead of __getwd_alias.
3945         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
3946         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
3947         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
3948         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
3949         __wcsnrtombs_chk_warn): New aliases with __warnattr.
3950         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
3951         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
3952         compile time detectable overflow is found.
3953         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
3954         to use __*_chk or not.
3955         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
3956         in comparisons which function should be called and in __*_chk*
3957         arguments.  Call __*_chk_warn instead of __*_chk if compile time
3958         detectable overflow is found.
3959         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
3960         __*_chk argument.
3961         * debug/tst-chk1.c (do_test): Add a few more tests.
3962
3963 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
3964
3965         [BZ #5058]
3966         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
3967         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
3968         (_nl_unload_domain): Finalize conversions_lock.
3969         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
3970         handling table of known conversions.
3971
3972 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
3973
3974         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
3975         close_not_cancel_no_status instead of close.
3976
3977 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
3978
3979         [BZ #5028]
3980         * posix/regcomp.c (lookup_collation_sequence_value): Check that
3981         nrules != 0 for multibyte chars.
3982
3983 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
3984
3985         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
3986         Provide better error message in case the type is unknown.
3987
3988         [BZ #4963]
3989         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
3990         * string/stratcliff.c: Make usable to test wide char functions.
3991         * wcsmbs/wcsatcliff.c: New file.
3992         * wcsmbs/Makefiel (tests): Add wcsatcliff.
3993
3994         [BZ #4972]
3995         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
3996         (distribute): Add mac-centraleurope.c.
3997         (gen-8bit-gap-modules): Add mac-centraleurope.
3998         * iconvdata/mac-centraleurope.c: New file.
3999         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
4000         * iconvdata/TESTS: Likewise.
4001         * iconvdata/tst-tables.sh: Likewise.
4002
4003         [BZ #5043]
4004         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
4005
4006 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
4007
4008         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
4009         from __x86_64_core_cache_size_half.
4010         (init_cacheinfo): Compute shared cache size for AMD processors with
4011         shared L3 correctly.
4012         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
4013         name change.
4014         Patch in large parts by Evandro Menezes.
4015
4016 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
4017
4018         * elf/dl-lookup.c (add_dependency): Handle failing memory
4019         allocation for dependency list.  Remove unnecessary check.
4020
4021         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
4022         open/close when determining source addresses.
4023
4024         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
4025         sha512-crypt, and sha512.
4026         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
4027         (distribute): Add sha256.h and sha512.h.
4028         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
4029         and call the appropriate code.
4030         * crypt/sha256-crypt.c: New file.
4031         * crypt/sha256.c: New file.
4032         * crypt/sha256.h: New file.
4033         * crypt/sha256c-test.c: New file.
4034         * crypt/sha256test.c: New file.
4035         * crypt/sha512-crypt.c: New file.
4036         * crypt/sha512.c: New file.
4037         * crypt/sha512.h: New file.
4038         * crypt/sha512c-test.c: New file.
4039         * crypt/sha512test.c: New file.
4040
4041 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
4042
4043         * misc/bits/syslog.h (syslog): Remove extraneous argument from
4044         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
4045         __syslog_chk.
4046
4047 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
4048
4049         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
4050         %as in fscanf format strings.
4051
4052         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
4053         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4054         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
4055         Likewise.
4056         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
4057         Likewise.
4058
4059         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
4060         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
4061         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
4062         * elf/dl-sym.c (do_sym): Likewise.
4063         * include/link.h (struct link_map): Add l_serial field.
4064         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
4065         * elf/dl-lookup.c (add_dependency): Add flags argument.
4066         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
4067         flags, use THREAD_GSCOPE_RESET_FLAG before and
4068         THREAD_GSCOPE_SET_FLAG after
4069         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
4070         Don't dereference map until it has been found on some list.
4071         If map->l_serial changed, return -1.
4072
4073 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
4074
4075         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
4076         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
4077         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
4078         libc_hidden_proto.
4079         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
4080         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
4081         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
4082         add libc_hidden_proto.
4083         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4084         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4085         conformance requested.
4086         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
4087         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4088         conformance requested.
4089         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4090         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
4091         conformance requested.
4092         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
4093         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
4094         ISO C99 or POSIX conformance requested.
4095         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
4096         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
4097         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
4098         and __isoc99_vsscanf@@GLIBC_2.7.
4099         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
4100         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
4101         (tests): Add scanf14.
4102         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
4103         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
4104         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
4105         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
4106         CFLAGS-isoc99_scanf.c): Add $(exceptions).
4107         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
4108         from using internal headers.
4109         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
4110         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
4111         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4112         and __isoc99_vswscanf@@GLIBC_2.7.
4113         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4114         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4115         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4116         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4117         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4118         * stdio-common/isoc99_scanf.c: New file.
4119         * stdio-common/isoc99_vsscanf.c: New file.
4120         * stdio-common/isoc99_vscanf.c: New file.
4121         * stdio-common/isoc99_vfscanf.c: New file.
4122         * stdio-common/isoc99_fscanf.c: New file.
4123         * stdio-common/isoc99_sscanf.c: New file.
4124         * wcsmbs/isoc99_fwscanf.c: New file.
4125         * wcsmbs/isoc99_vswscanf.c: New file.
4126         * wcsmbs/isoc99_swscanf.c: New file.
4127         * wcsmbs/isoc99_wscanf.c: New file.
4128         * wcsmbs/isoc99_vwscanf.c: New file.
4129         * wcsmbs/isoc99_vfwscanf.c: New file.
4130         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4131         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4132         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4133         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4134         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4135         * stdio-common/scanf14.c: New test.
4136         * stdio-common/scanf15.c: New test.
4137         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4138         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4139         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4140         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4141         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4142         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4143         __nldbl___isoc99_scanf@@GLIBC_2.7,
4144         __nldbl___isoc99_fscanf@@GLIBC_2.7,
4145         __nldbl___isoc99_sscanf@@GLIBC_2.7,
4146         __nldbl___isoc99_vscanf@@GLIBC_2.7,
4147         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4148         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4149         __nldbl___isoc99_wscanf@@GLIBC_2.7,
4150         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4151         __nldbl___isoc99_swscanf@@GLIBC_2.7,
4152         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4153         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4154         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4155         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4156         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4157         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4158         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4159         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4160         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4161         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4162         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4163         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4164         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4165         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4166         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4167         functions.
4168         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4169         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4170         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4171         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4172         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4173         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4174         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4175         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4176         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4177         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4178         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4179         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4180
4181         * stdio-common/Makefile (tests): Add scanf13.
4182         (scanf13-ENV): New.
4183         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4184         m modifier followed by l.
4185         (STRING_ARG): Add width argument.
4186         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4187         <case L_('C')>: Handle %mlc and %mC.
4188         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4189         arguments.
4190         * stdio-common/scanf13.c: New test.
4191
4192         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4193         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4194
4195 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
4196
4197         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
4198         type and __THROW marker of splice, vmsplice, and tee.
4199         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4200         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4201         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4202         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4203         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4204         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4205         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4206         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4207         as cancellation points.
4208
4209 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
4210
4211         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4212         parse more than three parts of the version number.
4213
4214 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
4215
4216         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4217         modifier.  Patch by Jakub Jelinek.
4218
4219 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
4220
4221         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4222         call_fallocate in misc subdir.
4223         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4224         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4225         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4226         instead of __fallocate64.
4227         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4228
4229 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
4230
4231         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4232         * rt/Makefile (headers): Add bits/mqueue2.h.
4233         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4234         optimizing with GCC and __va_arg_pack_len is defined.
4235         * rt/bits/mqueue2.h: New file.
4236         * rt/mq_open.c (__mq_open): Renamed from mq_open.
4237         (mq_open): New strong_alias.
4238         (__mq_open_2): New function.
4239         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4240         (mq_open): New strong_alias.
4241         (__mq_open_2): New function.
4242         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4243         * Versions.def (librt): Add GLIBC_2.7 version.
4244         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4245         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4246
4247         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4248         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4249         is defined rather than when not C++.
4250         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4251         __openat64_alias): New redirects.
4252         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4253         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4254         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4255         (open, open64, openat, openat64): Rewrite as __extern_always_inline
4256         functions instead of function-like macros.
4257
4258 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
4259
4260         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4261         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4262         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4263
4264 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
4265
4266         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4267         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4268
4269 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
4270
4271         * inet/tst-network.c: Increment ERRORS for failing tests.
4272
4273 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
4274
4275         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4276         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4277         implement as __extern_always_inline function.
4278         (vsyslog): Define as __extern_always_inline function unconditionally.
4279         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4280         When __va_arg_pack is defined, implement as __extern_always_inline
4281         functions.
4282         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4283         __extern_always_inline functions unconditionally.
4284         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4285         bits/stdio2.h will be included.
4286         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4287         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4288         implement as __extern_always_inline functions.
4289         (vswprintf, vwprintf, vfwprintf): Define as
4290         __extern_always_inline functions unconditionally.
4291         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4292
4293 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
4294
4295         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4296         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4297         attribute.
4298         * include/features.h (__USE_EXTERN_INLINES): Define only when
4299         __extern_inline is defined.
4300         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4301         is defined instead of when not __cplusplus.
4302         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4303         is defined instead of when not __cplusplus.
4304         * socket/sys/socket.h: Include bits/socket2.h when
4305         __extern_always_inline is defined instead of when not __cplusplus.
4306         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4307         is defined instead of when not __cplusplus.
4308         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4309         is defined instead of when not __cplusplus.
4310         * string/string.h: Include bits/string3.h when __extern_always_inline
4311         is defined instead of when not __cplusplus.
4312         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4313         is defined instead of when not __cplusplus.
4314         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4315         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4316         is not defined.
4317         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4318         defined __extern_always_inline instead of !defined __cplusplus.
4319         * libio/bits/stdio-ldbl.h: Likewise.
4320         * wcsmbs/bits/wchar-ldbl.h: Likewise.
4321         * misc/bits/syslog.h (syslog): Don't define for C++.
4322         (vsyslog): Use __extern_always_inline function for C++ instead of
4323         a macro.
4324         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4325         whenever that macro is defined.
4326         (vprintf): Don't provide the inline for C++.
4327         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4328         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4329         define the macros for C++.
4330         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4331         __extern_always_inline functions for C++.
4332         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4333         stat64, lstat64, fstat64, fstatat64): Don't define if not
4334         __USE_EXTERN_INLINES.
4335         * wcsmbs/bits/wchar2.h: Fix #error message.
4336         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4337         (vswprintf, vwprintf, vfwprintf): Define using
4338         __extern_always_inline functions for C++.
4339         * string/bits/string3.h: Don't #undef macros if __cplusplus.
4340         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4341         strncpy, strcat, strncat): Define as __extern_always_inline
4342         functions instead of macros for C++.
4343         * math/bits/cmathcalls.h: Guard __extern_inline routines with
4344         defined __extern_inline.
4345         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4346         to __extern_inline whenever that macro is defined.
4347         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4348         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4349         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4350         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4351         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4352         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4353         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4354         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4355         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4356         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4357         prototypes.  Only provide __extern_inline routines if
4358         __USE_EXTERN_INLINES.
4359         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4360         tests.
4361         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4362         For now avoid some *printf tests in C++.  Skip all testing
4363         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4364         is not.
4365         * debug/tst-chk4.cc: New file.
4366         * debug/tst-chk5.cc: New file.
4367         * debug/tst-chk6.cc: New file.
4368         * debug/tst-lfschk4.cc: New file.
4369         * debug/tst-lfschk5.cc: New file.
4370         * debug/tst-lfschk6.cc: New file.
4371         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4372         prototypes in C++.
4373         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4374         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4375         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4376
4377 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
4378
4379         * po/cs.po: Update from translation team.
4380
4381 2007-09-11  Roland McGrath  <roland@redhat.com>
4382
4383         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4384         compiling.
4385
4386 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4387
4388         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4389
4390 2007-09-05  Roland McGrath  <roland@redhat.com>
4391
4392         * manual/signal.texi (Signaling Another Process): Typo fix.
4393         From Karl Berry <karl@freefriends.org>.
4394
4395 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
4396
4397         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4398         zero if not defined.
4399         (make_request): Recognize optimistic addresses and treat them like
4400         deprecated addresses.
4401         Reported by Neil Horman <nhorman@redhat.com>.
4402
4403 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
4404
4405         * nscd/connections.c (send_ro_fd): Also transfer file size.
4406         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4407         file size don't call fstat.
4408
4409         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4410         ahead and map the file.  This should always be correct and we can
4411         catch problems later.
4412
4413 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
4414
4415         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4416         prototypes.
4417         (__fread_alias, __fread_unlocked_alias): New aliases.
4418         (fread): New extern inline.
4419         (fread_unlocked): Likewise.  Undef macro before definition of
4420         the inline function.
4421         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4422         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4423         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4424         and __fread_unlocked_chk@@GLIBC_2.7.
4425         * debug/fread_chk.c: New file.
4426         * debug/fread_u_chk.c: New file.
4427         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4428
4429 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
4430
4431         * sysdeps/unix/sysv/linux/syscalls.list
4432         (personality): Change caller to EXTRA.
4433
4434 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
4435
4436         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4437         to keep gcc quiet.
4438         * iconvdata/iso-2022-cn.c (BODY): Likewise.
4439
4440         * locale/programs/ld-collate.c (collate_output): Avoid warning if
4441         NDEBUG is defined.
4442
4443         * Makerules: Use -p option with mkdir.
4444
4445         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4446         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
4447         (_xdr_directory_obj): Likewise.
4448         (xdr_entry_obj): Likewise.
4449         (xdr_group_obj): Likewise.
4450         (xdr_link_obj): Likewise.
4451         (xdr_table_obj): Likewise.
4452         (_xdr_nis_result): Likewise.
4453         (_xdr_ns_request): Likewise.
4454         (_xdr_ib_request): Likewise.
4455         (_xdr_nis_taglist): Likewise.
4456         (xdr_cback_data): Likewise.
4457         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
4458         (xdr_ypresp_maplist): Likewise.
4459
4460         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4461
4462         * posix/regex_internal.h: Prevent some declarations and definitions
4463         to be seen when used in tests.
4464
4465         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4466         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4467
4468         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4469
4470         * config.make.in (datarootdir): Add to shut up configure.
4471
4472         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4473         associativity for fully-associative caches.
4474
4475         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
4476         requests.  Fill on more associativity values for L2.
4477         Patch mostly by Evandro Menezes.
4478
4479 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
4480
4481         * sysdeps/unix/sysv/linux/x86_64/init-first.c
4482         (_libc_vdso_platform_setup): Avoid using exported variable by using
4483         alias.
4484
4485         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
4486
4487         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
4488         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
4489         defined.
4490
4491 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
4492
4493         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
4494         align stack for call if pltexit is to be used.
4495
4496         [BZ #3924]
4497         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
4498         align for function call in case pltexit has to be called later.
4499
4500         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
4501         implicit atomic operation when storing function pointer.
4502         (_dl_runtime_profile): Likewise.
4503
4504 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4505
4506         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4507         NIS_NOTFOUND.
4508
4509 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4510
4511         [BZ #4566]
4512         * string/strtok.c: Fix typo in comment.
4513
4514         [BZ #4582]
4515         * debug/segfault.c: Fix typos in comments.
4516
4517         [BZ #4588]
4518         * stdio-common/tempnam.c: Fix comment, it is not checked that
4519         TMPDIR points to a writable directory.
4520
4521         [BZ #4726]
4522         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4523         memory allocated for the name server address.
4524
4525         [BZ #4946]
4526         * nscd/connections.c (handle_request): Using sendfile always
4527         requires that mmap is used for the database.
4528         Patch by Petr Baudis <pasky@suse.cz>.
4529
4530         [BZ #4905]
4531         * nscd/hstcache.c (cache_addhst): When reloading an entry which
4532         suddenly has two or more addresses, ignore it and remove the old
4533         entry.
4534
4535         [BZ #4814]
4536         * resolv/res_hconf.c: Prepare for compiling outside libc.
4537         * nscd/res_hconf.c: New file.
4538         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
4539         the new file.
4540         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
4541         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
4542
4543         * nscd/hstcache.c (cache_addhst): Minimal optimization.
4544
4545         [BZ #4925]
4546         * debug/pcprofiledump.c: Turn on internationalization by calling
4547         setlocale.  Patch mostly by Benno Schulenberg.
4548
4549         [BZ #4936]
4550         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
4551         the state.
4552         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
4553         * iconvdata/bug-iconv5.c: New file.
4554
4555 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
4556
4557         [BZ #4896]
4558         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
4559         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
4560         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
4561         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
4562         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
4563         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
4564         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
4565         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
4566
4567 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4568
4569         [BZ #4937]
4570         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
4571         lookup loop.  Suggested by John Reiser.
4572
4573 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
4574
4575         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
4576
4577 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
4578
4579         * csu/libc-start.c: Don't handle VDSO_SETUP here.
4580         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
4581         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
4582         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
4583         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
4584         to...
4585         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
4586
4587 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
4588
4589         * po/nl.po: Update from translation team.
4590
4591 2007-08-16  Andreas Jaeger  <aj@suse.de>
4592
4593         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
4594         Reported by Peter Festner <peter.festner@ewetel.net>.
4595
4596 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4597
4598         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
4599
4600 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
4601
4602         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
4603         to check for undefined symbols.
4604
4605         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
4606         If the syscall fails, set errno to the actual returned error number
4607         rather than EINVAL.
4608         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
4609         arguments are incorrect, set errno to EINVAL, if the syscall
4610         fails, set errno to the actual returned error number.
4611
4612         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
4613         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
4614
4615         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
4616         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
4617         file.
4618         (ASI_PNF, ASI_BLK_P): Don't define.
4619         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
4620         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
4621         file.
4622         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
4623         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
4624         file.
4625
4626 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
4627
4628         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
4629         FE_UNDERFLOW on Niagara CPUs.
4630
4631         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
4632         exceptions.
4633
4634 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
4635
4636         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
4637         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
4638         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
4639         flush should be used or not inside of the function.
4640         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
4641
4642         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
4643         __thread_start): Use HIDDEN_JUMPTARGET.
4644         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
4645         __thread_start): Likewise.
4646         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
4647
4648         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
4649         Add libc_hidden_proto.
4650         (STRTOF): Add libc_hidden_proto.
4651         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
4652         (strtold_l, wcstold_l): Use them as second argument for
4653         long_double_symbol.
4654
4655 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4656
4657         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
4658
4659 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4660
4661         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
4662
4663 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4664
4665         * po/bg.po: New file.  From the translation team.
4666
4667 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4668
4669         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
4670         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
4671         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
4672         when each feature was introduced.
4673
4674         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
4675         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
4676         (CHECK_HASH): New macro.
4677         (PREPARE_VERSION): Use it.
4678
4679         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
4680         prototype if not __ASSUME_PSELECT.
4681         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
4682         prototype if not __ASSUME_PPOLL.
4683
4684         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
4685
4686         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
4687         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
4688         is defined.
4689
4690 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
4691
4692         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4693         (_libc_vdso_platform_setup): If vDSO is not available point
4694         __vdso_gettimeofday to the vsyscall.
4695         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
4696         __vdso_gettimeofday instead of vsyscall.
4697
4698 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4699
4700         * nscd/servicescache.c: Include kernel-features.h.
4701         * nscd/gai.c: Likewise.
4702         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
4703         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
4704         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
4705         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
4706         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
4707         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
4708         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
4709         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
4710         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4711
4712 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
4713
4714         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
4715         and _dl_get_origin defines anymore.
4716
4717         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
4718         Build fix for systems which might lack POSIX timer support.
4719
4720         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4721         (_libc_vdso_platform_setup): Mangle function pointers before storing
4722         them.
4723         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
4724         Demangle vdso pointer before use.
4725         (INTERNAL_VSYSCALL): Likewise.
4726
4727         * elf/cache.c (primes): Mark as const.
4728         Noted by Roland McGrath.
4729
4730 2007-08-01  Andreas Jaeger  <aj@suse.de>
4731             Jakub Jelinek  <jakub@redhat.com>
4732
4733         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
4734         (options): Add option.
4735         (parse_opt): Handle option.
4736         (manual_link): Adjust process_file caller.  Call implicit_soname.
4737         (search_dir): Formatting.  Use and populate auxiliary cache.
4738         (main): Load and save auxiliary cache.
4739         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
4740         stat64 from fstat64 to caller.
4741         (implicit_soname): New function.
4742         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
4743         leave *soname as NULL.
4744         * elf/cache.c: Include libgen.h.
4745         (print_entry, print_cache, compare, save_cache, add_to_cache):
4746         Formatting and cleanups.
4747         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
4748         aux_cache_file): New structures.
4749         (AUX_CACHEMAGIC): Define.
4750         (primes): New array.
4751         (aux_hash_size, aux_hash): New variables.
4752         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
4753         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
4754         load_aux_cache, save_aux_cache): New functions.
4755         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
4756         (init_aux_cache, search_aux_cache, add_to_aux_cache,
4757         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
4758         (process_file): Adjust prototype.
4759
4760 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
4761
4762         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
4763         with __need_size_t.
4764
4765 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
4766
4767         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
4768         r_found_version structure as second parameter.
4769         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
4770         (_dl_vdso_vsym): Change type of second parameter accordingly.
4771         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
4772         (_libc_vdso_platform_setup): Adjust.
4773         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
4774         (_libc_vdso_platform_setup): Likewise.
4775
4776         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
4777         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
4778         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
4779         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
4780         * csu/libc-start.c: Pretty printing.
4781         Use VDSO_SETUP if defined.
4782         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
4783         and let generic code call into _libc_vdso_platform_setup.
4784         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
4785         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
4786         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
4787         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
4788         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
4789         for GLIBC_PRIVATE.
4790         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
4791         (sysdep_rountines): Add dl-vdso.
4792
4793         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
4794         of routines.
4795
4796         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
4797         attribute_hidden to __vdso_gettimeofday prototype.
4798
4799 2007-08-12  Roland McGrath  <roland@redhat.com>
4800
4801         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
4802         From: Karl Berry <karl@freefriends.org>.
4803
4804 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
4805
4806         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
4807         an atime update for the files we read.
4808
4809 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
4810
4811         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
4812
4813         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
4814         instead of mkstemp.
4815
4816         * misc/Makefile (routines): Add mkostemp and mkostemp64.
4817         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
4818         * misc/mkostemp.c: New file.
4819         * misc/mkostemp64.c: New file.
4820         * stdlib/stdlib.h: Declare the new functions.
4821         * sysdeps/posix/tempname.c: Add new parameter which is added to
4822         the flags for open.  Remove __GT_BIGFILE handling.
4823         * stdio-common/tempname.c: Likewise.
4824         * include/stdio.h: Adjust __gen_tempname prototype.
4825         Renumber __GT_* constants.
4826         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
4827         * misc/mkdtemp.c: Likewise.
4828         * misc/mkstemp.c: Likewise.
4829         * misc/mkstemp64.c: Likewise.
4830         * misc/mktemp.c: Likewise.
4831         * stdio-common/tempnam.c: Likewise.
4832         * stdio-common/tmpfile.c: Likewise.
4833         * stdio-common/tmpfile64.c: Likewise.
4834         * stdio-common/tmpnam.c: Likewise.
4835         * stdio-common/tmpnam_r.c: Likewise.
4836
4837 2007-08-10  Roland McGrath  <roland@frob.com>
4838
4839         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
4840         New macros.
4841         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
4842         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4843
4844 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
4845
4846         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
4847         possible.
4848         * nss/nss_files/files-alias.c (internal_setent): Likewise.
4849         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
4850         * nss/nss_files/files-have_o_cloexec.c: New file.
4851
4852         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
4853         available.
4854
4855 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
4856
4857         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
4858         ___new_wcstold_l): New weak aliases.
4859         (strtold_l, wcstold_l): Use them as second argument for
4860         long_double_symbol.
4861
4862 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
4863
4864         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
4865         register in test for error.
4866
4867         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
4868         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
4869
4870         * po/sv.po: Update from translation team.
4871
4872 2007-08-06  Roland McGrath  <roland@redhat.com>
4873
4874         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
4875         Remove __strto*_l inlines.
4876         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
4877         * stdlib/strtod.c: Add libc_hidden_def.
4878         * stdlib/strtod_l.c: Likewise.
4879         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
4880         for __new_strtold and __new_wcstold.
4881         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
4882         __STRTOF, STRTOF.
4883         * stdlib/strtol.c: Add libc_hidden_def.
4884         * stdlib/strtol_l.c: Likewise.
4885         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
4886         strtoq.
4887
4888         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
4889
4890         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
4891         * scripts/data/localplt-generic.data: ... here.
4892         * elf/Makefile (check-data): Get generic file if no other.
4893         ($(objpfx)check-localplt.out): Make target unconditional.
4894
4895         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
4896         Use ElfW(Nhdr).
4897
4898 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
4899
4900         * po/zh_CN.po: Updated translation from translation team.
4901
4902 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
4903
4904         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
4905         Don't use CGOTSETUP and CGOTRESTORE macros.
4906
4907 2007-08-04  Roland McGrath  <roland@redhat.com>
4908
4909         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
4910
4911 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
4912
4913         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
4914         __extension__ around the whole statement expression.
4915
4916 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
4917
4918         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
4919         elements during initialization.
4920
4921         * po/pl.po: Updated translation from translation team.
4922         * po/tr.po: Likewise.
4923         * po/nl.po: Likewise.
4924
4925 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
4926
4927         * rt/aio.h: Add __nonnull attributes.
4928
4929 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
4930
4931         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
4932         * stdlib/Makefile (tests): Add tst-strtod5.
4933         (tst-strtod5-ENV): New.
4934         * stdlib/tst-strtod5.c: New file.
4935
4936         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
4937         failed.
4938         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
4939         on failure.
4940
4941         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
4942         allocated.
4943
4944 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
4945
4946         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
4947         numbers.
4948
4949 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
4950
4951         * io/Makefile (aux): Add have_o_cloexec.
4952         * include/fcntl.h: Declare __have_o_cloexec.
4953         * io/have_o_cloexec.c: New file.
4954         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
4955         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
4956         fcntl call if not necessary.
4957         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
4958         of local variable.
4959
4960         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
4961         Avoid memset, add explicit initialization.
4962         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
4963         to the end and change into zero-sized array.
4964         Move lock member to fill a hole on 64-bit platforms.
4965
4966         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
4967         inline functions.
4968         * include/stdlib.h: Add __strto*_internal prototypes here.
4969         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
4970         inline functions.
4971         * include/wchar.h: Add __wcsto*_internal prototypes.
4972         * sysdeps/generic/inttypes.h: No need to protect the declaration
4973         of the __strto*_internal and __wcsto*_internal members here.
4974
4975         * rt/mqueue.h: Change const to __const and add nonnull attributes.
4976
4977 2007-08-02  Roland McGrath  <roland@redhat.com>
4978
4979         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
4980         $(inst_bindir)/getconf if possible.
4981
4982         * posix/Makefile ($(objpfx)getconf.speclist): New target.
4983         (generated): Add it.
4984         ($(inst_libexecdir)/getconf): Use it.
4985
4986 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
4987
4988         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
4989         /proc is faster and sufficient.  /sys is still needed for
4990         __get_nprocs_conf.
4991
4992 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
4993
4994         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
4995         syscall as __fallocate64.
4996         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
4997         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
4998
4999 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
5000
5001         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
5002         value.
5003
5004         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
5005         if off_t is different rank from size_t.
5006
5007         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
5008         uw_frame_state_for): Avoid type punning warnings.
5009         * sysdeps/generic/unwind-dw2-fde-glibc.c
5010         (_Unwind_IteratePhdrCallback): Likewise.
5011         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
5012         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
5013         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
5014         pointers.
5015
5016 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
5017
5018         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
5019         total processors using sysfs.
5020         (__get_nprocs): Use sysfs to determine which processors are online.
5021
5022 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
5023
5024         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
5025         syscall arguments count.
5026
5027         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
5028
5029 2007-07-30  Roland McGrath  <roland@redhat.com>
5030
5031         * manual/libc.texinfo: Update copyrights, formatting magic, and
5032         @dircategory.  From Karl Berry <karl@freefriends.org>.
5033
5034 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
5035
5036         [BZ #4860]
5037         * io/Makefile (headers): Add bits/fcntl2.h.
5038
5039         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
5040         using gcc builtin.
5041         (__CPU_EQUAL_S): Likewise.
5042
5043         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
5044         (tests): Add tst-cpuset.
5045         * posix/sched_cpualloc.c: New file.
5046         * posix/sched_cpufree.c: New file.
5047         * posix/tst-cpuset.c: New file.
5048         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
5049         GLIBC_2.7.
5050         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
5051         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
5052         macros.  Define CPU_*_S macros.
5053
5054 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5055
5056         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
5057         entry.
5058
5059         [BZ #4858]
5060         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
5061         #.0g and value rounded to 1.0.
5062         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
5063
5064 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
5065
5066         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
5067         for int_frac_digits and frac_digits.
5068
5069         * login/logout.c (logout): Avoid aliasing violation.
5070         * login/logwtmp.c (logwtmp): Likewise.
5071
5072         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
5073
5074         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
5075         to avoid warning.
5076         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
5077         warning.
5078         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
5079         warning.
5080         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
5081         to avoid warnings.
5082
5083         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
5084         void **.
5085         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
5086
5087         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
5088         char * to avoid warning.
5089         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
5090
5091         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
5092
5093         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
5094         allocate_arrays): Cast second argument to charmap_find_symbol
5095         to char * to avoid warnings.
5096
5097         * locale/programs/repertoire.c (repertoire_new_char): Change
5098         from_nr, to_nr and cnt to unsigned long, adjust printf format
5099         string.
5100
5101         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
5102         Cast second argument to new_element to char * to avoid warnings.
5103
5104         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
5105
5106         * intl/gettextP.h (struct loaded_domain): Change plural to const
5107         struct expression *.
5108         * intl/plural-eval.c (plural_eval): Change first argument to
5109         const struct expression *.
5110         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
5111         argument to const struct expression **.
5112         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5113         prototypes.
5114         * intl/loadmsgcat (_nl_unload_domain): Cast away const
5115         in call to __gettext_free_exp.
5116
5117         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5118         unitialized wstring/wpattern var warnings.
5119
5120         * posix/runtests.c (struct a_test): Make data field const char *.
5121
5122         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5123         vars if not LDBL_MANT_DIG >= 106.
5124
5125         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5126
5127         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5128         __find_specmb to avoid warning.
5129
5130         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5131
5132         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5133         to avoid warnings.
5134
5135         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5136         initializer.
5137
5138         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5139         tv var when it will be actually used.
5140
5141         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5142         to avoid warnings.
5143
5144         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5145         char array resp. pointer.
5146         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5147         char array.
5148         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5149         to const unsigned char **.
5150         (ucs4_to_cns11643): Change second argument to unsigned char *.
5151         * iconvdata/euc-tw.c (BODY): Change endp type to
5152         const unsigned char *.
5153         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5154         to unsigned char *.
5155         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5156         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5157         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5158         types to unsigned char pointers/arrays instead of char.
5159         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5160         to unsigned char *.
5161         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5162         * iconvdata/jis0212.h: Include assert.h.
5163         (ucs4_to_jisx0212): Change second argument to unsigned char *.
5164         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5165         of trying to handle that.
5166         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5167         shut up a warning.
5168         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5169         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5170         two dimensional const unsigned char arrays.
5171         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5172         Initialize endp to inptr to shut up a warning.
5173
5174 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5175
5176         [BZ #4772]
5177         * time/strptime_l.c (__strptime_internal): Silently ignore
5178         strftime modifiers and field width in recursive calls.
5179
5180         * include/time.h (enum ptime_locale_status): Remove.
5181         (__strptime_internal): Remove decided and era_cnt arguments,
5182         add statep argument.
5183         * time/strptime_l.c (__strptime_internal): Remove decided
5184         and era_cnt arguments, add statep argument.  Don't recompute
5185         any fields in recursive calls, only update caller's tm
5186         and state, if recursive call fails, don't change tm nor
5187         any state.
5188         (get_alt_number): Adjust.
5189         (recursive): Adjust caller.
5190         (strptime): Likewise.
5191         * time/strptime.c (strptime): Likewise.
5192
5193 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
5194
5195         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5196         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5197         if from and to charsets are the same.
5198         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5199         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5200         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5201
5202 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5203
5204         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5205         Don't define wint_t when __need_mbstate_t unless it
5206         is necessary.
5207         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5208         in the typedef if possible.
5209         * wctype/wctype.h (wint_t): Define by including
5210         wchar.h with __need_wint_t instead of including stddef.h
5211         with __need_wint_t and as fallback definining it ourselves.
5212         * iconv/gconv.h (__need_wint_t): Define before including
5213         wchar.h.
5214         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5215         or _GLIBCPP_USE_WCHAR_T.
5216         (__need_wchar_t): Don't define
5217         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5218         (__need_wint_t): Don't define before including stddef.h,
5219         define before including wchar.h only if _LIBC or
5220         _GLIBCPP_USE_WCHAR_T.
5221         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5222         * sysdeps/mach/hurd/_G_config.h: Likewise.
5223         * sysdeps/generic/_G_config.h: Likewise.
5224         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5225         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5226         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5227         if _LIBC or _GLIBCPP_USE_WCHAR_T.
5228
5229 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5230
5231         * sysdeps/posix/posix_fallocate64.c: Undefine
5232         __posix_fallocate64_l64 before alias handling.
5233         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5234         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5235         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5236         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5237
5238         * io/tst-posix_fallocate.c: Include <fcntl.h>.
5239
5240 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
5241
5242         * locale/programs/ld-collate.c (atwc): New variable.
5243         (add_to_tablewc): New toplevel function, moved from collate_output.
5244         (collate_output): Remove add_to_tablewc nested function.
5245
5246         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5247         (name_insert): New function.
5248         (write_output): Remove hash_table and hash_size vars and name_insert
5249         nested function.
5250
5251 2007-07-24  Roland McGrath  <roland@redhat.com>
5252
5253         * Makerules (install-others-programs-nosubdir): New target.
5254         (install-no-libc.a-nosubdir): Depend on it.
5255
5256         * iconv/Makefile (install-others-programs): Set this instead of
5257         install-others.
5258         * login/Makefile (install-others-programs): Likewise.
5259         * posix/Makefile (install-others-programs): Likewise.
5260
5261         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5262         dependencies.
5263
5264 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
5265
5266         * io/Makefile (tests): Add tst-posix_fallocate.
5267         * io/tst-posix_fallocate.c: New file.
5268
5269         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5270         __ASSUME_FALLOCATE.
5271
5272 2007-07-22  Roland McGrath  <roland@frob.com>
5273
5274         * hurd/getdport.c: Add missing copyright year update.
5275
5276         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5277         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5278
5279 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
5280
5281         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5282
5283         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5284         O_CLOEXEC is needed.
5285         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5286         Avoid additional fcntl to set O_CLOEXEC if not needed.
5287         * nis/nss_compat/compat-initgroups.c: Likewise.
5288         * nis/nss_compat/compat-pwd.c: Likewise.
5289         * nis/nss_compat/compat-spwd.c: Likewise.
5290
5291 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5292
5293         [BZ #3665]
5294         * manual/errno.texi: Change ECANCELED value to 119.
5295
5296         [BZ #4610]
5297         * mach/lock-intern.h: Include <sys/cdefs.h>.
5298
5299         [BZ #4178]
5300         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5301         reading A.
5302
5303         [BZ #4126]
5304         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5305         to __sigsuspend.
5306
5307         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5308
5309 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
5310
5311         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5312         `__ASSEMBLER__'.
5313         * sysdeps/mach/hurd/i386/tls.h: Likewise.
5314
5315 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
5316
5317         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5318         descriptor received from nscd.
5319
5320         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5321
5322         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5323         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5324         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5325         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5326         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5327         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5328
5329 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5330
5331         [BZ #4816]
5332         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5333
5334         [BZ #4813]
5335         * login/forkpty.c (forkpty): Close master and slave fds on
5336         fork failure.  Patch by
5337         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5338
5339 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
5340
5341         * include/features.h (__USE_ISOC95): New define.
5342         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5343         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5344         for -std=iso9899:199409.
5345         * CONFORMANCE: Remove comments about unsupported AMD1.
5346
5347 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5348
5349         * sysdeps/ia64/sched_cpucount.c: New file.
5350         * sysdeps/powerpc/sched_cpucount.c: New file.
5351
5352         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5353         __BEGIN_DECLS/__END_DECLS around the prototype.
5354         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
5355         pointer to const cpu_set_t.
5356
5357         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5358         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5359         __need_size_t and include stddef.h.
5360         * sysvipc/sys/msg.h: Likewise.
5361         * posix/sched.h: Likewise.
5362         * hurd/hurd/signal.h (__need_size_t): Define.
5363
5364         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5365         neither does signal.h in pedantic ISO C namespaces.  stdio.h
5366         no longer defines wint_t or wchar_t.
5367
5368         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5369         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5370         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5371         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5372         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5373         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5374         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5375         * debug/printf_chk.c (__printf_chk): Likewise.
5376         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5377         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5378
5379         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5380         Define.
5381
5382         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5383         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5384
5385 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
5386
5387         [BZ #4792]
5388         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5389         * malloc/malloc.h (realloc): Likewise.
5390
5391         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5392         if one of proc_file_chain streams has that fileno.
5393         * stdio-common/Makefile (tests): Add tst-popen2.
5394         * stdio-common/tst-popen2.c: New test.
5395
5396 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
5397
5398         * elf/ldconfig.c: Allow GPLv2 or any later version.
5399         * elf/readlib.c: Likewise.
5400         * elf/chroot_canon.c: Likewise.
5401         * elf/cache.c: Likewise.
5402         * nscd/mem.c: Likewise.
5403         * nscd/getpwuid_r.c: Likewise.
5404         * nscd/grpcache.c: Likewise.
5405         * nscd/aicache.c: Likewise.
5406         * nscd/getsrvbynm_r.c: Likewise.
5407         * nscd/nscd.c: Likewise.
5408         * nscd/servicescache.c: Likewise.
5409         * nscd/getsrvbypt_r.c: Likewise.
5410         * nscd/initgrcache.c: Likewise.
5411         * nscd/gethstbyad_r.c: Likewise.
5412         * nscd/gethstbynm2_r.c: Likewise.
5413         * nscd/getgrnam_r.c: Likewise.
5414         * nscd/nscd_setup_thread.c: Likewise.
5415         * nscd/getpwnam_r.c: Likewise.
5416         * nscd/gai.c: Likewise.
5417         * nscd/connections.c: Likewise.
5418         * nscd/dbg_log.c: Likewise.
5419         * nscd/cache.c: Likewise.
5420         * nscd/hstcache.c: Likewise.
5421         * nscd/nscd_conf.c: Likewise.
5422         * nscd/getgrgid_r.c: Likewise.
5423         * nscd/pwdcache.c: Likewise.
5424         * catgets/gencat.c: Likewise.
5425         * locale/programs/linereader.h: Likewise.
5426         * locale/programs/locarchive.c: Likewise.
5427         * locale/programs/ld-paper.c: Likewise.
5428         * locale/programs/locfile-kw.h: Likewise.
5429         * locale/programs/ld-address.c: Likewise.
5430         * locale/programs/xmalloc.c: Likewise.
5431         * locale/programs/ld-time.c: Likewise.
5432         * locale/programs/localedef.c: Likewise.
5433         * locale/programs/simple-hash.c: Likewise.
5434         * locale/programs/xstrdup.c: Likewise.
5435         * locale/programs/ld-numeric.c: Likewise.
5436         * locale/programs/locfile-kw.gperf: Likewise.
5437         * locale/programs/ld-collate.c: Likewise.
5438         * locale/programs/charmap-kw.gperf: Likewise.
5439         * locale/programs/charmap.h: Likewise.
5440         * locale/programs/charmap-kw.h: Likewise.
5441         * locale/programs/config.h: Likewise.
5442         * locale/programs/locfile.c: Likewise.
5443         * locale/programs/ld-ctype.c: Likewise.
5444         * locale/programs/charmap.c: Likewise.
5445         * locale/programs/ld-messages.c: Likewise.
5446         * locale/programs/repertoire.h: Likewise.
5447         * locale/programs/locale.c: Likewise.
5448         * locale/programs/ld-name.c: Likewise.
5449         * locale/programs/linereader.c: Likewise.
5450         * locale/programs/locfile.h: Likewise.
5451         * locale/programs/3level.h: Likewise.
5452         * locale/programs/ld-monetary.c: Likewise.
5453         * locale/programs/ld-measurement.c: Likewise.
5454         * locale/programs/charmap-dir.c: Likewise.
5455         * locale/programs/ld-identification.c: Likewise.
5456         * locale/programs/localedef.h: Likewise.
5457         * locale/programs/charmap-dir.h: Likewise.
5458         * locale/programs/repertoire.c: Likewise.
5459         * locale/programs/simple-hash.h: Likewise.
5460         * locale/programs/ld-telephone.c: Likewise.
5461         * locale/programs/locale-spec.c: Likewise.
5462         * locale/programs/locfile-token.h: Likewise.
5463         * posix/getconf.c: Likewise.
5464         * iconv/dummy-repertoire.c: Likewise.
5465         * iconv/iconv_charmap.c: Likewise.
5466         * iconv/iconvconfig.c: Likewise.
5467         * iconv/iconv_prog.c: Likewise.
5468         * malloc/memusagestat.c: Likewise.
5469         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5470
5471 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5472
5473         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
5474         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
5475         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
5476         check for the first argument.
5477
5478 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
5479
5480         [BZ #4775]
5481         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
5482         (__tgmath_real_type): Fix if expr is const int or other const
5483         qualified integral type.
5484         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
5485         expressions and handle const qualified arguments.
5486         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
5487         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5488         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
5489         statement expressions.
5490         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
5491         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
5492         (__TGMATH_UNARY_IMAG): Define.
5493         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
5494         * math/Makefile (tests): Add test-tgmath2.
5495         (CFLAGS-test-tgmath2.c): Add.
5496         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
5497         count_cfloat, count_cldouble): New variables.
5498         (NCCALLS): Define.
5499         (main): Check number of complex calls as well.
5500         (F(compile_test)): Add complex tests and tests with const qualified
5501         arguments.
5502         (y, z, ccount): Define.
5503         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
5504         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
5505         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
5506         F(cproj)): New functions.
5507         * math/test-tgmath2.c: New test.
5508
5509 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
5510
5511         [BZ #4776]
5512         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5513         RPATH etc. as "/" rather than "", don't segfault on empty paths,
5514         instead output ".".
5515         * dlfcn/Makefile (distribute): Add glreflib3.c.
5516         (module-names): Add glreflib3.
5517         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5518         glreflib1.so.
5519         (LDFLAGS_glreflib3.so): New.
5520         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5521         glreflib1.so.
5522         * dlfcn/glreflib3.c: New file.
5523
5524         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5525         returned -1, return NULL.
5526         * intl/explodename.c (_nl_explode_name): Return -1 if
5527         _nl_normalize_codeset failed.
5528
5529 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
5530
5531         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5532         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
5533         and avoid branch misspredicts for > 31 bytes memset case.
5534         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5535         Remove toc ref to __cache_line_size.
5536
5537         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
5538         to get ISA-V2.0 branch hints.
5539         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
5540         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
5541         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5542         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5543         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5544         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5545         Remove toc ref to __cache_line_size.
5546
5547         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
5548         Include math_ldbl_opt.h.
5549
5550 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
5551
5552         [BZ #4773]
5553         * time/strptime_l.c (__strptime_internal): Implement greedy
5554         matching of weekday and month names.
5555
5556 2007-07-09  Roland McGrath  <roland@redhat.com>
5557
5558         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
5559         (ELF_NOTE_ABI): Use it.
5560         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
5561
5562 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
5563
5564         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
5565         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5566
5567 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
5568
5569         [BZ #4745]
5570         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
5571         in loop to look for conversion specifier to avoid testing of
5572         wrong errno value.
5573         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
5574         * stdio-common/bug18.c: New file.
5575         * stdio-common/bug18a.c: New file.
5576         * stdio-common/bug19.c: New file.
5577         * stdio-common/bug19a.c: New file.
5578
5579 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
5580
5581         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
5582         running awk script.
5583
5584 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
5585
5586         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
5587         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
5588         Return NULL if mmap failed instead of asserting it does not.
5589         (calloc): Check for integer overflow.
5590
5591         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
5592         than LONG_MAX / 10.
5593
5594 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
5595
5596         [BZ #4702]
5597         * nis/nss-default.c: Include errno.h.
5598         (init): Preserve errno.
5599
5600 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
5601
5602         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
5603
5604 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
5605
5606         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
5607
5608 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5609
5610         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
5611
5612 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5613
5614         * sysdeps/s390/dl-procinfo.c: New file.
5615         * sysdeps/s390/dl-procinfo.h: New file.
5616         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
5617
5618 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
5619
5620         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
5621         in PT_NOTE segments with multiple notes.
5622         * elf/readelflib.c (process_elf_file): Likewise.
5623
5624 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
5625
5626         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
5627         ISO C compliant.
5628
5629 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5630
5631         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
5632
5633 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
5634
5635         * include/link.h: Don't include rtld-lowlevel.h.
5636         (struct link_map): Remove l_scope_lock.
5637         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
5638         (_dl_scope_free_list): New field (variable) in _rtld_global.
5639         (DL_LOOKUP_SCOPE_LOCK): Remove.
5640         (_dl_scope_free): New prototype.
5641         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
5642         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
5643         (_dl_profile_fixup): Likewise.
5644         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
5645         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
5646         THREAD_GSCOPE_RESET_FLAG around it.
5647         * elf/dl-close.c (_dl_close_worker): Don't use
5648         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
5649         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
5650         scopes were queued or if l_scope_mem has been abandoned.
5651         * elf/dl-open.c (_dl_scope_free): New function.
5652         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
5653         * elf/dl-support.c (_dl_scope_free_list): New variable.
5654         * elf/dl-lookup.c (add_dependency): Remove flags argument.
5655         Remove DL_LOOKUP_SCOPE_LOCK handling.
5656         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
5657         handling.
5658         * elf/dl-object.c (_dl_new_object): Don't use
5659         __rtld_mrlock_initialize.
5660
5661 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5662
5663         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
5664         to fill in holes
5665         (rtld_global_ro): Likewise.
5666
5667 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5668
5669         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
5670         Move PT_LOAD checking to...
5671         (_dl_addr_inside_object): ... here, new function.
5672         * elf/dl-sym.c (do_sym): If not l_contiguous,
5673         call _dl_addr_inside_object.
5674         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5675         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5676         * elf/dl-open.c (dl_open_worker): Likewise.
5677         (_dl_addr_inside_object): New function if IS_IN_rtld.
5678         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
5679         holes are present or are PROT_NONE protected.
5680         * include/link.h (struct link_map): Add l_contiguous field.
5681         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
5682
5683 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5684             Tomas Janousek  <tjanouse@redhat.com>
5685             Ulrich Drepper  <drepper@redhat.com>
5686
5687         [BZ #4647]
5688         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
5689         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
5690         socket.
5691         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
5692         unused member a bitmap.
5693         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
5694         servers are configured.
5695
5696 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5697
5698         * elf/rtld.c (dl_main): Don't call init_tls more than once.
5699
5700 2007-06-17  Andreas Schwab  <schwab@suse.de>
5701
5702         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
5703
5704 2007-06-16  Andreas Jaeger  <aj@suse.de>
5705
5706         [BZ #4125]
5707         * sysdeps/unix/sysv/linux/sys/ptrace.h
5708         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
5709         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
5710         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
5711         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
5712         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
5713         Define.
5714         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5715         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5716         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5717         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5718
5719 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
5720
5721         [BZ #4599]
5722         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
5723         determining whether there are IPv4/IPv6 addresses, ignore loopback
5724         addresses.
5725
5726 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
5727
5728         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
5729         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
5730         as the return type.  Change type of "r" variable to CMPtype.
5731         * soft-fp/eqsf2.c (__eqsf2): Likewise.
5732         * soft-fp/eqtf2.c (__eqtf2): Likewise.
5733         * soft-fp/gedf2.c (__gedf2): Likewise.
5734         * soft-fp/gesf2.c (__gesf2): Likewise.
5735         * soft-fp/getf2.c (__getf2): Likewise.
5736         * soft-fp/ledf2.c (__ledf2): Likewise.
5737         * soft-fp/lesf2.c (__lesf2): Likewise.
5738         * soft-fp/letf2.c (__letf2): Likewise.
5739         * soft-fp/unorddf2 (__unorddf2): Likewise.
5740         * soft-fp/unordsf2 (__unordsf2): Likewise.
5741         * soft-fp/unordtf2 (__unordtf2): Likewise.
5742
5743 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
5744
5745         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
5746         make sure gcc doesn't mess around with this.
5747
5748 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
5749
5750         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
5751
5752 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
5753
5754         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
5755         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
5756         at most once per _dl_close_worker.
5757
5758 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
5759
5760         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
5761         __sched_cpucount as const.
5762         * posix/sched_cpucount.c: Adjust.
5763
5764         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
5765         instruction for counting bits.
5766         * sysdeps/x86_64/sched_cpucount.c: New file.
5767
5768 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
5769
5770         * configure.in: Avoid variable named BASH.
5771         * config.make.in: Likewise.
5772         Patch in part by Mike Frysinger.
5773
5774 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
5775
5776         [BZ #4586]
5777         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
5778         pseudo-zeros as zero.
5779         * sysdeps/x86_64/ldbl2mpn.c: New file.
5780         * sysdeps/ia64/ldbl2mpn.c: New file.
5781
5782 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
5783
5784         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
5785         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
5786         Remove unreachable code at the end.
5787
5788 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
5789
5790         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
5791         ldbl-128ibm in comment.
5792         (fpclassifyl): Correct classification of denormals.
5793         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
5794         return value for MIN denormal. Rewrite using long double math too
5795         correctly handle denormals and canonicalize the results.
5796
5797 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
5798
5799         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5800         (__mpn_construct_long_double): Fix conversion where result ought
5801         to be smaller than __LDBL_MIN__, or the low double should be
5802         denormal.  Fix decision where to negate low double - honor round
5803         to even rules.
5804         * stdio-common/tst-sprintf2.c: Include string.h.
5805         (COMPARE_LDBL): Define.
5806         (TEST): Also test whether a string hexadecimal float representation
5807         can be parsed back to the number.
5808         (main): Add a couple of further tests.
5809
5810 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
5811
5812         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5813         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
5814         is non-zero, but smaller than 2 * __DBL_MIN__.
5815         * stdio-common/tst-sprintf2.c: New test.
5816         * stdio-common/Makefile (tests): Add tst-sprintf2.
5817
5818         * math/test-misc.c (main): Don't run last batch of tests with
5819         IBM long double format.
5820
5821 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5822
5823         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
5824         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
5825         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
5826         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
5827         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5828         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
5829         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
5830         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
5831         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
5832         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
5834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
5835         New file.
5836         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
5837         New file.
5838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
5839         New file.
5840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
5841         New file.
5842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
5843         New file.
5844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
5845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
5846         New file.
5847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
5848         New file.
5849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
5850         New file.
5851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
5852         New file.
5853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
5854         New file.
5855
5856 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5857
5858         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
5859         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
5860         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
5861         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
5862         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
5863         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
5864         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
5865         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
5866
5867 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
5868
5869         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
5870         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5871         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
5872         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5873         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
5874         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5875         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
5876         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5877
5878 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
5879
5880         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
5881         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
5882         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
5883         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
5884
5885 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
5886
5887         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
5888         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
5889
5890 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
5891
5892         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
5893         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
5894         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
5895         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
5896
5897 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
5898
5899         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
5900         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
5901
5902 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
5903
5904         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
5905         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
5906
5907         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
5908         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
5909         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
5910         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5911
5912 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
5913
5914         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
5915         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
5916         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
5917         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
5918
5919 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
5920
5921         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
5922         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
5923         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
5924         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5925         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
5926         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5927
5928 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
5929
5930         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
5931         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
5932         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
5933         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
5934
5935 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
5936
5937         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
5938         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
5939         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
5940         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
5941         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
5942         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
5943         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
5944         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
5945         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
5946         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
5947         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
5948         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
5949         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
5950         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
5951         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
5952         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
5953
5954 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
5955
5956         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
5957         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
5958
5959 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
5960
5961         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
5962         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
5963
5964 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5965
5966         * sysdeps/powerpc/powerpc32/970/Implies: New file.
5967         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
5968         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
5969         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
5970         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
5971         * sysdeps/powerpc/powerpc64/970/Implies: New file.
5972         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
5973         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
5974         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
5975         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
5976
5977 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
5978
5979         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
5980
5981 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
5982
5983         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
5984         branch miss-predicts. Ensure that cache line crossing does not impact
5985         dispatch grouping.
5986
5987 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
5988
5989         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
5990         "../../powerpc32/power4/memcopy.h".
5991         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
5992         "../../powerpc32/power4/wordcopy.c".
5993
5994 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
5995
5996         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
5997         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
5998         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
5999         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
6000         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
6001         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
6002
6003 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
6004
6005         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
6006
6007 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6008
6009         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
6010         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
6011         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
6012         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
6013         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
6014         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
6015         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
6016         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
6017
6018 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
6019
6020         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
6021
6022 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6023
6024         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
6025         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
6026         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
6027         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
6028         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
6029         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
6030         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
6031
6032 2007-05-29  Roland McGrath  <roland@redhat.com>
6033
6034         * po/Makefile (po-sed-cmd): New variable.
6035         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
6036
6037 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
6038
6039         * crypt/md5-crypt.c: Fix comment.
6040
6041         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
6042         of crashing.  When this is the case or if the reply is malformed,
6043         don't try to close the new file descriptor since it does not
6044         exist.
6045         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
6046
6047 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
6048
6049         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
6050         if __NR_utimensat is not defined.
6051
6052 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
6053
6054         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
6055
6056 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
6057
6058         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
6059         (open): Fix comment typos.  Don't call __open_2 if flags
6060         is a compile time constant without O_CREAT.
6061         (__open64_2): Add nonnull attribute.
6062         (open64): Fix comment typos.  Don't call __open64_2 if flags
6063         is a compile time constant without O_CREAT.
6064         (__openat_2): Add nonnull attribute, fix nonnull attribute
6065         on redirect.
6066         (openat): Fix comment typos.  Don't call __openat_2 if flags
6067         is a compile time constant without O_CREAT.
6068         (__openat64_2): Add nonnull attribute, fix nonnull attribute
6069         on redirect.
6070         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
6071         is a compile time constant without O_CREAT.
6072
6073 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
6074
6075         * Makerules (sysd-rules): Define PTW for ptw-* files.
6076         * Versions: Define GLIBC_2.7 for libc.
6077         * include/stdio.h: Declare __fortify_fail.
6078         * debug/fortify_fail.c: New file.
6079         * debug/Makefile (routines): Add fortify_fail.
6080         * debug/chk_fail.c: Use __fortify_fail.
6081         * debug/stack_chk_fail.c: Likewise.
6082         * io/Versions: Export __open_2, __open64_2, __openat_2, and
6083         __openat64_2 for GLIBC_2.7.
6084         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
6085         * io/open.c: Define *_2 variant of function which checks for O_CREAT
6086         and fails if necessary.
6087         * io/open64.c: Likewise.
6088         * io/openat.c: Likewise.
6089         * io/openat64.c: Likewise.
6090         * sysdeps/unix/sysv/linux/open64.c: Likewise.
6091         * sysdeps/unix/sysv/linux/openat.c: Likewise.
6092         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
6093         * io/bits/fcntl2.h: New file.
6094         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
6095         __openat64_2.
6096         * include/bits/fcntl2.h: New file.
6097         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6098         Add open_2.
6099         * sysdeps/unix/sysv/linux/open_2.c: New file.
6100
6101 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
6102
6103         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
6104         as second parameter to handle_intel.
6105
6106         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
6107         the entry.
6108
6109         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
6110         handling to ...
6111         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
6112         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6113         cacheinfo.
6114         * sysdeps/x86_64/memcpy.S: Complete rewrite.
6115         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6116         Patch by Evandro Menezes <evandro.menezes@amd.com>.
6117
6118         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6119
6120 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
6121
6122         [BZ #4525]
6123         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6124         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6125         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6126
6127         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6128
6129         [BZ #4514]
6130         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6131         reinitialize workend at the start of each do_positional format spec
6132         loop, free workstart before do_positional loops.
6133         (printf_unknown): Fix size of work_buffer.
6134         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6135
6136         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6137         (public_sET_STATe): If ms->version < 3, put all chunks into
6138         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6139         chunks.
6140
6141         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6142         * malloc/hooks.c: Likewise.
6143         * malloc/arena.c: Likewise.
6144         * malloc/malloc.c (do_check_malloc_state): Don't assert
6145         n_mmaps is not greater than n_mmaps_max.  This removes the need
6146         for the previous change.
6147
6148         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6149         2007-05-07 commit.
6150
6151 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
6152
6153         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6154         Define for kernel >= 2.6.22.
6155
6156 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
6157
6158         * elf/dl-close.c (_dl_close_worker): When removing object from
6159         global scope, wait for all lookups to finish afterwards.
6160         * elf/dl-open.c (add_to_global): When global scope array must
6161         grow, allocate a new one and free old array only after all
6162         lookups finish.
6163         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6164         (_dl_lookup_symbol_x): Likewise.
6165         * elf/dl-support.c: Define _dl_wait_lookup_done.
6166         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6167         _dl_wait_lookup_done.
6168
6169         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6170         not overlapping with arena.
6171
6172         * malloc/mcheck.c (reallochook): If size==0, free the block.
6173
6174         * rt/tst-shm.c: Use fstat64 instead of fstat.
6175
6176         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6177         __NR_sync_file_range is not defined.
6178
6179 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
6180
6181         Dummy files to prevent stub versions from being used.
6182         * sysdeps/x86_64/fpu/k_cosl.c: New file.
6183         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6184         * sysdeps/x86_64/fpu/k_sinl.c: New file.
6185         * sysdeps/x86_64/fpu/k_tanl.c: New file.
6186
6187         * version.h (VERSION): Set to 2.6.90.
6188
6189 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
6190
6191         * version.h (VERSION): Define to 2.6.
6192         * include/features.h (__GLIBC_MINOR__): Define to 6.
6193
6194         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6195
6196         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6197         sizes.
6198
6199 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
6200
6201         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6202         number of mmaps.  n_mmaps_max is the target.
6203         * malloc/hooks.c: Likewise.
6204         * malloc/arena.c: Likewise.
6205
6206 2007-05-12  Andreas Jaeger  <aj@suse.de>
6207
6208         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6209         getpid.
6210
6211 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
6212
6213         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6214         adding new variables.
6215
6216         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
6217         optimize.  Completely extend global scope array before making the
6218         new entries visible.
6219
6220 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
6221
6222         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6223         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6224         tst-getcpu.
6225
6226         * include/link.h: Move l_version and l_nversion members around to
6227         fill gaps.
6228
6229         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6230
6231         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6232         (__sched_setaffinity_new): If syscall was successful and
6233         RESET_VGETCPU_CACHE is defined, use it before returning.
6234         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6235
6236         * io/sys/stat.h: Make sure struct timespec is defined for
6237         __USE_ATFILE.
6238
6239         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6240         UTIME_OMIT.
6241         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6242         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6243         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6244         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6245         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6246         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6247         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6248         * io/sys/stat.h: Declare utimensat, futimens.
6249         * io/utimensat.c: New file.
6250         * io/futimens.c: New file.
6251         * sysdeps/unix/sysv/linux/utimensat.c: New file.
6252         * sysdeps/unix/sysv/linux/futimens.c: New file.
6253         * io/Makefile (routines): Add utimensat, futimens.
6254         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6255         * sysdeps/unix/sysv/linux/lutimes.c: New file.
6256         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6257         available.
6258
6259         * include/sys/cdefs.h: Redefine __nonnull so that test for
6260         incorrect parameters in the libc code itself are not omitted.
6261
6262 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
6263
6264         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6265         exception in addition to inexact when asked to raise only FE_INEXACT.
6266
6267         [BZ #3427]
6268         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6269         in *envp.
6270
6271 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6272
6273         [BZ #4403]
6274         * string/strfry.c (strfry): Make result more random.
6275
6276 2007-05-07  Richard Henderson  <rth@redhat.com>
6277
6278         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6279         if __NO_LONG_DOUBLE_MATH.
6280         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
6281         available in the compiler, add .arch directive to the assembly.
6282
6283 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
6284
6285         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6286         compat_symbol to GLIBC_2_1.
6287         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6288         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6289         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6290         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6291         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6292         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6293         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6294         libc, not libm.
6295         (__isnanl): New compat_symbol.
6296
6297 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6298             Jakub Jelinek  <jakub@redhat.com>
6299
6300         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6301         (new_heap): Initialize mprotect_size.
6302         (grow_heap): When growing, only mprotect from mprotect_size till
6303         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
6304         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6305
6306 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
6307             Peter Bergner  <bergner@us.ibm.com>
6308
6309         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6310         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
6311         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6312         * sysdeps/powerpc/fpu/fe_mask.c: New file.
6313         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6314         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6315         Call __fe_mask_env() if all FP exceptions disabled.
6316         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6317         from old FPSCR to new fenv to propagate DFP rounding modes.
6318         Call __fe_mask_env() if FP exceptions previously enabled.
6319         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6320         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
6321         transitioning from all exceptions disabled to any exception enabled
6322         or visa versa.
6323         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6324         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
6325         when transitioning from all exceptions disabled to any exception
6326         enabled or visa versa.
6327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6331         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6333
6334 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6335
6336         [BZ #4465]
6337         * posix/unistd.h: Remove __THROW from fdatasync.
6338
6339 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
6340
6341         [BZ #4465]
6342         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6343
6344 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6345
6346         * stdio-common/vfprintf.c (process_string_arg): Optimize
6347         ridiculous precision in wide char code printing multi-byte string.
6348         Reported by Jim Meyering <jim@meyering.net>.
6349
6350         [BZ #4131]
6351         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6352         boundaries to work around systems with overlapping binary loading.
6353         Based on a patch by Suzuki <suzuki@in.ibm.com>.
6354
6355 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
6356
6357         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6358         __mbsnrtowcs after last change.
6359
6360         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6361         (get_ident): Likewise.
6362
6363 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6364
6365         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6366         with setting the sticky bit.
6367         * math/test-misc.c (main): Add more truncation tests.
6368
6369 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
6370
6371         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6372         double in the function declaration.
6373         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6374         double in the function declaration.
6375         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6376         float in the function declaration.
6377         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6378         float in the function declaration.
6379
6380         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6381         denormal operands.  Do not generate FP_EX_DENORM exception.
6382         (FP_UNPACK_RAW_EP): Ditto.
6383         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6384         undefined _FP_UNPACK_RAW_E.
6385         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6386         undefined _FP_UNPACK_RAW_EP.
6387         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6388         undefined _FP_PACK_RAW_E.
6389         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6390         undefined _FP_PACK_RAW_EP.
6391
6392         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6393         _FP_FRAC_COPY_2.
6394         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6395         _FP_FRAC_COPY_4.
6396
6397 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
6398             Jakub Jelinek  <jakub@redhat.com>
6399
6400         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6401         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
6402         this case.
6403         * soft-fp/op-common.h (FP_TRUNC): Ditto.
6404
6405 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6406
6407         * math/test-misc.c (main): Add tests for rounding long double
6408         values close to smallest double denormalized value to double.
6409
6410 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
6411
6412         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6413         condition for truncating to 0.  Set sticky bit for such
6414         truncation.
6415
6416 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
6417
6418         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6419         fixed length array for ignore.
6420
6421 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6422
6423         [BZ #4438]
6424         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6425         stack for large precisions.
6426         * stdio-common/test-vfprintf.c (main): Add test for large
6427         precision.
6428
6429 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
6430
6431         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6432         for exponent 0.
6433         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6434
6435         [BZ #4439]
6436         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6437         account in the size check.
6438         * resolv/tst-inet_ntop.c: New test.
6439         * resolv/Makefile (tests): Add tst-inet_ntop.
6440
6441 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6442             Jakub Jelinek  <jakub@redhat.com>
6443
6444         [BZ #4349]
6445         * malloc/malloc.c: Keep separate list for first blocks on the bin
6446         lists with a given size.  This helps skipping over list elements
6447         we know won't fit in two places.
6448         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6449
6450 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
6451
6452         [BZ #4102]
6453         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6454         label to Teredo tunnel addresses 2001://32.
6455
6456 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
6457
6458         * locale/programs/ld-collate.c (collate_read): Allow order_start
6459         after copy.
6460
6461         * locale/programs/ld-collate.c (collate_read): Fix printing of
6462         error message.
6463
6464         [BZ #3213]
6465         * locale/C-translit.h.in: Add entry for U2044.
6466
6467         [BZ #4342]
6468         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6469         hexa-decimal floats without exponent.
6470         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6471
6472 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6473
6474         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
6475         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
6476         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
6477         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
6478         GLIBC_2.6.
6479         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
6480         Add sched_getcpu.
6481
6482 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6483
6484         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
6485         of 0 after the out_fail label.
6486
6487 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6488
6489         [BZ #4406]
6490         * iconv/gconv_charset.h (strip): Allow ':'.
6491         * iconv/iconv_open.c (iconv_open): Adjust comment.
6492
6493 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6494
6495         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
6496         version.
6497
6498 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6499
6500         [BZ #4381]
6501         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
6502         alignment of buffer and tmp_buffer.
6503         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
6504         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
6505         alignment of buffer.
6506         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
6507         bigger than INT_MAX.
6508         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
6509         h_errnop arguments.  Fail if buflen is too small.
6510         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6511
6512 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6513
6514         [BZ #4405]
6515         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6516         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
6517
6518 2007-04-22  Roland McGrath  <roland@redhat.com>
6519
6520         * elf/elf.h (NT_PRXFPREG): New macro.
6521
6522 2007-04-19  Andreas Jaeger  <aj@suse.de>
6523
6524         [BZ #3905]
6525         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6526         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6527         Added.
6528
6529 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
6530
6531         * include/sys/mman.h: Mark madvise hidden.
6532         * misc/madvise.c: Add libc_hidden_def.
6533
6534 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
6535
6536         * nis/nis_domain_of.c (__nis_domain_of): New function.
6537         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
6538         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6539         * nis/nis_call.c (rec_dirsearch): Likewise.
6540         (first_shoot): Likewise.  Remove search_parent_first argument.
6541         (struct nis_server_cache): Rename search_parent_first field
6542         to search_parent.
6543         (nis_server_cache_search, nis_server_cache_add): Rename
6544         search_parent_first argument to search_parent.
6545         (__nisfind_server): Likewise.  If search_parent, call
6546         __nis_domain_of.
6547
6548 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
6549
6550         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
6551
6552 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
6553
6554         [BZ #4368]
6555         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
6556
6557 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
6558
6559         [BZ #4364]
6560         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
6561
6562 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
6563
6564         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
6565         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
6566         current number of locales in SUPPORTED.
6567         (create_archive): Initialize serial.
6568         (enlarge_archive): Preserve aliases rather than duplicating
6569         their locrecs.
6570
6571 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6572
6573         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
6574         after _IO_un_link, not before it.
6575
6576         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
6577         special case handling when wcp == wstartp + 1.  Fix a comment typo.
6578         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
6579
6580 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
6581
6582         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
6583         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
6584         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
6585         Remove __THROW.
6586         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
6587         _IO_file_xsgetn_maybe_mmap): Likewise.
6588         * libio/oldfileops.c (old_do_write): Likewise.
6589         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
6590         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
6591         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
6592         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
6593         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
6594         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
6595         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
6596         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
6597         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
6598         _IO_file_underflow, _IO_file_underflow_mmap,
6599         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
6600         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
6601         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
6602         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
6603         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
6604         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
6605         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
6606         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
6607         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
6608         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
6609         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
6610         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
6611         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
6612         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
6613         _IO_adjust_column_internal, _IO_default_uflow_internal,
6614         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
6615         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
6616         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
6617         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
6618         _IO_file_close_it_internal, _IO_file_underflow_internal,
6619         _IO_file_overflow_internal, _IO_file_attach_internal,
6620         _IO_file_fopen_internal, _IO_file_sync_internal,
6621         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
6622         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
6623         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
6624         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
6625         _IO_seekpos_unlocked): Likewise.
6626         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
6627         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
6628
6629 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
6630
6631         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
6632         argument in xmalloc size computation.
6633
6634 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
6635
6636         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
6637         math_opt_barrier and math_force_eval macros.
6638
6639 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6640
6641         [BZ #3306]
6642         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
6643         * sysdeps/i386/fpu/math_private.h: New file.
6644         * sysdeps/x86_64/fpu/math_private.h: New file.
6645         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
6646         math_force_eval macros.  Use "+m" constraint on asm rather than
6647         "=m" and "m".
6648         * math/s_nextafter.c (__nextafter): Likewise.
6649         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
6650         Likewise.
6651         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6652         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
6653         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6654         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
6655         math_opt_barrier and math_force_eval macros.
6656         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
6657         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
6658         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
6659         (__nexttoward): Use math_opt_barrier and
6660         math_force_eval macros.  Use "+m" constraint on asm rather than
6661         "=m" and "m".  Only use asm to force double result if
6662         FLT_EVAL_METHOD is 2.
6663         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
6664         (__nexttowardf): Use math_opt_barrier and
6665         math_force_eval macros.  Use "+m" constraint on asm rather than
6666         "=m" and "m".  Only use asm to force double result if
6667         FLT_EVAL_METHOD is not 0.
6668         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
6669         (__nexttowardf): Use math_opt_barrier and
6670         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6671         x to float using asm.
6672         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
6673         (__nldbl_nexttowardf): Use math_opt_barrier and
6674         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6675         x to float using asm.
6676         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
6677         (__nexttowardf): Use math_opt_barrier and math_force_eval
6678         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
6679         * math/bug-nextafter.c (zero, inf): New variables.
6680         (main): Add new tests.
6681         * math/bug-nexttoward.c (zero, inf): New variables.
6682         (main): Add new tests.
6683
6684 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
6685
6686         [BZ #3427]
6687         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
6688         exceptions both in SW and MXCSR.
6689         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
6690         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
6691         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6692         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6693         in MXCSR if SSE is available.
6694         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
6695         and ldsodefs.h.
6696         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
6697         Fix comment typo.
6698         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
6699         Return 0 rather than 1.
6700         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
6701         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
6702         * math/test-fenv.c (feholdexcept_tests): New function.
6703         (main): Call it.
6704
6705 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
6706
6707         [BZ #3427]
6708         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6709         in SW.
6710
6711 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6712
6713         [BZ #4344]
6714         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
6715         Reported by David Anderson <davea42@earthlink.net>.
6716
6717 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
6718
6719         * posix/sys/wait.h: Remove unnecessary forward declaration.
6720
6721 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
6722
6723         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
6724         with obj->do_servers after first_shoot.
6725
6726 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
6727
6728         * posix/Makefile (routines): Add sched_cpucount.
6729         (tests): Add tst-cpucount.
6730         * posix/sched_cpucount.c: New file.
6731         * posix/tst-cpucount.c: New file.
6732         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
6733         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
6734         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6735         * posix/sched.h: Define CPU_COUNT.
6736
6737 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6738
6739         * posix/fnmatch.c (STRUCT): Define.
6740         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
6741         * posix/fnmatch_loop.c (struct STRUCT): New type.
6742         (FCT): Add ends argument.  If ends != NULL and normal * is
6743         seen in the pattern, store current pattern and string pointers
6744         and return.  Adjust recursive calls.
6745         (EXT): Adjust FCT callers.
6746         (STRUCT): Undef at the end of the file.
6747         * posix/Makefile (tests): Add tst-fnmatch2.
6748         * posix/tst-fnmatch2.c: New test.
6749
6750 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
6751
6752         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
6753         and 1 on failure.
6754
6755         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
6756         Change last argument to unsigned int.
6757
6758 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
6759
6760         * scripts/check-local-headers.sh: Filter out sys/capability.h.
6761
6762 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
6763
6764         * config.h.in (HAVE_LIBCAP): Add.
6765         * nscd/selinux.h: Include sys/capability.h rather than non-existent
6766         sys/capabilities.h.
6767         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
6768         free_caps.  Cast away const from 4th cap_set_flag argument.
6769
6770 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
6771
6772         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
6773         GLIBC_2.6.
6774         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6775         Add sync_file_range.
6776         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
6777
6778 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
6779
6780         * sysdeps/powerpc/bits/atomic.h
6781         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
6782         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
6783         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6784         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
6785         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6786         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
6787         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
6788         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6789         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6790         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6791         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
6792         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6793         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6794         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6795         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6796         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
6797         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6798         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
6799         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6800         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
6801
6802 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
6803
6804         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6805         (__cache_line_size): Define the variable here.  Add
6806         attribute_hidden, remove weak_extern.
6807         (__libc_start_main): Set __cache_line_size
6808         unconditionally.
6809         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
6810         (__cache_line_size): Define the variable here.  Add
6811         attribute_hidden, remove weak_extern.
6812         (DL_PLATFORM_AUXV): Set __cache_line_size
6813         unconditionally.
6814         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
6815         weak_extern, add attribute_hidden.
6816         (__elf_machine_runtime_setup): Assume __cache_line_size is always
6817         defined in ld.so.
6818         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
6819         definition.
6820         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
6821
6822 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
6823
6824         [BZ #4276]
6825         * timezone/africa: Update from tzdata2007d.
6826         * timezone/asia: Likewise.
6827         * timezone/australasia: Likewise.
6828         * timezone/backward: Likewise.
6829         * timezone/europe: Likewise.
6830         * timezone/iso3166.tab: Likewise.
6831         * timezone/leapseconds: Likewise.
6832         * timezone/northamerica: Likewise.
6833         * timezone/southamerica: Likewise.
6834         * timezone/zone.tab: Likewise.
6835
6836         * timezone/private.h: Update from tzcode2007d.
6837         * timezone/zdump.c: Likewise.
6838         * timezone/zic.c: Likewise.
6839
6840 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
6841
6842         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
6843         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
6844         variables.
6845         (nis_server_cache_search, nis_server_cache_add): New functions.
6846         (__nisfind_server): Use them.  Add dbp and flags argument, if
6847         call __nisbind_create.
6848         (__nisbind_create): Add server_used and current_ep arguments,
6849         only call __nis_findfastest if server_used is ~0.
6850         (__do_niscall2, __prepare_niscall): Adjust callers.
6851         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
6852         ckey_cache_euid, ckey_cache_lock): New variables.
6853         (get_ckey): New function.
6854         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
6855         __pmap_getnisport.  Save __pmap_getnisport result in
6856         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
6857         key.
6858         * nis/nis_lookup.c (nis_lookup): Likewise.
6859         * nis/nis_table.c (nis_list): Likewise.
6860         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
6861         prototypes.
6862
6863         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
6864         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
6865         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
6866         _nss_nisplus_getservbyport_r): Likewise.
6867         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
6868         _nss_nisplus_getnetbyaddr_r): Likewise.
6869         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
6870         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
6871         _nss_nisplus_getntohost_r): Likewise.
6872         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
6873         _nss_nisplus_getrpcbynumber_r): Likewise.
6874
6875 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
6876
6877         * configure.in (libc_cv_gnu89_inline): Only do compile test.
6878         * configure: Rebuilt.
6879
6880         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
6881         bit-fields.
6882         * soft-fp/extended.h (_FP_UNION_E): Likewise.
6883
6884 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
6885
6886         [BZ #2831]
6887         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
6888         bit-fields.
6889
6890 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
6891
6892         * nscd/gai.c: Include alloca.h.
6893         (__libc_use_alloca): Define.
6894
6895 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
6896
6897         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
6898         smaller scopes.
6899         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
6900         (DL_DST_REQUIRED): Adjust user.
6901
6902         * include/dlfcn.h (struct link_map): New forward decl.
6903
6904         * inet/getnameinfo.c: Include stddef.h.
6905         (getnameinfo): Use offsetof.
6906
6907         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
6908
6909         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
6910
6911         * string/strerror_l.c: Include stdlib.h.
6912
6913         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
6914         * config.make.in (gnu89-inline-CFLAGS): New variable.
6915         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
6916         -std=gnu99.
6917         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
6918         * argp/argp.h: Use it.
6919         * bits/mathinline.h: Likewise.
6920         * bits/sigset.h: Likewise.
6921         * bits/string.h: Likewise.
6922         * ctype/ctype.h: Likewise.
6923         * hurd/hurd.h: Likewise.
6924         * hurd/hurd/fd.h: Likewise.
6925         * hurd/hurd/port.h: Likewise.
6926         * hurd/hurd/signal.h: Likewise.
6927         * hurd/hurd/threadvar.h: Likewise.
6928         * hurd/hurd/userlink.h: Likewise.
6929         * io/sys/stat.h: Likewise.
6930         * libio/bits/stdio.h: Likewise.
6931         * libio/bits/stdio2.h: Likewise.
6932         * mach/lock-intern.h: Likewise.
6933         * mach/mach/mig_support.h: Likewise.
6934         * math/bits/cmathcalls.h: Likewise.
6935         * posix/bits/unistd.h: Likewise.
6936         * socket/bits/socket2.h: Likewise.
6937         * stdlib/bits/stdlib.h: Likewise.
6938         * stdlib/stdlib.h: Likewise.
6939         * string/argz.h: Likewise.
6940         * string/bits/string2.h: Likewise.
6941         * string/bits/string3.h: Likewise.
6942         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
6943         * sysdeps/generic/inttypes.h: Likewise.
6944         * sysdeps/generic/machine-lock.h: Likewise.
6945         * sysdeps/generic/machine-sp.h: Likewise.
6946         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6947         * sysdeps/i386/i486/bits/string.h: Likewise.
6948         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
6949         * sysdeps/mach/alpha/machine-lock.h: Likewise.
6950         * sysdeps/mach/alpha/machine-sp.h: Likewise.
6951         * sysdeps/mach/i386/machine-lock.h: Likewise.
6952         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
6953         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
6954         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6955         * sysdeps/s390/bits/string.h: Likewise.
6956         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
6957         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6958         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6959         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
6960         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6961         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
6962         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6963         * wcsmbs/bits/wchar2.h: Likewise.
6964         * wcsmbs/wchar.h: Likewise.
6965         * stdlib/gmp.h: Likewise.  Include <features.h> to get
6966         __extern_inline definition.
6967
6968 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
6969
6970         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
6971         NULL.
6972
6973         [BZ #3919]
6974         * math/libm-test.inc (log_test): Test -Inf and NaN.
6975         (log10_test, log1p_test, log2_test): Test -Inf.
6976         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
6977         FE_INVALID when argument is qNaN.
6978         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
6979         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
6980         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
6981         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
6982         andb $1, %ah with testb $1, %ah, don't test for parity, instead
6983         testb $4, %ah and jump if non-zero.
6984         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
6985         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
6986
6987         [BZ #4101]
6988         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
6989         ancestors with the same depths.
6990         Patch by Niels Moeller <nisse@lysator.liu.se>.
6991         (filter_doc): Don't crash if argp is NULL.
6992         * argp/Makefile (tests): Add tst-argp2.
6993         * argp/tst-argp2.c: New test.
6994
6995         [BZ #4130]
6996         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
6997         open_not_cancel_2.
6998         (updwtmp_file): Likewise.
6999
7000         [BZ #4181]
7001         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
7002         (inet6_opt_append): Don't check extlen is big enough if extbuf
7003         is NULL.
7004         (inet6_opt_finish): Likewise.
7005         * inet/Makefile (tests): Add test-inet6_opt.
7006         * inet/test-inet6_opt.c: New test.
7007
7008         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
7009         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
7010         NLMSG_ERR.  Instead use a page sized buffer.
7011         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
7012         buffer.
7013
7014 2007-03-14  Richard Henderson  <rth@redhat.com>
7015
7016         * sysdeps/alpha/fpu/s_llround.c: New file.
7017         * sysdeps/alpha/fpu/s_llroundf.c: New file.
7018         * sysdeps/alpha/fpu/s_lround.c: New file.
7019         * sysdeps/alpha/fpu/s_lroundf.c: New file.
7020         * sysdeps/alpha/fpu/s_round.c: New file.
7021         * sysdeps/alpha/fpu/s_roundf.c: New file.
7022         * sysdeps/alpha/fpu/s_trunc.c: New file.
7023         * sysdeps/alpha/fpu/s_truncf.c: New file.
7024
7025         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
7026         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
7027         * sysdeps/alpha/fpu/s_floor.c: Likewise.
7028         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
7029         * sysdeps/alpha/fpu/s_rint.c: Likewise.
7030         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7031
7032         * sysdeps/alpha/fpu/s_fmax.S: New file.
7033         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
7034         * sysdeps/alpha/fpu/s_fmin.S: New file.
7035         * sysdeps/alpha/fpu/s_fminf.S: New file.
7036         * sysdeps/alpha/fpu/s_isnan.c: New file.
7037         * sysdeps/alpha/fpu/s_isnanf.c: New file.
7038         * sysdeps/alpha/fpu/s_llrint.c: New file.
7039         * sysdeps/alpha/fpu/s_llrintf.c: New file.
7040         * sysdeps/alpha/fpu/s_lrint.c: New file.
7041         * sysdeps/alpha/fpu/s_lrintf.c: New file.
7042         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
7043         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
7044
7045         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
7046         (__fdimf, fdimf, __fdim, fdim): Remove.
7047         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
7048         (__isnanf, __isnan, __isnanl): New.
7049
7050 2007-03-13  Richard Henderson  <rth@redhat.com>
7051
7052         * sysdeps/ieee754/ldbl-128/Makefile: New file.
7053
7054 2007-03-13  Richard Henderson  <rth@redhat.com>
7055
7056         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
7057         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
7058         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
7059         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
7060         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
7061         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
7062
7063 2007-03-13  Richard Henderson  <rth@redhat.com>
7064
7065         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
7066         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
7067         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
7068         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
7069         Move to dl-auxv.h; initialize instead of extern weak.
7070         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
7071         weak symbol.
7072         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
7073         Extern instead of initialized.
7074
7075 2007-03-13  Richard Henderson  <rth@redhat.com>
7076
7077         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
7078         __sigsuspend_nocancel.
7079
7080 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
7081
7082         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
7083         172.16/12 address range.
7084
7085 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
7086
7087         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
7088         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
7089         message.
7090
7091 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
7092
7093         [BZ #4069]
7094         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
7095         earlier.
7096         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
7097
7098         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
7099         for x qNaN and y either +-inf or non-integer value.
7100         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
7101         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
7102         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7103
7104 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
7105
7106         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
7107         from sysdep_headers.
7108
7109 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
7110
7111         * time/tzfile.c (find_transition): Instead of a linear search try to
7112         guess the transition index, use a linear search if the result is at
7113         most 10 transitions away from the guess or binary search otherwise.
7114
7115 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
7116
7117         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7118         memory reallocation.
7119
7120 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
7121
7122         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7123         and fix some typos.
7124         Optimize use of TOLOWER.
7125
7126         [BZ #3325]
7127         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7128         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7129         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7130
7131         [BZ #3458]
7132         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7133         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7134
7135         [BZ #4076]
7136         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7137         (open_dir_stream): Likewise.
7138         * io/Makefile (tests): Add bug-ftw5.
7139         * io/bug-ftw5.c: New file.
7140
7141         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7142         * nscd/servicescache.c (cache_addserv): Likewise.
7143
7144         * nscd/grpcache.c (cache_addgr): In case a record changed on
7145         refresh, adjust key_copy.
7146
7147         [BZ #4074]
7148         * nscd/pwdcache.c (cache_addpw): In case a record changed on
7149         refresh, adjust key_copy.
7150
7151         [BZ #4070]
7152         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
7153         special cases.
7154         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
7155
7156 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
7157
7158         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7159         optimization.
7160
7161         * stdio-common/vfscanf.c: Small cleanups throughout.
7162
7163 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
7164
7165         [BZ #3325]
7166         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7167         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7168         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7169         Patch by Jared Casper <jaredcasper@gmail.com>.
7170
7171         * sysdeps/unix/closedir.c: Outside libc don't use locking.
7172         * sysdeps/unix/opendir.c: Likewise.
7173         * sysdeps/unix/readdir.c: Likewise.
7174
7175         [BZ #2211]
7176         * stdio-common/vfscanf.c: Handle localized digits etc for floating
7177         point numbers.
7178         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7179
7180         * stdio-common/vfscanf.c: Fix problems in width accounting.
7181         * stdio-common/tst-sscanf.c (double_tests): New tests.
7182         (main): Hook them up.
7183
7184         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
7185         More simplifications of floating-point reader.
7186
7187         * stdio-common/Makefile (tests): Add tst-swscanf.
7188         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7189         testing.
7190         * stdio-common/tst-swscanf.c: New file.
7191
7192 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
7193
7194         [BZ #2633]
7195         * libio/stdio.h: Define struct _IO_FILE in global namespace.
7196         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7197         Remove using for __jmp_buf_tag.
7198         * locale/locale.h (struct lconv): Also define in std namespace.
7199         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7200
7201         [BZ #3842]
7202         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7203         using __libc_enable_secure.
7204
7205         [BZ #3818]
7206         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7207
7208         [BZ #3745]
7209         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7210         of names for ellipsises.
7211
7212         [BZ #3348]
7213         * malloc/memusage.sh: Cleanups.
7214         * debug/xtrace.sh: Quoting and trap changes.
7215
7216 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
7217
7218         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7219
7220         * locale/iso-3166.def: Update entry for Serbia.
7221         * locale/iso-4217.def: Define RSD, remove CSD.
7222
7223         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7224         and 64-bit operations.
7225
7226         [BZ #4040]
7227         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7228         16-bit operations.
7229
7230         * nscd/nscd.c (parse_opt): One more conversion to use send instead
7231         of writev.
7232
7233 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
7234
7235         [BZ #3991]
7236         * assert/assert.h (assert): Simplify.
7237         (assert_perror): Likewise.
7238         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7239
7240         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7241         reqdata.
7242
7243         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7244         change: don't pass NULL in place of an integer.
7245
7246 2007-02-02  Bruno Haible  <bruno@clisp.org>
7247
7248         [BZ #3954]
7249         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7250         Add mapping for U+327E.
7251         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7252         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7253         mapping of 0xD9 0xE8.
7254         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7255         mapping of U+327E.
7256         Reported by Jungshik Shin <jungshik@google.com>.
7257
7258         [BZ #3955]
7259         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7260         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7261         Reported by Jungshik Shin <jungshik@google.com>.
7262
7263 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
7264
7265         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7266         byte variants.
7267
7268         [BZ #4040]
7269         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7270         byte variants.  Patch mostly be tom@tommay.net.
7271
7272 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
7273
7274         [BZ #3996]
7275         * posix/glob.c (attribute_hidden): Define if not defined.
7276         (glob): Unescape dirname, filename or username when needed and not
7277         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
7278         is NULL.  Handle unescaped [ in pattern without closing ].
7279         Don't pass GLOB_CHECK down to recursive glob for directories.
7280         (__glob_pattern_type): New function.
7281         (__glob_pattern_p): Implement using __glob_pattern_type.
7282         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7283         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7284         Remove unreachable code.
7285         * posix/globtest.sh: Add a couple of new tests.
7286
7287 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
7288
7289         * po/ru.po: Update from translation team.
7290
7291 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
7292
7293         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7294         to the list of i486+ CPUs.
7295         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7296
7297 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
7298
7299         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7300         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7301         references.
7302
7303 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
7304
7305         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7306
7307         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7308         * resolv/res_mkquery.c: Define __res_nopt.
7309         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7310         try adding EDNS0 record.
7311         * resolv/res_send.c (send_dg): If request failed with FORMERR and
7312         EDNS0 record was send make sure we don't try it again.
7313         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7314         * include/resolv.h: Declare __res_nopt.
7315
7316 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
7317
7318         [BZ #3944]
7319         * time/strptime_l.c (__strptime_internal): Set have_mon for
7320         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
7321         have been computed from tm_yday and tm_year.  Don't crash
7322         in day_of_the_week or day_of_the_year if not have_mon
7323         and tm_mon contains bogus value.
7324         * time/Makefile (tests): Add tst-strptime3.
7325         * time/tst-strptime3.c: New test.
7326
7327 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
7328
7329         [BZ #3957]
7330         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7331         bit for RE_HAT_LISTS_NOT_NEWLINE.
7332         (build_charclass_op): Remove bogus comment.
7333         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7334         * posix/bug-regex27.c: New test.
7335         * posix/bug-regex28.c: New test.
7336
7337 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
7338
7339         * po/sv.po: Update from translation team.
7340
7341 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
7342
7343         * nscd/nscd_helper.c (open_socket): Minor size optimization.
7344
7345 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
7346
7347         * include/locale.h (__uselocale): Add libc_hidden_proto.
7348         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7349
7350         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7351         gettimeofday.
7352
7353 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
7354
7355         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7356         returning.
7357         (PTR_DEMANGLE): Real definition now that it's not the same as
7358         PRT_MANGLE anymore.
7359         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7360
7361         * string/strerror_l.c: New file.
7362         * string/Makefile (routines): Add strerror_l.
7363         * string/string.h: Declare strerror_l.
7364         * string/Versions: Export strerror_l for GLIBC_2.6.
7365
7366 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
7367
7368         * nscd/nscd_helper.c (open_socket): Now takes request type and key
7369         as parameter.  Construct request record.  Try sending request
7370         before the first poll use, it usually succeeds.  Adjust all
7371         callers.
7372         * nscd/nscd-client.h: Define MAXKEYLEN.
7373         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
7374
7375 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
7376
7377         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7378         from return value.
7379         * nscd/nscd_helper.c: Include string.h.
7380         (__nscd_cache_search): Remove const qualifier from return value.
7381         On strict alignment architectures check hash entry and data head
7382         alignment.
7383         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7384         mmapped data during GC cycle contains garbage.  If
7385         __nscd_drop_map_ref fails, decrement mapped->counter when returning
7386         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7387         dropped to 0.
7388         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7389         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7390         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7391         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7392         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7393
7394 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
7395
7396         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7397
7398 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
7399
7400         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7401         names not numbers in cfi_*.
7402
7403 2007-01-26  Andreas Jaeger  <aj@suse.de>
7404
7405         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
7406         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
7407         Correct values of PER_HPUX and PER_OSF4.
7408
7409 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
7410
7411         * elf/dl-minimal.c: Undefine _itoa first.
7412         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7413         * malloc/mtrace.c: Revert last change.
7414         * posix/wordexp.c: Likewise.
7415
7416 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
7417
7418         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7419         and __geode__ to the list of i486+ CPUs.
7420         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7421
7422 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
7423
7424         * stdio-common/_itoa.c: Include <limits.h>.
7425         * stdio-common/_itowa.c: Likewise.
7426
7427 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
7428
7429         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7430         platforms.
7431         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7432         64-bit platforms.
7433         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7434         possible.
7435         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7436         if possible.
7437
7438         [BZ #3902]
7439         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7440         * stdio-common/Makefile (tests): Add bug17.
7441         * stdio-common/bug17.c: New file.
7442
7443 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
7444
7445         * iconvdata/brf.c: New file.
7446         * iconvdata/testdata/BRF: New file.
7447         * iconvdata/testdata/BRF..UTF8: New file.
7448         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7449         * iconvdata/Makefile: Add rules to build BRF.
7450         * iconvdata/TESTS: Add BRF entry.
7451         * iconvdata/gconv-modules: Likewise.
7452         * iconvdata/tst-tables.sh: Likewise.
7453
7454 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
7455
7456         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7457         type `long long int', not `long int'.
7458         (wcstoq): Likewise.
7459
7460 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
7461
7462         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7463         of values on 64-bit platforms which are too large.
7464
7465 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
7466             Joe Kerian  <jkerian@us.us.ibm.com>
7467
7468         [BZ #2749]
7469         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7470         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
7471         (__copysignl): Use signbit() for comparison.
7472         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7473         SET_LDOUBLE_WORDS64.
7474
7475         [BZ #2423, #2749]
7476         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
7477         (__ceill): Remove calls to fegetround(), fesetround().
7478         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7479         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7480         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7481
7482 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
7483
7484         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
7485
7486         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
7487
7488 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
7489
7490         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
7491         demangle pointer.
7492         * csu/libc-start.c: Likewise.
7493
7494 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
7495
7496         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
7497         really work anyway.
7498
7499 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7500
7501         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
7502         users.
7503         (handle_request): Remove unnecessary tests.
7504
7505         * nscd/cache.c (cache_add): Record the failure to add to the cache.
7506
7507 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
7508
7509         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7510         workbits in semi-raw fraction.
7511
7512         * math/test-misc.c: Add new tests.
7513
7514 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
7515
7516         * math/basic-test.c: Include test-skeleton.c.
7517         (TEST_TRUNC): Define.
7518         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7519         (main): Rename to ...
7520         (do_test): ...this.  Run new tests.
7521         (TEST_FUNCTION): Define.
7522
7523 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
7524             Joe Kerian  <jkerian@us.us.ibm.com>
7525
7526         [BZ #2749]
7527         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7528         handling for high words.
7529         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7530         and overflow for infinity.
7531
7532 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7533
7534         * nscd/connections.c (handle_request): Add a __builtin_expect.
7535
7536         * nscd/connections.c (serv2db): Change type into structure which
7537         also says whether this is a request for data.  Renamed to
7538         servinfo.  All users changed.
7539         (handle_request): Much simpler test whether we should search the cache.
7540
7541         * nscd/connections.c (handle_request): Fix thinko in selinux test
7542         invocation.
7543
7544         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7545         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7546         it before getting dl_load_lock and then relock.
7547         (_dl_lookup_symbol_x): Pass flags to add_dependency.
7548         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
7549         case we unlocked the scope.
7550         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
7551         _dl_lookup_symbol_x in case we locked the scope.
7552         (_dl_profile_fixup): Likewise.
7553         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
7554         set DL_LOOKUP_SCOPE_LOCK.
7555
7556 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
7557
7558         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
7559         CFLAGS-getsrvbynpt_r.c.
7560         * nscd/getsrvbynm_r.c: New file.
7561         * nscd/getsrvbypt_r.c: New file.
7562         * nscd/nscd_getserv_r.c: New file.
7563         * nscd/servicescache.c: New file.
7564         * nscd/Makefile (routines): Add nscd_getserv_r.
7565         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
7566         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
7567         CFLAGS-getsrvbypt_r.c.
7568         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
7569         table.  Add entries for services database.
7570         * nscd/connections.c (serv2str): Mark as const.  Add entries for
7571         services database.
7572         (dbs): Add .reset_res and servdb initialization.
7573         (serv2db): Add entries for services database.
7574         (verify_persistent_db): Accept dbnr == servdb.
7575         (invalidate_cache): Rewrite database name recognition to use a table.
7576         Call res_init() if .reset_res is set for database.
7577         (handle_request): Add code to handle services database.
7578         * nscd/gai.c: Don't define __getservbyname_r.
7579         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
7580         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
7581         (serv_response_header): Define.
7582         (struct datahead): Add serv_response_header member.
7583         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
7584         using table.
7585         * nscd/nscd.conf: Add entries for services database.
7586         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
7587         Declare serv_iov_disabled.
7588         Declare addservbyname, readdservbyname, addservbyport, and
7589         readdservbyport.
7590         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
7591         (find_db): Fix error message.
7592         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
7593         __nscd_getservbyname_r, and __nscd_getservbyport_r.
7594         * nscd/selinux.c (perms): Add entries for services database.
7595         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
7596         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
7597
7598         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
7599         * nscd/hstcache.c: Likewise.
7600         * nscd/pwdcache.c: Likewise.
7601
7602         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
7603         computation of keylen.
7604
7605         * include/string.h: Only redefine strndupa if this is really for
7606         libc code.
7607
7608 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
7609
7610         * nscd/nscd_gethst_r.c: Minor cleanups.
7611
7612         * nscd/connections.c (handle_request): Check selinux permissions
7613         for all non-admin commands.
7614
7615         * sysdeps/i386/i486/bits/atomic.h: Define
7616         atomic_compare_and_exchange_val_acq,
7617         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
7618         using __sync_* built-ins for gcc >= 4.1.
7619         * sysdeps/x86_64/bits/atomic.h: Likewise.
7620
7621         [BZ #3840]
7622         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
7623         and .oS.d files.
7624
7625 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
7626
7627         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
7628         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
7629         (do_test): Check errno and exit(0) if ENOSYS.
7630
7631 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7632
7633         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
7634         thousands separators.
7635         * stdlib/Makefile: Add rules to build and run tst-strtod4.
7636         * stdlib/tst-strtod4.c: New test.
7637
7638         [BZ #3855]
7639         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
7640         hexadecimal digit should accept just the initial 0.
7641         * stdlib/tst-strtod2.c (tests): New variable.
7642         (do_test): Run several tests rather than just one.
7643
7644 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7645
7646         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
7647         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
7648
7649 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
7650
7651         * io/fts.c: Make sure fts_cur is always valid after return from
7652         fts_read.
7653         Patch by Miloslav Trmac <mitr@redhat.com>.
7654
7655 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
7656
7657         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
7658         (R_MIPS_NUM): Bump by 1.
7659
7660 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
7661
7662         * posix/execvp.c: Include alloca.h.
7663         (allocate_scripts_argv): Renamed to...
7664         (scripts_argv): ... this.  Don't allocate buffer here nor count
7665         arguments.
7666         (execvp): Use alloca if possible.
7667         * posix/Makefile: Add rules to build and run tst-vfork3 test.
7668         * posix/tst-vfork3.c: New test.
7669
7670 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
7671
7672         * string/Makefile (tst-strxfrm2-ENV): Define.
7673         * stdlib/Makefile (tst-strtod3-ENV): Define.
7674
7675 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
7676
7677         * posix/getconf.c: Update copyright year.
7678         * nss/getent.c: Likewise.
7679         * iconv/iconvconfig.c: Likewise.
7680         * iconv/iconv_prog.c: Likewise.
7681         * elf/ldconfig.c: Likewise.
7682         * catgets/gencat.c: Likewise.
7683         * csu/version.c: Likewise.
7684         * elf/ldd.bash.in: Likewise.
7685         * elf/sprof.c (print_version): Likewise.
7686         * locale/programs/locale.c: Likewise.
7687         * locale/programs/localedef.c: Likewise.
7688         * nscd/nscd.c (print_version): Likewise.
7689         * debug/xtrace.sh: Likewise.
7690         * malloc/memusage.sh: Likewise.
7691         * malloc/mtrace.pl: Likewise.
7692         * debug/catchsegv.sh: Likewise.
7693
7694 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
7695
7696         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
7697         attempts.
7698
7699 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
7700
7701         * posix/wordexp.c: Remove some unnecessary tests.
7702
7703 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
7704
7705         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
7706         blacklist the group till after we look it up.
7707
7708 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
7709
7710         * include/atomic.h (atomic_forced_read): New macro.
7711
7712 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
7713
7714         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
7715
7716 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
7717
7718         * nss/getXXbyYY_r.c: Include atomic.h.
7719         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
7720         add atomic_write_barrier () in between.
7721
7722         * stdlib/Makefile (tests): Add tst-makecontext.
7723         * stdlib/tst-makecontext.c: New test.
7724
7725         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
7726         (__makecontext): Don't realign uc_mcontext.uc_regs.
7727
7728 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
7729
7730         * elf/dl-support.c: Include dl-procinfo.h.
7731         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
7732         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
7733         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
7734         Define.
7735         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
7736         hardcoded constants.
7737         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
7738         PPC_PLATFORM_* macros for array designators.
7739
7740 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
7741
7742         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
7743         names to the beginning.
7744         (_dl_powerpc_platforms): Add "power6x".
7745         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
7746         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
7747         (_DL_PLATFORMS_COUNT): Increase.
7748         (_dl_string_platform): Handle power6x case.
7749         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
7750         PPC_FEATURE_POWER6_EXT): Define.
7751         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
7752
7753 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
7754
7755         [BZ #3747]
7756         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
7757         [-2^31 .. 2^31) range.
7758         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
7759         targets.
7760         * stdlib/tst-rand48-2.c: New test.
7761         * stdlib/Makefile (tests): Add tst-rand48-2.
7762
7763 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
7764
7765         * misc/tst-pselect.c (do_test): Fix sigblock argument.
7766
7767 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
7768
7769         * misc/tst-pselect.c (do_test): Make sure the helper process is
7770         terminating when the test is aborted.
7771
7772 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
7773
7774         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
7775         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7776         Handle relatime mount option.
7777
7778         [BZ #2337]
7779         * libio/Makefile (tests): Add tst-setvbuf1.
7780         * libio/tst-setvbuf1.c: New file.
7781
7782 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
7783
7784         [BZ #2337]
7785         * libio/genops.c (__uflow): Fix a typo.
7786         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
7787         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
7788         the narrow buffer size.
7789
7790 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
7791
7792         [BZ #2337]
7793         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
7794         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
7795         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
7796         in _flags.
7797         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
7798         _IO_wstr_finish): Likewise.
7799         * libio/wmemstream.c (open_wmemstream): Likewise.
7800         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
7801         even for wide streams.
7802
7803 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
7804
7805         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
7806         kernel-features.h.
7807
7808 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
7809
7810         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
7811         separators also if no non-zero digits found.
7812         * stdlib/Makefile (tests): Add tst-strtod3.
7813
7814 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
7815
7816         [BZ #3632]
7817         * include/features.h: Fix comment about default value for
7818         _POSIX_C_SOURCE.
7819
7820         [BZ #3664]
7821         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
7822         empty parsed strings.
7823         * stdlib/Makefile (tests): Add tst-strtod2.
7824         * stdlib/tst-strtod2.c: New file.
7825
7826         [BZ #3673]
7827         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
7828         computation.
7829         * stdlib/Makefile (tests): Add tst-atof2.
7830         * stdlib/tst-atof2.c: New file.
7831
7832         [BZ #3674]
7833         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
7834         correctly if removing trailing zero of hex-float.
7835         * stdlib/Makefile (tests): Add tst-atof1.
7836         * stdlib/tst-atof1.c: New file.
7837
7838 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
7839
7840         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
7841         Start searching for next comma at p rather than rest.
7842         * misc/Makefile (tests): Add tst-mntent2.
7843         * misc/tst-mntent2.c: New test.
7844
7845         * misc/getusershell.c (initshells): Check for integer overflows.
7846         Make strings buffer one bigger as fgets always succeeds when second
7847         argument is 1.  Don't use calloc for shells array.  Disallow
7848         / as shell.
7849
7850 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
7851
7852         * malloc/memusage.c: Handle realloc with new size of zero and
7853         non-NULL pointer correctly.
7854         (me): Really write first record twice.
7855         (struct entry): Make format bi-arch safe.
7856         (dest): Write out more realloc statistics.
7857         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
7858
7859 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
7860
7861         * nis/nis_subr.c (nis_getnames): Revert last change.
7862
7863 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
7864
7865         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
7866         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
7867         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
7868         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
7869         ENOTTY.
7870         * io/Makefile: Add rules to build and run tst-ttyname_r test.
7871         * io/tst-ttyname_r.c: New test.
7872
7873 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7874
7875         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
7876
7877 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
7878
7879         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
7880         jump table entries.
7881
7882 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
7883
7884         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
7885         `clone' function to ensure proper unwinding stop of gdb.
7886         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
7887
7888 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
7889
7890         * nscd/nscd.init: Remove obsolete and commented-out -S option
7891         handling.
7892
7893 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
7894
7895         [BZ #3514]
7896         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
7897
7898         [BZ #3515]
7899         * manual/string.texi (strtok): Remove duplicate paragraph.
7900
7901 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
7902
7903         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
7904         libgcc not supporting `rflags' unwinding (register # >= 17).
7905
7906 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
7907
7908         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
7909         succeeded.
7910
7911 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
7912             Jakub Jelinek  <jakub@redhat.com>
7913             Jan Kratochvil  <jan.kratochvil@redhat.com>
7914
7915         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
7916         unwind information.
7917         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
7918         'restore_rt' even in the 'signal' directory.
7919         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
7920
7921 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
7922
7923         [BZ #3559]
7924         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
7925         malloc crashed.  Don't allocate memory unnecessarily in each
7926         loop.
7927
7928 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
7929
7930         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
7931
7932 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
7933
7934         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
7935
7936 2006-11-18  Bruno Haible  <bruno@clisp.org>
7937
7938         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
7939         __sysconf only after having tried to call getgroups32.
7940
7941 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
7942
7943         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
7944         addresses for IPv4 queries if they can be mapped.
7945
7946 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
7947
7948         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
7949         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
7950         (signmask): Add .size directive.
7951         (othermask): Add .type directive.
7952
7953 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
7954
7955         * po/nl.po: Update from translation team.
7956
7957         * timezone/zdump.c: Redo fix for BZ #3137.
7958
7959 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
7960
7961         * nss/nss_files/files-alias.c (get_next_alias): Set line back
7962         to first_unused after parsing :include: file.
7963
7964 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
7965
7966         * timezone/africa: Update from tzdata2006o.
7967         * timezone/antarctica: Likewise.
7968         * timezone/asia: Likewise.
7969         * timezone/australasia: Likewise.
7970         * timezone/backward: Likewise.
7971         * timezone/europe: Likewise.
7972         * timezone/iso3166.tab: Likewise.
7973         * timezone/northamerica: Likewise.
7974         * timezone/southamerica: Likewise.
7975         * timezone/zone.tab: Likewise.
7976
7977         * time/tzfile.c (__tzfile_read): Extend to handle new file format
7978         on machines with 64-bit time_t.
7979
7980         * timezone/checktab.awk: Update from tzcode2006o.
7981         * timezone/ialloc.c: Likewise.
7982         * timezone/private.h: Likewise.
7983         * timezone/scheck.c: Likewise.
7984         * timezone/tzfile.h: Likewise.
7985         * timezone/tzselect.ksh: Likewise.
7986         * timezone/zdump.c: Likewise.
7987         * timezone/zic.c: Likewise.
7988
7989         [BZ #3483]
7990         * elf/ldconfig.c (main): Call setlocale and textdomain.
7991         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
7992
7993         [BZ #3480]
7994         * manual/argp.texi: Fix typos.
7995         * manual/charset.texi: Likewise.
7996         * manual/errno.texi: Likewise.
7997         * manual/filesys.texi: Likewise.
7998         * manual/lang.texi: Likewise.
7999         * manual/maint.texi: Likewise.
8000         * manual/memory.texi: Likewise.
8001         * manual/message.texi: Likewise.
8002         * manual/resource.texi: Likewise.
8003         * manual/search.texi: Likewise.
8004         * manual/signal.texi: Likewise.
8005         * manual/startup.texi: Likewise.
8006         * manual/stdio.texi: Likewise.
8007         * manual/sysinfo.texi: Likewise.
8008         * manual/syslog.texi: Likewise.
8009         * manual/time.texi: Likewise.
8010         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8011
8012         [BZ #3465]
8013         * sunrpc/clnt_raw.c: Minimal message improvements.
8014         * sunrpc/pm_getmaps.c: Likewise.
8015         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8016         * nis/nis_print_group_entry.c: Likewise.
8017         * locale/programs/repertoire.c: Likewise.
8018         * locale/programs/charmap.c: Likewise.
8019         * malloc/memusage.sh: Likewise.
8020         * elf/dl-deps.c: Likewise.
8021         * locale/programs/ld-collate.c: Likewise.
8022         * libio/vswprintf.c: Likewise.
8023         * malloc/memusagestat.c: Likewise.
8024         * sunrpc/auth_unix.c: Likewise.
8025         * sunrpc/rpc_main.c: Likewise.
8026         * nscd/cache.c: Likewise.
8027         * locale/programs/repertoire.c: Unify output messages.
8028         * locale/programs/charmap.c: Likewise.
8029         * locale/programs/ld-ctype.c: Likewise.
8030         * locale/programs/ld-monetary.c: Likewise.
8031         * locale/programs/ld-numeric.c: Likewise.
8032         * locale/programs/ld-time.c: Likewise.
8033         * elf/ldconfig.c: Likewise.
8034         * nscd/selinux.c: Likewise.
8035         * elf/cache.c: Likewise.
8036         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8037
8038         [BZ #3451]
8039         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
8040         change atomic.
8041         (ceil): Likewise.
8042
8043 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8044
8045         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
8046         if N is one bigger than return value.
8047         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
8048         and l1 last arguments, if buf is defined, verify the return value
8049         equals to strlen (buf) and verify no byte beyond passed length
8050         is modified.
8051
8052 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8053
8054         * po/sv.po: Update from translation team.
8055
8056 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8057
8058         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
8059         noinline attribute.
8060
8061 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8062
8063         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
8064         noinline attribute.
8065
8066         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
8067         Use __new_sys_siglist instead of _sys_siglist_internal as
8068         second macro argument.
8069         (_old_sys_siglist): Use declare_symbol_alias macro instead of
8070         strong_alias.
8071
8072 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8073
8074         [BZ #3493]
8075         * posix/unistd.h (sysconf): Remove const attribute.
8076
8077         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
8078         temporary or deprecated addresses.
8079         Patch by Sridhar Samudrala <sri@us.ibm.com>.
8080
8081         * string/Makefile (tests): Add tst-strxfrm2.
8082         * string/tst-strxfrm2.c: New file.
8083
8084 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
8085
8086         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
8087         rather than r->r_brk.
8088
8089 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
8090
8091         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
8092         optimization even if needed > n.
8093
8094         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
8095         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
8096         return false, otherwise return true.
8097         (cache_rpath): Return decompose_rpath return value.
8098
8099 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
8100
8101         * include/libc-symbols.h (declare_symbol): Rename to...
8102         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
8103         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
8104         .size directive.
8105         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
8106         changes.
8107         * sysdeps/gnu/siglist.c: Likewise.
8108
8109 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
8110
8111         * sysdeps/powerpc/fpu/bits/mathinline.h
8112         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8113         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
8114
8115 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
8116
8117         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8118         Update handling of cache descriptor 0x49 for new models.
8119         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8120         Likewise.
8121
8122 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
8123
8124         * malloc/memusage.c (dest): Reset not_me back to false after
8125         printing statistics.
8126
8127 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
8128
8129         * configure.in: Work around ld --help change and avoid -z relro
8130         test completely if the architecture doesn't care about security.
8131
8132 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
8133
8134         * po/sv.po: Update from translation team.
8135
8136 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
8137
8138         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8139         generate compatibility version.
8140
8141 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
8142
8143         * configure.in: Relax -z relro requirement a bit.
8144
8145         * po/sv.po: Update from translation team.
8146
8147 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
8148
8149         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8150         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8151         * elf/dl-close.c (_dl_close_worker): Likewise.
8152         * elf/dl-open.c (_dl_open_worker): Likewise.
8153         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8154
8155 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
8156
8157         * configure.in: Require assembler support for visibility, compiler
8158         support for visibility and aliases, linker support for various -z
8159         options.
8160         * Makeconfig: Remove conditional code which now is unnecessary.
8161         * config.h.in: Likewise.
8162         * config.make.in: Likewise.
8163         * dlfcn/Makefile: Likewise.
8164         * elf/Makefile: Likewise.
8165         * elf/dl-load.c: Likewise.
8166         * elf/rtld.c: Likewise.
8167         * include/libc-symbols.h: Likewise.
8168         * include/stdio.h: Likewise.
8169         * io/Makefile: Likewise.
8170         * io/fstat.c: Likewise.
8171         * io/fstat64.c: Likewise.
8172         * io/fstatat.c: Likewise.
8173         * io/fstatat64.c: Likewise.
8174         * io/lstat.c: Likewise.
8175         * io/lstat64.c: Likewise.
8176         * io/mknod.c: Likewise.
8177         * io/mknodat.c: Likewise.
8178         * io/stat.c: Likewise.
8179         * io/stat64.c: Likewise.
8180         * libio/stdio.c: Likewise.
8181         * nscd/Makefile: Likewise.
8182         * stdlib/Makefile: Likewise.
8183         * stdlib/atexit.c: Likewise.
8184         * sysdeps/generic/ldsodefs.h: Likewise.
8185         * sysdeps/i386/dl-machine.h: Likewise.
8186         * sysdeps/i386/sysdep.h: Likewise.
8187         * sysdeps/i386/i686/memcmp.S: Likewise.
8188         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8189         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8190         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8191
8192         * Makerules: USE_TLS support is now default.
8193         * tls.make.c: Likewise.
8194         * csu/Versions: Likewise.
8195         * csu/libc-start.c: Likewise.
8196         * csu/libc-tls.c: Likewise.
8197         * csu/version.c: Likewise.
8198         * dlfcn/dlinfo.c: Likewise.
8199         * elf/dl-addr.c: Likewise.
8200         * elf/dl-cache.c: Likewise.
8201         * elf/dl-close.c: Likewise.
8202         * elf/dl-iteratephdr.c: Likewise.
8203         * elf/dl-load.c: Likewise.
8204         * elf/dl-lookup.c: Likewise.
8205         * elf/dl-object.c: Likewise.
8206         * elf/dl-open.c: Likewise.
8207         * elf/dl-reloc.c: Likewise.
8208         * elf/dl-support.c: Likewise.
8209         * elf/dl-sym.c: Likewise.
8210         * elf/dl-sysdep.c: Likewise.
8211         * elf/dl-tls.c: Likewise.
8212         * elf/ldconfig.c: Likewise.
8213         * elf/rtld.c: Likewise.
8214         * elf/tst-tls-dlinfo.c: Likewise.
8215         * elf/tst-tls1.c: Likewise.
8216         * elf/tst-tls10.h: Likewise.
8217         * elf/tst-tls14.c: Likewise.
8218         * elf/tst-tls2.c: Likewise.
8219         * elf/tst-tls3.c: Likewise.
8220         * elf/tst-tls4.c: Likewise.
8221         * elf/tst-tls5.c: Likewise.
8222         * elf/tst-tls6.c: Likewise.
8223         * elf/tst-tls7.c: Likewise.
8224         * elf/tst-tls8.c: Likewise.
8225         * elf/tst-tls9.c: Likewise.
8226         * elf/tst-tlsmod1.c: Likewise.
8227         * elf/tst-tlsmod13.c: Likewise.
8228         * elf/tst-tlsmod13a.c: Likewise.
8229         * elf/tst-tlsmod14a.c: Likewise.
8230         * elf/tst-tlsmod2.c: Likewise.
8231         * elf/tst-tlsmod3.c: Likewise.
8232         * elf/tst-tlsmod4.c: Likewise.
8233         * elf/tst-tlsmod5.c: Likewise.
8234         * elf/tst-tlsmod6.c: Likewise.
8235         * include/errno.h: Likewise.
8236         * include/link.h: Likewise.
8237         * include/tls.h: Likewise.
8238         * locale/global-locale.c: Likewise.
8239         * locale/localeinfo.h: Likewise.
8240         * malloc/arena.c: Likewise.
8241         * malloc/hooks.c: Likewise.
8242         * malloc/malloc.c: Likewise.
8243         * resolv/Versions: Likewise.
8244         * sysdeps/alpha/dl-machine.h: Likewise.
8245         * sysdeps/alpha/libc-tls.c: Likewise.
8246         * sysdeps/generic/ldsodefs.h: Likewise.
8247         * sysdeps/generic/tls.h: Likewise.
8248         * sysdeps/i386/dl-machine.h: Likewise.
8249         * sysdeps/ia64/dl-machine.h: Likewise.
8250         * sysdeps/ia64/libc-tls.c: Likewise.
8251         * sysdeps/mach/hurd/fork.c: Likewise.
8252         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8253         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8254         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8255         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8256         * sysdeps/s390/libc-tls.c: Likewise.
8257         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8258         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8259         * sysdeps/sh/dl-machine.h: Likewise.
8260         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8261         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8262         * sysdeps/x86_64/dl-machine.h: Likewise.
8263
8264         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8265         split out locking and parameter checking.
8266         (_dl_close): Call _dl_close_worker after locking and checking.
8267         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8268         _dl_close.
8269         * elf/Makefile: Add rules to build and run tst-thrlock.
8270         * elf/tst-thrlock.c:  New file.
8271
8272         [BZ #3426]
8273         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8274         reality.
8275
8276         [BZ #3429]
8277         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
8278         we are sure we do not need it anymore for _dl_close.  Also move
8279         the asserts inside the lock region.
8280         Patch mostly by Suzuki <suzuki@in.ibm.com>.
8281
8282 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
8283
8284         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8285         argument.
8286         (_dl_lookup_symbol_x): Adjust caller.
8287
8288         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8289         _ns_global_scope.
8290         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8291
8292         * elf/dl-libc.c: Revert l_scope name changes.
8293         * elf/dl-load.c: Likewise.
8294         * elf/dl-object.c: Likewise.
8295         * elf/rtld.c: Likewise.
8296         * elf/dl-close.c (_dl_close): Likewise.
8297         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
8298         always use __rtld_mrlock_{change,done}.  Always free old scope list
8299         here if not l_scope_mem.
8300         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8301         change.  Never free scope list here.  Just __rtld_mrlock_lock before
8302         the lookup and __rtld_mrlock_unlock it after the lookup.
8303         * elf/dl-sym.c: Likewise.
8304         * include/link.h (struct r_scoperec): Remove.
8305         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8306         with l_scope_mem and l_scoperec_lock with l_scope_lock.
8307
8308 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
8309
8310         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8311
8312 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8313
8314         * configure.in: Disable building profile libraries by default.
8315
8316 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8317
8318         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8319         as signed longs, check for x_base + pos overflow.
8320         * sunrpc/Makefile (tests): Add tst-xdrmem2.
8321         * sunrpc/tst-xdrmem2.c: New test.
8322
8323 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8324
8325         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8326         _dl_lookup_symbol_x code.
8327
8328 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8329
8330         * elf/dl-runtime.c: Include sysdep-cancel.h.
8331         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8332         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
8333         instead of catomic_* macros.
8334         * elf/dl-sym.c: Include sysdep-cancel.h.
8335         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8336         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8337         * elf/dl-close.c: Include sysdep-cancel.h.
8338         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8339         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8340         * elf/dl-open.c: Include sysdep-cancel.h.
8341         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8342         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8343
8344 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8345
8346         [BZ #3313]
8347         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8348         fastbin rather than end of fastbin array.
8349
8350 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8351
8352         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8353         body macro.
8354         * sysdeps/x86_64/bits/atomic.h
8355         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8356         (catomic_decrement): Use correct body macro.
8357
8358 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8359
8360         * include/atomic.h: Add a unique prefix to all local variables
8361         in macros.
8362         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8363
8364 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
8365
8366         [BZ #3369]
8367         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8368         and 7.
8369
8370 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
8371
8372         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8373
8374 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
8375
8376         [BZ #3313]
8377         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8378         determine highest fast bin to consolidate, always look into all of
8379         them.
8380         (do_check_malloc_state): Only require for empty bins for large
8381         sizes in main arena.
8382
8383         * libio/stdio.h: Add more __wur attributes.
8384
8385         * elf/dl-minimal.c (realloc): Optimize last patch.
8386
8387 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
8388
8389         [BZ #3352]
8390         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8391         and use memcpy() if it does.
8392
8393 2006-11-12  Andreas Jaeger  <aj@suse.de>
8394
8395         [BZ #2510]
8396         * manual/search.texi (Hash Search Function): Clarify.
8397         (Array Search Function): Clarify.
8398
8399 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
8400
8401         [BZ #2830]
8402         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8403         shifting.
8404         * math/atest-exp2.c (read_mpn_hex): Likewise.
8405         * math/atest-sincos.c (main): Likewise.
8406
8407 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8408
8409         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8410         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8411         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8412         version GLIBC_2.6.
8413         * Versions.def: Add GLIBC_2.6 for libc.
8414
8415         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8416
8417         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8418
8419 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
8420
8421         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8422
8423         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8424
8425         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8426         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8427
8428 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8429
8430         * include/atomic.c: Define catomic_* operations.
8431         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
8432         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8433         * malloc/memusage.c: Likewise.
8434         * gmon/mcount.c: Likewise.
8435         * elf/dl-close.c: Likewise.
8436         * elf/dl-open.c: Likewise.
8437         * elf/dl-profile.c: Likewise.
8438         * elf/dl-sym.c: Likewise.
8439         * elf/dl-runtime.c: Likewise.
8440         * elf/dl-fptr.c: Likewise.
8441         * resolv/res_libc.c: Likewise.
8442
8443 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
8444
8445         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8446         components which lack them.
8447
8448         * nis/nis_subr.c (nis_getnames): Make sure that we always return
8449         at least one entry consisting of the parameter concatenated with
8450         the domain.
8451
8452 2006-10-10  Roland McGrath  <roland@frob.com>
8453
8454         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8455         * sysdeps/mach/hurd/futimes.c: Likewise.
8456         * sysdeps/mach/hurd/lutimes.c: Likewise.
8457
8458 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
8459             Jakub Jelinek  <jakub@redhat.com>
8460
8461         Implement reference counting of scope records.
8462         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8463         from the list in objects which remain.  Always allocate new scope
8464         record.
8465         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8466         don't resize, allocate a new one.
8467         * elf/dl-runtime.c: Update reference counters before using a scope
8468         array.
8469         * elf/dl-sym.c: Likewise.
8470         * elf/dl-libc.c: Adjust for l_scope name change.
8471         * elf/dl-load.c: Likewise.
8472         * elf/dl-object.c: Likewise.
8473         * elf/rtld.c: Likewise.
8474         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
8475         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
8476         Add l_scoperec_lock.
8477         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
8478         * sysdeps/generic/rtld-lowlevel.h: New file.
8479
8480         * include/atomic.h: Rename atomic_and to atomic_and_val and
8481         atomic_or to atomic_or_val.  Define new macros atomic_and and
8482         atomic_or which do not return values.
8483         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
8484         Various cleanups.
8485         * sysdeps/i386/i486/bits/atomic.h: Likewise.
8486
8487         * po/sv.po: Update from translation team.
8488
8489 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
8490
8491         * Versions.def: Add GLIBC_2.6 to libpthread.
8492
8493         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
8494         (versioned_symbol): Likewise.
8495         (compat_symbol): Likewise.
8496
8497         * po/tr.po: Update from translation team.
8498
8499 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8500
8501         * nis/Banner: Removed.  It's been integral part forever and the
8502         author info is incomplete anyway.
8503         * libio/Banner: Likewise.
8504
8505         * nis/nis_table.c (nis_list): If __follow_path fails in the new
8506         code, make sure the nis_freeresult call doesn't crash and that the
8507         result is reported correctly.
8508
8509 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
8510
8511         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8512         when callback is NULL.
8513
8514         * nis/Versions (libnss_nisplus): Add
8515         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8516         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8517         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8518         _nss_create_tablename): Rename to...
8519         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8520         ... these.  No longer static.
8521         (internal_setgrent): Adjust users.
8522         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8523         Don't use locking around _nss_grp_create_tablename call.
8524         * nis/nss_nisplus/nisplus-initgroups.c: New file.
8525
8526 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8527
8528         * version.h (VERSION): Bump to 2.5.90 for new development tree.
8529
8530 2006-10-06  Andreas Jaeger  <aj@suse.de>
8531
8532         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8533
8534 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8535
8536         * po/pl.po: Update from translation team.
8537
8538         * nscd/nscd.c (main): Fix typo in message.
8539         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
8540
8541 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8542
8543         [BZ #3291]
8544         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8545         errno.h, signal.h, unistd.h and sysdep-cancel.h.
8546         (__sigprocmask): Define.
8547
8548 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
8549
8550         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
8551         used.
8552
8553 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8554
8555         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
8556         in oldtotal and newtotal calculation.
8557         * nscd/nscd-client.h (struct mapped_database): Add datasize
8558         field.
8559         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
8560         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
8561         increased.
8562         (__nscd_cache_search): Add checks to make sure we never reference
8563         data beyond the current mapping.
8564
8565 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
8566
8567         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
8568         variables const to avoid compiler warnings.
8569
8570         * io/fts.c (fts_close): Remove redundant checks.
8571         (fts_build): Likewise.
8572         (fts_palloc): Likewise.
8573
8574         * manual/message.texi (Advanced gettext functions,
8575         Using gettextized software): Fix typos.
8576
8577 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
8578
8579         * posix/glob.c (glob_in_dir): Add some comments and asserts to
8580         explain why there are no leaks.
8581
8582 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
8583
8584         * libio/wmemstream.c: Include <wchar.h>.
8585         * libio/bug-wmemstream1.c: Likewise.
8586         * libio/tst-wmemstream1.c: Likewise.
8587         * libio/tst-wmemstream2.c: Likewise.
8588
8589         * version.h (RELEASE): Bump to 2.5.
8590         * README: Regenerated.
8591
8592         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
8593
8594         [BZ #3273]
8595         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
8596         found no group members.
8597         Patch by Petr Baudis.
8598
8599 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
8600
8601         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
8602         assert bootstrap_map.l_tls_modid is zero.
8603         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
8604         if USE___THREAD.
8605
8606 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
8607
8608         * libio/stdio.h: Move open_wmemstream prototype to ...
8609         * wcsmbs/wchar.h: ... here.
8610
8611 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
8612
8613         [BZ #3252]
8614         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
8615         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
8616         __{,l}chown to handle the rest.
8617         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
8618         fchownat syscall and __ASSUME_32BITUIDS case inline, call
8619         __{,l}chown to handle the rest.
8620         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
8621         i386/fchownat.c.
8622         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
8623         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
8624
8625         [BZ #3253]
8626         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8627         time, rather allocate increasingly bigger arrays of pointers, if
8628         possible with alloca, if too large with malloc.
8629
8630 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
8631
8632         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
8633
8634         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
8635
8636 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
8637
8638         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
8639         home addresses.
8640         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
8641         IFA_F_HOMEADDRESS flag for interfaces.
8642         * include/ifaddrs.h (struct in6addrinfo): Define
8643         in6ai_homeaddress.
8644
8645 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
8646
8647         [BZ #3225]
8648         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
8649         PTR_DEMANGLE3): Define.
8650         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
8651         PTR_DEMANGLE3): Likewise.
8652         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
8653         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
8654         Likewise.
8655         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8656
8657 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
8658
8659         * po/libc.pot: Regenerated.
8660         * po/be.po: Updated.
8661         * po/ca.po: Likewise.
8662         * po/cs.po: Likewise.
8663         * po/da.po: Likewise.
8664         * po/de.po: Likewise.
8665         * po/el.po: Likewise.
8666         * po/en_GB.po: Likewise.
8667         * po/es.po: Likewise.
8668         * po/fi.po: Likewise.
8669         * po/fr.po: Likewise.
8670         * po/gl.po: Likewise.
8671         * po/hr.po: Likewise.
8672         * po/hu.po: Likewise.
8673         * po/ja.po: Likewise.
8674         * po/ko.po: Likewise.
8675         * po/nb.po: Likewise.
8676         * po/nl.po: Likewise.
8677         * po/pl.po: Likewise.
8678         * po/pt_BR.po: Likewise.
8679         * po/ru.po: Likewise.
8680         * po/rw.po: Likewise.
8681         * po/sk.po: Likewise.
8682         * po/sv.po: Likewise.
8683         * po/tr.po: Likewise.
8684         * po/zh_CN.po: Likewise.
8685         * po/zh_TW.po: Likewise.
8686
8687         [BZ #3137]
8688         * iconv/iconv_prog.c (main): Fix spelling in error message.
8689         * iconv/iconvconfig.c (main): Likewise.
8690         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
8691         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
8692         * locale/programs/localedef.c (main): Likewise.
8693         * locale/programs/repertoire.c (repertoire_read): Likewise.
8694         * timezone/zdump.c (main): Likewise.
8695         * nscd/connections.c (handle_request): Fix spelling in log message.
8696         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
8697
8698 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
8699
8700         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
8701         interfaces.
8702
8703 2006-09-20  Andreas Jaeger  <aj@suse.de>
8704
8705         * math/libm-test.inc (lrint_test_upward): Fix typo.
8706
8707 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
8708
8709         [BZ #2592]
8710         * math/libm-test.inc (lrint_test_tonearest): New function.
8711         (lrint_test_towardzero): New function.
8712         (lrint_test_downward): New function.
8713         (lrint_test_upward): New function.
8714         (main): Run these new tests.
8715         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
8716         of values near to 0.
8717         (two52): Use double not long double.
8718         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8719         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8720         (two23): Use float not double.
8721         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8722         (two23): Use float not double.
8723         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8724         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8725         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8726         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8727
8728 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8729
8730         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
8731         Cast sp to unsigned long to avoid compiler warning.
8732         Use __makecontext_ret function instead of a trampoline on the stack.
8733         (__makecontext_ret): New function.
8734         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
8735
8736 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
8737
8738         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
8739         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
8740         bits.
8741
8742 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
8743
8744         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
8745         sure no reference to the unloaded map's search list remains in the
8746         dependency's scope.
8747
8748 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
8749
8750         * elf/Makefile: Add rules to build and run unload7 test.
8751         * elf/unload7.c: New test.
8752         * elf/unload7mod1.c: New file.
8753         * elf/unload7mod2.c: New file.
8754
8755 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
8756
8757         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
8758         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
8759         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8760         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
8761         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8762         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
8763         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8764         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
8765         PTRACE_GETEVENTMSG): Likewise.
8766         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
8767         values.
8768
8769 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
8770
8771         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
8772         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8773         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
8774         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
8775
8776 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
8777
8778         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
8779         write '\0' to the fd.
8780         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
8781         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
8782         Change regs to unsigned long pointer from unsigned int, fix fscr
8783         offset.
8784
8785 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
8786
8787         * io/Makefile (CFLAGS-fstatat.c): Set.
8788         (CFLAGS-fstatat64.c): Likewise.
8789         (CFLAGS-mknodat.c): Likewise.
8790
8791         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
8792         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8793         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
8794         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
8795
8796 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
8797             Steven Munroe  <sjmunroe@us.ibm.com>
8798
8799         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
8800         names to the beginning.  Rename "cell" to "cellbe".
8801         (_dl_powerpc_platforms): New.
8802         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8803         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
8804         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
8805         (_DL_HWCAP_PLATFORM): Define to new mask.
8806         (_dl_platform_string, _dl_string_platform): New functions.
8807         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
8808         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
8809
8810 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
8811
8812         [BZ #2526]
8813         * README.libm: Fix a thinko in sqrt algorithm description.
8814
8815         [BZ #3143]
8816         * manual/string.texi (argz_delete): Fix prototype.
8817         Patch by <alpt@freaknet.org>.
8818
8819 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
8820
8821         [BZ #3138]
8822         * io/test-lfs.c (do_prepare): Give name_len type size_t.
8823         * io/tst-fcntl.c (do_prepare): Likewise.
8824         * posix/tst-exec.c (do_prepare): Likewise.
8825         * posix/tst-preadwrite.c (do_prepare): Likewise.
8826         * posix/tst-spawn.c (do_prepare): Likewise.
8827         * posix/tst-truncate.c (do_prepare): Likewise.
8828         * rt/tst-aio.c (do_prepare): Likewise.
8829         * rt/tst-aio64.c (do_prepare): Likewise.
8830         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
8831         size_t.
8832
8833 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
8834
8835         [BZ #2821]
8836         * time/mktime.c (guess_time_tm): Fix overflow detection.
8837         * time/Makefile (tests): Add bug-mktime1.
8838         * time/bug-mktime1.c: New file.
8839
8840         [BZ #3189, #3188]
8841         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
8842         (mremap): Likewise.
8843
8844 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
8845
8846         [BZ #1006]
8847         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8848         Ensure relocation doesn't clobber any bits outside of the
8849         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
8850         R_SPARC_HI22 and R_SPARC_H44.
8851
8852         [BZ #2775]
8853         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
8854         (long) (MINSIZE + nb - old_size) is positive.
8855
8856         * malloc/arena.c (grow_heap): When growing bail even if new_size
8857         is negative.
8858
8859         [BZ #3155]
8860         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
8861         stack below r1.
8862
8863 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
8864
8865         * posix/regex_internal.c (re_string_reconstruct): Handle
8866         offset < pstr->valid_raw_len && pstr->offsets_needed case.
8867         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
8868         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
8869         re_string_context_at.
8870         * posix/Makefile: Add rules to build and run bug-regex26 test.
8871         * posix/bug-regex26.c: New test.
8872
8873         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
8874         rather than col_sym_free.  Move seqp declaration earlier.
8875
8876         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
8877
8878 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
8879
8880         * nscd/initgrcache.c (addinitgroupsX): Move any_success
8881         decl before first goto out.
8882
8883 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
8884
8885         * Makerules (shlib.lds): If have-hash-style, put .hash section
8886         at the end of the RO segment.
8887
8888 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
8889
8890         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
8891         style hash table format is used.
8892
8893 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
8894
8895         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
8896         randomization rather than before.
8897         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
8898
8899 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
8900
8901         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
8902
8903         * malloc/malloc.c (_int_malloc): Use full list insert and not
8904         shortcut which assumes the list is empty for large requests
8905         too.
8906
8907         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
8908
8909 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
8910
8911         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
8912         and offout arguments to the prototype.
8913         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
8914         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
8915         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
8916         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
8917         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
8918         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
8919         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
8920         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
8921
8922 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
8923
8924         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
8925
8926         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
8927         dlopen parameters.
8928
8929 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
8930
8931         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
8932         only if herrno is NETDB_INTERNAL.  Handle errors other than
8933         ERANGE outside of the loops, handle TRY_AGAIN.
8934
8935         * locale/programs/ld-ctype.c (translit_flatten): Issue error
8936         if other's ctype category was missing.
8937         * locale/programs/ld-collate.c (collate_read): Return if
8938         copy_locale's collate category is missing.
8939
8940 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
8941
8942         [BZ #2684]
8943         * malloc/malloc.c (public_rEALLOc): Try harder by using other
8944         arenas if allocation failed.
8945         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
8946
8947 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
8948
8949         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
8950         waste bins[0..1].
8951         (malloc_state): Reduce bins size by 2.
8952         (_int_malloc): Fix test for large enough buffer for early termination.
8953         When no unsorted block matches perfectly and an exiting block has
8954         to be split, use full list insert and not shortcut which assumes
8955         the list is empty.
8956
8957         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
8958         failure.
8959
8960 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
8961
8962         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
8963         do anything.
8964
8965         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
8966         symbol require exact match (these are PLTs).
8967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
8968         (_dl_ppc64_addr_sym_match): Likewise.
8969
8970         [BZ #2683]
8971         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
8972         If symbol has a value use it.
8973         * elf/tst-dladdr1.c: New file.
8974         * elf/Makefile: Add rules to build and run tst-addr1.
8975
8976 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
8977
8978         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
8979         keeps failing and heap growth or new heap creation isn't
8980         successful either.
8981         * malloc/tst-malloc.c (main): Add new tests.
8982
8983 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
8984
8985         [BZ #2734]
8986         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
8987         as in the x86-64 code to use bswap.
8988
8989 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
8990
8991         [BZ #2680]
8992         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
8993         __USE_UNIX98.
8994         * posix/bits/unistd.h: Likewise.
8995
8996 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
8997
8998         [BZ #2751]
8999         * string/strchr.c: Add cast to avoid warning.
9000
9001 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9002
9003         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
9004         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
9005         limit is needed to avoid the exploding of the address space
9006         requirement for secondary heaps.
9007         * malloc/arena.c (HEAP_MAX_SIZE): Define using
9008         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
9009
9010 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
9011
9012         [BZ #3018]
9013         * Makerules (depfiles): Handle extra-test-objs the same as
9014         extra-objs.
9015         (common-mostlyclean): Likewise.
9016         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
9017         instead.
9018         * elf/Makefile (extra-objs): Likewise.
9019         * stdlib/Makefile (extra-objs): Likewise.
9020
9021 2006-08-14  Eric Blake  <ebb9@byu.net>
9022
9023         [BZ #3044]
9024         * misc/error.h: Assume C89 or better.
9025         * misc/error.c: Likewise.
9026
9027 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9028
9029         [BZ #3040]
9030         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
9031         __ASSUME_ATFCTS is defined.
9032
9033 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
9034
9035         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
9036         to sort in each call.
9037
9038         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
9039         is empty simply return and use next service.
9040         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
9041
9042         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
9043         tells us when not finding a charmap file is an error.
9044         * locale/programs/charmap.h: Adjust charmap_read prototype.
9045         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
9046         cannot find a charmap.
9047         * locale/programs/localedef.c (main): Adjust charmap_read call.
9048
9049 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
9050
9051         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
9052         sysdeps/posix/pause.c implementation instead.
9053
9054 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
9055
9056         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
9057         to EPERM.
9058
9059 2006-08-13  Andreas Schwab  <schwab@suse.de>
9060
9061         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
9062         Don't clobber caller's LRSAVE.
9063         (_dl_prof_resolve): Likewise.
9064
9065 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
9066
9067         [BZ #1996]
9068         * libio/memstream.c (open_memstream): Allocate initial buffer with
9069         calloc.
9070         * libio/wmemstream.c (open_wmemstream): Likewise.
9071         * libio/strops.c: Pretty printing.
9072         (_IO_str_overflow): Clear uninitialized part of the new buffer.
9073         (enlarge_userbuf): New function.
9074         (_IO_str_seekoff): Call it if seek position is larger than current
9075         buffer.
9076         * libio/wstrops.c: Likewise.
9077         * libio/vasprintf.c: Add comment as to why we do not have to use
9078         calloc instead of malloc to allocate initial buffer.
9079         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
9080         * libio/bug-memstream1.c: New file.
9081         * libio/bug-wmemstream1.c: New file.
9082
9083 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9084
9085         * libio/wstrops.c: Remove dead macro definitions and comments.
9086         * libio/strops.c: Likewise.
9087
9088         [BZ #2764]
9089         * login/utmpname.c (__utmpname): Remove unnecessary test.
9090
9091 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
9092
9093         [BZ #2832]
9094         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
9095         0s from integers.
9096
9097 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9098
9099         [BZ #2987]
9100         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
9101         for CPU clocks.
9102         * sysdeps/unix/clock_settime.c: Add support for platform-specific
9103         setting of CPU clocks.
9104
9105 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9106
9107         [BZ #2841]
9108         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
9109         since C99 requires the result to promote to 'int' when uint_least8_t
9110         and uint_least16_t promote to 'int'.
9111
9112 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
9113
9114         [BZ #3013]
9115         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9116         lenght of one output field, correct bitmask creation.
9117         * locale/programs/ld-time.c: Add alignment.
9118
9119         [BZ #2997]
9120         * misc/error.c: Add space between program name and message if file
9121         name is missing.
9122
9123 2006-08-03  Eric Blake  <ebb9@byu.net>
9124
9125         [BZ #2998]
9126         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9127
9128 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
9129
9130         * malloc/memusagestat.c: Silence warnings.
9131
9132         * malloc/malloc.c: Dynamically size mmap treshold if the program
9133         frees mmaped blocks.
9134         Patch by Valerie Henson and Arjan van de Ven.
9135
9136 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
9137
9138         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9139         __USE_GNU.
9140
9141         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9142         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9143         (DEF): Don't put the var into .gnu.linkonce.r.* section.
9144         Only provide var definitions in strtol_l (or for *ull*
9145         in strtoll_l).
9146
9147         * stdio-common/bug16.c (tests): New array.
9148         (do_tests): Allow the first hexadecimal digit
9149         to be 1, 2, 4 or 8.  Do 3 additional tests.
9150
9151         * sysdeps/s390/fpu/libm-test-ulps: Update.
9152
9153         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9154         fchownat syscall if available.
9155         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9156         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9157         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9158
9159 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9160
9161         * nis/nis_xdr.c: Avoid some function calls.
9162
9163 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
9164             Ulrich Drepper  <drepper@redhat.com>
9165
9166         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9167         short cut if only one name component is stripped away.
9168
9169 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9170
9171         * nis/nis_call.c: Minor cleanups throughout.
9172         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
9173         (first_shoot): Add search_parent_first parameter.  Only if it is set
9174         search parent server first.
9175         If directory for table found through cold start cache is not the same
9176         as referenced in the cache, don't use it.
9177         (__nisfind_server): Take additional parameter.  Pass it on to
9178         first_shoot.
9179         (__prepare_niscall): Adjust __nisfind_server call.
9180         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9181         * nis/nis_table.c: Adjust __nisfind_server call.
9182         * nis/nis_lookup.c: Likewise.
9183         (nis_lookup): Don't loop endlessly if name is reduced to ".".
9184
9185 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
9186
9187         [BZ #2182]
9188         * math/s_cacosh.c: Return values from positive branch.
9189         * math/s_cacoshf.c: Likewise.
9190         * math/s_cacoshl.c: Likewise.
9191
9192         [BZ #2883]
9193         * sysvipc/sys/msg.h: Change return value to ssize_t.
9194         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9195         * sysvipc/msgrcv.c: Likewise.
9196         * include/sys/msg.h: Likewise.
9197
9198         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9199         test introduced in patch for bz #661.
9200         (getgrouplist): Simplify code a bit.  Don't allocate one additional
9201         element for NEWGROUPS.
9202
9203         [BZ #2908]
9204         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9205         'f', use '1' as leading digit not '\1'.
9206         * stdio-common/Makefile (tests): Add bug16.
9207         * stdio-common/bug16.c: New file.
9208
9209         [BZ #2914]
9210         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9211         and don't try to open it.  The patch introducing the macro
9212         contained a bug and used the same file name as the new file
9213         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
9214         this out completely.
9215
9216         [BZ #2926]
9217         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9218         Patch by Jerry James <Jerry.James@usu.edu>.
9219
9220         * rt/Makefile (tests): Add tst-clock2.
9221         * rt/tst-clock2.c: New file.
9222
9223         [BZ #2978]
9224         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9225         function and its parameters and pass it to new thread.
9226         (__gai_notify): Add support for alternative waiting for completion.
9227         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9228         waiting for completion.
9229         * resolv/getaddrinfo_a.c: Likewise.
9230         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9231         waiting for completion is used.
9232         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9233         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9234         * resolv/gai_error.c: Likewise.
9235         * resolv/gai_sigqueue.c: Likewise.
9236
9237 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
9238
9239         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
9240         errno to EBADF and return MACH_PORT_NULL.
9241
9242 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
9243
9244         [BZ #2980]
9245         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
9246
9247 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
9248
9249         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9250         walk them instead of the symbol table.
9251
9252 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
9253
9254         [BZ #2098]
9255         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9256         status of NSS calls, not the number of returned entries.
9257
9258         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9259         request_key, keyctl.
9260
9261 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9262
9263         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9264
9265 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
9266
9267         * elf/tst-auditmod1.c: Fix typo in #error.
9268
9269 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9270
9271         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9272
9273         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9274
9275 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
9276
9277         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
9278         that the directory is empty even on non-POSIX filesystems.
9279
9280 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9281
9282         * elf/dl-open.c (dl_open_worker): Add branch prediction.
9283
9284         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9285         the backend NSS module.  If backend setgrent call failed, don't have
9286         internal_setgrent fail.  Just remember this until it is needed.
9287         * nis/nss_compat/compat-pwd.c: Likewise.
9288         * nis/nss_compat/compat-spwd.c: Likewise.
9289
9290 2006-07-30  Roland McGrath  <roland@redhat.com>
9291
9292         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9293         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9294         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9295         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9296
9297         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9298         (nanosleep_not_cancel): New macro.
9299         (sigsuspend_not_cancel): new macro.
9300         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9301         (do_sigsuspend): Define as inline.
9302         (__sigsuspend): Always use do_sigsuspend.
9303         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9304         * include/signal.h: Declare __sigsuspend_nocancel.
9305         * sysdeps/posix/pause.c
9306         [! NO_CANCELLATION] (__pause_nocancel): New function.
9307
9308         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9309         * include/time.h (__nanosleep_nocancel): Likewise.
9310
9311 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
9312
9313         * locale/programs/localedef.c (add_to_readlist): Rename local
9314         variables to avoid confusion.
9315
9316         * locale/programs/charmap.c (charmap_read): Emit error message if
9317         charmap couldn't be found or read.
9318
9319 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
9320
9321         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9322         __ASSUME_FUTEX_LOCK_PI.
9323         * include/time.h: Declare __nanosleep_nocancel.
9324         * include/unistd.h: Declare __pause_nocancel.
9325
9326         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9327         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
9328         get the __stack_chk_fail_local definition when it's needed.
9329
9330 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
9331
9332         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9333         * dlfcn/bug-atexit3.c: New file.
9334         * dlfcn/bug-atexit3-lib.cc: New file.
9335
9336         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9337         used when the namespace is not the base namespace.
9338
9339 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
9340
9341         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9342         (__new_exitfn): Bump it in every successful call.
9343         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9344         more exit handlers, call them right away.
9345         * stdlib/exit.h: Declare __new_exitfn_called.
9346
9347 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
9348
9349         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9350         calling registered handler.
9351
9352         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9353         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9354         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9355         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9356         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9357         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9358         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9359         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9360
9361 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
9362
9363         * elf/dl-lookup.c (dl_new_hash): New functions.
9364         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9365         value here.  Compute new-style hash value.  Pass new hash value
9366         and reference to variable with the old value to do_lookup_x.
9367         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9368         old-style hash table.
9369         (_dl_debug_bindings): Pass new hash value and reference to variable
9370         with the old value to do_lookup_x.
9371         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9372         new-style hash value and change old-style hash value parameter to
9373         be a reference.  Reoganize functions to determine whether
9374         new-style hash table is available.  Only fall back on old-style
9375         table.  If old-style hash value is needed, compute it here.
9376         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9377         entry.
9378         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9379         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
9380         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9381         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9382         * Makeconfig: If linker supports --hash-style option add it to all
9383         linker command lines to build DSOs.
9384         * config.make.in: Define have-hash-style.
9385         * configure.in: Test whether linker supports --hash-style option.
9386
9387         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9388         * sysdeps/generic/ldsodefs.h: Adjust prototype.
9389
9390 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
9391
9392         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9393         auditing.
9394
9395         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9396         RPATH of main map twice.
9397
9398 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
9399
9400         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9401         look further, return original strings.
9402         (_nl_find_msg): Do not return found translation if the conversion
9403         failed.  Either signal the string is unusable or that something went
9404         wrong and the original should be used.
9405
9406 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
9407
9408         * string/_strerror.c (__strerror_r): Add __builtin_expect.
9409
9410 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
9411
9412         [BZ #2766]
9413         * misc/insremque.c (insque): Handle prev == NULL.
9414         * misc/Makefile (tests): Add tst-insremque.
9415         * misc/tst-insremque.c: New test.
9416
9417 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
9418
9419         [BZ #2792]
9420         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9421         conflict with DL_DST_REQUIRED.
9422
9423 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
9424
9425         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9426         match what Solaris does.
9427
9428 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
9429
9430         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9431         local_setegid instead of seteuid and setegid.
9432         * sysdeps/generic/local-setxid.h: New file.
9433         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9434
9435         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9436
9437         * string/Makefile (tests): Add bug-envz1.
9438         * string/bug-envz1.c: New file.
9439
9440 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
9441
9442         * posix/regex_internal.c (re_string_skip_chars): If no character has
9443         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
9444         to the byte which couldn't be converted.
9445         (re_string_reconstruct): Don't clear valid_raw_len before calling
9446         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
9447         tip_context using re_string_context_at.
9448         * posix/Makefile: Add rules to build and run bug-regex25 test.
9449         * posix/bug-regex25.c: New test.
9450
9451 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
9452
9453         [BZ #2703]
9454         * string/envz.c (envz_strip): Correct erroneously reversed src
9455         and dest parameters to memmove() invocation.
9456
9457 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
9458
9459         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9460         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9461         to make sure the database has been already invalidated.
9462         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
9463         after the cache has been invalidated.  Use pthread_mutex_lock rather
9464         than pthread_mutex_trylock if fd != -1.
9465         * nscd/connections.c (invalidate_cache): Add fd argument, write
9466         response to fd if not calling prune_cache, pass fd to prune_cache.
9467         (handle_request): Adjust invalidate_cache caller.
9468         (nscd_run): Pass -1 as fd to prune_cache.
9469
9470 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
9471
9472         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9473         the correct place.
9474
9475 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
9476
9477         * nscd/nscd.h (struct database_dyn): Add prunelock field.
9478         * nscd/cache.c (prune_cache): Take prunelock before starting the
9479         work.  Just return in case it is already taken.
9480         * nscd/connections.c (dbs): Initialize .prunelock.
9481
9482 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
9483
9484         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
9485         copying.  No need to allocate new array for group members.  Just
9486         move the pointers and update the size.
9487
9488         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
9489         Avoid memory leak in case realloc fails.  Simplification for
9490         better code generation.
9491
9492         Avoid deprecation warning because of libc_hidden_proto for
9493         inet6_option_alloc.
9494         * inet/inet6_option.c (option_alloc): Renamed from
9495         inet6_option_alloc.  Made static.
9496         (inet6_option_alloc): Now a simple wrapper around option_alloc.
9497         (inet6_option_append): Call option_alloc.
9498         * include/netinet/in.h: Remove libc_hidden_proto for
9499         inet6_option_alloc.
9500
9501         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
9502         for cleanup when cb!=NULL [Coverity CID 233].
9503
9504 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
9505
9506         [BZ #2693]
9507         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9508         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9509         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9510         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9511         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9512         and inet6_rth_getaddr.
9513         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9514         array.
9515         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9516         Mark inet6_option_* interfaces as deprecated.
9517         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9518         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9519         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9520         inet6_rth_segments, and inet6_rth_getaddr.
9521         * inet/inet6_opt.c: New file.
9522         * inet/inet6_rth.c: New file.
9523
9524         * inet/netinet/icmp6.h: Pretty printing.
9525
9526         [BZ #2683]
9527         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9528
9529 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
9530
9531         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9532         doing it all here.  When server does not know the answer do not
9533         fail immediate, try parent first.
9534
9535         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9536         overflow test.
9537
9538 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
9539
9540         * nis/nis_call.c (__prepare_niscall): New function.  Split out
9541         from __do_niscall.
9542         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
9543         and exported.
9544         (__follow_path): New function.  Split out from nis_list.
9545         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9546         _xdr_nis_result.
9547         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
9548         _xdr_nis_result.
9549         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
9550         and __follow_path.
9551         * nis/Versions: Export __prepare_niscall, __create_ib_request,
9552         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
9553         from libnsl for version GLIBC_PRIVATE.
9554         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
9555         Remove entry parameter from _nss_nisplus_parse_pwent and
9556         _nss_nisplus_parse_grent.
9557         * nis/nss_nisplus/nisplus-parser.c: Likewise.
9558         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
9559         again.  Rewrite getpwent handling to not use nis_first_entry and
9560         nis_next_entry.  Roll out own niscall handling.
9561         * nis/nss_nisplus/nisplus-grp.c: Likewise.
9562
9563         * sunrpc/xdr_rec.c: Fix typo in comment.
9564
9565 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
9566
9567         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
9568         handling.
9569
9570         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
9571         to allocate memory for my_pollfd.  Better initialization of
9572         cb_is_running.  Use TEMP_FAILURE_RETRY.
9573
9574         * malloc/memusage.sh (memusageso): Add quotes.
9575         (memusagestat): Likewise.
9576         * debug/xtrace.sh (pcprofileso): Likewise.
9577         (pcprofiledump): Likewise.
9578         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
9579         replacement.
9580         * malloc/Makefile ($(objpfx)memusage): Likewise.
9581
9582         * nis/nis_callback.c (__nis_create_callback): Calls to
9583         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
9584         asprintf call fails.
9585
9586         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
9587         no uninitialized memory is passed to sendto.
9588
9589 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9590
9591         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
9592         of snprintf+strdup.  Handle OOM.
9593         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
9594         cb->serv together.  Remove now obsolete free calls.
9595         (__nis_destroy_callback): Remove now obsolete free call.
9596
9597 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
9598
9599         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
9600         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
9601         and ULA respectively). Set precedence for IPv4 address to 10 as
9602         defined in RFC3484 for preferring IPv6.
9603         * posix/gai.conf: Update to match the new default tables.
9604
9605 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
9606
9607         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
9608         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
9609         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
9610         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
9611
9612         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
9613         Removed.
9614         (init_nss_interface): Remove initialization of these variables.
9615
9616 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9617
9618         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
9619         nis_free_directory forward to avoid duplication.
9620
9621 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
9622
9623         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
9624         rec_dirsearch returning NULL.
9625         (first_shoot): Handle __nis_finddirectory returning NULL.
9626         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
9627
9628         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
9629         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
9630
9631 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
9632
9633         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
9634         pid changed.
9635
9636 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
9637
9638         * include/rpc/pmap_prot.h: Mark all functions as hidden.
9639
9640         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
9641         * nscd/nscd_getgr_r.c: Likewise.
9642
9643         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
9644
9645         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
9646         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
9647
9648         * stdlib/longlong.h (__clz_tab): Mark as hidden.
9649
9650         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
9651
9652         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
9653
9654         * include/rpc/auth.h: Mark xdr_des_block_internal and
9655         xdr_opaque_auth_internal as hidden.
9656
9657         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
9658         hidden.
9659
9660         * include/rpc/xdr.h: Mark all _internal functions as hidden.
9661
9662         * misc/getusershell.c (okshells): Don't use static initializers,
9663         do it dynamically.
9664
9665         * stdlib/fmtmsg.c (keywords): Change type of len element to
9666         uint32_t to not waste space on 64bit machines.
9667
9668         * locale/setlocale.c: Change _nl_category_names into a string.
9669         Add new _nl_category_name_idxs.  Change all users.
9670         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
9671         Declare _nl_category_name_idxs.
9672         * locale/findlocale.c: Adjust for _nl_category_names change.
9673         * locale/loadlocale.c: Likewise.
9674         * locale/newlocale.c: Likewise.
9675         * intl/dcigettext.c: Likewise.
9676
9677         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
9678         (add_alias2): ...here.  New function.
9679         (__gconv_read_conf): Simplify builtin alias handling.
9680         (builtin_aliases): Convert to string to avoid relocations.
9681         * iconv/gconv_builtin.h: Add comment about correct formatting.
9682
9683 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
9684
9685         * resolv/res_debug.c (loc_ntoa): Make error const.
9686
9687 2006-05-14  Andreas Schwab  <schwab@suse.de>
9688
9689         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
9690
9691 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
9692
9693         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
9694         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
9695         sizeof (cpu_set_t).
9696
9697 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
9698
9699         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
9700
9701         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
9702
9703         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
9704         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
9705
9706         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
9707         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
9708
9709         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
9710         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
9711         xdr_cback_data.
9712
9713         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
9714         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9715         xdr_ypupdate_args.
9716
9717         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
9718         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
9719
9720         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
9721         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
9722
9723         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
9724         * include/rpcsvc/nis_callback.h: New file.
9725
9726         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
9727         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
9728
9729         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9730         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9731
9732         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
9733         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
9734
9735         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9736         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9737
9738         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
9739         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9740         xdr_ypdelete_args.
9741
9742         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
9743         __BEGIN_DECLS and __END_DECLS, the header is not installed.
9744
9745         * nis/nis_error.c: Remove table of strings.  Use position
9746         independent mechanism.
9747         * nis/nis_error.h: New file.
9748
9749 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
9750
9751         * locale/programs/ld-time.c (time_finish): If wide era name or
9752         format aren't provided, set both wname and wformat to L"".
9753
9754 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
9755
9756         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
9757         results if the call was succesful.
9758
9759         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
9760
9761         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
9762         as hidden.
9763
9764 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
9765
9766         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
9767
9768 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
9769
9770         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
9771         caller makes sure this is not the case.
9772         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
9773
9774 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
9775
9776         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
9777         calls.
9778
9779         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
9780         [Coverity CID 229, 230]
9781
9782         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
9783         DGETTEXT calls.
9784         (hol_help): Likewise.  [Coverity CID 226, 227]
9785
9786         * string/argz-replace.c (__argz_replace): Unconditionally call
9787         free on SRC.  [Coverity CID 225]
9788
9789         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
9790         the return value of __nis_default_owner and __nis_default_group,
9791         it has been especially allocated.  [Coverity CID 224]
9792
9793         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
9794         searchgroup and searchowner.  Significantly simplified.
9795         (__nis_default_owner): Remove duplication.  Do not locally copy the
9796         string before duplicating it.
9797         (__nis_default_group): Likewise.
9798
9799         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
9800         we must clear the variable before calling __nisfind_server.
9801
9802         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
9803         nis_getnames.  [Coverity CID 223]
9804
9805         * locale/programs/locfile.c (locfile_read): Use alloca instead of
9806         xmalloc to allocate local repertoire name.  [Coverity CID 222]
9807
9808         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
9809         allocate memory for the input to add_bytes.  [Coverity CID 221]
9810
9811         * posix/wordexp.c (w_addword): Free word if realloc fails and it
9812         was allocated here.  [Coverity CID 219, 220]
9813
9814         * posix/getconf.c (print_all): Free confstr data after printing.
9815         [Coverity CID 218]
9816
9817         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
9818         list allocation fails.  [Coverity CID 215]
9819
9820         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
9821         [Coverity CID 213]
9822
9823         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
9824         string is NULL.  [Coverity CID 212]
9825         * argp/Makefile: Add rules to build and run bug-argp1.
9826         * argp/bug-argp1.c: New file.
9827
9828         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
9829         end of string.
9830         * stdlib/canonicalize.c (__realpath): Likewise.
9831
9832         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
9833         pointer.  [Coverity CID 206]
9834
9835         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
9836         in statically linked code.
9837         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
9838         statically built code, be prepared to have no link map.
9839         [Coverity CID 205]
9840
9841         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
9842         dgettext calls. [Coverity CID 204]
9843
9844         * argp/argp-help.c (struct uparams): Remove valid member.  Change
9845         the one user.
9846         (uparam_names): Reduce size.  Avoid relative relocations.
9847         Moved to read-only segment.
9848         (fill_in_uparams): Update for new layout.
9849
9850         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
9851         assumed to always be != NULL. [Coverity CID 202]
9852
9853         * argp/argp-help.c (hol_entry_help): Remove some dead code
9854         [Coverity CID 200].
9855
9856         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
9857         away a few more unconditional yperr2nss calls.
9858         (_nss_nis_getservbyname_r): Likewise.
9859
9860 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
9861
9862         * sysdeps/generic/ldsodefs.h: Remove support for non-core
9863         architectures.
9864
9865         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
9866         that unused memory passed to sendto is nevertheless initialized.
9867
9868         [BZ #2499]
9869         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
9870         possibly unaligned memory accesses.
9871
9872         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
9873         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
9874         and __putlong respectively.  Correct buffer overflow check for
9875         NS_NOTIFY_OP.
9876
9877         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
9878
9879         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
9880         (send_dg): Rewrite error handling to be more compact and avoid
9881         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
9882
9883         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
9884
9885         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
9886         instead of ns_get16.
9887         (res_queriesmatch): Likewise.  Minor optimization.
9888
9889         [BZ #2499]
9890         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
9891         __libc_res_nsend might reallocate the buffer for the answer.  In
9892         this case we have to reload the HP pointer.
9893
9894 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9895
9896         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
9897         some branch prediction hints.
9898
9899         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
9900         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9901         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9902         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9903         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9904         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9905         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9906         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9907
9908 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9909
9910         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
9911         by a GOT relocation to make Scrt1.o position independent.
9912         * sysdeps/s390/s390-64/elf/start.S: Likewise.
9913
9914         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
9915         six system call parameters.
9916         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9917
9918 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9919
9920         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
9921         malloc&bzero.
9922
9923         * sunrpc/svc_udp.c (BZERO): Remove definition.
9924         (CALLOC): Define.
9925         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
9926
9927         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
9928         (des_SPtrans): Use uint32_t type.
9929         (des_skb): Likewise.
9930
9931         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
9932
9933 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
9934
9935         [BZ #2509]
9936         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
9937         on 32-bit arches.
9938
9939 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9940
9941         * locale/programs/ld-address.c (address_finish): Fix one more
9942         place where the iso639 array might be accessed beyond the limits.
9943
9944 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
9945
9946         * nis/nis_table.c (nis_list): Avoid clearing res twice before
9947         filling it for the first time.
9948
9949         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
9950         Adjust all callers.
9951         Free res object content before returning.
9952
9953         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
9954
9955         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
9956         client->cl_auth.
9957
9958         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
9959         cleanup for initial thread, just the free call on TVP.
9960
9961         * nscd/gai.c (__getline): Define.
9962
9963
9964 See ChangeLog.16 for earlier changes.