* sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
[platform/upstream/glibc.git] / ChangeLog
1 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
2
3         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4         is set.
5         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
6         * sysdeps/sh/sh4/__longjmp.S: Likewise.
7         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
8         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
9         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
10         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
11
12 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
13
14         * po/ru.po: Update from translation team.
15
16 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
17
18         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
19         Add _tid slot to maintain consistency with kernel.
20
21 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
22
23         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
24         incomplete characters at end of input buffer.
25         * libio/Makefile (tests): Add tst-fgetwc.
26         * libio/tst-fgetwc.c: New file.
27         * libio/tst-fgetwc.input: New file.
28
29 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
30
31         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
32
33 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
34
35         [BZ #9793]
36         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
37         *OUTBUFSTART unless the whole output fit into the buffer.
38         * iconv/Makefile (tests): Add tst-iconv4.
39         * iconv/tst-iconv4.c: New file.
40
41 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
42
43         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
44         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
45
46 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
47
48         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
49         newer linker scripts.
50
51 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
52
53         [BZ #7040]
54         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
55         inotify_rm_watch should have type int.
56
57 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
58
59         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
60         Make aligned_restore_vmx a local symbol.
61         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
62         Likewise.
63
64 2009-01-30  Andreas Jaeger  <aj@suse.de>
65
66         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
67         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
68         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
69         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
70         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
71         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
72         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
73
74 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
75
76         [BZ #9726]
77         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
78         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
79
80 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
81
82         [BZ #9726]
83         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
84         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
85         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
86         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
87
88 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
89
90         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
91         memcpy instead of memcmp.
92         (_dl_setup_pointer_guard): Likewise.
93
94 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
95
96         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
97         manipulated brk, use malloc_printerr.
98         * misc/sbrk.c (__sbrk): Better error handling for nonsense
99         requests.
100
101 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
102
103         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
104         rindex): For C++ add inlines so that they can be recognized as
105         builtins.
106         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
107
108 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
109             Jakub Jelinek  <jakub@redhat.com>
110
111         * string/string.h: Define correct C++ prototypes for gcc 4.4.
112         * wcsmbs/wchar.h: Likewise.
113
114 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
115
116         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
117         (stackinfo_sub_sp): Define.
118
119 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
120
121         [BZ #9750]
122         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
123         * include/alloca.h (alloca_account): Define.
124         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
125         (stackinfo_sub_sp): Define.
126
127         * nscd/connections.c (nscd_init): If database file access fails
128         check whether this is due to permission problems and bail in that
129         case.
130
131         [BZ #9741]
132         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
133         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
134
135 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
136
137         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
138         Add "t" to clobber list.
139         (INTERNAL_SYSCALL_NCS): Likewise.
140
141 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
142
143         * nss/getent.c (print_networks): Don't print comma between aliases.
144
145 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
146
147         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
148
149         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
150         the hash table.
151         * misc/Makefile (tests): Add bug-hsearch1.
152         * misc/bug-hsearch1.c: New file.
153
154 2009-01-22  Roland McGrath  <roland@redhat.com>
155
156         * Makeconfig (%.v.i): Strip trailing # comments,
157         not only whole-line comments.
158
159 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
160
161         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
162         one parameter.  If non-NULL use it to initialize return value.
163         (_dl_setup_pointer_guard): New function.
164         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
165         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
166         * elf/rtld.c (security_init): Pass _dl_random to
167         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
168         pointer_chk_guard.
169         * elf/dl-sysdep.c (_dl_random): New variable.
170         (_dl_sysdep_start): Handle AT_RANDOM.
171         (_dl_show_auxv): Likewise.
172         * elf/dl-support.c (_dl_random): New variable.
173         (_dl_aux_init): Handle AT_RANDOM.
174         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
175         to _dl_setup_stack_chk_guard.
176
177         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
178
179 2009-01-10  Roland McGrath  <roland@redhat.com>
180
181         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
182
183 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
184
185         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
186
187         [BZ #9706]
188         * nss/nss_files/files-parse.c (strtou32): New function.
189         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
190         across 32-bit and 64-bit platforms.
191         (INT_FIELD_MAYBE_NULL): Likewise.
192
193 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
194
195         [BZ #9720]
196         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
197         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
198         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
199         Likewise.
200
201 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
202
203         [BZ #697]
204         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
205         being NULL also if there are no backreferences.
206         * posix/rxspencer/tests: Add testcases.
207
208 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
209
210         [BZ #9697]
211         * posix/bug-regex17.c: Add testcases.
212         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
213         handling.
214
215 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
216
217         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
218         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
219         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
220         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
221         for elf subdir.
222         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
223         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
224         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
225         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
226         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
227         * sysdeps/unix/sysv/linux/s390/Versions: New file.
228
229 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
230
231         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
232         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
233         re_string_skip_chars, re_string_reconstruct): Likewise.
234         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
235
236 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
237
238         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
239         adjust the buffer alignment.
240
241 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
242
243         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
244         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
245         net/route.h.
246
247         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
248         flavor to description only when flavor is not NULL.
249
250         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
251         mutex after SIGIO/SIGURG lookup loop.
252
253 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
254
255         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
256
257 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
258
259         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
260         handling.
261
262 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
263
264         * sysdeps/unix/sysv/linux/kernel-features.h
265         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
266
267         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
268         if no output is written.
269
270         * version.h: Bump to 2.10 development.
271
272         * posix/getconf.c: Update copyright year.
273         * nss/getent.c: Likewise.
274         * iconv/iconvconfig.c: Likewise.
275         * iconv/iconv_prog.c: Likewise.
276         * elf/ldconfig.c: Likewise.
277         * catgets/gencat.c: Likewise.
278         * csu/version.c: Likewise.
279         * elf/ldd.bash.in: Likewise.
280         * elf/sprof.c (print_version): Likewise.
281         * locale/programs/locale.c: Likewise.
282         * locale/programs/localedef.c: Likewise.
283         * nscd/nscd.c (print_version): Likewise.
284         * debug/xtrace.sh: Likewise.
285         * malloc/memusage.sh: Likewise.
286         * malloc/mtrace.pl: Likewise.
287         * debug/catchsegv.sh: Likewise.
288
289 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
290
291         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
292         script.
293
294 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
295
296         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
297         gethostbyname4_r function call succeeded, just leave the loop.
298
299         [BZ #9694]
300         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
301         very end.
302         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
303         * wctype/Makefile (tests): Add bug-wctypeh.
304         * wctype/bug-wctypeh.c: New file.
305
306         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
307         LOCALDOMAIN is defined.
308         * nscd/nscd_getai.c (__nscd_getai): Likewise.
309
310         * sysdeps/x86_64/bits/select.h: New file.
311
312         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
313
314 2008-12-21  Bruno Haible  <bruno@clisp.org>
315
316         [BZ #9677]
317         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
318         if no output is written.
319
320 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
321
322         * login/utmp_file.c (pututline_file): Replace call to dup2 with
323         libc internal symbol __dup2 to avoid access through the PLT.
324
325 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
326
327         [BZ #6545]
328         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
329         available only for __USE_GNU.
330
331         * inet/Makefile (tests): Add tst-getni2.
332         * inet/tst-getni2.c: New file.
333
334         [BZ #7080]
335         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
336         NULL when NI_NAMEREQD is set.
337         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
338         * inet/Makefile (tests): Add tst-getni1.
339         * inet/tst-getni1.c: New file.
340
341 2008-12-03  Petr Baudis  <pasky@suse.cz>
342
343         [BZ #7067]
344         * nscd/connections.c (invalidate_cache): Use prune_run_lock
345         instead of prune_lock.
346         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
347         * nscd/nscd.h (database_dyn): Add prune_run_cache.
348
349 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
350
351         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
352         use.
353
354         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
355         handling.
356
357         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
358         after reading name server list.
359
360         [BZ #7058]
361         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
362         handling for host name aliases.
363
364 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
365
366         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
367         instead of doing things manually.
368
369 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
370
371         * posix/regex_internal.h (build_wcs_upper_buffer):
372         Return type is reg_error_t.
373
374 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
375
376         * posix/globtest.sh: Use mktemp to create temporary file and
377         directory.
378
379         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
380         sets correctly.
381         (__CPU_CLR_S): Likewise.
382         (__CPU_ISSET_S): Likewise.
383
384 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
385             Ulrich Drepper  <drepper@redhat.com>
386
387         * scripts/firstversion.awk: Use custom comparison function to compare
388         version numbers.
389         * scripts/versions.awk: Use sort invocation which can handle
390         multi-digit sub-version numbers.
391
392 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
393
394         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
395         * locale/iso-639.def: Add Chhattisgarhi entry.
396
397 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
398
399         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
400         ESRCH return value.
401         (_nss_dns_gethostbyname4_r): Likewise.
402         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
403         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
404         gethostbyname4_r, we don't have a separate IPv6 status, so copy
405         the no_data variable.
406
407         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
408         information at the correct index.
409
410         * socket/sys/socket.h: Declare accept4.
411         * socket/accept4.c: New file.
412         * sysdeps/unix/sysv/linux/accept4.c: New file.
413         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
414         * socket/Makefile (routines): Add accept4.
415         * socket/Versions: Export accept4 with version GLIBC_2.10.
416         * socket/paccept.c: Removed.
417         * sysdeps/unix/sysv/linux/paccept.c: Removed.
418         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
419         * Versions.def: Define GLIBC_2.10 for libc.
420         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
421
422         * nscd/connections.c: Use accept4.
423
424         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
425
426 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
427
428         * resolv/res_send.c (send_dg): Create sockets with non-blocking
429         flag already set.
430
431         * stdlib/setenv.c (unsetenv): Don't search environment if it does
432         not exist.
433         * stdlib/Makefile (tests): Add tst-unsetenv1.
434         * stdlib/tst-unsetenv1.c: New file.
435
436 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
437
438         * login/utmp_file.c (file_writable): New variable.
439         (setutent_file): Don't try to open file for writing.
440         (pututline_file): Before writing, make descriptor writable if
441         necessary.
442
443 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
444
445         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
446         to IPv4 or IPv6 if an interface has been found.
447
448 2008-11-26  Roland McGrath  <roland@redhat.com>
449
450         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
451         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
452
453         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
454         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
455         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
456
457         * elf/elf.h (NT_386_IOPERM): New macro.
458         (NT_PPC_VSX): New macro.
459
460 2008-11-25  Roland McGrath  <roland@redhat.com>
461
462         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
463         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
464         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
465         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
466         Subdirectories moved to ports repository.
467         * configure.in (base_machine): Remove alpha case.
468
469 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
470
471         * sysdeps/mach/strerror_l.c: New file.
472
473 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
474
475         [BZ #6411]
476         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
477         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
478         magic numbers.
479         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
480         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
481         (relax_fenv_state): Same as above.
482         (FPSCR_29): Reserve bit in ISA 2.05.
483         (FPSCR_NI): Provide define for compat.
484         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
485         magic numbers.
486         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
487         magic numbers.
488         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
489         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
490         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
491         access to hwcap to account for hwcap size increase to uint64_t.
492         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
493         Likewise.
494         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
495         (*setcontext): Likewise.
496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
497         New file.
498         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
499         New file.
500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
501         (*setcontext): dynamically select mtfsf insn based on
502         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
503         increase to uint64_t.
504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
505         (*swapcontext): dynamically select mtfsf insn based on
506         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
507         increase to uint64_t.
508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
509         New file.
510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
511         New file.
512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
513         (*setcontext): dynamically select mtfsf insn based on
514         PPC_FEATURE_HAS_DFP.
515         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
516         (*swapcontext): dynamically select mtfsf insn based on
517         PPC_FEATURE_HAS_DFP.
518
519 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
520
521         * version.h: Bump for 2.9 release.
522         * include/features.h (__GLIBC_MINOR__): Bump to 9.
523
524         [BZ #7029]
525         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
526         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
527         all the rounding.
528
529 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
530
531         [BZ #7009]
532         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
533         unknown request types for now.
534
535 2008-11-11  Roland McGrath  <roland@redhat.com>
536
537         * sysdeps/x86_64/configure: New file.
538
539         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
540         * configure: Regenerated.
541
542 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
543
544         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
545         correct instruction to remove the stack frame.
546
547 2008-11-03  Michael Matz  <matz@suse.de>
548
549         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
550         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
551
552 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
553
554         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
555         Remove.
556
557         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
558         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
559         of the thread variable instead of void *.
560         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
561         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
562         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
563         __libc_tsd_define arguments.
564         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
565         __libc_tsd_address arguments.  Remove union hack.
566         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
567         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
568         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
569         Adjust __libc_tsd_{set,get} arguments.
570         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
571         __libc_tsd_define arguments.
572         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
573         arguments.
574         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
575         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
576         (LOCALE): Adjust __libc_tsd_define arguments.
577         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
578         arguments.
579         (LOCALE): Adjust __libc_tsd_define arguments.
580         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
581         arguments.
582         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
583         arguments.
584
585 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
586
587         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
588         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
589
590 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
591
592         [BZ #6966]
593         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
594
595 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
596             Ulrich Drepper  <drepper@redhat.com>
597
598         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
599         definition for GCC 3.1 and later.
600
601 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
602
603         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
604         refetch dtv, as it might have changed.
605         * elf/Makefile: Add rules to build and run tst-tls18.
606         * elf/tst-tls18.c: New test.
607         * elf/tst-tlsmod18a.c: New file.
608
609 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
610
611         [BZ #6875]
612         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
613
614 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
615
616         [BZ #6867]
617         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
618
619         [BZ #6919]
620         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
621         Fix length of copy operation.
622
623 2008-10-02  Pierre Habouzit <madcoder@debian.org>
624
625         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
626         and fix its calling convention.
627
628 2008-10-07  Andreas Schwab  <schwab@suse.de>
629
630         [BZ #6942]
631         * resolv/res_send.c (send_vc): Fix last change.
632         (send_dg): Align here as well.
633
634 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
635
636         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
637         return value in case rlimit is RLIM_INFINITY.
638
639         [BZ #6947]
640         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
641         for UL_SETFSIZE.
642         * resource/Makefile (tests): Add bug-ulimit1.
643         * resource/bug-ulimit1.c: New file.
644
645         [BZ #6974]
646         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
647         without dot.  Properly terminate the string with a null byte.
648         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
649
650         [BZ #6980]
651         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
652         negative sizees.
653         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
654         negative __size.
655
656         [BZ #6995]
657         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
658
659 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
660
661         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
662         abort if there is no initgroups_dyn function.
663
664         * resolv/res_send.c (send_dg): On timeout, only return nonzero
665         result if any of the queries really provided an answer.
666
667 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
668
669         * po/lt.po: Update from translation team.
670
671 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
672
673         * po/id.po: Update from translation team.
674
675 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
676
677         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
678         Fix tests for existence of second reply.
679
680 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
681
682         * po/id.po: New file.
683         Contributed by the Indonesian translation team.
684
685 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
686
687         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
688         initialization.
689
690 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
691
692         * elf/Makefile: Add rules to build and run tst-tls17.
693         * elf/tst-tls17.c: New test.
694         * elf/tst-tlsmod17a.c: New file.
695         * elf/tst-tlsmod17b.c: Likewise.
696
697 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
698
699         * stdlib/divmod_1.c: Use correct type for dummy variable.
700         * stdlib/mod_1.c: Likewise.
701
702 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
703
704         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
705
706 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
707
708         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
709         __nonnull order for C++.
710         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
711         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
712
713 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
714
715         * stdlib/longlong.h: Update from GCC.
716
717 2008-10-09  Jakub Jelinek <jakub@redhat.com>
718             David S. Miller  <davem@davemloft.net>
719
720         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
721         make sure any registers used with 64-bit 'branch-on-register'
722         instructions have their top 32-bits clear.
723         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
724         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
725
726 2008-09-18  Andreas Schwab  <schwab@suse.de>
727
728         [BZ #6942]
729         * resolv/res_send.c (send_vc): Fix use of unaligned address.
730         Properly handle partial reads.
731
732 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
733
734         * elf/elf.h (STO_MIPS_PLT): New.
735         (R_MIPS_COPY): New.
736         (R_MIPS_JUMP_SLOT): New.
737         (R_MIPS_NUM): Redefine to 128.
738         (DT_MIPS_PLTGOT): New.
739         (DT_MIPS_RWPLT): New.
740         (DT_MIPS_NUM): Redefine to 0x35.
741
742 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
743
744         * timezone/africa: Update from tzdata2008f.
745         * timezone/asia: Likewise.
746         * timezone/australasia: Likewise.
747         * timezone/europe: Likewise.
748         * timezone/leapseconds: Likewise.
749         * timezone/northamerica: Likewise.
750         * timezone/southamerica: Likewise.
751         * timezone/zone.tab: Likewise.
752
753 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
754
755         * nscd/connections.c: Disable use of paccept for now.
756
757 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
758
759         * socket/Versions: Remove paccept export for GLIBC_2.9.
760         * socket/Makefile (routines): Remove paccept.
761         * socket/sys/socket.h: Remove paccept declaration.
762
763         * po/sv.po: Update from translation team.
764
765 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
766
767         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
768         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
769
770 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
771
772         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
773         Patch by Olivier Fourdan <ofourdan@redhat.com>.
774
775 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
776
777         * sunrpc/rpc/svc.h: Declare svcfd_create.
778         Patch by Michael Solberg <msolberg@redhat.com>.
779
780 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
781             Ulrich Drepper  <drepper@redhat.com>
782
783         * malloc/malloc.c (public_vALLOc): Try other arenas in case
784         _int_valloc fails.
785         (public_pVALLOc): Likewise.
786
787 2008-09-02  Andreas Jaeger  <aj@suse.de>
788
789         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
790         commit.
791
792 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
793
794         [BZ #6860]
795         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
796
797 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
798
799         * Makefile (check-data): Check data directory in add-ons.
800         * elf/Makefile (check-data): Likewise.
801
802 2008-08-18  Roland McGrath  <roland@redhat.com>
803
804         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
805         * configure: Regenerated.
806         * config.make.in (cflags-cpu): New substituted variable.
807         (with-cpu): Variable removed.
808         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
809
810 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
811
812         [BZ #6845]
813         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
814         __signbitl definition and __LONG_DOUBLE_128__ guard from:
815         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
816         redundant.  Functions which call floating point assembler operations
817         should go into a sysdeps powerpc/fpu directory.
818
819 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
820
821         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
822         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
823
824 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
825
826         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
827
828         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
829         change related to AT_EXECFN.  We cannot use that string.
830         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
831         _dl_execfn member.
832         * elf/dl-support.c: Remove _dl_execfn variable.
833         (_dl_aux_init): Remove handling of AT_EXECFN.
834         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
835         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
836
837 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
838
839         [BZ #6544]
840         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
841         byte gets added to writes and seeks from the end use the length of
842         the buffer and not the currently terminating NUL byte.
843
844         [BZ #6634]
845         * login/utmp_file.c (getutent_r_file): Take additional parameter.
846         Set to true if locking failed.
847         (getutid_r_file): Adjust caller.
848         (pututline_file): Likewise.  Return NULL in this case.
849         Patch mostly by halesh.s@gmail.com.
850
851 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
852
853         [BZ #6589]
854         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
855         Define.
856         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
857
858 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
859
860         [BZ #6839]
861         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
862         macro since it is now available in elf/dynamic-link.h.
863
864 2008-08-12  Roland McGrath  <roland@frob.com>
865
866         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
867         in case used outside of libc.
868         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
869
870 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
871
872         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
873         directly instead of going through dn_comp.
874
875 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
876
877         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
878         Fix asm constraints.
879
880 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
881
882         [BZ #6790]
883         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
884         (IPV6_PMTUDISC_PROBE): Likewise.
885
886 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
887
888         [BZ #6791]
889         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
890
891 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
892             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
893
894         [BZ #6817]
895         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
896         Added the members 'vsx' and 'arch_2_06'.
897         (_dl_powerpc_platforms): Add the member 'power7'.
898         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
899         to reflect the changes required by VSX and ISA 2.06.
900         Modify _DL_PLATFORMS_COUNT to reflect the addition of
901         'power7'.
902         Defined PPC_PLATFORM_POWER7.
903         (_dl_string_platform): Add support for POWER7.
904         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
905         capability and ISA 2.06.
906
907 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
908
909         [BZ #6824]
910         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
911         macro to detect use of 128 bit long double.
912         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
913
914 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
915
916         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
917
918         [BZ #5794]
919         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
920         parameters.
921         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
922         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
923
924 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
925
926         * nscd/connections.c (main_loop_poll): Pass a buffer which is
927         guaranteed to be large enough to read inotify event.  Ignore
928         EAGAIN error.  Better error message.  Add branch predicition.
929         (main_loop_epoll): Likewise.
930
931 2008-08-02  Roland McGrath  <roland@frob.com>
932
933         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
934         Add memory clobbers.
935
936 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
937
938         * manual/arith.texi: Avoid @strong{Note:}.
939         * manual/creature.texi: Likewise.
940         * manual/filesys.texi: Likewise.
941         * manual/math.texi: Likewise.
942         * manual/memory.texi: Likewise.
943         * manual/resource.texi: Likewise.
944         * manual/syslog.texi: Likewise.
945         * manual/time.texi: Likewise.
946
947         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
948         to prevent warning.
949
950 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
951
952         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
953         new epoll_create1 interface.
954         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
955         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
956         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
957
958         * include/arpa/nameser.h (NS_GET16): Use const pointer.
959         (NS_GET32): Likewise.
960
961         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
962         syscalls, too.
963
964         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
965         use the AT_EXECFN value if it is no absolute path.
966         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
967         __ASSUME_AT_EXECFN.
968
969         * Versions.def: Add GLIBC_2.9 to libresolv.
970         * include/resolv.h: Remove hidden proto declarations for __ns_*
971         functions.  Add them for __dn_count_labels and __p_secstodate.
972         * include/arpa/nameser.h: Add a number of hidden proto declarations.
973         Define ns_msg_getflags macro here.
974         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
975         and __p_secstodate.
976         * resolv/Versions: Export functions from <arpa/nameser.h> from
977         libresolv in version GLIBC_2.9.
978         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
979         hidden definitions.
980         * resolv/ns_netint.c: Likewise.
981         * resolv/ns_parse.c: Likewise.
982         * resolv/ns_print.c: Likewise.
983         * resolv/ns_samedomain.c: Likewise.
984         * resolv/ns_ttl.c: Likewise.
985         * resolv/arpa/nameser_compat.h: Likewise.
986         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
987         function calls.
988         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
989         instead of ns_get16.
990         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
991         __ns_get32 instead of ns_get16 and ns_get32 respectively.
992         (gaih_getanswer_slice): Likewise.
993         * resolv/Makefile (libresolv-routines): Add ns_date.
994         * resolv/ns_date.c: New file.
995
996         * elf/Makefile (check-localplt.out): Also check libresolv and
997         libcrypt.
998
999 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
1000
1001         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1002         __ASSUME_O_CLOEXEC.
1003
1004 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
1005
1006         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
1007         buffer passed to NSS functions.
1008
1009         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
1010
1011         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
1012         Define.
1013
1014         * misc/syslog.c (openlog_internal): Fix compile problem.
1015
1016 2008-07-28  Roland McGrath  <roland@redhat.com>
1017
1018         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
1019
1020 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
1021
1022         * io/ftw.c (add_object): Remove inline to avoid warning.
1023
1024         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
1025
1026         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
1027         Use it instead of locally defined resplen2 variable.
1028         (res_nsend): Adjust for __libc_res_nsend interface change.
1029         (send_vc): Initialize *resplen2 if necessary.  Read length of
1030         package into an appropriately aligned variable.  Store converted length
1031         in new variable and use it appropriately.
1032         Add branch prediction help.
1033         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
1034         and pass it on to __libc_res_nsend.  Adjust all callers.
1035         (__libc_res_nsearch): Likewise.
1036         (__libc_res_nqeurydomain): Likewise.
1037         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
1038         change.
1039         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
1040         Define resplen2 variable and pass it to __libc_res_nsearch and then
1041         to gaih_getanswer.
1042         (getanswer_r): In case of incorrect DNS data don't overread buffer.
1043         Add branch prediction.
1044         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
1045         (gaih_getanswer): Don't decode second slice if first one failed due
1046         to a too small buffer.  Don't let not found status of second
1047         decoder shadow results of the first.
1048         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
1049         and __libc_res_nquery interface changes
1050         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
1051         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
1052         __libc_res_nsearch, and __libc_res_nsend.
1053         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
1054         change.
1055         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
1056         __libc_res_nsearch interface changes.
1057
1058 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
1059
1060         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
1061
1062         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
1063         file descriptors with close-on-exec set.
1064         (exec_comm_child): Fix the case where the write end of the pipe is
1065         STDOUT_FILENO already.  In case it is, clear close-on-exec.
1066
1067         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
1068         * io/pipe2.c: Likewise.
1069         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
1070         instead of __ASSUME_PACCEPT.
1071         * include/unistd.h: Declare __have_pipe2.
1072         * libio/iopopen.c: Implement "e" flag.
1073         * libio/Makefile (tests): Add tst-popen1.
1074         * libio/tst-popen1.c: New file.
1075
1076         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
1077         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1078
1079 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1080
1081         [BZ #6771]
1082         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
1083         success call of _IO_SEEKOFF or calls which failed because the
1084         descriptor is for a pipe.
1085
1086         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
1087         magic number.
1088
1089         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
1090
1091         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
1092         F_SETFD use if we know fopen set the flag.
1093
1094         * login/utmp_file.c (setutent_file): Minor optimization in case
1095         O_CLOEXEC is available.
1096
1097 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
1098
1099         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
1100         * elf/Makefile: Use pie-ccflag variable.
1101         * nscd/Makefile: Likewise.
1102         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
1103
1104 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
1105
1106         [BZ #6724]
1107         * Versions.def: Add GLIBC_2.9 version tag for libutil.
1108         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
1109         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
1110         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
1111         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
1112         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
1113         utmp32, utmpx32 and login32.
1114         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
1115         versions of struct utmp functions to libc and libutil.
1116         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
1117         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
1118         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
1119         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
1120         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
1121         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
1122         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
1123         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
1124         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
1125         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
1126         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
1127         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
1128         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
1129         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
1130         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
1131         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
1132         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
1133         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
1134         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
1135         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
1136         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
1137         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
1138
1139 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1140
1141         * scripts/gen-as-const.awk: Generate more widely usable code by
1142         using 64-bit arithmetic.
1143
1144         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
1145         the same treatment as narrow output code in last patch.
1146
1147         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
1148
1149         [BZ #6763]
1150         * elf/dl-load.c (local_strdup): Remove inline.
1151         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
1152         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
1153         part of the object.
1154
1155         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
1156
1157 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
1158
1159         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
1160         the new syscalls, too.
1161
1162         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
1163         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
1164
1165         [BZ #6698]
1166         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
1167         parameter for end of buffer.  If temporary copy is too large use
1168         malloc.
1169         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
1170         interface change.
1171         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
1172         string rewrite when allocating buffer.
1173
1174         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
1175         syscalls, too.
1176
1177         * nscd/connections.c (nscd_init): Clean up fcntl call.
1178
1179         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
1180         SOCK_NONBLOCK if possible.
1181
1182         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
1183         SOCK_CLOEXEC if available.
1184
1185         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
1186         __libc_clntudp_bufcreate_internal.
1187         * include/sys/socket.h: Declare __have_sock_cloexec.
1188         * socket/Makefile (aux): Add have_sock_cloexec.
1189         * socket/have_sock_cloexec.c: New file.
1190         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
1191         __libc_clntudp_bufcreate.
1192         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
1193         which takes an additional parameter.  Create socket with non-blocking
1194         mode and close-on-exec flag set, if wanted.
1195         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
1196         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
1197         instead of clntudp_create.  The socket has already the close-on-exec
1198         flag set if SOCK_CLOEXEC is defined.
1199
1200 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
1201
1202         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1203         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
1204         appropriate.
1205         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
1206         non-blocking mode by using socket, paccept, and inotify_init1.
1207
1208         * Versions.def (glibc): Add GLIBC_2.9.
1209         * io/Makefile (routines): Add dup3 and pipe2.
1210         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
1211         * io/dup3.c: New file.
1212         * io/pipe2.c: New file.
1213         * posix/unistd.h: Declare dup3 and pipe2.
1214         * socket/Makefile (routines): Add paccept.
1215         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
1216         * socket/paccept.c: New file.
1217         * socket/sys/socket.h: Declare paccept.
1218         * sysdeps/unix/syscalls.list: Add entry for dup3.
1219         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
1220         epoll_create2 and inotify_init1.
1221         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
1222         * sysdeps/unix/sysv/linux/paccept.c: New file.
1223         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
1224         possible.
1225         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
1226         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
1227         inotify_init1, and pipe2 entries.
1228         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
1229         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
1230         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
1231         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
1232         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
1233         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
1234         SOCK_NONBLOCK.
1235         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
1236         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
1237         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
1238         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
1239         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
1240         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
1241         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
1242         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
1243         EPOLL_NONBLOCK.  Declare epoll_create2.
1244         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
1245         EFD_NONBLOCK.
1246         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
1247         IN_NONBLOCK.  Declare inotify_init1.
1248         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
1249         SFD_NONBLOCK.
1250         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
1251         TFD_NONBLOCK.
1252
1253         * elf/elf.h: Define AT_EXECFN.
1254         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1255         LD_ORIGIN_PATH.
1256         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1257         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
1258         if __ASSUME_AT_EXECFN is defined.
1259         (_dl_aux_init): Handle AT_EXECFN.
1260         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1261         for 2.6.27 and up.
1262         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1263         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1264         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1265         _dl_execfn if available and avoid compatibility code if
1266         __ASSUME_AT_EXECFN is defined.
1267
1268         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1269         _dl_discover_osversion only for older kernels.
1270
1271 2008-07-22  Roland McGrath  <roland@frob.com>
1272
1273         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1274
1275 2008-07-21  Roland McGrath  <roland@frob.com>
1276
1277         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1278         returned too much data out of line.
1279
1280 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
1281
1282         * locale/setlocale.c (setname): Remove inline to avoid compiler
1283         warning.
1284
1285         [BZ #6712]
1286         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1287
1288 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
1289
1290         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1291         doesn't manage to write anything, fail.
1292
1293         * malloc/hooks.c (__malloc_check_init): Remove printf.
1294
1295 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1296
1297         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1298
1299 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
1300
1301         * nscd/connections.c (main_loop_poll): Fix handling of read errors
1302         from inotify.
1303         (main_loop_epoll): Likewise.
1304
1305 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
1306
1307         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1308
1309         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1310         if DEBUG is defined.
1311
1312         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1313         query.  Adjust buffer size computation for padding.
1314
1315 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
1316
1317         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1318         * stdio-common/tst-setvbuf1.c: New file.
1319         * stdio-common/tst-setvbuf1.expect: New file.
1320
1321         [BZ #6719]
1322         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1323         when selecting fully-buffered stream.
1324         Patch by Wang Xin <wxinee@gmail.com>.
1325
1326 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1327
1328         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1329         (__open_2): New function.
1330         (__open64_2): New alias to __open_2.
1331         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1332         (__openat_2): New function.
1333         (__openat64_2): New alias to __openat_2.
1334
1335 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
1336
1337         [BZ #6723]
1338         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1339
1340 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1341
1342         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1343         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1344         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1345         __hurd_dfail.
1346         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1347         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1348         * sysdeps/mach/hurd/send.c (__send): Likewise.
1349         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1350         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1351
1352 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1353
1354         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1355         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1356         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1357         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1358         * hurd/get-host.c (_hurd_get_host_config): Likewise.
1359         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1360
1361 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
1362
1363         [BZ #6657]
1364         * time/strptime_l.c: Don't clear s.era_cnt after successful match
1365         of %EY.
1366         Patch by Petr Baudis.
1367
1368 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
1369
1370         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
1371         Patch by Peter Jones <pjones@redhat.com>.
1372
1373 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1374
1375         [BZ #6654]
1376         * stdlib/canonicalize.c (__realpath): readlink can write too much
1377         into the buffer on platforms without PATH_MAX.
1378
1379 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
1380
1381         [BZ #6653]
1382         * posix/tst-regex.c (main): Rename to...
1383         (do_test): ... this. Remove cmdline option processing.
1384         (TIMEOUT): Define.
1385         (TEST_FUNCTION): Define.
1386         (CMDLINE_OPTIONS): Define.
1387
1388 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1389
1390         [BZ #5210]
1391         * configure.in: Add -Werror to -fstack-protector test to catch
1392         unsupported architectures.
1393         Patch by Gilles Esponasse <g.esp@free.fr>.
1394
1395 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
1396
1397         * stdlib/tst-setcontext.c: Set back_in_main before exit if
1398         getcontext returns ENOSYS.
1399
1400 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
1401
1402         * nscd/connections.c (main_loop_poll): Fix test for read error.
1403         (main_loop_epoll): Likewise.
1404
1405 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
1406
1407         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1408         better place so it is not called when nscd is used.
1409
1410         * nscd/connections.c: Also recognize and handle changes to the
1411         resolver configuration file.
1412
1413 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1414
1415         * time/strftime.c: Pass reference to tzset_called around to handle
1416         recursive calls.
1417
1418         [BZ #6612]
1419         * time/strftime.c (__strftime_internal): Call tzset() only
1420         when printing timezone-dependent values.
1421         Based on a patch by Petr Baudis <pasky@suse.cz>.
1422
1423         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1424         unconditionally use second gaih_getanswer_slice result.
1425
1426         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1427         (getaddrinfo): RES must always be non-NULL.
1428
1429 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1430
1431         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1432         cr[34] registers.
1433         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1434         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1435         Likewise.
1436         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1437         register.
1438
1439 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1440
1441         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1442         fields.
1443         * nscd/connections.c (inotify_fd): New variable.
1444         (nscd_init): Try to open an inotify descriptor.
1445         If successful, watch files for databases using inotify instead of
1446         having prune threads stat the files.
1447         (nscd_run_prune): Recognize clear_cache flag being set and call
1448         prune_cache appropriately.
1449         (main_loop_poll): Add inotify descriptor to wait set and handle the
1450         reported changes.
1451         (main_loop_epoll): Likewise.
1452         * nscd/cache.c (prune_cache): Don't stat files for databases if
1453         inotify is used.
1454         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1455         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1456
1457         * nscd/grpcache.c (cache_addgr): Correctly compute size of
1458         fixed-size portion of the record.
1459         * nscd/servicescache.c (cache_addserv): Likewise.
1460         * nscd/pwdcache.c (cache_addpw): Likewise.
1461         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1462
1463 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
1464
1465         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1466         out we don't use uninitialized memory.
1467
1468         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1469         the client.
1470
1471 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
1472
1473         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1474         ignore T_DNAME messages.
1475         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1476
1477 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
1478
1479         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1480         Avoid segfault if first GETC returns eof/'\0'/'\n'.
1481
1482 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
1483
1484         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1485         instead of portstr to nscd_getserv_r.  Patch by
1486         Roman Kagan <rkagan@mail.ru>.
1487
1488 2008-05-26  Jim Meyering  <meyering@redhat.com>
1489
1490         Remove more useless "if" tests before "free".
1491         * include/inline-hashtab.h (htab_delete): Likewise.
1492         * libio/freopen.c (freopen): Likewise.
1493         * libio/freopen64.c (freopen64): Likewise.
1494         * locale/programs/ld-collate.c (collate_read): Likewise.
1495         * misc/fstab.c (libc_freeres_fn): Likewise.
1496         * posix/glob.c (globfree): Likewise.
1497
1498 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1499
1500         * string/Makefile (strop-tests): Add memmem.
1501         * string/test-memmem.c: New file.
1502         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1503         (test_init): Size buf1 according to BUF1PAGES.
1504
1505 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
1506
1507         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1508         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1509         (CFLAGS-scanf17.c): New.
1510         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1511         * stdio-common/scanf15.c (main): Likewise.
1512         * stdio-common/scanf16.c: New file.
1513         * stdio-common/scanf17.c: New file.
1514
1515 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1516
1517         * resolv/res_send.c (send_dg): If we already have one of two
1518         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
1519         use the one answer insted of failing.
1520
1521 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
1522
1523         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1524         being executed on PowerPC as the expected result exceeds IBM
1525         long double 128 __LDBL_MAX__.
1526
1527 2008-05-21  Roland McGrath  <roland@redhat.com>
1528
1529         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1530
1531         * Makefile (check-data): Use $(abi-name) before other guesses.
1532         Look in $(add-ons) dirs before scripts/data/.
1533         * elf/Makefile (check-data): Likewise.
1534
1535         * scripts/soversions.awk: Grok ABI line.
1536         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1537         Emit definition for abi-name variable.
1538
1539 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
1540
1541         * string/endian.h: Define new fixed-size hto* and *toh macros only
1542         if [__USE_BSD].
1543
1544         * iconvdata/Depend: Add localedata.
1545
1546 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1547
1548         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1549
1550 2008-05-08  David S. Miller  <davem@davemloft.net>
1551
1552         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1553         HIDDEN_JUMPTARGET.
1554         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1555         (__SYSCALL_CLOBBERS): Remove %g* registers.
1556         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1557         (__SYSCALL_CLOBBERS): Likewise.
1558         * scripts/data/localplt-sparc-linux-gnu.data: New file.
1559         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
1560
1561 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
1562
1563         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1564         (CALL_ERRNO_LOCATION): Define.
1565         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1566         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1567         (CALL_ERRNO_LOCATION): Define.
1568         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1569         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1570         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1571
1572 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
1573
1574         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1575         variable.
1576
1577 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
1578
1579         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1580         (FIRST_FRAME_POINTER): Define.
1581
1582 2008-05-09  David S. Miller  <davem@davemloft.net>
1583
1584         * sysdeps/sparc/sparc64/backtrace.c: New file.
1585
1586 2008-05-14  David S. Miller  <davem@davemloft.net>
1587
1588         * sysdeps/sparc/machine-gmon.h: New file.
1589         * sysdeps/sparc/sparc-mcount.S: Likewise.
1590         * sysdeps/sparc/Makefile: Add sparc-mcount target to
1591         sysdep_routines in gmon directory.
1592
1593 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
1594
1595         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1596
1597 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
1598
1599         * resolv/res_query.c (__libc_res_nquery): In case one of two
1600         answer was too short don't try to read that answer's header.
1601
1602         * resolv/res_send.c (send_dg): In case of timeout and there are
1603         two queries and one has been answered, return value indicating
1604         success.
1605
1606 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
1607
1608         * nscd/cache.c (cache_add): Take additional parameter specifying
1609         whether this is in response of a cache refill.  Check alignment
1610         of package data.  Revamp waking of pruning thread.
1611         (prune_cache): Small optimization.
1612         * nscd/nscd.h: Adjust cache_add prototypes.
1613         * nscd/aicache.c: Adjust cache_add calls.
1614         * nscd/grpcache.c: Likewise.
1615         * nscd/hstcache.c: Likewise.
1616         * nscd/initgrcache.c: Likewise.
1617         * nscd/pwdcache.c: Likewise.
1618         * nscd/servicescache.c: Likewise.
1619         * nscd/connections.c (restart): Really disable cache use before
1620         exec attempt.  If it fails, reenable cache.
1621         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
1622         time to max to be able to notice concurrent cache additions.  Unlock
1623         prune_lock while performing gc.  Afterwards compute wakeup time with
1624         current wakeup_time value in mind.
1625
1626 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
1627
1628         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
1629
1630         * nscd/mem.c (gc): Correctly determine highest used array element
1631         in mark.
1632
1633         * nscd/mem.c (markrange): Add assert to check entries are all
1634         aligned.  Small cleanup in bitmap use.
1635
1636         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
1637         blockoff of type nscd_ssize_t.
1638         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
1639         (mempoll_alloc): Record block offset and not address.
1640
1641         * nscd/mem.c (gc): Fix test for stack overuse.
1642
1643         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
1644         more asserts.
1645
1646         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1647         entry is available, believe it.
1648
1649         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1650         no answers return NSS_STATUS_NOTFOUND.
1651         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1652         buffer does not have any content.
1653
1654 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
1655
1656         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1657
1658         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1659         lookup, don't assign canon unconditionally.
1660
1661 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1662
1663         * string/Makefile (distribute): Add str-two-way.h.
1664
1665 2008-03-29  Eric Blake  <ebb9@byu.net>
1666
1667         Rewrite string searches to O(n) rather than O(n^2).
1668         * string/str-two-way.h: New file.  For linear fixed-allocation
1669         string searching.
1670         * string/memmem.c: New implementation.
1671         * string/strstr.c: New implementation.
1672         * string/strcasestr.c: New implementation.
1673
1674 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
1675
1676         * posix/regcomp.c (optimize_utf8): Add a note on why we test
1677         opr.ctx_type.
1678         (calc_first): Initialize constraint field.
1679         (duplicate_node_closure): Use it instead of special casing ANCHORS.
1680         Use search_duplicated_node to avoid loops.  Fix grammar.
1681         (duplicate_node): Merge constraint field for all node types.
1682         (calc_eclosure_iter): Look at constraint field for all node types.
1683         * posix/regex_internal.c (create_cd_newstate): Don't look at
1684         create_cd_newstate.
1685
1686 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1687
1688         [BZ #6428]
1689         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
1690
1691         [BZ #6442]
1692         * string/endian.h: Add macros for fixed-size endian conversion.
1693         * bits/byteswap.h: Allow inclusion from <endian.h>.
1694         * sysdeps/i386/bits/byteswap.h: Likewise.
1695         * sysdeps/ia64/bits/byteswap.h: Likewise.
1696         * sysdeps/s390/bits/byteswap.h: Likewise.
1697         * sysdeps/x86_64/bits/byteswap.h: Likewise.
1698         * string/Makefile (tests): Add tst-endian.
1699         * string/tst-endian.c: New file.
1700
1701         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
1702         Patch by Reuben Thomas.
1703
1704 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
1705
1706         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
1707
1708 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1709
1710         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
1711
1712         [BZ #6461]
1713         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
1714         Add missing braces.
1715         (BODY for __gconv_transform_internal_ascii): Likewise.
1716
1717         [BZ #6472]
1718         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
1719         to be treated like link-local addresses.
1720         (match_prefix): Don't treat IPv4 loopback address special when
1721         converting to v4 mapped addressed.
1722
1723         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1724         if necessary.
1725         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
1726         * posix/tst-rfc3484-2.c: Likewise.
1727         * posix/tst-rfc3484-3.c: Likewise.
1728
1729         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
1730         and SCTP.
1731
1732         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
1733
1734         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
1735
1736         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
1737
1738 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
1739
1740         * po/lt.po: New file.  From Lituanian translation team.
1741
1742 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
1743
1744         Introduce TLS descriptors for i386 and x86_64.
1745         * include/inline-hashtab.h: New file, copied from 2005's
1746         libiberty, with fix for memory leak imported afterwards by
1747         Glauber de Oliveira Costa.
1748         * elf/tlsdeschtab.h: New file.
1749         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
1750         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
1751         (CHECK_STATIC_TLS): Move to...
1752         * elf/dynamic-link.h: ... this file.
1753         (TRY_STATIC_TLS): New macro.
1754         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
1755         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
1756         R_386_TLS_DESC): Define.
1757         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
1758         binutils.
1759         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
1760         R_X86_64_TLSDESC): Define.
1761         (R_386_NUM, R_X86_64_NUM): Adjust.
1762         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
1763         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1764         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1765         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1766         release tlsdesc_table.
1767         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
1768         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
1769         (elf_machine_rel): Handle R_386_TLS_DESC.
1770         (elf_machine_rela): Likewise.
1771         (elf_machine_lazy_rel): Likewise.
1772         (elf_machine_lazy_rela): Likewise.
1773         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
1774         * sysdeps/i386/dl-tlsdesc.S: New file.
1775         * sysdeps/i386/dl-tlsdesc.h: New file.
1776         * sysdeps/i386/tlsdesc.c: New file.
1777         * sysdeps/i386/tlsdesc.sym: New file.
1778         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
1779         tlsdesc_table.
1780         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
1781         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1782         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1783         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1784         release tlsdesc_table.
1785         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
1786         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
1787         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
1788         (elf_machine_rel): Handle R_X86_64_TLSDESC.
1789         (elf_machine_rela): Likewise.
1790         (elf_machine_lazy_rel): Likewise.
1791         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
1792         (__tls_get_addr): Do not declare for non-shared compiles.
1793         * sysdeps/x86_64/dl-tlsdesc.S: New file.
1794         * sysdeps/x86_64/dl-tlsdesc.h: New file.
1795         * sysdeps/x86_64/tlsdesc.c: New file.
1796         * sysdeps/x86_64/tlsdesc.sym: New file.
1797         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
1798         tlsdesc_table for both 32- and 64-bit structs.
1799
1800 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1801
1802         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
1803         its own function.  This reduces the frame setup costs and more.
1804
1805 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
1806
1807         [BZ #3406]
1808         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
1809         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
1810
1811 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1812
1813         * io/openat.c (__openat_2): Also pass fd to __openat.
1814         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
1815         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
1816
1817         * string/tester.c (test_memcmp): Add a few more tests.
1818         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
1819
1820 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1821
1822         * nscd/cache.c (cache_add): Before returning with failure and this
1823         is the first use of the record, mark it as unusable.
1824         * nscd/aicache.c: Don't touch the dataset after cache_add returns
1825         reporting a failure.
1826         * nscd/grpcache.c: Likewise
1827         * nscd/hstcache.c: Likewise.
1828         * nscd/initgrcache.c: Likewise.
1829         * nscd/pwdcache.c: Likewise.
1830         * nscd/servicescache.c: Likewise.
1831
1832 2008-05-10  Roland McGrath  <roland@redhat.com>
1833
1834         [BZ #6505]
1835         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
1836
1837 2008-05-08  David S. Miller  <davem@davemloft.net>
1838
1839         * misc/truncate64.c (truncate64): Use __truncate not truncate.
1840
1841         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
1842         (__ieee754_y0l): Likewise.
1843         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1844         (__ieee754_y1l): Likewise.
1845         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
1846         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
1847         frexpl and ldexpl.  math_private.h provides them and the latter
1848         is not even used.
1849         (__log1pl): Use __frexpl.
1850
1851 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1852
1853         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
1854         prototypes.
1855         * include/arpa/nameser_compat.h: Define T_UNSPEC.
1856         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
1857         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
1858         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
1859         af==AF_UNSPEC.
1860         (_nss_nis_gethostbyname4_r): New function.
1861         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1862         Change to also handle af==AF_UNSPEC.
1863         (get_tablename): New function.  Use it to avoid duplication.
1864         (_nss_nisplus_gethostbyname4_r): New function.
1865         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
1866         available.
1867         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
1868         * nss/nss.h: Define struct gaih_addrtuple.
1869         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
1870         af==AF_UNSPEC.
1871         (_nss_files_gethostbyname4_r): New function.
1872         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
1873         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
1874         calls.
1875         * resolv/res_query.c (__libc_res_nquery): Take two additional
1876         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
1877         look up IPv4 and IPv6.
1878         Change all callers.
1879         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
1880         for an additional query and answer buffer.  Pass to send_vc and
1881         send_dg.
1882         (send_vc): Send possibly two requests and receive two answers.
1883         (send_dg): Likewise.
1884         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
1885         __libc_res_nquery.
1886         (_nss_dns_gethostbyname4_r): New function.
1887         (gaih_getanswer_slice): Likewise.
1888         (gaih_getanswer): Likewise.
1889         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
1890         __libc_res_nquery call.
1891         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
1892         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
1893         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
1894         available.
1895
1896 2008-05-05  David S. Miller  <davem@davemloft.net>
1897
1898         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
1899         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
1900
1901 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1902
1903         Fix termios bit macros.
1904         Move *DLY definitions where they belong, in termios.h.
1905         Add *[0-3] definitions.
1906         Fixes confusion between VT and FF.
1907         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
1908         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
1909         are already defined to avoid collision with termios.h.
1910         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
1911         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
1912         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
1913         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
1914         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
1915         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
1916         VTDLY, VT0, VT1): New macros.
1917         [__USE_GNU] (OLCUC): Change value of macro.
1918         [__USE_XOPEN] (OFILL): New macro.
1919         [__USE_BSD] (CRTSCTS): Change value.
1920         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
1921         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
1922         (B7200, B14400, B28800, B76800): New macros.
1923
1924 2008-05-01  David S. Miller  <davem@davemloft.net>
1925
1926         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
1927         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
1928         (gen-as-const-headers): Add it.
1929         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
1930         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
1931         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
1932         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
1933
1934         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
1935         six system call parameters.
1936         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
1937
1938 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
1939
1940         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
1941         RUSAGE_LWP.
1942         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1943         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1944
1945 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
1946
1947         * stdlib/tst-setcontext.c: Include unistd.h.
1948
1949 2008-04-25  David S. Miller  <davem@davemloft.net>
1950
1951         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
1952         Pass "union semun" properly in to sys_ipc, it must be passed
1953         by value, not by reference.
1954
1955 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
1956
1957         * nscd/Makefile (nscd-cflags): Set back to -fpie.
1958         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
1959         * nscd/connections.c (mem_in_flight): Likewise.
1960
1961         * nscd/nscd.h (dbs): Make hidden.
1962
1963         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
1964         Avoid returning -1, return 0 instead.
1965
1966 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
1967
1968         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
1969
1970 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
1971
1972         [BZ #5209]
1973         * sysdeps/unix/sysv/linux/times.c: New file.
1974
1975         [BZ #5381]
1976         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
1977         mem_in_flight_list variables.  Add new parameter to mempool_alloc
1978         prototype.
1979         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
1980         appropriate mem_in_flight element.
1981         (gc): Take allocations which have not yet been committed to the
1982         database into account.
1983         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
1984         Reset mem_in_flight before returning.
1985         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
1986         cue it up in mem_in_flight_list.
1987         * nscd/aicache.c: Adjust mempool_alloc call.
1988         * nscd/grpcache.c: Likewise.
1989         * nscd/hstcache.c: Likewise.
1990         * nscd/initgrcache.c: Likewise.
1991         * nscd/pwdcache.c: Likewise.
1992         * nscd/servicescache.c: Likewise.
1993         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
1994         of -fpie.
1995
1996         * nscd/connections.c (handle_request): Provide better error message
1997         in case SELinux forbids the service.
1998
1999         * version.h (VERSION): Bump to 2.8.90.
2000
2001 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
2002
2003         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
2004
2005 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
2006
2007         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
2008         Also use for 32-bit.
2009         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
2010         __nextafter instead of nextafter to avoid local PLT.
2011         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
2012         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
2013
2014         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
2015
2016         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
2017         __fe_nomask_env.
2018         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
2019         <fenv_libc.h> instead of <fenv.h>.
2020         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
2021         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
2022
2023         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
2024
2025         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
2026         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
2027         function from fegetexcept and make old name weak alias.
2028         * include/fenv.h: Declare __fegetexcept.
2029         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
2030         fegetexcept.
2031         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
2032         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
2033         to fetestexcept.
2034         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
2035         instead of frexpl to avoid local PLT.
2036         * math/s_significandl.c (__significandl): Use __ilogbl instead of
2037         ilogbl to avoid local PLT.
2038         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
2039         instead of ldexpl to avoid local PLT.
2040         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
2041         __roundl not roundl to avoid local PLT.
2042         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
2043         local PLTs.  Use __sincosl instead of separate sinl and cosl
2044         calls.
2045         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2046
2047         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
2048         version for ppc64 to 2.4.21 since without it makecontext will fail.
2049
2050         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
2051         to the ABI in use.
2052         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
2053         .__tls_get_addr.
2054         [__powerpc64__] (TLS_GD): Likewise.
2055
2056 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
2057
2058         [BZ #4997]
2059         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
2060         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
2061         mantissa.
2062         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2063         Likewise.  Also account for when x is an odd number between 2^52
2064         and 2^53-1.
2065         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
2066         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2067         * math/libm-test.inc (lround_test, llround_test): Added test cases to
2068         detect aforementioned erroneous conditions.
2069
2070 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
2071
2072         * configure.in: Check for -fno-section-anchors in addition to
2073         -fno-toplevel-reorder.
2074
2075 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
2076
2077         * include/features.h (__GLIBC_MINOR__): Bump to 8.
2078
2079         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
2080         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2081         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2082         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
2083         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
2084         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
2085
2086 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
2087
2088         [BZ #5443]
2089         * time/era.c: Transform __libc_setlocale_lock into rwlock.
2090         * time/alt_digit.c: Likewise.
2091         * wcsmbs/wcsmbsload.c: Likewise.
2092
2093 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
2094
2095         * version.h (VERSION): Bump to 2.8.
2096
2097         * timzeone/asia: Update from tzdata2008b.
2098         * timezone/backward: Likewise.
2099         * timezone/europe: Likewise.
2100         * timezone/northamerica: Likewise.
2101         * timezone/southamerica: Likewise.
2102         * timezone/iso3166.tab: Likewise.
2103         * timezone/leapseconds: Likewise.
2104         * timezone/zone.tab: Likewise.
2105         * timezone/private.h: Update from tzcode2008a.
2106         * timezone/zdump.c: Likewise.
2107         * timezone/zic.c: Likewise.
2108
2109 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
2110
2111         [BZ #5741]
2112         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
2113         Define additonal Data Cache Block instruction macros.
2114         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
2115         Replace dcbst with dcbf and sync with sync/isync.
2116
2117 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
2118
2119         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
2120         Always set ELF_RTYPE_CLASS_PLT.
2121         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
2122
2123 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
2124
2125         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
2126         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
2127         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
2128         For ISA 2.01 and later replace mftb with mfspr 268.
2129
2130 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
2131
2132         [BZ #5768]
2133         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
2134         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
2135
2136 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
2137
2138         [BZ #5768]
2139         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
2140         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
2141         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
2142         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
2143
2144 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
2145
2146         * stdlib/tst-makecontext.c (othervar): New variable.
2147         (cf): Test sign extending the argument to long.
2148
2149 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
2150
2151         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
2152         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
2153         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
2154         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
2155         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
2156         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
2157         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
2158
2159 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
2160
2161         * elf/Makefile (tests): Substitute tests-vis-yes here.
2162         (tests-vis-yes): Delete.
2163         (modules-name, modules-vis-yes): Similarly.
2164
2165 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
2166
2167         [BZ #4407]
2168         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
2169         Preserve sign in signgamp when x is zero.
2170
2171 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
2172
2173         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
2174         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
2175         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
2176         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
2177         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
2178         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
2179
2180 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2181
2182         [BZ #4314]
2183         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
2184         buffers.
2185
2186         [BZ #5209]
2187         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
2188         a reserved error value.
2189
2190         * stdlib/tst-makecontext.c: Change parameter to cf to negative
2191         value to check for correct sign extension.
2192
2193         [BZ #5436]
2194         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2195         Copy 64-bit parameter values even though this is not required in
2196         the standard.
2197
2198         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
2199         PC save.
2200
2201 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
2202
2203         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
2204         PC save.
2205
2206 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
2207
2208         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
2209
2210 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2211
2212         [BZ #5998]
2213         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
2214         in line-buffered stream failed.
2215         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2216
2217 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
2218
2219         [BZ #6024]
2220         * scripts/abi-versions.awk: If the version specified by
2221         --enable-oldest-abi is older than the first version for this
2222         architecture, use the default version.
2223
2224         * locale/programs/ld-collate.c (collate_read): Ignore script lines
2225         as well when ignoring the whole category.
2226
2227 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2228
2229         [BZ #6042]
2230         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
2231         ETHERTYPE_* definitions.
2232         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
2233
2234 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2235
2236         * stdlib/mbtowc.c (__no_r_state): Remove.
2237         (mbtowc): New static state variable.  Use it instead of
2238         __no_r_state.
2239         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
2240         (__wctomb_state): New hidden variable.
2241         (wctomb): Use __wctomb_state instead of __no_r_state.
2242         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
2243         (__wctomb_state): New extern decl.
2244         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
2245
2246 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2247
2248         [BZ #5475]
2249         * resolv/res_init.c: Handle scope IDs in resolv.conf.
2250
2251 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2252
2253         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2254
2255 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
2256
2257         * po/nl.po: Update from translation team.
2258
2259 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
2260
2261         [BZ #6007]
2262         * string/strfry.c: Handle empty strings again.
2263
2264 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2265
2266         [BZ #5443]
2267         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2268         before looking for translation.
2269         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2270         * locale/freelocale.c: Likewise.
2271         * locale/newlocale.c: Likewise.
2272         * locale/setlocale.c: Likewise.
2273         Based partially on a patch by ryo@np.css.fujitsu.com.
2274
2275 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
2276
2277         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2278         acquiring wrlock.  Do conv_tab allocation while holding lock.
2279         * intl/Makefile: Add rules to build and run tst-gettext6.
2280         * intl/tst-gettext6.c: New test.
2281         * intl/tst-gettext6.sh: New file.
2282
2283 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2284
2285         * po/nl.po: Update from translation team.
2286
2287         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2288         provided through st_blksize, try the default size before giving up.
2289
2290 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
2291
2292         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2293
2294         [BZ #5939]
2295         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2296
2297         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2298         error message.  POSIX today does not require the messages to be in
2299         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
2300
2301         [BZ #5979]
2302         * sunrpc/auth_unix.c: Unify printed strings.
2303         * sunrpc/clnt_tcp.c: Likewise.
2304         * sunrpc/clnt_udp.c: Likewise.
2305         * sunrpc/clnt_unix.c: Likewise.
2306         * sunrpc/svc_tcp.c: Likewise.
2307         * sunrpc/svc_udp.c: Likewise.
2308         * sunrpc/svc_unix.c: Likewise.
2309         * sunrpc/xdr.c: Likewise.
2310         * sunrpc/xdr_array.c: Likewise.
2311         * sunrpc/xdr_rec.c: Likewise.
2312         * sunrpc/xdr_ref.c: Likewise.
2313         * locale/programs/ld-time.c (time_finish): Unify messages.
2314         * locale/programs/locfile.c (handle_copy): Fix typo.
2315         * nscd/nscd.c (options): Fix typo.
2316
2317         [BZ #5995]
2318         * stdlib/strtod_l.c: Use correct sign for result in one more
2319         underflow case.
2320         Patch by Eric Blake <ebb9@byu.net>.
2321
2322 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
2323
2324         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2325         and creat system calls.
2326         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2327         call.
2328         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2329         system calls.
2330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2331         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2332         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2333
2334 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
2335
2336         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2337         <linux/limits.h> has defined it.
2338         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2339         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2340         headers.
2341         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2342         it instead of ARG_MAX.
2343
2344 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
2345
2346         * posix/gai.conf: Fix comment for scope nullbits.
2347         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2348         default to 128 bits for v4 mapped addresses.
2349
2350 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2351
2352         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2353         ptrace call to get the ieee_instruction_pointer from the kernel.
2354         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2355         ptrace call to set the ieee_instructtion_pointer.
2356         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2357         Add comment that ieee_instruction_pointer is always 0.
2358
2359 2008-03-09  Andreas Jaeger  <aj@suse.de>
2360
2361         [BZ #5857]
2362         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2363         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2364         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2365
2366         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2367         (rint_test): Likewise.
2368
2369 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
2370
2371         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2372         call.
2373         (__nisfind_server): Similar for open readColdStartFile call.
2374         Patch partially by Jim Meyering.
2375         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2376         around internal_setent call.
2377
2378         * po/vi.po: New Vietnamese translation.
2379
2380         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2381         ADJ_OFFSET_SS_READ.
2382
2383         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2384         remove CLONE_STOPPED.
2385
2386 2008-02-10  Jim Meyering  <meyering@redhat.com>
2387
2388         Remove useless "if" before "free":
2389         * elf/ldconfig.c (parse_conf_include): Likewise.
2390         * gmon/gmon.c (weak_alias): Likewise.
2391         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2392         * inet/rcmd.c (__validuser2_sa): Likewise.
2393         * intl/bindtextdom.c (set_binding_values): Likewise.
2394         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2395         * libio/genops.c (save_for_backup): Likewise.
2396         * libio/wgenops.c (save_for_wbackup): Likewise.
2397         * locale/programs/ld-collate.c (collate_read): Likewise.
2398         * locale/programs/linereader.c (get_string): Likewise.
2399         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2400         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2401         * resolv/res_debug.c (do_section): Likewise.
2402         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2403         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2404         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2405         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2406         * time/tzset.c (tzset_internal): Likewise.
2407
2408 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2409
2410         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2411         of ASSEMBLER.
2412
2413 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
2414
2415         [BZ #5903]
2416         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2417         not stream for output file.  Open output file here.
2418         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2419         and output file name.
2420         (process_fd): Likewise.
2421         (process_file): Likewise.
2422         (main): Adjust callers of changed functions.
2423         * iconv/iconv_prog.h: Adjust prototype.
2424
2425 2008-03-09  Andreas Jaeger  <aj@suse.de>
2426
2427         [BZ #5753]
2428         * sysdeps/ia64/ieee754.h: Use protected namespace
2429         __BIG_ENDIAN/__LITTLE_ENDIAN.
2430         * sysdeps/ieee754/ieee754.h: Likewise.
2431         Patch by Aurelien Jarno <aurelien@aurel32.net>.
2432
2433 2008-03-08  Roland McGrath  <roland@frob.com>
2434
2435         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2436         ignore a signal that came from a machine exception, treat it as a
2437         fatal core-dump signal instead.
2438         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2439
2440         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2441         Clear DF bit in thread state's eflags.
2442         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2443
2444 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
2445
2446         [BZ #5774]
2447         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
2448         of NAN(...) sequence.
2449         * stdlib/Makefile (tests): Add tst-strtod6.
2450         * stdlib/tst-strtod6.c: New file.
2451
2452         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2453
2454         [BZ #5762]
2455         * posix/getopt.c (_getopt_internal_r): Clarify error message by
2456         putting offending option character in quotes.  Clean up error
2457         messages.
2458         * po/be.po: Adjust msgstr in translation file.
2459         * po/bg.po: Likewise.
2460         * po/ca.po: Likewise.
2461         * po/cs.po: Likewise.
2462         * po/da.po: Likewise.
2463         * po/de.po: Likewise.
2464         * po/es.po: Likewise.
2465         * po/fr.po: Likewise.
2466         * po/hr.po: Likewise.
2467         * po/ko.po: Likewise.
2468         * po/nl.po: Likewise.
2469         * po/rw.po: Likewise.
2470         * po/sk.po: Likewise.
2471         * po/sv.po: Likewise.
2472         * po/tr.po: Likewise.
2473         * po/zh_CN.po: Likewise.
2474         * po/zh_TW.po: Likewise.
2475
2476         [BZ #5760]
2477         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2478         Patch by Roland Bless <roland@bless.de>.
2479
2480         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2481         .o file.
2482         * elf/Makefile (routines): Add dl-sysdep.
2483         (elide-routines.os): Likewise.
2484
2485 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
2486
2487         [BZ #5786]
2488         * elf/dl-sysdep.c: Undefine ROUND after use.
2489         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2490         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2491         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2492         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2493         to ...
2494         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2495         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2496         if necessary.
2497         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2498
2499         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2500         _dl_tls_get_addr_soft element.
2501         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2502         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2503         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2504         GLRO.
2505         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2506         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2507         of internal_function.
2508
2509         * stdlib/Makefile (aux): Add tens_in_limb.
2510         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2511         * stdlib/tens_in_limb.c: ...here.  New file.
2512
2513         [BZ #5778]
2514         * sysdeps/unix/sysv/linux/pathconf.h: Declare
2515         __statfs_chown_restricted.
2516         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2517         for _PC_CHOWN_RESTRICTED.
2518         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2519         Implement __statfs_chown_restricted.
2520         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2521         _POSIX_CHOWN_RESTRICTED value to zero.
2522         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2523         defined to zero.
2524
2525         * sysdeps/x86_64/rtld-memset.c: New file.
2526
2527 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
2528
2529         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2530
2531         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2532         Barcelona machine.  Make default fall through branch of
2533         __x86_64_preferred_memory_instruction check as the integer code path.
2534
2535 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2536
2537         * sysdeps/x86_64/cacheinfo.c
2538         (__x86_64_preferred_memory_instruction): New variable.
2539         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2540
2541         * sysdeps/x86_64/memset.S: Rewrite.
2542
2543 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
2544
2545         * include/stdio.h (__asprintf_chk, __dprintf_chk,
2546         __obstack_printf_chk): New prototypes.
2547         (__vasprintf_chk, __vdprintf_chk,
2548         __obstack_vprintf_chk): Likewise.
2549         Add libc_hidden_proto.
2550         * libio/obprintf.c
2551         (_IO_obstack_jumps): No longer static, add attribute_hidden.
2552         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2553         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2554         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2555         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2556         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2557         __obstack_vprintf_chk): New prototypes.
2558         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2559         obstack_vprintf): New inlines.
2560         * debug/dprintf_chk.c: New file.
2561         * debug/vdprintf_chk.c: New file.
2562         * debug/asprintf_chk.c: New file.
2563         * debug/vasprintf_chk.c: New file.
2564         * debug/obprintf_chk.c: New file.
2565         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2566         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2567         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2568         @@GLIBC_2.8.
2569         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2570         vdprintf_chk and obprintf_chk, set CFLAGS for them.
2571         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2572         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2573         libc_hidden_proto.
2574         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2575         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2576         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2577         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2578         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2579         @@GLIBC_2.8.
2580         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2581         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2582         obstack_vprintf_chk.
2583         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2584         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2585         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2586         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2587         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2588         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2589
2590 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
2591
2592         [BZ #5779]
2593         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2594         Patch by Roy Marples <roy@marples.name>.
2595
2596         [BZ #5736]
2597         * malloc/malloc.c: Fix typo in comment.
2598
2599         [BZ #5627]
2600         * locale/iso-639.def: Add Shuswap.
2601
2602 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
2603
2604         [BZ #5790]
2605         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2606         overwrite *h_errnop/*errnop values from getanswer_r in case of
2607         failure.
2608
2609 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
2610
2611         [BZ #5818]
2612         * nscd/connections.c (dbs): Add initializers for .suggested_module.
2613         (verify_persistent_db): Remove one unnecessary test and add a new one
2614         for bad configuration.
2615         (nscd_init): Improve error reported when persistent database cannot
2616         be reused.
2617         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
2618         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
2619         .suggested_module and .max_db_size and case config file says the
2620         values are zero.
2621         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
2622
2623         [BZ #5854]
2624         * nis/ypclnt.c (yp_order): Fix handling of return value of
2625         do_ypcall_tr call.
2626         Patch by Jeff Moyer <jmoyer@redhat.com>.
2627
2628         * po/fr.po: Update from translation team.
2629
2630 2008-02-22  Andreas Jaeger  <aj@suse.de>,
2631             Carlos O'Donell <carlos@systemhalted.org>
2632
2633         [BZ #5012]
2634         * FAQ.in: Describe why glibc needs to be compiled with
2635         optimization.
2636
2637 2008-02-19  Roland McGrath  <roland@redhat.com>
2638
2639         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
2640
2641 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
2642
2643         [BZ #5737]
2644         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
2645         __USE_MISC is defined.
2646
2647 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
2648
2649         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2650         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2651         sys/timerfd.h.
2652         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2653         timerfd_gettime, timerfd_settime.
2654         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2655         timerfd_gettime, timerfd_settime for GLIBC_2.8.
2656
2657 2008-02-08  Roland McGrath  <roland@redhat.com>
2658
2659         * elf/elf.h (NT_PPC_SPE): New macro.
2660
2661 2008-02-06  Roland McGrath  <roland@redhat.com>
2662
2663         * Makerules ($(common-objpfx)sysd-rules):
2664         Depend on $(sysdep-makeconfigs).
2665
2666 2008-01-31  Roland McGrath  <roland@redhat.com>
2667
2668         [BZ #5442]
2669         * configure.in: Use -print-file-name if it yields a directory,
2670         for each of include and include-fixed.
2671         * configure: Regenerated.
2672
2673         * Makeconfig (sysd-rules-targets): New variable.
2674         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2675         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2676
2677 2008-01-30  Roland McGrath  <roland@redhat.com>
2678
2679         * manual/libc.texinfo: Update back-cover text.
2680
2681         * elf/elf.h (NT_386_TLS): New macro.
2682
2683 2008-01-29  Roland McGrath  <roland@redhat.com>
2684
2685         * Makeconfig (sysd-rules-patterns): New variable.
2686         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
2687         (check-inhibit-asm): New canned sequence, replaces ...
2688         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
2689         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
2690         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
2691         (CFLAGS-rtld): Variable removed.
2692
2693 2008-01-24  Roland McGrath  <roland@redhat.com>
2694
2695         * configure.in: Let configure fragments set base_os.
2696         * configure: Regenerated.
2697
2698 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
2699
2700         * po/ko.po: Update from translation team.
2701
2702 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
2703
2704         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
2705
2706 2008-01-12  Andreas Jaeger  <aj@suse.de>
2707
2708         [BZ #5040]
2709         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
2710         Add EPOLLRDHUP.
2711
2712 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2713
2714         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
2715         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
2716         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
2717
2718 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
2719
2720         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
2721         * elf/dl-close.c (_dl_close): Check for it.
2722         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
2723         (_dl_allocate_static_tls): Likewise.
2724         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2725         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
2726         to it.
2727         * elf/tst-tls16.c: New file.
2728         * elf/tst-tlsmod16a.c: New file.
2729         * elf/tst-tlsmod16b.c: New file.
2730         * elf/Makefile: Add rules to build and run tst-tls16.
2731
2732 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
2733
2734         [BZ #5628]
2735         * bits/shm.h: Fix comment describing shmid_ds.
2736         * sysdeps/gnu/bits/shm.h: Likewise.
2737         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2738         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2739         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2740         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2741         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2742         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2743         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2744         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2745         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
2746
2747         [BZ #5607]
2748         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
2749         prototypes.
2750         * conform/data/limits.h-data: Adjust limits changed in v6 and add
2751         additional suffixes.
2752         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
2753         Add optional functions mq_timedreceive and mq_timedsend.
2754         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
2755         * conform/data/pthread.h-data: Fix prototype of
2756         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
2757         * conform/data/semaphore.h-data: Allow time.h definitions.
2758         * conform/data/signal.h-data: Likewise.
2759         * conform/data/stdio.h-data: getw and putw are not required in v6.
2760         * conform/data/stdlib.h-data: Change setstate prototype.
2761         * conform/data/string.h-data: Fix strerror_r prototype.
2762         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
2763         * conform/data/unistd.h-data: pthread_atfork not required in v6.
2764         Fix readlink prototype.
2765         * conform/data/netinet/in.h-data: Add const to in6addr_any and
2766         in6addr_loopback.
2767         * inet/netinet/in.h: Cleanup namespace.
2768         * posix/regex.h: Likewise.
2769         * resolv/netdb.h: Likewise.
2770         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
2771         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2772         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2773         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
2774         of names of in in6_addr.
2775         (default_precedence): Likewise.
2776         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
2777         NULL definition.
2778
2779 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
2780
2781         * conform/data/fmtmsg.h-data: Add missing allows.
2782         * conform/data/ftw.h-data: Likewise.
2783         * conform/data/inttypes.h-data: Likewise.
2784         * conform/data/math.h-data: Likewise.
2785         * conform/data/signal.h-data: Likewise.
2786         * conform/data/net/if.h-data: Likewise.
2787         * conform/data/netinet/in.h-data: Likewise.
2788         * conform/data/sys/socket.h-data: Likewise.
2789
2790         [BZ #5614]
2791         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
2792         (__strtok_r): Simplify.
2793         * string/tester.c (test_strtok_r): Add test case for futile search
2794         with single-character seach string.
2795
2796 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
2797
2798         * po/ko.po: Update from translation team.
2799
2800 2008-01-11  Andreas Jaeger  <aj@suse.de>
2801
2802         [BZ #5600]
2803         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
2804         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
2805         kernel header.
2806
2807 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
2808
2809         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
2810         native interface lookup in all the relevant places.
2811
2812 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
2813             Ulrich Drepper  <drepper@redhat.com>
2814
2815         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
2816         field.  Use sockaddr_in6 for source_addr.
2817         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
2818         (match_prefix): Likewise.
2819         (get_label): Likewise.
2820         (get_precedence): Likewise.
2821         (rfc3484_sort): Change to use indirect access to results array.
2822         Adjust to use of sockaddr_in6.  Replace service_order test with
2823         simple index comparison.
2824         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
2825         service_order field.  Adjust qsort_t calls.  Access sorted result
2826         array indirectly through order array.
2827         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
2828         * posix/tst-rfc3484-2.c: Likewise.
2829         * posix/tst-rfc3484-3.c: Likewise.
2830
2831 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
2832
2833         [BZ #5541]
2834         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
2835         pollfd structures.
2836         Patch by André Cruz.
2837
2838         [BZ #5545]
2839         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
2840         (clnt_spcreateerror): Likewise.
2841
2842         [BZ #5553]
2843         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
2844         (public_mEMALIGn): Likewise.
2845         Patch mostly by Daniel Jacobowitz.
2846
2847 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
2848
2849         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
2850         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
2851         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
2852         * stdlib/tst-makecontext2.c: New test.
2853
2854 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
2855
2856         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
2857         defined.
2858         (REINIT_PARAMS): Likewise.  Undefine before end of file.
2859         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
2860         transliteration hooks and REINIT_PARAMS afterwards.
2861         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
2862         status.
2863         (REINIT_PARAMS): Define.
2864         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
2865         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
2866         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
2867         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
2868         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
2869         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
2870         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
2871         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
2872         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
2873         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
2874         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
2875         * iconvdata/tst-iconv7.c: New test.
2876
2877 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
2878
2879         * libio/stdio.h (vscanf): Fix definition for loser compilers.
2880
2881 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
2882
2883         [BZ #5112]
2884         * nscd/connections.c (restart): Fix condition.
2885
2886 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
2887
2888         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
2889         __ctype_toupper_loc): Add __THROW.
2890
2891 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
2892
2893         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
2894         recognition of interface family.
2895
2896         * posix/getconf.c: Update copyright year.
2897         * nss/getent.c: Likewise.
2898         * iconv/iconvconfig.c: Likewise.
2899         * iconv/iconv_prog.c: Likewise.
2900         * elf/ldconfig.c: Likewise.
2901         * catgets/gencat.c: Likewise.
2902         * csu/version.c: Likewise.
2903         * elf/ldd.bash.in: Likewise.
2904         * elf/sprof.c (print_version): Likewise.
2905         * locale/programs/locale.c: Likewise.
2906         * locale/programs/localedef.c: Likewise.
2907         * nscd/nscd.c (print_version): Likewise.
2908         * debug/xtrace.sh: Likewise.
2909         * malloc/memusage.sh: Likewise.
2910         * malloc/mtrace.pl: Likewise.
2911         * debug/catchsegv.sh: Likewise.
2912
2913 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
2914
2915         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
2916         second lookup.
2917
2918 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
2919
2920         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
2921         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2922
2923 2007-12-17  Roland McGrath  <roland@redhat.com>
2924
2925         * inet/ether_line.c (ether_line): Remove unused variable.
2926
2927 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2928
2929         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
2930         and winp.
2931         * login/openpty.c (openpty): Likewise.
2932         * login/pty.h (openpty, forkpty): Likewise.
2933         * manual/terminal.texi (openpty, forkpty): Likewise.
2934
2935 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
2936
2937         * malloc/malloc.c (public_cALLOc): For arenas other than
2938         main_arena, count all bytes inside the mprotect_size range of the
2939         heap as uninitialized.
2940
2941 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
2942
2943         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
2944         executable stacks.
2945
2946         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
2947         mTRIm for all of them.
2948         (mTRIm): Additionally iterate over all free blocks and use madvise
2949         to free memory for all those blocks which contain at least one
2950         memory page.
2951         * malloc/tst-trim1.c: New file.
2952         * malloc/Makefile (tests): Add tst-trim1.
2953
2954         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
2955
2956 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
2957
2958         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2959         First cast argument to long
2960         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
2961         Return long.
2962         (__vdso_clock_gettime): Likewise.
2963         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
2964         return long.
2965
2966 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
2967
2968         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
2969         * locale/nl_langinfo_l.c: Real implementation, copied from
2970         nl_langinfo.c.
2971         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
2972
2973 2007-12-01  Jim Meyering  <meyering@redhat.com>
2974
2975         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2976         that would inhibit utf8-optimization of a regexp containing line-
2977         or buffer-anchors, e.g., `^', `$'.
2978
2979 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
2980
2981         * time/bug-getdate1.c (do_test): Don't use century values which
2982         aren't valid on 32-bit systems.
2983
2984 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
2985
2986         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
2987         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
2988         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
2989         __strcat_g, __strncat_g): Add __asm__.
2990
2991 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
2992
2993         [BZ #5477]
2994         * io/fchmodat.c: Fix typo in stub_warning use.
2995         Patch by Petr Salinger.
2996
2997 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
2998
2999         * iconvdata/hp-thai8.c: New file.
3000         * iconvdata/Makefile: Add rules for hp-thai8.c.
3001         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
3002         * iconvdata/gconv-modules: Likewise.
3003
3004         [BZ #5464]
3005         * iconvdata/hp-greek8.c: New file.
3006         * iconvdata/Makefile: Add rules for hp-greek8.c.
3007         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
3008         * iconvdata/gconv-modules: Likewise.
3009
3010         [BZ #5463]
3011         * iconvdata/hp-turkish8.c: New file.
3012         * iconvdata/Makefile: Add rules for hp-turkish8.c.
3013         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
3014         * iconvdata/gconv-modules: Likewise.
3015
3016         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
3017         (shrink_heap): ... this new function.
3018         (heap_trim): Call shrink_heap instead of grow_heap.
3019
3020         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
3021         case don't call alloc_perturb.
3022
3023 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
3024
3025         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
3026         possible.
3027         * sysdeps/unix/sysv/linux/kernel-features.h
3028         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
3029         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
3030
3031 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
3032
3033         [BZ #5424]
3034         * stdio-common/vfprintf.c: Do not overflow when adding to done.
3035         * stdio-common/Makefile (tests): Add bug22.
3036         * stdio-common/bug22.c: New file.
3037
3038         [BZ #5451]
3039         * time/getdate.c: Fix filling in default values.
3040         * time/bug-getdate1.c: New file.
3041         * time/Makefile: Add rules to build and run bug-getdate1.
3042
3043         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
3044         * iconvdata/ebcdic-es.c: Likewise.
3045         * iconvdata/ebcdic-es-a.c: Likewise.
3046         * iconvdata/ebcdic-uk.c: Likewise.
3047         * iconvdata/iso8859-16.c: Likewise.
3048         * iconvdata/viscii.c: Likewise.
3049         * iconvdata/iso8859-9e.c: Likewise.
3050         * iconvdata/Makefile: Adjust appropriately.
3051
3052         [BZ #5428]
3053         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
3054         __need_wint_t.
3055
3056 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
3057
3058         [BZ #5427]
3059         * iconvdata/hp-roman9.c: New file.
3060         * iconvdata/Makefile: Add rules for hp-roman9.c.
3061         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
3062         * iconvdata/gconv-modules: Likewise.
3063
3064         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
3065         * iconvdata/Makefile: Adjust appropriately.
3066
3067         [BZ #5441]
3068         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
3069         structure, it's allocated with alloca.
3070         * stdio-common/Makefile (tests): Add bug21.
3071         * stdio-common/bug21.c: New file.
3072
3073 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
3074
3075         [BZ #5452]
3076         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
3077         keyword for gcc's braced-groups.
3078
3079 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
3080
3081         [BZ #5454]
3082         * inet/ether_line.c: Strip hostname of whitespaces.
3083         * inet/Makefile (tests): Add tst-ether_line.
3084         * inet/tst-ether_line.c: New file.
3085
3086 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
3087
3088         [BZ #5439]
3089         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
3090
3091         [BZ #5435]
3092         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
3093
3094         * stdlib/tst-setcontext.c: Catch the case where the links gets
3095         messed up and we do not reach main again.
3096
3097         * po/ca.po: Update from translation team.
3098
3099 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
3100
3101         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
3102         * posix/regex.h (REG_ENOSYS): Likewise.
3103         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
3104
3105 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
3106
3107         * nscd/nscd.h (MAX_STACK_USE): Define.
3108         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
3109         (gc): Initialize stack_used based on allocation in prune_cache.
3110         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
3111         Clear array before use.
3112
3113         * nscd/aicache.c (addhstaiX): Update statistics counter in case
3114         memory allocation failed.
3115         * nscd/hstcache.c (cache_addhst): Likewise.
3116         * nscd/grpcache.c (cache_addgr): Likewise.
3117         * nscd/servicescache.c (cache_addserv): Likewise.
3118         * nscd/pwdcache.c (cache_addpw): Likewise.
3119         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3120
3121 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
3122
3123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
3124         and creat system calls.
3125
3126         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
3127
3128 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3129
3130         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
3131         Add netiucv/iucv.h.
3132         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
3133         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
3134         protocol.
3135         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
3136         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
3137         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
3138
3139 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3140
3141         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
3142         strncat): Define as macros to avoid compile errors.
3143
3144         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
3145         creat entries.
3146
3147 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
3148
3149         [BZ #5382]
3150         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
3151         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
3152         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
3153         overflow it.
3154         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3155
3156         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
3157         Return zero in case the thread library is not NPTL.
3158
3159         [BZ #5375]
3160         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
3161         initializing interface list.
3162
3163         [BZ #5378]
3164         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
3165         use result of nss_getgrgid_r if nothing was found.  For other
3166         error return with a failure.
3167         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3168
3169         * locale/programs/ld-collate.c (collate_read): Fix loop to match
3170         macro name.
3171
3172 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3173
3174         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
3175         (get_scope): For IPv4 scope, use scopes table.
3176         (fini): Free scopes table if necessary.
3177         (free_scopelist): New function.
3178         (scopecmp): New function.
3179         (gaiconf_init): Also handle scopev4 entries.
3180         * posix/tst-rfc3484.c (do_test): Initialize scopes.
3181         * posix/tst-rfc3484-2.c (do_test): Likewise.
3182         * posix/gai.conf: Document scopev4 defaults.
3183         * posix/Makefile (tests): Add tst-rfc3484-3.
3184         * posix/tst-rfc3484-3.c: New file.
3185
3186         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
3187         Teredo tunnels.
3188         * posix/gai.conf: Update for current default tables.
3189
3190 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3191
3192         * po/tr.po: Update from translation team.
3193
3194 2007-11-18  Roland McGrath  <roland@frob.com>
3195
3196         * manual/arith.texi (Remainder Functions): Spelling fix.
3197         From Shaun Silk <genix@mysoul.com.au>.
3198
3199         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
3200
3201 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
3202
3203         * po/zh_CN.po: Update from translation team.
3204
3205         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3206         Add sys/signalfd.h and sys/eventfd.h.
3207
3208 2007-11-15  Bruno Haible  <bruno@clisp.org>
3209
3210         [BZ #5346]
3211         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
3212         union.
3213         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
3214         (DCIGETTEXT): Change the allocation of the 'search' variable so that
3215         it needs only fixed stack space. Delay the initialization of
3216         msgid_len until it is needed.
3217
3218 2007-11-15  Andreas Jaeger  <aj@suse.de>
3219
3220         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
3221         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
3222
3223 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
3224
3225         * po/ko.po: Update from translation team.
3226
3227 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
3228
3229         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
3230         significantly.  The device type is also part of the ifinfomsg data.
3231
3232         * po/sv.po: Update from translation team.
3233         * po/nl.po: Likewise.
3234
3235         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
3236         to wake up in 24 hours.
3237
3238         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
3239
3240 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
3241
3242         * po/cs.po: Update from translation team.
3243         * po/pl.po: Likewise.
3244
3245         * include/ifaddrs.h: Remove in6ai_temporary.
3246         (struct in6addrinfo): Add index element.
3247         Declare __check_native.
3248         * inet/Makefile (aux): Add check_native.
3249         * sysdeps/unix/sysv/linux/check_native.c: New file.
3250         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
3251         IFA_F_TEMPORARY.  Pass back ifa_index.
3252         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3253         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
3254         call __check_native if necessary.
3255         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
3256         to sort addresses.  Pass information about the results.
3257         * posix/tst-rfc3484.c: Adjust for addition of index field and change
3258         of rfc3484_sort interface.
3259         * posix/tst-rfc3484-2.c: Likewise.
3260
3261         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
3262         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3263         for _quicksort.
3264         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3265         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
3266         on as third parameter to compare function and _quicksort.
3267         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3268         to the compare function.
3269         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3270         * Versions.def: Add GLIBC_2.8 for libc.
3271
3272         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3273         * posix/tst-rfc3484-2.c: Likewise.
3274
3275         * include/kernel-features.h: Moved to...
3276         * sysdeps/mach/hurd/kernel-features.h: ...here.
3277
3278 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3279
3280         * sysdeps/i386/i586/memcpy_chk.S: New file.
3281         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3282         * sysdeps/i386/i586/memset_chk.S: Likewise.
3283
3284 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
3285
3286         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3287         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3288         list of interfaces.  Also store prefix length.
3289         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3290         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3291         prefix if source and destination address are in the same subnet.
3292         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
3293         Always look for matching record in in6ai list.
3294         Correct source_addr_len value for IPv6->IPv4 converted records.
3295
3296 2007-11-11  Roland McGrath  <roland@frob.com>
3297
3298         * include/kernel-features.h: New file.
3299
3300 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
3301
3302         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3303         complications for 64-bit platforms.
3304
3305         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3306         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
3307         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3308         open64_2.
3309         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3310         entries.
3311         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3312         * sysdeps/wordsize-64/alphasort.c: New file.
3313         * sysdeps/wordsize-64/alphasort64.c: New file.
3314         * sysdeps/wordsize-64/fseeko.c: New file.
3315         * sysdeps/wordsize-64/fseeko64.c: New file.
3316         * sysdeps/wordsize-64/ftello.c: New file.
3317         * sysdeps/wordsize-64/ftello64.c: New file.
3318         * sysdeps/wordsize-64/ftw.c: New file.
3319         * sysdeps/wordsize-64/ftw64.c: New file.
3320         * sysdeps/wordsize-64/iofgetpos.c: New file.
3321         * sysdeps/wordsize-64/iofgetpos64.c: New file.
3322         * sysdeps/wordsize-64/iofopen.c: New file.
3323         * sysdeps/wordsize-64/iofopen64.c: New file.
3324         * sysdeps/wordsize-64/iofsetpos.c: New file.
3325         * sysdeps/wordsize-64/iofsetpos64.c: New file.
3326         * sysdeps/wordsize-64/lockf.c: New file.
3327         * sysdeps/wordsize-64/lockf64.c: New file.
3328         * sysdeps/wordsize-64/mkostemp.c: New file.
3329         * sysdeps/wordsize-64/mkostemp64.c: New file.
3330         * sysdeps/wordsize-64/mkstemp.c: New file.
3331         * sysdeps/wordsize-64/mkstemp64.c: New file.
3332         * sysdeps/wordsize-64/scandir.c: New file.
3333         * sysdeps/wordsize-64/scandir64.c: New file.
3334         * sysdeps/wordsize-64/tmpfile.c: New file.
3335         * sysdeps/wordsize-64/tmpfile64.c: New file.
3336         * sysdeps/wordsize-64/versionsort.c: New file.
3337         * sysdeps/wordsize-64/versionsort64.c: New file.
3338         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3339         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3340         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3341         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3342         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3343         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3344         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3345         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3346         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3347         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3348         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3349         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3350
3351         * crypt/sha256-crypt.c: Fix a comment.
3352         * crypt/sha512-crypt.c: Likewise.
3353
3354 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
3355
3356         * sysdeps/x86_64/memset.S: Add sfence after movnti.
3357
3358 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
3359
3360         [BZ #5277]
3361         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3362         because output buffer is too small break, don't loop.
3363         * iconvdata/Makefile (tests): Add bug-iconv6.
3364         * iconvdata/bug-iconv6.c: New file.
3365
3366 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
3367
3368         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3369         with size_t type.
3370         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3371         size_t.  Add casts where needed.
3372
3373         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3374         old headers, don't call avc_has_perm if we don't have the
3375         permission information.
3376
3377 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
3378
3379         * elf/rtld.c (dl_main): Use the page size to find the map start.
3380
3381 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
3382
3383         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3384         Patch by Szymon Siwek <sls@poczta.wp.pl>.
3385
3386         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3387         when the lookup call failed.
3388
3389         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3390         Add prune_cond and wakeup_time.
3391         (CACHE_PRUNE_INTERNAL): Define.
3392         Update declarations of prune_cache and setup_thread.
3393         * nscd/connections.c (dbs): Update initializers.
3394         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3395         (nscd_init): Default number of threads is now 4.
3396         (invalidate_cache): Take lock before calling prune_cache.
3397         (handle_request): If SELinux forbids the request, say so.
3398         (readylist_cond): Use static initializer.
3399         (nscd_run_prune): New function.  Used only by pruning threads.
3400         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
3401         here.
3402         (fd_ready): Update nscd_run reference.
3403         (start_threads): No need to initialize readylist_cond.
3404         Start pruning threads separately.
3405         * nscd/nscd_setup_thread.c: Change return value type to int and always
3406         return 0.
3407         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3408         to int and return nonzero value if we can use the TID address hack.
3409         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3410         the database is later than the new entry's timeout, update the
3411         wakeup time and wake the cleanup thread.
3412         (prune_cache): Return seconds the next entry in the database is still
3413         valid.  Remove locking for pruning here.
3414         * nscd/nscd.conf: Document default number of threads.
3415
3416 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
3417
3418         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3419         stack is properly aligned for the target function.
3420         Correct unwind info.
3421
3422         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3423         when using auditing libraries.
3424
3425 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
3426
3427         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3428         _nss_dns_getnetbyaddr2_r.
3429         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
3430         extra parameter to getanswer_r.
3431         (_nss_dns_getnetbyaddr_r): Now a wrapper around
3432         _nss_dns_getnetbyaddr2_r.
3433
3434         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3435         gethstbynm3_r.
3436         * nscd/gethstbynm2_r.c: Remove.
3437         * nscd/gethstbynm3_r.c: New file.
3438         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3439         __gethostbyaddr_r.
3440         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
3441         __gethostbyaddr_r compatibility wrapper.
3442         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
3443         determining timeout of entry.
3444         (lookup): Take new parameter and pass it to __gethostbyname3_r and
3445         __gethostbyaddr2_r.
3446         (addhstbyX): Pass reference to variable for TTL to lookup and
3447         cache_addhst.
3448         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3449         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3450         and __nss_next2.  Remove __nss_services_lookup.
3451         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
3452         Add compat wrapper.
3453         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3454         __nss_next2.
3455         * nss/getXXent_r.c: Likewise.
3456         * nss/getnssent_r.c: Likewise.
3457         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
3458         does not exist in module, try the optional second name.
3459         (__nss_next2): New function.
3460         (__nss_next): Now wrapper around __nss_next2.
3461         * nss/nsswitch.h: Adjust __nss_lookup prototype.
3462         Declare __nss_next2.
3463         Adjust definition of db_lookup_function type.
3464         * nss/service-lookup.c: Define NO_COMPAT.
3465         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3466         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3467         * inet/ether_ntoh.c: Likewise.
3468         * sunrpc/netname.c: Likewise.
3469         * sunrpc/publickey.c: Likewise.
3470         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
3471         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3472         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3473         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3474         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3475
3476         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3477
3478         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
3479
3480 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
3481
3482         [BZ #5204]
3483         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3484         * crypt/sha512c-test.c: Likewise.
3485
3486         [BZ #5225]
3487         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3488         to keep track of end of %[ format string element.
3489         * stdio-common/Makefile (tests): Add bug20.
3490         * stdio-common/bug20.c: New file.
3491
3492         [BZ #5222]
3493         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3494         path elements in counting mode.
3495
3496 2007-10-27  Andreas Jaeger  <aj@suse.de>
3497
3498         [BZ #5040]
3499         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3500
3501         [BZ #3112]
3502         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3503         (__cleanup): Free shared library when exiting.
3504         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3505         (__cleanup): Free shared library when exiting.
3506
3507 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3508
3509         [BZ #2549]
3510         * math/libm-test.inc (check_float_internal): Support
3511         denormalized return.
3512
3513 2007-10-23  Andreas Jaeger  <aj@suse.de>
3514
3515         [BZ #5208]
3516         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3517         __LONG_LONG_PAIR to handle little endian byte order.
3518         Suggested by abhishekrai@google.com
3519
3520 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
3521
3522         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3523
3524 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
3525
3526         * nscd/cache.c (prune_cache): Move test for modified file outside
3527         of locking.
3528
3529 2007-10-21  Andreas Jaeger  <aj@suse.de>
3530
3531         * manual/texinfo.tex: Update to latest version.
3532
3533         * manual/sysinfo.texi (System Parameters): Fix Formatting.
3534
3535         * manual/arith.texi (Status bit operations): Fix formatting.
3536
3537         * manual/errno.texi (Error Messages): Fix formatting.
3538
3539         * manual/sysinfo.texi (System Parameters): Fix formatting.
3540
3541         * manual/libc.texinfo: Update VERSION and UPDATED.
3542
3543 2007-10-19  Roland McGrath  <roland@redhat.com>
3544
3545         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3546
3547 2007-10-06  David S. Miller  <davem@davemloft.net>
3548
3549         * configure.in: Add sparcv9v2 and sparc64v2.
3550         * scripts/config.sub: Likewise.
3551         * configure: Regenerate.
3552         * elf/elf.h (HWCAP_SPARC_N2): New.
3553         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3554         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3555         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3556         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3557         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3558         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3559         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3560
3561 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
3562
3563         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3564         even if the poll result indicates there is data to read.
3565         Patch by Jeff Moyer <jmoyer@redhat.com>.
3566
3567 2007-10-18  Roland McGrath  <roland@redhat.com>
3568
3569         * elf/elf.h (NT_PPC_VMX): New macro.
3570
3571 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3572
3573         * version.h (VERSION): Set to 2.7.90.
3574
3575 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3576
3577         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
3578         weak_alias.
3579
3580 2007-10-17  Roland McGrath  <roland@frob.com>
3581
3582         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3583         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3584
3585 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3586
3587         * version.h (VERSION): Bump to 2.7.
3588         * include/features.h (__GLIBC_MINOR__): Bump to 7.
3589
3590         [BZ #5186]
3591         * time/tzset.c (__tz_convert): Don't force testing for a change of
3592         TZ if not called from localtime.  But then also see whether the
3593         file changed, in case __use_tzfile is set.
3594
3595         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3596         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3597         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3598         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3599         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3600         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3601         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
3602         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3603
3604 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3605
3606         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3607         and admin selects to be able to replace the gai.conf file, lock
3608         data structures around the qsort call.
3609
3610 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3611
3612         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3613         new memset.
3614         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
3615         too high for the improvements.  Implement bzero unconditionally for
3616         use in libc.
3617
3618 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3619             Jakub Jelinek  <jakub@redhat.com>
3620
3621         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
3622         even when time_t is 32-bit.
3623         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
3624         timezone data read by __tzfile_default.  Ensure __tzname[0] is
3625         always set after the search.
3626
3627 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3628
3629         * time/tzfile.c (__tzfile_read): Help the compiler recognize
3630         unreachable code on 32-bit machines.
3631
3632 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3633
3634         [BZ #5184]
3635         * time/strftime_l.c: Include stdbool.h.
3636         (my_strftime): New wrapper, old function renamed to...
3637         (__strftime_internal): ... new function.  Add tzset_called
3638         argument, pass it down to recursive calls, don't call tzset ()
3639         if already true, set to true after call to tzset ().
3640
3641 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3642
3643         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
3644         into account when copying TZ string.
3645
3646 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3647
3648         * time/tzfile.c (__tzfile_compute): For use_last case set i to
3649         num_transition rather than num_transitions - 1.
3650
3651 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3652
3653         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3654         PIC indirect jump.
3655
3656         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3657         a local label rather than HIDDEN_JUMPTARGET.
3658
3659 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3660
3661         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3662         (init_cacheinfo): Initialize it.
3663         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3664         Always define bzero.
3665         Remove non-glibc code.
3666         * sysdeps/x86_64/bzero.S: Make an empty file.
3667
3668 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3669
3670         * sysdeps/x86_64/cacheinfo.c
3671         (__x86_64_preferred_memory_instruction): New.
3672         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3673
3674         * sysdeps/x86_64/memset.S: Rewrite.
3675
3676 2007-10-15  Roland McGrath  <roland@redhat.com>
3677
3678         * po/libc.pot: Regenerated.
3679
3680 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3681
3682         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
3683         pointers.
3684
3685         [BZ #3425]
3686         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
3687         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
3688         address record to T_A/T_AAAA requests.
3689
3690 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
3691
3692         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
3693
3694         * posix/glob.c: Add some branch prediction throughout.
3695
3696         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
3697         read from nscd.
3698
3699         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
3700         service_order.
3701         (rfc3484_sort): Make sure that even if qsort doesn't support
3702         stable sorting out sorting here is stable by comparing service_order.
3703         (getaddrinfo): Initialize service_order.
3704         * posix/tst-rfc3484.c (do_test): Adjust for addition of
3705         service_order field to sorting structure.
3706         * posix/tst-rfc3484-2.c (do_test): Likewise.
3707
3708         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
3709         * time/tzset.c (tzset_internal): Break TZ string parsing out into
3710         __tzset_parse_tz and updating of daylight, timezone, tzname into
3711         update_vars.
3712         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
3713         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
3714         happens in __tz_compute.
3715         * time/tzfile.c (__tzfile_read): Also read TZ string.
3716         (find_transition): Fold into __tzfile_compute.
3717         (__tzfile_compute): For times beyond the last transition try to
3718         use the TZ string.
3719         * timezone/tst-timezone.c: Information in daylight and tzname does
3720         change for Asia/Tokyo timezone with more concrete information.
3721         Remove the test.
3722
3723         * include/stdio.h: Add libc_hidden_proto for ftello.
3724         * libio/ftello.c: Add libc_hidden_def.
3725
3726         [BZ #1140]
3727         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
3728         on the specified time and not the last entries in the file.  Move
3729         code to determine tzname[] to...
3730         (find_transition): ...here.  Add ugly guess for times before the
3731         first transition.
3732
3733 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3734
3735         [BZ #3195]
3736         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
3737         no entry.
3738         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
3739         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3740         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3741         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3742
3743         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
3744         read mechanism when there are no group members and avoid no-op
3745         read syscall in this case.
3746
3747         [BZ #3242]
3748         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
3749         (__readall): If reading failed due to EAGAIN error wait a bit
3750         and possibly try again.
3751         (__readvall): Likewise.
3752
3753 2007-10-13  Bruno Haible  <bruno@clisp.org>
3754
3755         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
3756         when we cannot recode the message.
3757
3758 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3759
3760         [BZ #4359]
3761         * libio/__freading.c (__freading): Don't return true for
3762         write-only streams.  For read/write streams, check whether we
3763         performed a read operation already.
3764         * libio/Makefile (tests): Add tst-ext2.
3765         * libio/tst-ext2.c: New file.
3766
3767 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3768
3769         * locale/programs/repertoire.c (repertoire_read): Always free
3770         memory for repertoire file name [Coverity CID 270].
3771
3772         * elf/cache.c (save_aux_cache): Free memory allocated for
3773         temporary file name [Coverity CID 267].
3774
3775 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3776
3777         * misc/Makefile (headers): Add bits/error.h.
3778
3779 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3780
3781         * posix/fnmatch_loop.c: Take rule index returned as part of
3782         findidx return value into account when accessing weights.
3783         * posix/regcomp.c: Likewise.
3784         * posix/regexec.c: Likewise.
3785
3786         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
3787         (skip_to): Fix problems with parameter of elifdef/elifndef.
3788
3789 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
3790
3791         * iconv/gconv_simple.c: Add some branch prediction.
3792
3793 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3794
3795         * locale/programs/ld-collate.c (collate_read): If ignore_content
3796         and nowtok is tok_define, eat any tok_eol tokens.
3797
3798 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
3799
3800         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
3801         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
3802
3803         * inet/netinet/in.h: Don't include bits/socket.h.
3804         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
3805         macro.
3806         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3807
3808 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
3809
3810         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
3811         and tok_elifndef.
3812         * locale/programs/locfile-kw.gperf: Likewise.
3813         * locale/programs/ld-collate.c: Implement primitive preprocessor.
3814
3815 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
3816
3817         * stdio-common/printf-parse.h: Include string.h and wchar.h.
3818         (__find_specwc): Change into __extern_always_inline function.
3819         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
3820         (__parse_one_specmb): Remove ps argument.
3821         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
3822         Adjust __find_specmb and __parse_one_specmb callers.
3823         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
3824         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
3825         Removed.
3826         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
3827         caller.
3828
3829 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
3830
3831         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
3832         with some Pentium Ds.
3833
3834 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
3835
3836         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
3837         __read not read.
3838         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
3839         __write not write.
3840
3841 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
3842
3843         [BZ #181]
3844         * locale/C-time.c: Set week_1stday data to 19971201.
3845         * locale/programs/ld-time.c (time_finish): Default for
3846         first_workday is Monday.
3847
3848         [BZ #2633]
3849         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
3850
3851         [BZ #5103]
3852         * posix/glob.c (glob): Recognize patterns starting \/.
3853         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
3854         (main): Add test for pattern starting \/.
3855
3856         * misc/error.h: Use __const instead of const.
3857         * misc/bits/error.h: Likewise.
3858
3859 2007-10-07  Andreas Jaeger  <aj@suse.de>
3860
3861         * include/bits/error.h: New file.
3862
3863         * misc/bits/error.h (error_at_line): Fix prototype.
3864
3865 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
3866
3867         [BZ #3924]
3868         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
3869         more little bugs in creating the stack frame when pltexit has to
3870         be called.
3871
3872         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
3873         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
3874
3875         [BZ #4407]
3876         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
3877         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3878         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3879         * math/libm-test.inc: Add test for this case.
3880
3881         [BZ #5010]
3882         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
3883         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
3884         map service succeeded.
3885         (svc_is_mapped): New function.
3886         (svc_unregister): Use it before trying to unmap service.
3887
3888 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
3889
3890         * timezone/zic.c: Update from tzcode2007h.
3891
3892         [BZ #5063]
3893         * timezone/africa: Update from tzdata2007h.
3894         * timezone/antarctica: Likewise.
3895         * timezone/asia: Likewise.
3896         * timezone/australasia: Likewise.
3897         * timezone/europe: Likewise.
3898         * timezone/leapseconds: Likewise.
3899         * timezone/northamerica: Likewise.
3900         * timezone/southamerica: Likewise.
3901         * timzeone/zone.tab: Likewise.
3902
3903         [BZ #5104]
3904         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
3905
3906         [BZ #5113]
3907         * string/bits/string2.h (__strdup): Cast parameters to calloc to
3908         avoid warning with -Wconversion.
3909         (__strndup): Likewise.
3910         Half the patch by Christian Iseli <christian.iseli@licr.org>.
3911
3912         [BZ #5112]
3913         * nscd/connections.c (restart): Don't resync if database is
3914         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
3915
3916         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
3917         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
3918
3919         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
3920         evetnfd_read, eventfd_write.
3921         * sysdeps/unix/sysv/linux/eventfd.c: New file.
3922         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
3923         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
3924         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
3925         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
3926         eventfd_write for GLIBC_2.7.
3927
3928         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
3929         * sysdeps/unix/sysv/linux/signalfd.c: New file.
3930         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
3931         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
3932
3933 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
3934
3935         * stdlib/msort.c: Include stdint.h.
3936         (struct msort_param): New type.
3937         (msort_with_tmp): Use struct msort_param pointer for unchanging
3938         parameters.  Add optimized handling for several common sizes
3939         and indirect sorting mode.
3940         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
3941         sorting.
3942         Suggested by Belazougui Djamel .
3943
3944         * stdlib/Makefile (tests): Add tst-qsort2.
3945         * stdlib/tst-qsort2.c: New test.
3946
3947 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
3948
3949         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
3950         for dup2 in case another thread races with the current one.  Retry
3951         in this case.
3952
3953         * misc/error.h: Remove support for use outside of libc.  We have to
3954         include <features.h> now.  Include <bits/error.h> if possible.
3955         * misc/bits/error.h: New file.
3956
3957 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
3958
3959         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
3960         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
3961         __extern_always_inline functions unconditionally, drop macros.
3962
3963         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
3964         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
3965         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
3966
3967         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
3968         add __artificial__ attribute.
3969
3970 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
3971
3972         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
3973         backward to forward direction.
3974
3975         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
3976
3977         [BZ #645]
3978         * locale/programs/ld-collate.c (collate_finish): Compare against last
3979         used section which is known to have rules defined.
3980         (collate_read): After order_start, correctly record order of sections
3981         and queue sections up.
3982
3983 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
3984
3985         [BZ #5071]
3986         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
3987         the same number of pages.
3988         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
3989
3990         * locale/programs/ld-collate.c (collate_read): After initial copy
3991         statement, continue in state 0.
3992
3993         * include/stdio_ext.h (__fsetlocking): Define as macro.
3994
3995 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
3996
3997         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
3998         of section order.
3999
4000         * po/pt_BR.po: Fix typo.
4001
4002 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
4003
4004         * iconvdata/Makefile (modules): Add ISO8859-9E.
4005         (distribute): Add iso8859-9e.c.
4006         (gen-8bit-gap-modules): Add iso8859-9e.
4007         * iconvdata/iso8859-9e.c: New file.
4008         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
4009         * iconvdata/TESTS: Likewise.
4010         * iconvdata/tst-tables.sh: Likewise.
4011
4012         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4013
4014         * locale/iso-639.def: Add several new entries.
4015
4016 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
4017
4018         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
4019         void * pointers instead of struct link_map **.
4020         (_dl_scope_free): Change argument type to void *.
4021         * include/link.h (struct link_map): Change type of l_reldeps
4022         to struct link_map_reldeps, move l_reldepsact into that
4023         struct too.
4024         * elf/dl-deps.c: Include atomic.h.
4025         (_dl_map_object_deps): Only change l->l_initfini when it is
4026         fully populated, use _dl_scope_free for freeing it.  Optimize
4027         removal of libs from reldeps by using l_reserved flag, when
4028         some removal is needed, allocate a new list instead of
4029         reallocating and free the old with _dl_scope_free.  Adjust
4030         for l_reldeps and l_reldepsact changes.
4031         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
4032         searching in l_initfini and l_reldeps without holding dl_load_lock.
4033         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
4034         l_reldepsact changes.
4035         * elf/dl-close.c (_dl_close_worker): Likewise.
4036         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
4037
4038 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
4039
4040         * iconvdata/Makefile (modules): Add KOI8-RU.
4041         (distribute): Add koi8-ru.c.
4042         (gen-8bit-gap-modules): Add koi8-ru.
4043         * iconvdata/koi8-ru.c: New file.
4044         * iconvdata/gconv-modules: Add entries for KOI8-RU.
4045         * iconvdata/TESTS: Likewise.
4046         * iconvdata/tst-tables.sh: Likewise.
4047
4048         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4049
4050 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
4051
4052         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
4053         with __warning__/__error__ attributes.
4054         (__warnattr): Define.
4055         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
4056         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
4057         __warnattr.
4058         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
4059         of __*_chk if compile time detectable overflow is found.
4060         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
4061         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
4062         with __warnattr.
4063         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
4064         instead of __*_chk if compile time detectable overflow is found.
4065         (__gets_alias): Rename to...
4066         (__gets_warn): ... this.  Add __warnattr.
4067         (gets): Call __gets_warn instead of __gets_alias.
4068         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
4069         aliases with __warnattr.
4070         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
4071         time detectable overflow is found.
4072         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
4073         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
4074         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
4075         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
4076         __getdomainname_chk_warn): New aliases with __warnattr.
4077         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
4078         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
4079         __*_chk_warn instead of __*_chk if compile time detectable overflow
4080         is found.
4081         (__getgroups_chk): Rename argument to __listlen from listlen.
4082         (__getwd_alias): Rename to...
4083         (__getwd_warn): ... this.  Add __warnattr.
4084         (getwd): Call __getwd_warn instead of __getwd_alias.
4085         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
4086         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
4087         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
4088         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
4089         __wcsnrtombs_chk_warn): New aliases with __warnattr.
4090         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
4091         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
4092         compile time detectable overflow is found.
4093         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
4094         to use __*_chk or not.
4095         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
4096         in comparisons which function should be called and in __*_chk*
4097         arguments.  Call __*_chk_warn instead of __*_chk if compile time
4098         detectable overflow is found.
4099         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
4100         __*_chk argument.
4101         * debug/tst-chk1.c (do_test): Add a few more tests.
4102
4103 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
4104
4105         [BZ #5058]
4106         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
4107         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
4108         (_nl_unload_domain): Finalize conversions_lock.
4109         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
4110         handling table of known conversions.
4111
4112 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
4113
4114         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
4115         close_not_cancel_no_status instead of close.
4116
4117 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
4118
4119         [BZ #5028]
4120         * posix/regcomp.c (lookup_collation_sequence_value): Check that
4121         nrules != 0 for multibyte chars.
4122
4123 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
4124
4125         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
4126         Provide better error message in case the type is unknown.
4127
4128         [BZ #4963]
4129         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
4130         * string/stratcliff.c: Make usable to test wide char functions.
4131         * wcsmbs/wcsatcliff.c: New file.
4132         * wcsmbs/Makefiel (tests): Add wcsatcliff.
4133
4134         [BZ #4972]
4135         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
4136         (distribute): Add mac-centraleurope.c.
4137         (gen-8bit-gap-modules): Add mac-centraleurope.
4138         * iconvdata/mac-centraleurope.c: New file.
4139         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
4140         * iconvdata/TESTS: Likewise.
4141         * iconvdata/tst-tables.sh: Likewise.
4142
4143         [BZ #5043]
4144         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
4145
4146 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
4147
4148         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
4149         from __x86_64_core_cache_size_half.
4150         (init_cacheinfo): Compute shared cache size for AMD processors with
4151         shared L3 correctly.
4152         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
4153         name change.
4154         Patch in large parts by Evandro Menezes.
4155
4156 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
4157
4158         * elf/dl-lookup.c (add_dependency): Handle failing memory
4159         allocation for dependency list.  Remove unnecessary check.
4160
4161         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
4162         open/close when determining source addresses.
4163
4164         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
4165         sha512-crypt, and sha512.
4166         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
4167         (distribute): Add sha256.h and sha512.h.
4168         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
4169         and call the appropriate code.
4170         * crypt/sha256-crypt.c: New file.
4171         * crypt/sha256.c: New file.
4172         * crypt/sha256.h: New file.
4173         * crypt/sha256c-test.c: New file.
4174         * crypt/sha256test.c: New file.
4175         * crypt/sha512-crypt.c: New file.
4176         * crypt/sha512.c: New file.
4177         * crypt/sha512.h: New file.
4178         * crypt/sha512c-test.c: New file.
4179         * crypt/sha512test.c: New file.
4180
4181 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
4182
4183         * misc/bits/syslog.h (syslog): Remove extraneous argument from
4184         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
4185         __syslog_chk.
4186
4187 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
4188
4189         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
4190         %as in fscanf format strings.
4191
4192         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
4193         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4194         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
4195         Likewise.
4196         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
4197         Likewise.
4198
4199         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
4200         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
4201         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
4202         * elf/dl-sym.c (do_sym): Likewise.
4203         * include/link.h (struct link_map): Add l_serial field.
4204         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
4205         * elf/dl-lookup.c (add_dependency): Add flags argument.
4206         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
4207         flags, use THREAD_GSCOPE_RESET_FLAG before and
4208         THREAD_GSCOPE_SET_FLAG after
4209         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
4210         Don't dereference map until it has been found on some list.
4211         If map->l_serial changed, return -1.
4212
4213 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
4214
4215         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
4216         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
4217         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
4218         libc_hidden_proto.
4219         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
4220         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
4221         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
4222         add libc_hidden_proto.
4223         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4224         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4225         conformance requested.
4226         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
4227         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4228         conformance requested.
4229         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4230         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
4231         conformance requested.
4232         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
4233         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
4234         ISO C99 or POSIX conformance requested.
4235         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
4236         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
4237         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
4238         and __isoc99_vsscanf@@GLIBC_2.7.
4239         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
4240         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
4241         (tests): Add scanf14.
4242         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
4243         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
4244         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
4245         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
4246         CFLAGS-isoc99_scanf.c): Add $(exceptions).
4247         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
4248         from using internal headers.
4249         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
4250         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
4251         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4252         and __isoc99_vswscanf@@GLIBC_2.7.
4253         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4254         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4255         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4256         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4257         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4258         * stdio-common/isoc99_scanf.c: New file.
4259         * stdio-common/isoc99_vsscanf.c: New file.
4260         * stdio-common/isoc99_vscanf.c: New file.
4261         * stdio-common/isoc99_vfscanf.c: New file.
4262         * stdio-common/isoc99_fscanf.c: New file.
4263         * stdio-common/isoc99_sscanf.c: New file.
4264         * wcsmbs/isoc99_fwscanf.c: New file.
4265         * wcsmbs/isoc99_vswscanf.c: New file.
4266         * wcsmbs/isoc99_swscanf.c: New file.
4267         * wcsmbs/isoc99_wscanf.c: New file.
4268         * wcsmbs/isoc99_vwscanf.c: New file.
4269         * wcsmbs/isoc99_vfwscanf.c: New file.
4270         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4271         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4272         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4273         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4274         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4275         * stdio-common/scanf14.c: New test.
4276         * stdio-common/scanf15.c: New test.
4277         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4278         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4279         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4280         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4281         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4282         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4283         __nldbl___isoc99_scanf@@GLIBC_2.7,
4284         __nldbl___isoc99_fscanf@@GLIBC_2.7,
4285         __nldbl___isoc99_sscanf@@GLIBC_2.7,
4286         __nldbl___isoc99_vscanf@@GLIBC_2.7,
4287         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4288         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4289         __nldbl___isoc99_wscanf@@GLIBC_2.7,
4290         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4291         __nldbl___isoc99_swscanf@@GLIBC_2.7,
4292         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4293         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4294         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4295         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4296         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4297         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4298         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4299         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4300         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4301         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4302         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4303         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4304         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4305         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4306         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4307         functions.
4308         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4309         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4310         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4311         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4312         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4313         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4314         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4315         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4316         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4317         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4318         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4319         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4320
4321         * stdio-common/Makefile (tests): Add scanf13.
4322         (scanf13-ENV): New.
4323         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4324         m modifier followed by l.
4325         (STRING_ARG): Add width argument.
4326         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4327         <case L_('C')>: Handle %mlc and %mC.
4328         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4329         arguments.
4330         * stdio-common/scanf13.c: New test.
4331
4332         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4333         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4334
4335 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
4336
4337         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
4338         type and __THROW marker of splice, vmsplice, and tee.
4339         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4340         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4341         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4342         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4343         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4344         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4345         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4346         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4347         as cancellation points.
4348
4349 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
4350
4351         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4352         parse more than three parts of the version number.
4353
4354 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
4355
4356         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4357         modifier.  Patch by Jakub Jelinek.
4358
4359 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
4360
4361         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4362         call_fallocate in misc subdir.
4363         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4364         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4365         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4366         instead of __fallocate64.
4367         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4368
4369 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
4370
4371         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4372         * rt/Makefile (headers): Add bits/mqueue2.h.
4373         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4374         optimizing with GCC and __va_arg_pack_len is defined.
4375         * rt/bits/mqueue2.h: New file.
4376         * rt/mq_open.c (__mq_open): Renamed from mq_open.
4377         (mq_open): New strong_alias.
4378         (__mq_open_2): New function.
4379         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4380         (mq_open): New strong_alias.
4381         (__mq_open_2): New function.
4382         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4383         * Versions.def (librt): Add GLIBC_2.7 version.
4384         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4385         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4386
4387         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4388         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4389         is defined rather than when not C++.
4390         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4391         __openat64_alias): New redirects.
4392         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4393         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4394         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4395         (open, open64, openat, openat64): Rewrite as __extern_always_inline
4396         functions instead of function-like macros.
4397
4398 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
4399
4400         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4401         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4402         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4403
4404 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
4405
4406         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4407         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4408
4409 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
4410
4411         * inet/tst-network.c: Increment ERRORS for failing tests.
4412
4413 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
4414
4415         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4416         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4417         implement as __extern_always_inline function.
4418         (vsyslog): Define as __extern_always_inline function unconditionally.
4419         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4420         When __va_arg_pack is defined, implement as __extern_always_inline
4421         functions.
4422         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4423         __extern_always_inline functions unconditionally.
4424         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4425         bits/stdio2.h will be included.
4426         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4427         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4428         implement as __extern_always_inline functions.
4429         (vswprintf, vwprintf, vfwprintf): Define as
4430         __extern_always_inline functions unconditionally.
4431         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4432
4433 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
4434
4435         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4436         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4437         attribute.
4438         * include/features.h (__USE_EXTERN_INLINES): Define only when
4439         __extern_inline is defined.
4440         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4441         is defined instead of when not __cplusplus.
4442         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4443         is defined instead of when not __cplusplus.
4444         * socket/sys/socket.h: Include bits/socket2.h when
4445         __extern_always_inline is defined instead of when not __cplusplus.
4446         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4447         is defined instead of when not __cplusplus.
4448         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4449         is defined instead of when not __cplusplus.
4450         * string/string.h: Include bits/string3.h when __extern_always_inline
4451         is defined instead of when not __cplusplus.
4452         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4453         is defined instead of when not __cplusplus.
4454         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4455         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4456         is not defined.
4457         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4458         defined __extern_always_inline instead of !defined __cplusplus.
4459         * libio/bits/stdio-ldbl.h: Likewise.
4460         * wcsmbs/bits/wchar-ldbl.h: Likewise.
4461         * misc/bits/syslog.h (syslog): Don't define for C++.
4462         (vsyslog): Use __extern_always_inline function for C++ instead of
4463         a macro.
4464         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4465         whenever that macro is defined.
4466         (vprintf): Don't provide the inline for C++.
4467         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4468         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4469         define the macros for C++.
4470         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4471         __extern_always_inline functions for C++.
4472         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4473         stat64, lstat64, fstat64, fstatat64): Don't define if not
4474         __USE_EXTERN_INLINES.
4475         * wcsmbs/bits/wchar2.h: Fix #error message.
4476         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4477         (vswprintf, vwprintf, vfwprintf): Define using
4478         __extern_always_inline functions for C++.
4479         * string/bits/string3.h: Don't #undef macros if __cplusplus.
4480         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4481         strncpy, strcat, strncat): Define as __extern_always_inline
4482         functions instead of macros for C++.
4483         * math/bits/cmathcalls.h: Guard __extern_inline routines with
4484         defined __extern_inline.
4485         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4486         to __extern_inline whenever that macro is defined.
4487         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4488         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4489         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4490         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4491         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4492         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4493         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4494         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4495         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4496         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4497         prototypes.  Only provide __extern_inline routines if
4498         __USE_EXTERN_INLINES.
4499         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4500         tests.
4501         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4502         For now avoid some *printf tests in C++.  Skip all testing
4503         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4504         is not.
4505         * debug/tst-chk4.cc: New file.
4506         * debug/tst-chk5.cc: New file.
4507         * debug/tst-chk6.cc: New file.
4508         * debug/tst-lfschk4.cc: New file.
4509         * debug/tst-lfschk5.cc: New file.
4510         * debug/tst-lfschk6.cc: New file.
4511         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4512         prototypes in C++.
4513         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4514         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4515         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4516
4517 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
4518
4519         * po/cs.po: Update from translation team.
4520
4521 2007-09-11  Roland McGrath  <roland@redhat.com>
4522
4523         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4524         compiling.
4525
4526 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4527
4528         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4529
4530 2007-09-05  Roland McGrath  <roland@redhat.com>
4531
4532         * manual/signal.texi (Signaling Another Process): Typo fix.
4533         From Karl Berry <karl@freefriends.org>.
4534
4535 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
4536
4537         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4538         zero if not defined.
4539         (make_request): Recognize optimistic addresses and treat them like
4540         deprecated addresses.
4541         Reported by Neil Horman <nhorman@redhat.com>.
4542
4543 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
4544
4545         * nscd/connections.c (send_ro_fd): Also transfer file size.
4546         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4547         file size don't call fstat.
4548
4549         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4550         ahead and map the file.  This should always be correct and we can
4551         catch problems later.
4552
4553 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
4554
4555         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4556         prototypes.
4557         (__fread_alias, __fread_unlocked_alias): New aliases.
4558         (fread): New extern inline.
4559         (fread_unlocked): Likewise.  Undef macro before definition of
4560         the inline function.
4561         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4562         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4563         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4564         and __fread_unlocked_chk@@GLIBC_2.7.
4565         * debug/fread_chk.c: New file.
4566         * debug/fread_u_chk.c: New file.
4567         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4568
4569 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
4570
4571         * sysdeps/unix/sysv/linux/syscalls.list
4572         (personality): Change caller to EXTRA.
4573
4574 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
4575
4576         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4577         to keep gcc quiet.
4578         * iconvdata/iso-2022-cn.c (BODY): Likewise.
4579
4580         * locale/programs/ld-collate.c (collate_output): Avoid warning if
4581         NDEBUG is defined.
4582
4583         * Makerules: Use -p option with mkdir.
4584
4585         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4586         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
4587         (_xdr_directory_obj): Likewise.
4588         (xdr_entry_obj): Likewise.
4589         (xdr_group_obj): Likewise.
4590         (xdr_link_obj): Likewise.
4591         (xdr_table_obj): Likewise.
4592         (_xdr_nis_result): Likewise.
4593         (_xdr_ns_request): Likewise.
4594         (_xdr_ib_request): Likewise.
4595         (_xdr_nis_taglist): Likewise.
4596         (xdr_cback_data): Likewise.
4597         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
4598         (xdr_ypresp_maplist): Likewise.
4599
4600         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4601
4602         * posix/regex_internal.h: Prevent some declarations and definitions
4603         to be seen when used in tests.
4604
4605         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4606         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4607
4608         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4609
4610         * config.make.in (datarootdir): Add to shut up configure.
4611
4612         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4613         associativity for fully-associative caches.
4614
4615         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
4616         requests.  Fill on more associativity values for L2.
4617         Patch mostly by Evandro Menezes.
4618
4619 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
4620
4621         * sysdeps/unix/sysv/linux/x86_64/init-first.c
4622         (_libc_vdso_platform_setup): Avoid using exported variable by using
4623         alias.
4624
4625         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
4626
4627         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
4628         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
4629         defined.
4630
4631 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
4632
4633         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
4634         align stack for call if pltexit is to be used.
4635
4636         [BZ #3924]
4637         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
4638         align for function call in case pltexit has to be called later.
4639
4640         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
4641         implicit atomic operation when storing function pointer.
4642         (_dl_runtime_profile): Likewise.
4643
4644 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4645
4646         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4647         NIS_NOTFOUND.
4648
4649 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4650
4651         [BZ #4566]
4652         * string/strtok.c: Fix typo in comment.
4653
4654         [BZ #4582]
4655         * debug/segfault.c: Fix typos in comments.
4656
4657         [BZ #4588]
4658         * stdio-common/tempnam.c: Fix comment, it is not checked that
4659         TMPDIR points to a writable directory.
4660
4661         [BZ #4726]
4662         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4663         memory allocated for the name server address.
4664
4665         [BZ #4946]
4666         * nscd/connections.c (handle_request): Using sendfile always
4667         requires that mmap is used for the database.
4668         Patch by Petr Baudis <pasky@suse.cz>.
4669
4670         [BZ #4905]
4671         * nscd/hstcache.c (cache_addhst): When reloading an entry which
4672         suddenly has two or more addresses, ignore it and remove the old
4673         entry.
4674
4675         [BZ #4814]
4676         * resolv/res_hconf.c: Prepare for compiling outside libc.
4677         * nscd/res_hconf.c: New file.
4678         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
4679         the new file.
4680         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
4681         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
4682
4683         * nscd/hstcache.c (cache_addhst): Minimal optimization.
4684
4685         [BZ #4925]
4686         * debug/pcprofiledump.c: Turn on internationalization by calling
4687         setlocale.  Patch mostly by Benno Schulenberg.
4688
4689         [BZ #4936]
4690         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
4691         the state.
4692         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
4693         * iconvdata/bug-iconv5.c: New file.
4694
4695 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
4696
4697         [BZ #4896]
4698         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
4699         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
4700         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
4701         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
4702         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
4703         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
4704         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
4705         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
4706
4707 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4708
4709         [BZ #4937]
4710         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
4711         lookup loop.  Suggested by John Reiser.
4712
4713 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
4714
4715         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
4716
4717 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
4718
4719         * csu/libc-start.c: Don't handle VDSO_SETUP here.
4720         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
4721         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
4722         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
4723         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
4724         to...
4725         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
4726
4727 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
4728
4729         * po/nl.po: Update from translation team.
4730
4731 2007-08-16  Andreas Jaeger  <aj@suse.de>
4732
4733         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
4734         Reported by Peter Festner <peter.festner@ewetel.net>.
4735
4736 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4737
4738         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
4739
4740 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
4741
4742         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
4743         to check for undefined symbols.
4744
4745         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
4746         If the syscall fails, set errno to the actual returned error number
4747         rather than EINVAL.
4748         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
4749         arguments are incorrect, set errno to EINVAL, if the syscall
4750         fails, set errno to the actual returned error number.
4751
4752         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
4753         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
4754
4755         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
4756         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
4757         file.
4758         (ASI_PNF, ASI_BLK_P): Don't define.
4759         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
4760         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
4761         file.
4762         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
4763         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
4764         file.
4765
4766 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
4767
4768         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
4769         FE_UNDERFLOW on Niagara CPUs.
4770
4771         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
4772         exceptions.
4773
4774 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
4775
4776         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
4777         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
4778         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
4779         flush should be used or not inside of the function.
4780         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
4781
4782         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
4783         __thread_start): Use HIDDEN_JUMPTARGET.
4784         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
4785         __thread_start): Likewise.
4786         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
4787
4788         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
4789         Add libc_hidden_proto.
4790         (STRTOF): Add libc_hidden_proto.
4791         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
4792         (strtold_l, wcstold_l): Use them as second argument for
4793         long_double_symbol.
4794
4795 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4796
4797         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
4798
4799 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4800
4801         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
4802
4803 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4804
4805         * po/bg.po: New file.  From the translation team.
4806
4807 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4808
4809         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
4810         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
4811         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
4812         when each feature was introduced.
4813
4814         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
4815         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
4816         (CHECK_HASH): New macro.
4817         (PREPARE_VERSION): Use it.
4818
4819         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
4820         prototype if not __ASSUME_PSELECT.
4821         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
4822         prototype if not __ASSUME_PPOLL.
4823
4824         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
4825
4826         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
4827         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
4828         is defined.
4829
4830 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
4831
4832         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4833         (_libc_vdso_platform_setup): If vDSO is not available point
4834         __vdso_gettimeofday to the vsyscall.
4835         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
4836         __vdso_gettimeofday instead of vsyscall.
4837
4838 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4839
4840         * nscd/servicescache.c: Include kernel-features.h.
4841         * nscd/gai.c: Likewise.
4842         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
4843         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
4844         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
4845         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
4846         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
4847         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
4848         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
4849         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
4850         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4851
4852 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
4853
4854         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
4855         and _dl_get_origin defines anymore.
4856
4857         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
4858         Build fix for systems which might lack POSIX timer support.
4859
4860         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4861         (_libc_vdso_platform_setup): Mangle function pointers before storing
4862         them.
4863         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
4864         Demangle vdso pointer before use.
4865         (INTERNAL_VSYSCALL): Likewise.
4866
4867         * elf/cache.c (primes): Mark as const.
4868         Noted by Roland McGrath.
4869
4870 2007-08-01  Andreas Jaeger  <aj@suse.de>
4871             Jakub Jelinek  <jakub@redhat.com>
4872
4873         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
4874         (options): Add option.
4875         (parse_opt): Handle option.
4876         (manual_link): Adjust process_file caller.  Call implicit_soname.
4877         (search_dir): Formatting.  Use and populate auxiliary cache.
4878         (main): Load and save auxiliary cache.
4879         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
4880         stat64 from fstat64 to caller.
4881         (implicit_soname): New function.
4882         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
4883         leave *soname as NULL.
4884         * elf/cache.c: Include libgen.h.
4885         (print_entry, print_cache, compare, save_cache, add_to_cache):
4886         Formatting and cleanups.
4887         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
4888         aux_cache_file): New structures.
4889         (AUX_CACHEMAGIC): Define.
4890         (primes): New array.
4891         (aux_hash_size, aux_hash): New variables.
4892         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
4893         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
4894         load_aux_cache, save_aux_cache): New functions.
4895         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
4896         (init_aux_cache, search_aux_cache, add_to_aux_cache,
4897         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
4898         (process_file): Adjust prototype.
4899
4900 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
4901
4902         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
4903         with __need_size_t.
4904
4905 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
4906
4907         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
4908         r_found_version structure as second parameter.
4909         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
4910         (_dl_vdso_vsym): Change type of second parameter accordingly.
4911         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
4912         (_libc_vdso_platform_setup): Adjust.
4913         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
4914         (_libc_vdso_platform_setup): Likewise.
4915
4916         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
4917         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
4918         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
4919         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
4920         * csu/libc-start.c: Pretty printing.
4921         Use VDSO_SETUP if defined.
4922         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
4923         and let generic code call into _libc_vdso_platform_setup.
4924         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
4925         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
4926         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
4927         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
4928         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
4929         for GLIBC_PRIVATE.
4930         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
4931         (sysdep_rountines): Add dl-vdso.
4932
4933         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
4934         of routines.
4935
4936         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
4937         attribute_hidden to __vdso_gettimeofday prototype.
4938
4939 2007-08-12  Roland McGrath  <roland@redhat.com>
4940
4941         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
4942         From: Karl Berry <karl@freefriends.org>.
4943
4944 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
4945
4946         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
4947         an atime update for the files we read.
4948
4949 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
4950
4951         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
4952
4953         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
4954         instead of mkstemp.
4955
4956         * misc/Makefile (routines): Add mkostemp and mkostemp64.
4957         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
4958         * misc/mkostemp.c: New file.
4959         * misc/mkostemp64.c: New file.
4960         * stdlib/stdlib.h: Declare the new functions.
4961         * sysdeps/posix/tempname.c: Add new parameter which is added to
4962         the flags for open.  Remove __GT_BIGFILE handling.
4963         * stdio-common/tempname.c: Likewise.
4964         * include/stdio.h: Adjust __gen_tempname prototype.
4965         Renumber __GT_* constants.
4966         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
4967         * misc/mkdtemp.c: Likewise.
4968         * misc/mkstemp.c: Likewise.
4969         * misc/mkstemp64.c: Likewise.
4970         * misc/mktemp.c: Likewise.
4971         * stdio-common/tempnam.c: Likewise.
4972         * stdio-common/tmpfile.c: Likewise.
4973         * stdio-common/tmpfile64.c: Likewise.
4974         * stdio-common/tmpnam.c: Likewise.
4975         * stdio-common/tmpnam_r.c: Likewise.
4976
4977 2007-08-10  Roland McGrath  <roland@frob.com>
4978
4979         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
4980         New macros.
4981         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
4982         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4983
4984 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
4985
4986         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
4987         possible.
4988         * nss/nss_files/files-alias.c (internal_setent): Likewise.
4989         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
4990         * nss/nss_files/files-have_o_cloexec.c: New file.
4991
4992         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
4993         available.
4994
4995 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
4996
4997         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
4998         ___new_wcstold_l): New weak aliases.
4999         (strtold_l, wcstold_l): Use them as second argument for
5000         long_double_symbol.
5001
5002 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
5003
5004         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
5005         register in test for error.
5006
5007         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
5008         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
5009
5010         * po/sv.po: Update from translation team.
5011
5012 2007-08-06  Roland McGrath  <roland@redhat.com>
5013
5014         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
5015         Remove __strto*_l inlines.
5016         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
5017         * stdlib/strtod.c: Add libc_hidden_def.
5018         * stdlib/strtod_l.c: Likewise.
5019         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
5020         for __new_strtold and __new_wcstold.
5021         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
5022         __STRTOF, STRTOF.
5023         * stdlib/strtol.c: Add libc_hidden_def.
5024         * stdlib/strtol_l.c: Likewise.
5025         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
5026         strtoq.
5027
5028         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
5029
5030         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
5031         * scripts/data/localplt-generic.data: ... here.
5032         * elf/Makefile (check-data): Get generic file if no other.
5033         ($(objpfx)check-localplt.out): Make target unconditional.
5034
5035         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
5036         Use ElfW(Nhdr).
5037
5038 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
5039
5040         * po/zh_CN.po: Updated translation from translation team.
5041
5042 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
5043
5044         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
5045         Don't use CGOTSETUP and CGOTRESTORE macros.
5046
5047 2007-08-04  Roland McGrath  <roland@redhat.com>
5048
5049         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
5050
5051 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
5052
5053         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
5054         __extension__ around the whole statement expression.
5055
5056 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
5057
5058         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
5059         elements during initialization.
5060
5061         * po/pl.po: Updated translation from translation team.
5062         * po/tr.po: Likewise.
5063         * po/nl.po: Likewise.
5064
5065 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
5066
5067         * rt/aio.h: Add __nonnull attributes.
5068
5069 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
5070
5071         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
5072         * stdlib/Makefile (tests): Add tst-strtod5.
5073         (tst-strtod5-ENV): New.
5074         * stdlib/tst-strtod5.c: New file.
5075
5076         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
5077         failed.
5078         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
5079         on failure.
5080
5081         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
5082         allocated.
5083
5084 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
5085
5086         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
5087         numbers.
5088
5089 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
5090
5091         * io/Makefile (aux): Add have_o_cloexec.
5092         * include/fcntl.h: Declare __have_o_cloexec.
5093         * io/have_o_cloexec.c: New file.
5094         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
5095         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
5096         fcntl call if not necessary.
5097         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
5098         of local variable.
5099
5100         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
5101         Avoid memset, add explicit initialization.
5102         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
5103         to the end and change into zero-sized array.
5104         Move lock member to fill a hole on 64-bit platforms.
5105
5106         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
5107         inline functions.
5108         * include/stdlib.h: Add __strto*_internal prototypes here.
5109         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
5110         inline functions.
5111         * include/wchar.h: Add __wcsto*_internal prototypes.
5112         * sysdeps/generic/inttypes.h: No need to protect the declaration
5113         of the __strto*_internal and __wcsto*_internal members here.
5114
5115         * rt/mqueue.h: Change const to __const and add nonnull attributes.
5116
5117 2007-08-02  Roland McGrath  <roland@redhat.com>
5118
5119         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
5120         $(inst_bindir)/getconf if possible.
5121
5122         * posix/Makefile ($(objpfx)getconf.speclist): New target.
5123         (generated): Add it.
5124         ($(inst_libexecdir)/getconf): Use it.
5125
5126 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
5127
5128         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
5129         /proc is faster and sufficient.  /sys is still needed for
5130         __get_nprocs_conf.
5131
5132 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
5133
5134         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
5135         syscall as __fallocate64.
5136         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
5137         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
5138
5139 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
5140
5141         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
5142         value.
5143
5144         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
5145         if off_t is different rank from size_t.
5146
5147         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
5148         uw_frame_state_for): Avoid type punning warnings.
5149         * sysdeps/generic/unwind-dw2-fde-glibc.c
5150         (_Unwind_IteratePhdrCallback): Likewise.
5151         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
5152         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
5153         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
5154         pointers.
5155
5156 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
5157
5158         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
5159         total processors using sysfs.
5160         (__get_nprocs): Use sysfs to determine which processors are online.
5161
5162 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
5163
5164         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
5165         syscall arguments count.
5166
5167         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
5168
5169 2007-07-30  Roland McGrath  <roland@redhat.com>
5170
5171         * manual/libc.texinfo: Update copyrights, formatting magic, and
5172         @dircategory.  From Karl Berry <karl@freefriends.org>.
5173
5174 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
5175
5176         [BZ #4860]
5177         * io/Makefile (headers): Add bits/fcntl2.h.
5178
5179         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
5180         using gcc builtin.
5181         (__CPU_EQUAL_S): Likewise.
5182
5183         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
5184         (tests): Add tst-cpuset.
5185         * posix/sched_cpualloc.c: New file.
5186         * posix/sched_cpufree.c: New file.
5187         * posix/tst-cpuset.c: New file.
5188         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
5189         GLIBC_2.7.
5190         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
5191         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
5192         macros.  Define CPU_*_S macros.
5193
5194 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5195
5196         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
5197         entry.
5198
5199         [BZ #4858]
5200         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
5201         #.0g and value rounded to 1.0.
5202         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
5203
5204 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
5205
5206         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
5207         for int_frac_digits and frac_digits.
5208
5209         * login/logout.c (logout): Avoid aliasing violation.
5210         * login/logwtmp.c (logwtmp): Likewise.
5211
5212         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
5213
5214         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
5215         to avoid warning.
5216         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
5217         warning.
5218         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
5219         warning.
5220         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
5221         to avoid warnings.
5222
5223         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
5224         void **.
5225         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
5226
5227         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
5228         char * to avoid warning.
5229         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
5230
5231         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
5232
5233         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
5234         allocate_arrays): Cast second argument to charmap_find_symbol
5235         to char * to avoid warnings.
5236
5237         * locale/programs/repertoire.c (repertoire_new_char): Change
5238         from_nr, to_nr and cnt to unsigned long, adjust printf format
5239         string.
5240
5241         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
5242         Cast second argument to new_element to char * to avoid warnings.
5243
5244         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
5245
5246         * intl/gettextP.h (struct loaded_domain): Change plural to const
5247         struct expression *.
5248         * intl/plural-eval.c (plural_eval): Change first argument to
5249         const struct expression *.
5250         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
5251         argument to const struct expression **.
5252         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5253         prototypes.
5254         * intl/loadmsgcat (_nl_unload_domain): Cast away const
5255         in call to __gettext_free_exp.
5256
5257         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5258         unitialized wstring/wpattern var warnings.
5259
5260         * posix/runtests.c (struct a_test): Make data field const char *.
5261
5262         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5263         vars if not LDBL_MANT_DIG >= 106.
5264
5265         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5266
5267         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5268         __find_specmb to avoid warning.
5269
5270         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5271
5272         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5273         to avoid warnings.
5274
5275         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5276         initializer.
5277
5278         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5279         tv var when it will be actually used.
5280
5281         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5282         to avoid warnings.
5283
5284         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5285         char array resp. pointer.
5286         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5287         char array.
5288         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5289         to const unsigned char **.
5290         (ucs4_to_cns11643): Change second argument to unsigned char *.
5291         * iconvdata/euc-tw.c (BODY): Change endp type to
5292         const unsigned char *.
5293         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5294         to unsigned char *.
5295         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5296         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5297         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5298         types to unsigned char pointers/arrays instead of char.
5299         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5300         to unsigned char *.
5301         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5302         * iconvdata/jis0212.h: Include assert.h.
5303         (ucs4_to_jisx0212): Change second argument to unsigned char *.
5304         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5305         of trying to handle that.
5306         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5307         shut up a warning.
5308         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5309         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5310         two dimensional const unsigned char arrays.
5311         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5312         Initialize endp to inptr to shut up a warning.
5313
5314 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5315
5316         [BZ #4772]
5317         * time/strptime_l.c (__strptime_internal): Silently ignore
5318         strftime modifiers and field width in recursive calls.
5319
5320         * include/time.h (enum ptime_locale_status): Remove.
5321         (__strptime_internal): Remove decided and era_cnt arguments,
5322         add statep argument.
5323         * time/strptime_l.c (__strptime_internal): Remove decided
5324         and era_cnt arguments, add statep argument.  Don't recompute
5325         any fields in recursive calls, only update caller's tm
5326         and state, if recursive call fails, don't change tm nor
5327         any state.
5328         (get_alt_number): Adjust.
5329         (recursive): Adjust caller.
5330         (strptime): Likewise.
5331         * time/strptime.c (strptime): Likewise.
5332
5333 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
5334
5335         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5336         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5337         if from and to charsets are the same.
5338         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5339         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5340         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5341
5342 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5343
5344         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5345         Don't define wint_t when __need_mbstate_t unless it
5346         is necessary.
5347         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5348         in the typedef if possible.
5349         * wctype/wctype.h (wint_t): Define by including
5350         wchar.h with __need_wint_t instead of including stddef.h
5351         with __need_wint_t and as fallback definining it ourselves.
5352         * iconv/gconv.h (__need_wint_t): Define before including
5353         wchar.h.
5354         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5355         or _GLIBCPP_USE_WCHAR_T.
5356         (__need_wchar_t): Don't define
5357         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5358         (__need_wint_t): Don't define before including stddef.h,
5359         define before including wchar.h only if _LIBC or
5360         _GLIBCPP_USE_WCHAR_T.
5361         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5362         * sysdeps/mach/hurd/_G_config.h: Likewise.
5363         * sysdeps/generic/_G_config.h: Likewise.
5364         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5365         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5366         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5367         if _LIBC or _GLIBCPP_USE_WCHAR_T.
5368
5369 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5370
5371         * sysdeps/posix/posix_fallocate64.c: Undefine
5372         __posix_fallocate64_l64 before alias handling.
5373         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5374         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5375         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5376         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5377
5378         * io/tst-posix_fallocate.c: Include <fcntl.h>.
5379
5380 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
5381
5382         * locale/programs/ld-collate.c (atwc): New variable.
5383         (add_to_tablewc): New toplevel function, moved from collate_output.
5384         (collate_output): Remove add_to_tablewc nested function.
5385
5386         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5387         (name_insert): New function.
5388         (write_output): Remove hash_table and hash_size vars and name_insert
5389         nested function.
5390
5391 2007-07-24  Roland McGrath  <roland@redhat.com>
5392
5393         * Makerules (install-others-programs-nosubdir): New target.
5394         (install-no-libc.a-nosubdir): Depend on it.
5395
5396         * iconv/Makefile (install-others-programs): Set this instead of
5397         install-others.
5398         * login/Makefile (install-others-programs): Likewise.
5399         * posix/Makefile (install-others-programs): Likewise.
5400
5401         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5402         dependencies.
5403
5404 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
5405
5406         * io/Makefile (tests): Add tst-posix_fallocate.
5407         * io/tst-posix_fallocate.c: New file.
5408
5409         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5410         __ASSUME_FALLOCATE.
5411
5412 2007-07-22  Roland McGrath  <roland@frob.com>
5413
5414         * hurd/getdport.c: Add missing copyright year update.
5415
5416         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5417         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5418
5419 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
5420
5421         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5422
5423         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5424         O_CLOEXEC is needed.
5425         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5426         Avoid additional fcntl to set O_CLOEXEC if not needed.
5427         * nis/nss_compat/compat-initgroups.c: Likewise.
5428         * nis/nss_compat/compat-pwd.c: Likewise.
5429         * nis/nss_compat/compat-spwd.c: Likewise.
5430
5431 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5432
5433         [BZ #3665]
5434         * manual/errno.texi: Change ECANCELED value to 119.
5435
5436         [BZ #4610]
5437         * mach/lock-intern.h: Include <sys/cdefs.h>.
5438
5439         [BZ #4178]
5440         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5441         reading A.
5442
5443         [BZ #4126]
5444         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5445         to __sigsuspend.
5446
5447         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5448
5449 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
5450
5451         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5452         `__ASSEMBLER__'.
5453         * sysdeps/mach/hurd/i386/tls.h: Likewise.
5454
5455 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
5456
5457         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5458         descriptor received from nscd.
5459
5460         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5461
5462         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5463         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5464         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5465         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5466         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5467         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5468
5469 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5470
5471         [BZ #4816]
5472         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5473
5474         [BZ #4813]
5475         * login/forkpty.c (forkpty): Close master and slave fds on
5476         fork failure.  Patch by
5477         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5478
5479 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
5480
5481         * include/features.h (__USE_ISOC95): New define.
5482         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5483         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5484         for -std=iso9899:199409.
5485         * CONFORMANCE: Remove comments about unsupported AMD1.
5486
5487 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5488
5489         * sysdeps/ia64/sched_cpucount.c: New file.
5490         * sysdeps/powerpc/sched_cpucount.c: New file.
5491
5492         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5493         __BEGIN_DECLS/__END_DECLS around the prototype.
5494         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
5495         pointer to const cpu_set_t.
5496
5497         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5498         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5499         __need_size_t and include stddef.h.
5500         * sysvipc/sys/msg.h: Likewise.
5501         * posix/sched.h: Likewise.
5502         * hurd/hurd/signal.h (__need_size_t): Define.
5503
5504         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5505         neither does signal.h in pedantic ISO C namespaces.  stdio.h
5506         no longer defines wint_t or wchar_t.
5507
5508         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5509         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5510         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5511         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5512         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5513         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5514         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5515         * debug/printf_chk.c (__printf_chk): Likewise.
5516         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5517         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5518
5519         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5520         Define.
5521
5522         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5523         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5524
5525 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
5526
5527         [BZ #4792]
5528         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5529         * malloc/malloc.h (realloc): Likewise.
5530
5531         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5532         if one of proc_file_chain streams has that fileno.
5533         * stdio-common/Makefile (tests): Add tst-popen2.
5534         * stdio-common/tst-popen2.c: New test.
5535
5536 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
5537
5538         * elf/ldconfig.c: Allow GPLv2 or any later version.
5539         * elf/readlib.c: Likewise.
5540         * elf/chroot_canon.c: Likewise.
5541         * elf/cache.c: Likewise.
5542         * nscd/mem.c: Likewise.
5543         * nscd/getpwuid_r.c: Likewise.
5544         * nscd/grpcache.c: Likewise.
5545         * nscd/aicache.c: Likewise.
5546         * nscd/getsrvbynm_r.c: Likewise.
5547         * nscd/nscd.c: Likewise.
5548         * nscd/servicescache.c: Likewise.
5549         * nscd/getsrvbypt_r.c: Likewise.
5550         * nscd/initgrcache.c: Likewise.
5551         * nscd/gethstbyad_r.c: Likewise.
5552         * nscd/gethstbynm2_r.c: Likewise.
5553         * nscd/getgrnam_r.c: Likewise.
5554         * nscd/nscd_setup_thread.c: Likewise.
5555         * nscd/getpwnam_r.c: Likewise.
5556         * nscd/gai.c: Likewise.
5557         * nscd/connections.c: Likewise.
5558         * nscd/dbg_log.c: Likewise.
5559         * nscd/cache.c: Likewise.
5560         * nscd/hstcache.c: Likewise.
5561         * nscd/nscd_conf.c: Likewise.
5562         * nscd/getgrgid_r.c: Likewise.
5563         * nscd/pwdcache.c: Likewise.
5564         * catgets/gencat.c: Likewise.
5565         * locale/programs/linereader.h: Likewise.
5566         * locale/programs/locarchive.c: Likewise.
5567         * locale/programs/ld-paper.c: Likewise.
5568         * locale/programs/locfile-kw.h: Likewise.
5569         * locale/programs/ld-address.c: Likewise.
5570         * locale/programs/xmalloc.c: Likewise.
5571         * locale/programs/ld-time.c: Likewise.
5572         * locale/programs/localedef.c: Likewise.
5573         * locale/programs/simple-hash.c: Likewise.
5574         * locale/programs/xstrdup.c: Likewise.
5575         * locale/programs/ld-numeric.c: Likewise.
5576         * locale/programs/locfile-kw.gperf: Likewise.
5577         * locale/programs/ld-collate.c: Likewise.
5578         * locale/programs/charmap-kw.gperf: Likewise.
5579         * locale/programs/charmap.h: Likewise.
5580         * locale/programs/charmap-kw.h: Likewise.
5581         * locale/programs/config.h: Likewise.
5582         * locale/programs/locfile.c: Likewise.
5583         * locale/programs/ld-ctype.c: Likewise.
5584         * locale/programs/charmap.c: Likewise.
5585         * locale/programs/ld-messages.c: Likewise.
5586         * locale/programs/repertoire.h: Likewise.
5587         * locale/programs/locale.c: Likewise.
5588         * locale/programs/ld-name.c: Likewise.
5589         * locale/programs/linereader.c: Likewise.
5590         * locale/programs/locfile.h: Likewise.
5591         * locale/programs/3level.h: Likewise.
5592         * locale/programs/ld-monetary.c: Likewise.
5593         * locale/programs/ld-measurement.c: Likewise.
5594         * locale/programs/charmap-dir.c: Likewise.
5595         * locale/programs/ld-identification.c: Likewise.
5596         * locale/programs/localedef.h: Likewise.
5597         * locale/programs/charmap-dir.h: Likewise.
5598         * locale/programs/repertoire.c: Likewise.
5599         * locale/programs/simple-hash.h: Likewise.
5600         * locale/programs/ld-telephone.c: Likewise.
5601         * locale/programs/locale-spec.c: Likewise.
5602         * locale/programs/locfile-token.h: Likewise.
5603         * posix/getconf.c: Likewise.
5604         * iconv/dummy-repertoire.c: Likewise.
5605         * iconv/iconv_charmap.c: Likewise.
5606         * iconv/iconvconfig.c: Likewise.
5607         * iconv/iconv_prog.c: Likewise.
5608         * malloc/memusagestat.c: Likewise.
5609         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5610
5611 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5612
5613         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
5614         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
5615         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
5616         check for the first argument.
5617
5618 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
5619
5620         [BZ #4775]
5621         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
5622         (__tgmath_real_type): Fix if expr is const int or other const
5623         qualified integral type.
5624         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
5625         expressions and handle const qualified arguments.
5626         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
5627         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5628         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
5629         statement expressions.
5630         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
5631         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
5632         (__TGMATH_UNARY_IMAG): Define.
5633         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
5634         * math/Makefile (tests): Add test-tgmath2.
5635         (CFLAGS-test-tgmath2.c): Add.
5636         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
5637         count_cfloat, count_cldouble): New variables.
5638         (NCCALLS): Define.
5639         (main): Check number of complex calls as well.
5640         (F(compile_test)): Add complex tests and tests with const qualified
5641         arguments.
5642         (y, z, ccount): Define.
5643         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
5644         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
5645         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
5646         F(cproj)): New functions.
5647         * math/test-tgmath2.c: New test.
5648
5649 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
5650
5651         [BZ #4776]
5652         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5653         RPATH etc. as "/" rather than "", don't segfault on empty paths,
5654         instead output ".".
5655         * dlfcn/Makefile (distribute): Add glreflib3.c.
5656         (module-names): Add glreflib3.
5657         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5658         glreflib1.so.
5659         (LDFLAGS_glreflib3.so): New.
5660         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5661         glreflib1.so.
5662         * dlfcn/glreflib3.c: New file.
5663
5664         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5665         returned -1, return NULL.
5666         * intl/explodename.c (_nl_explode_name): Return -1 if
5667         _nl_normalize_codeset failed.
5668
5669 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
5670
5671         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5672         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
5673         and avoid branch misspredicts for > 31 bytes memset case.
5674         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5675         Remove toc ref to __cache_line_size.
5676
5677         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
5678         to get ISA-V2.0 branch hints.
5679         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
5680         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
5681         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5682         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5683         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5684         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5685         Remove toc ref to __cache_line_size.
5686
5687         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
5688         Include math_ldbl_opt.h.
5689
5690 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
5691
5692         [BZ #4773]
5693         * time/strptime_l.c (__strptime_internal): Implement greedy
5694         matching of weekday and month names.
5695
5696 2007-07-09  Roland McGrath  <roland@redhat.com>
5697
5698         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
5699         (ELF_NOTE_ABI): Use it.
5700         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
5701
5702 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
5703
5704         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
5705         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5706
5707 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
5708
5709         [BZ #4745]
5710         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
5711         in loop to look for conversion specifier to avoid testing of
5712         wrong errno value.
5713         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
5714         * stdio-common/bug18.c: New file.
5715         * stdio-common/bug18a.c: New file.
5716         * stdio-common/bug19.c: New file.
5717         * stdio-common/bug19a.c: New file.
5718
5719 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
5720
5721         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
5722         running awk script.
5723
5724 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
5725
5726         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
5727         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
5728         Return NULL if mmap failed instead of asserting it does not.
5729         (calloc): Check for integer overflow.
5730
5731         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
5732         than LONG_MAX / 10.
5733
5734 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
5735
5736         [BZ #4702]
5737         * nis/nss-default.c: Include errno.h.
5738         (init): Preserve errno.
5739
5740 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
5741
5742         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
5743
5744 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
5745
5746         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
5747
5748 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5749
5750         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
5751
5752 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5753
5754         * sysdeps/s390/dl-procinfo.c: New file.
5755         * sysdeps/s390/dl-procinfo.h: New file.
5756         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
5757
5758 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
5759
5760         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
5761         in PT_NOTE segments with multiple notes.
5762         * elf/readelflib.c (process_elf_file): Likewise.
5763
5764 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
5765
5766         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
5767         ISO C compliant.
5768
5769 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5770
5771         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
5772
5773 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
5774
5775         * include/link.h: Don't include rtld-lowlevel.h.
5776         (struct link_map): Remove l_scope_lock.
5777         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
5778         (_dl_scope_free_list): New field (variable) in _rtld_global.
5779         (DL_LOOKUP_SCOPE_LOCK): Remove.
5780         (_dl_scope_free): New prototype.
5781         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
5782         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
5783         (_dl_profile_fixup): Likewise.
5784         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
5785         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
5786         THREAD_GSCOPE_RESET_FLAG around it.
5787         * elf/dl-close.c (_dl_close_worker): Don't use
5788         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
5789         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
5790         scopes were queued or if l_scope_mem has been abandoned.
5791         * elf/dl-open.c (_dl_scope_free): New function.
5792         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
5793         * elf/dl-support.c (_dl_scope_free_list): New variable.
5794         * elf/dl-lookup.c (add_dependency): Remove flags argument.
5795         Remove DL_LOOKUP_SCOPE_LOCK handling.
5796         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
5797         handling.
5798         * elf/dl-object.c (_dl_new_object): Don't use
5799         __rtld_mrlock_initialize.
5800
5801 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5802
5803         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
5804         to fill in holes
5805         (rtld_global_ro): Likewise.
5806
5807 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5808
5809         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
5810         Move PT_LOAD checking to...
5811         (_dl_addr_inside_object): ... here, new function.
5812         * elf/dl-sym.c (do_sym): If not l_contiguous,
5813         call _dl_addr_inside_object.
5814         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5815         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5816         * elf/dl-open.c (dl_open_worker): Likewise.
5817         (_dl_addr_inside_object): New function if IS_IN_rtld.
5818         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
5819         holes are present or are PROT_NONE protected.
5820         * include/link.h (struct link_map): Add l_contiguous field.
5821         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
5822
5823 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5824             Tomas Janousek  <tjanouse@redhat.com>
5825             Ulrich Drepper  <drepper@redhat.com>
5826
5827         [BZ #4647]
5828         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
5829         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
5830         socket.
5831         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
5832         unused member a bitmap.
5833         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
5834         servers are configured.
5835
5836 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5837
5838         * elf/rtld.c (dl_main): Don't call init_tls more than once.
5839
5840 2007-06-17  Andreas Schwab  <schwab@suse.de>
5841
5842         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
5843
5844 2007-06-16  Andreas Jaeger  <aj@suse.de>
5845
5846         [BZ #4125]
5847         * sysdeps/unix/sysv/linux/sys/ptrace.h
5848         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
5849         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
5850         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
5851         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
5852         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
5853         Define.
5854         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5855         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5856         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5857         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5858
5859 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
5860
5861         [BZ #4599]
5862         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
5863         determining whether there are IPv4/IPv6 addresses, ignore loopback
5864         addresses.
5865
5866 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
5867
5868         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
5869         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
5870         as the return type.  Change type of "r" variable to CMPtype.
5871         * soft-fp/eqsf2.c (__eqsf2): Likewise.
5872         * soft-fp/eqtf2.c (__eqtf2): Likewise.
5873         * soft-fp/gedf2.c (__gedf2): Likewise.
5874         * soft-fp/gesf2.c (__gesf2): Likewise.
5875         * soft-fp/getf2.c (__getf2): Likewise.
5876         * soft-fp/ledf2.c (__ledf2): Likewise.
5877         * soft-fp/lesf2.c (__lesf2): Likewise.
5878         * soft-fp/letf2.c (__letf2): Likewise.
5879         * soft-fp/unorddf2 (__unorddf2): Likewise.
5880         * soft-fp/unordsf2 (__unordsf2): Likewise.
5881         * soft-fp/unordtf2 (__unordtf2): Likewise.
5882
5883 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
5884
5885         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
5886         make sure gcc doesn't mess around with this.
5887
5888 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
5889
5890         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
5891
5892 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
5893
5894         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
5895         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
5896         at most once per _dl_close_worker.
5897
5898 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
5899
5900         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
5901         __sched_cpucount as const.
5902         * posix/sched_cpucount.c: Adjust.
5903
5904         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
5905         instruction for counting bits.
5906         * sysdeps/x86_64/sched_cpucount.c: New file.
5907
5908 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
5909
5910         * configure.in: Avoid variable named BASH.
5911         * config.make.in: Likewise.
5912         Patch in part by Mike Frysinger.
5913
5914 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
5915
5916         [BZ #4586]
5917         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
5918         pseudo-zeros as zero.
5919         * sysdeps/x86_64/ldbl2mpn.c: New file.
5920         * sysdeps/ia64/ldbl2mpn.c: New file.
5921
5922 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
5923
5924         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
5925         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
5926         Remove unreachable code at the end.
5927
5928 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
5929
5930         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
5931         ldbl-128ibm in comment.
5932         (fpclassifyl): Correct classification of denormals.
5933         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
5934         return value for MIN denormal. Rewrite using long double math too
5935         correctly handle denormals and canonicalize the results.
5936
5937 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
5938
5939         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5940         (__mpn_construct_long_double): Fix conversion where result ought
5941         to be smaller than __LDBL_MIN__, or the low double should be
5942         denormal.  Fix decision where to negate low double - honor round
5943         to even rules.
5944         * stdio-common/tst-sprintf2.c: Include string.h.
5945         (COMPARE_LDBL): Define.
5946         (TEST): Also test whether a string hexadecimal float representation
5947         can be parsed back to the number.
5948         (main): Add a couple of further tests.
5949
5950 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
5951
5952         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5953         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
5954         is non-zero, but smaller than 2 * __DBL_MIN__.
5955         * stdio-common/tst-sprintf2.c: New test.
5956         * stdio-common/Makefile (tests): Add tst-sprintf2.
5957
5958         * math/test-misc.c (main): Don't run last batch of tests with
5959         IBM long double format.
5960
5961 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5962
5963         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
5964         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
5965         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
5966         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
5967         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5968         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
5969         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
5970         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
5971         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
5972         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5973         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
5974         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
5975         New file.
5976         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
5977         New file.
5978         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
5979         New file.
5980         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
5981         New file.
5982         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
5983         New file.
5984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
5985         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
5986         New file.
5987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
5988         New file.
5989         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
5990         New file.
5991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
5992         New file.
5993         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
5994         New file.
5995
5996 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5997
5998         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
5999         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
6000         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
6001         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
6002         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
6003         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
6004         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
6005         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
6006
6007 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
6008
6009         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
6010         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6011         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
6012         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6013         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
6014         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6015         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
6016         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6017
6018 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
6019
6020         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
6021         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
6022         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
6023         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
6024
6025 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
6026
6027         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
6028         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
6029
6030 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
6031
6032         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
6033         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
6034         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
6035         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
6036
6037 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
6038
6039         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
6040         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
6041
6042 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
6043
6044         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
6045         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
6046
6047         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
6048         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
6049         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
6050         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
6051
6052 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
6053
6054         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
6055         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
6056         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
6057         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
6058
6059 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
6060
6061         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
6062         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
6063         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
6064         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6065         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
6066         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6067
6068 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6069
6070         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
6071         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
6072         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
6073         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
6074
6075 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
6076
6077         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
6078         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
6079         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
6080         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
6081         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
6082         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
6083         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
6084         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
6085         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
6086         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
6087         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
6088         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
6089         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
6090         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
6091         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
6092         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
6093
6094 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6095
6096         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
6097         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
6098
6099 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
6100
6101         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
6102         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
6103
6104 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6105
6106         * sysdeps/powerpc/powerpc32/970/Implies: New file.
6107         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
6108         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
6109         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
6110         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
6111         * sysdeps/powerpc/powerpc64/970/Implies: New file.
6112         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
6113         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
6114         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
6115         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
6116
6117 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
6118
6119         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
6120
6121 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
6122
6123         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
6124         branch miss-predicts. Ensure that cache line crossing does not impact
6125         dispatch grouping.
6126
6127 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
6128
6129         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
6130         "../../powerpc32/power4/memcopy.h".
6131         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
6132         "../../powerpc32/power4/wordcopy.c".
6133
6134 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
6135
6136         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
6137         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
6138         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
6139         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
6140         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
6141         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
6142
6143 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
6144
6145         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
6146
6147 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6148
6149         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
6150         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
6151         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
6152         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
6153         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
6154         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
6155         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
6156         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
6157
6158 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
6159
6160         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
6161
6162 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6163
6164         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
6165         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
6166         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
6167         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
6168         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
6169         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
6170         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
6171
6172 2007-05-29  Roland McGrath  <roland@redhat.com>
6173
6174         * po/Makefile (po-sed-cmd): New variable.
6175         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
6176
6177 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
6178
6179         * crypt/md5-crypt.c: Fix comment.
6180
6181         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
6182         of crashing.  When this is the case or if the reply is malformed,
6183         don't try to close the new file descriptor since it does not
6184         exist.
6185         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
6186
6187 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
6188
6189         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
6190         if __NR_utimensat is not defined.
6191
6192 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
6193
6194         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
6195
6196 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
6197
6198         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
6199         (open): Fix comment typos.  Don't call __open_2 if flags
6200         is a compile time constant without O_CREAT.
6201         (__open64_2): Add nonnull attribute.
6202         (open64): Fix comment typos.  Don't call __open64_2 if flags
6203         is a compile time constant without O_CREAT.
6204         (__openat_2): Add nonnull attribute, fix nonnull attribute
6205         on redirect.
6206         (openat): Fix comment typos.  Don't call __openat_2 if flags
6207         is a compile time constant without O_CREAT.
6208         (__openat64_2): Add nonnull attribute, fix nonnull attribute
6209         on redirect.
6210         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
6211         is a compile time constant without O_CREAT.
6212
6213 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
6214
6215         * Makerules (sysd-rules): Define PTW for ptw-* files.
6216         * Versions: Define GLIBC_2.7 for libc.
6217         * include/stdio.h: Declare __fortify_fail.
6218         * debug/fortify_fail.c: New file.
6219         * debug/Makefile (routines): Add fortify_fail.
6220         * debug/chk_fail.c: Use __fortify_fail.
6221         * debug/stack_chk_fail.c: Likewise.
6222         * io/Versions: Export __open_2, __open64_2, __openat_2, and
6223         __openat64_2 for GLIBC_2.7.
6224         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
6225         * io/open.c: Define *_2 variant of function which checks for O_CREAT
6226         and fails if necessary.
6227         * io/open64.c: Likewise.
6228         * io/openat.c: Likewise.
6229         * io/openat64.c: Likewise.
6230         * sysdeps/unix/sysv/linux/open64.c: Likewise.
6231         * sysdeps/unix/sysv/linux/openat.c: Likewise.
6232         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
6233         * io/bits/fcntl2.h: New file.
6234         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
6235         __openat64_2.
6236         * include/bits/fcntl2.h: New file.
6237         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6238         Add open_2.
6239         * sysdeps/unix/sysv/linux/open_2.c: New file.
6240
6241 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
6242
6243         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
6244         as second parameter to handle_intel.
6245
6246         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
6247         the entry.
6248
6249         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
6250         handling to ...
6251         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
6252         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6253         cacheinfo.
6254         * sysdeps/x86_64/memcpy.S: Complete rewrite.
6255         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6256         Patch by Evandro Menezes <evandro.menezes@amd.com>.
6257
6258         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6259
6260 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
6261
6262         [BZ #4525]
6263         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6264         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6265         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6266
6267         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6268
6269         [BZ #4514]
6270         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6271         reinitialize workend at the start of each do_positional format spec
6272         loop, free workstart before do_positional loops.
6273         (printf_unknown): Fix size of work_buffer.
6274         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6275
6276         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6277         (public_sET_STATe): If ms->version < 3, put all chunks into
6278         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6279         chunks.
6280
6281         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6282         * malloc/hooks.c: Likewise.
6283         * malloc/arena.c: Likewise.
6284         * malloc/malloc.c (do_check_malloc_state): Don't assert
6285         n_mmaps is not greater than n_mmaps_max.  This removes the need
6286         for the previous change.
6287
6288         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6289         2007-05-07 commit.
6290
6291 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
6292
6293         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6294         Define for kernel >= 2.6.22.
6295
6296 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
6297
6298         * elf/dl-close.c (_dl_close_worker): When removing object from
6299         global scope, wait for all lookups to finish afterwards.
6300         * elf/dl-open.c (add_to_global): When global scope array must
6301         grow, allocate a new one and free old array only after all
6302         lookups finish.
6303         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6304         (_dl_lookup_symbol_x): Likewise.
6305         * elf/dl-support.c: Define _dl_wait_lookup_done.
6306         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6307         _dl_wait_lookup_done.
6308
6309         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6310         not overlapping with arena.
6311
6312         * malloc/mcheck.c (reallochook): If size==0, free the block.
6313
6314         * rt/tst-shm.c: Use fstat64 instead of fstat.
6315
6316         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6317         __NR_sync_file_range is not defined.
6318
6319 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
6320
6321         Dummy files to prevent stub versions from being used.
6322         * sysdeps/x86_64/fpu/k_cosl.c: New file.
6323         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6324         * sysdeps/x86_64/fpu/k_sinl.c: New file.
6325         * sysdeps/x86_64/fpu/k_tanl.c: New file.
6326
6327         * version.h (VERSION): Set to 2.6.90.
6328
6329 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
6330
6331         * version.h (VERSION): Define to 2.6.
6332         * include/features.h (__GLIBC_MINOR__): Define to 6.
6333
6334         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6335
6336         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6337         sizes.
6338
6339 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
6340
6341         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6342         number of mmaps.  n_mmaps_max is the target.
6343         * malloc/hooks.c: Likewise.
6344         * malloc/arena.c: Likewise.
6345
6346 2007-05-12  Andreas Jaeger  <aj@suse.de>
6347
6348         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6349         getpid.
6350
6351 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
6352
6353         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6354         adding new variables.
6355
6356         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
6357         optimize.  Completely extend global scope array before making the
6358         new entries visible.
6359
6360 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
6361
6362         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6363         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6364         tst-getcpu.
6365
6366         * include/link.h: Move l_version and l_nversion members around to
6367         fill gaps.
6368
6369         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6370
6371         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6372         (__sched_setaffinity_new): If syscall was successful and
6373         RESET_VGETCPU_CACHE is defined, use it before returning.
6374         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6375
6376         * io/sys/stat.h: Make sure struct timespec is defined for
6377         __USE_ATFILE.
6378
6379         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6380         UTIME_OMIT.
6381         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6382         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6383         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6384         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6385         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6386         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6387         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6388         * io/sys/stat.h: Declare utimensat, futimens.
6389         * io/utimensat.c: New file.
6390         * io/futimens.c: New file.
6391         * sysdeps/unix/sysv/linux/utimensat.c: New file.
6392         * sysdeps/unix/sysv/linux/futimens.c: New file.
6393         * io/Makefile (routines): Add utimensat, futimens.
6394         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6395         * sysdeps/unix/sysv/linux/lutimes.c: New file.
6396         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6397         available.
6398
6399         * include/sys/cdefs.h: Redefine __nonnull so that test for
6400         incorrect parameters in the libc code itself are not omitted.
6401
6402 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
6403
6404         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6405         exception in addition to inexact when asked to raise only FE_INEXACT.
6406
6407         [BZ #3427]
6408         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6409         in *envp.
6410
6411 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6412
6413         [BZ #4403]
6414         * string/strfry.c (strfry): Make result more random.
6415
6416 2007-05-07  Richard Henderson  <rth@redhat.com>
6417
6418         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6419         if __NO_LONG_DOUBLE_MATH.
6420         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
6421         available in the compiler, add .arch directive to the assembly.
6422
6423 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
6424
6425         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6426         compat_symbol to GLIBC_2_1.
6427         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6428         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6429         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6430         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6431         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6432         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6433         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6434         libc, not libm.
6435         (__isnanl): New compat_symbol.
6436
6437 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6438             Jakub Jelinek  <jakub@redhat.com>
6439
6440         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6441         (new_heap): Initialize mprotect_size.
6442         (grow_heap): When growing, only mprotect from mprotect_size till
6443         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
6444         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6445
6446 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
6447             Peter Bergner  <bergner@us.ibm.com>
6448
6449         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6450         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
6451         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6452         * sysdeps/powerpc/fpu/fe_mask.c: New file.
6453         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6454         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6455         Call __fe_mask_env() if all FP exceptions disabled.
6456         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6457         from old FPSCR to new fenv to propagate DFP rounding modes.
6458         Call __fe_mask_env() if FP exceptions previously enabled.
6459         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6460         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
6461         transitioning from all exceptions disabled to any exception enabled
6462         or visa versa.
6463         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6464         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
6465         when transitioning from all exceptions disabled to any exception
6466         enabled or visa versa.
6467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6471         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6473
6474 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6475
6476         [BZ #4465]
6477         * posix/unistd.h: Remove __THROW from fdatasync.
6478
6479 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
6480
6481         [BZ #4465]
6482         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6483
6484 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6485
6486         * stdio-common/vfprintf.c (process_string_arg): Optimize
6487         ridiculous precision in wide char code printing multi-byte string.
6488         Reported by Jim Meyering <jim@meyering.net>.
6489
6490         [BZ #4131]
6491         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6492         boundaries to work around systems with overlapping binary loading.
6493         Based on a patch by Suzuki <suzuki@in.ibm.com>.
6494
6495 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
6496
6497         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6498         __mbsnrtowcs after last change.
6499
6500         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6501         (get_ident): Likewise.
6502
6503 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6504
6505         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6506         with setting the sticky bit.
6507         * math/test-misc.c (main): Add more truncation tests.
6508
6509 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
6510
6511         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6512         double in the function declaration.
6513         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6514         double in the function declaration.
6515         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6516         float in the function declaration.
6517         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6518         float in the function declaration.
6519
6520         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6521         denormal operands.  Do not generate FP_EX_DENORM exception.
6522         (FP_UNPACK_RAW_EP): Ditto.
6523         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6524         undefined _FP_UNPACK_RAW_E.
6525         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6526         undefined _FP_UNPACK_RAW_EP.
6527         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6528         undefined _FP_PACK_RAW_E.
6529         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6530         undefined _FP_PACK_RAW_EP.
6531
6532         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6533         _FP_FRAC_COPY_2.
6534         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6535         _FP_FRAC_COPY_4.
6536
6537 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
6538             Jakub Jelinek  <jakub@redhat.com>
6539
6540         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6541         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
6542         this case.
6543         * soft-fp/op-common.h (FP_TRUNC): Ditto.
6544
6545 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6546
6547         * math/test-misc.c (main): Add tests for rounding long double
6548         values close to smallest double denormalized value to double.
6549
6550 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
6551
6552         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6553         condition for truncating to 0.  Set sticky bit for such
6554         truncation.
6555
6556 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
6557
6558         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6559         fixed length array for ignore.
6560
6561 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6562
6563         [BZ #4438]
6564         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6565         stack for large precisions.
6566         * stdio-common/test-vfprintf.c (main): Add test for large
6567         precision.
6568
6569 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
6570
6571         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6572         for exponent 0.
6573         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6574
6575         [BZ #4439]
6576         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6577         account in the size check.
6578         * resolv/tst-inet_ntop.c: New test.
6579         * resolv/Makefile (tests): Add tst-inet_ntop.
6580
6581 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6582             Jakub Jelinek  <jakub@redhat.com>
6583
6584         [BZ #4349]
6585         * malloc/malloc.c: Keep separate list for first blocks on the bin
6586         lists with a given size.  This helps skipping over list elements
6587         we know won't fit in two places.
6588         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6589
6590 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
6591
6592         [BZ #4102]
6593         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6594         label to Teredo tunnel addresses 2001://32.
6595
6596 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
6597
6598         * locale/programs/ld-collate.c (collate_read): Allow order_start
6599         after copy.
6600
6601         * locale/programs/ld-collate.c (collate_read): Fix printing of
6602         error message.
6603
6604         [BZ #3213]
6605         * locale/C-translit.h.in: Add entry for U2044.
6606
6607         [BZ #4342]
6608         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6609         hexa-decimal floats without exponent.
6610         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6611
6612 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6613
6614         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
6615         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
6616         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
6617         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
6618         GLIBC_2.6.
6619         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
6620         Add sched_getcpu.
6621
6622 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6623
6624         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
6625         of 0 after the out_fail label.
6626
6627 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6628
6629         [BZ #4406]
6630         * iconv/gconv_charset.h (strip): Allow ':'.
6631         * iconv/iconv_open.c (iconv_open): Adjust comment.
6632
6633 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6634
6635         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
6636         version.
6637
6638 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6639
6640         [BZ #4381]
6641         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
6642         alignment of buffer and tmp_buffer.
6643         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
6644         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
6645         alignment of buffer.
6646         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
6647         bigger than INT_MAX.
6648         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
6649         h_errnop arguments.  Fail if buflen is too small.
6650         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6651
6652 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6653
6654         [BZ #4405]
6655         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6656         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
6657
6658 2007-04-22  Roland McGrath  <roland@redhat.com>
6659
6660         * elf/elf.h (NT_PRXFPREG): New macro.
6661
6662 2007-04-19  Andreas Jaeger  <aj@suse.de>
6663
6664         [BZ #3905]
6665         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6666         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6667         Added.
6668
6669 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
6670
6671         * include/sys/mman.h: Mark madvise hidden.
6672         * misc/madvise.c: Add libc_hidden_def.
6673
6674 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
6675
6676         * nis/nis_domain_of.c (__nis_domain_of): New function.
6677         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
6678         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6679         * nis/nis_call.c (rec_dirsearch): Likewise.
6680         (first_shoot): Likewise.  Remove search_parent_first argument.
6681         (struct nis_server_cache): Rename search_parent_first field
6682         to search_parent.
6683         (nis_server_cache_search, nis_server_cache_add): Rename
6684         search_parent_first argument to search_parent.
6685         (__nisfind_server): Likewise.  If search_parent, call
6686         __nis_domain_of.
6687
6688 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
6689
6690         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
6691
6692 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
6693
6694         [BZ #4368]
6695         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
6696
6697 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
6698
6699         [BZ #4364]
6700         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
6701
6702 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
6703
6704         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
6705         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
6706         current number of locales in SUPPORTED.
6707         (create_archive): Initialize serial.
6708         (enlarge_archive): Preserve aliases rather than duplicating
6709         their locrecs.
6710
6711 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6712
6713         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
6714         after _IO_un_link, not before it.
6715
6716         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
6717         special case handling when wcp == wstartp + 1.  Fix a comment typo.
6718         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
6719
6720 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
6721
6722         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
6723         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
6724         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
6725         Remove __THROW.
6726         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
6727         _IO_file_xsgetn_maybe_mmap): Likewise.
6728         * libio/oldfileops.c (old_do_write): Likewise.
6729         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
6730         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
6731         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
6732         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
6733         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
6734         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
6735         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
6736         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
6737         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
6738         _IO_file_underflow, _IO_file_underflow_mmap,
6739         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
6740         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
6741         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
6742         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
6743         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
6744         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
6745         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
6746         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
6747         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
6748         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
6749         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
6750         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
6751         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
6752         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
6753         _IO_adjust_column_internal, _IO_default_uflow_internal,
6754         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
6755         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
6756         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
6757         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
6758         _IO_file_close_it_internal, _IO_file_underflow_internal,
6759         _IO_file_overflow_internal, _IO_file_attach_internal,
6760         _IO_file_fopen_internal, _IO_file_sync_internal,
6761         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
6762         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
6763         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
6764         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
6765         _IO_seekpos_unlocked): Likewise.
6766         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
6767         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
6768
6769 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
6770
6771         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
6772         argument in xmalloc size computation.
6773
6774 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
6775
6776         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
6777         math_opt_barrier and math_force_eval macros.
6778
6779 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6780
6781         [BZ #3306]
6782         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
6783         * sysdeps/i386/fpu/math_private.h: New file.
6784         * sysdeps/x86_64/fpu/math_private.h: New file.
6785         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
6786         math_force_eval macros.  Use "+m" constraint on asm rather than
6787         "=m" and "m".
6788         * math/s_nextafter.c (__nextafter): Likewise.
6789         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
6790         Likewise.
6791         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6792         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
6793         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6794         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
6795         math_opt_barrier and math_force_eval macros.
6796         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
6797         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
6798         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
6799         (__nexttoward): Use math_opt_barrier and
6800         math_force_eval macros.  Use "+m" constraint on asm rather than
6801         "=m" and "m".  Only use asm to force double result if
6802         FLT_EVAL_METHOD is 2.
6803         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
6804         (__nexttowardf): Use math_opt_barrier and
6805         math_force_eval macros.  Use "+m" constraint on asm rather than
6806         "=m" and "m".  Only use asm to force double result if
6807         FLT_EVAL_METHOD is not 0.
6808         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
6809         (__nexttowardf): Use math_opt_barrier and
6810         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6811         x to float using asm.
6812         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
6813         (__nldbl_nexttowardf): Use math_opt_barrier and
6814         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6815         x to float using asm.
6816         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
6817         (__nexttowardf): Use math_opt_barrier and math_force_eval
6818         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
6819         * math/bug-nextafter.c (zero, inf): New variables.
6820         (main): Add new tests.
6821         * math/bug-nexttoward.c (zero, inf): New variables.
6822         (main): Add new tests.
6823
6824 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
6825
6826         [BZ #3427]
6827         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
6828         exceptions both in SW and MXCSR.
6829         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
6830         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
6831         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6832         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6833         in MXCSR if SSE is available.
6834         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
6835         and ldsodefs.h.
6836         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
6837         Fix comment typo.
6838         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
6839         Return 0 rather than 1.
6840         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
6841         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
6842         * math/test-fenv.c (feholdexcept_tests): New function.
6843         (main): Call it.
6844
6845 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
6846
6847         [BZ #3427]
6848         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6849         in SW.
6850
6851 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6852
6853         [BZ #4344]
6854         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
6855         Reported by David Anderson <davea42@earthlink.net>.
6856
6857 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
6858
6859         * posix/sys/wait.h: Remove unnecessary forward declaration.
6860
6861 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
6862
6863         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
6864         with obj->do_servers after first_shoot.
6865
6866 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
6867
6868         * posix/Makefile (routines): Add sched_cpucount.
6869         (tests): Add tst-cpucount.
6870         * posix/sched_cpucount.c: New file.
6871         * posix/tst-cpucount.c: New file.
6872         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
6873         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
6874         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6875         * posix/sched.h: Define CPU_COUNT.
6876
6877 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6878
6879         * posix/fnmatch.c (STRUCT): Define.
6880         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
6881         * posix/fnmatch_loop.c (struct STRUCT): New type.
6882         (FCT): Add ends argument.  If ends != NULL and normal * is
6883         seen in the pattern, store current pattern and string pointers
6884         and return.  Adjust recursive calls.
6885         (EXT): Adjust FCT callers.
6886         (STRUCT): Undef at the end of the file.
6887         * posix/Makefile (tests): Add tst-fnmatch2.
6888         * posix/tst-fnmatch2.c: New test.
6889
6890 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
6891
6892         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
6893         and 1 on failure.
6894
6895         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
6896         Change last argument to unsigned int.
6897
6898 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
6899
6900         * scripts/check-local-headers.sh: Filter out sys/capability.h.
6901
6902 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
6903
6904         * config.h.in (HAVE_LIBCAP): Add.
6905         * nscd/selinux.h: Include sys/capability.h rather than non-existent
6906         sys/capabilities.h.
6907         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
6908         free_caps.  Cast away const from 4th cap_set_flag argument.
6909
6910 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
6911
6912         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
6913         GLIBC_2.6.
6914         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6915         Add sync_file_range.
6916         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
6917
6918 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
6919
6920         * sysdeps/powerpc/bits/atomic.h
6921         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
6922         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
6923         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6924         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
6925         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6926         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
6927         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
6928         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6929         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6930         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6931         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
6932         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6933         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6934         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6935         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6936         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
6937         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6938         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
6939         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6940         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
6941
6942 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
6943
6944         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6945         (__cache_line_size): Define the variable here.  Add
6946         attribute_hidden, remove weak_extern.
6947         (__libc_start_main): Set __cache_line_size
6948         unconditionally.
6949         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
6950         (__cache_line_size): Define the variable here.  Add
6951         attribute_hidden, remove weak_extern.
6952         (DL_PLATFORM_AUXV): Set __cache_line_size
6953         unconditionally.
6954         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
6955         weak_extern, add attribute_hidden.
6956         (__elf_machine_runtime_setup): Assume __cache_line_size is always
6957         defined in ld.so.
6958         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
6959         definition.
6960         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
6961
6962 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
6963
6964         [BZ #4276]
6965         * timezone/africa: Update from tzdata2007d.
6966         * timezone/asia: Likewise.
6967         * timezone/australasia: Likewise.
6968         * timezone/backward: Likewise.
6969         * timezone/europe: Likewise.
6970         * timezone/iso3166.tab: Likewise.
6971         * timezone/leapseconds: Likewise.
6972         * timezone/northamerica: Likewise.
6973         * timezone/southamerica: Likewise.
6974         * timezone/zone.tab: Likewise.
6975
6976         * timezone/private.h: Update from tzcode2007d.
6977         * timezone/zdump.c: Likewise.
6978         * timezone/zic.c: Likewise.
6979
6980 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
6981
6982         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
6983         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
6984         variables.
6985         (nis_server_cache_search, nis_server_cache_add): New functions.
6986         (__nisfind_server): Use them.  Add dbp and flags argument, if
6987         call __nisbind_create.
6988         (__nisbind_create): Add server_used and current_ep arguments,
6989         only call __nis_findfastest if server_used is ~0.
6990         (__do_niscall2, __prepare_niscall): Adjust callers.
6991         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
6992         ckey_cache_euid, ckey_cache_lock): New variables.
6993         (get_ckey): New function.
6994         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
6995         __pmap_getnisport.  Save __pmap_getnisport result in
6996         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
6997         key.
6998         * nis/nis_lookup.c (nis_lookup): Likewise.
6999         * nis/nis_table.c (nis_list): Likewise.
7000         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
7001         prototypes.
7002
7003         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
7004         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
7005         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
7006         _nss_nisplus_getservbyport_r): Likewise.
7007         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
7008         _nss_nisplus_getnetbyaddr_r): Likewise.
7009         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
7010         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
7011         _nss_nisplus_getntohost_r): Likewise.
7012         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
7013         _nss_nisplus_getrpcbynumber_r): Likewise.
7014
7015 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
7016
7017         * configure.in (libc_cv_gnu89_inline): Only do compile test.
7018         * configure: Rebuilt.
7019
7020         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
7021         bit-fields.
7022         * soft-fp/extended.h (_FP_UNION_E): Likewise.
7023
7024 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
7025
7026         [BZ #2831]
7027         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
7028         bit-fields.
7029
7030 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
7031
7032         * nscd/gai.c: Include alloca.h.
7033         (__libc_use_alloca): Define.
7034
7035 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
7036
7037         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
7038         smaller scopes.
7039         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
7040         (DL_DST_REQUIRED): Adjust user.
7041
7042         * include/dlfcn.h (struct link_map): New forward decl.
7043
7044         * inet/getnameinfo.c: Include stddef.h.
7045         (getnameinfo): Use offsetof.
7046
7047         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
7048
7049         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
7050
7051         * string/strerror_l.c: Include stdlib.h.
7052
7053         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
7054         * config.make.in (gnu89-inline-CFLAGS): New variable.
7055         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
7056         -std=gnu99.
7057         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
7058         * argp/argp.h: Use it.
7059         * bits/mathinline.h: Likewise.
7060         * bits/sigset.h: Likewise.
7061         * bits/string.h: Likewise.
7062         * ctype/ctype.h: Likewise.
7063         * hurd/hurd.h: Likewise.
7064         * hurd/hurd/fd.h: Likewise.
7065         * hurd/hurd/port.h: Likewise.
7066         * hurd/hurd/signal.h: Likewise.
7067         * hurd/hurd/threadvar.h: Likewise.
7068         * hurd/hurd/userlink.h: Likewise.
7069         * io/sys/stat.h: Likewise.
7070         * libio/bits/stdio.h: Likewise.
7071         * libio/bits/stdio2.h: Likewise.
7072         * mach/lock-intern.h: Likewise.
7073         * mach/mach/mig_support.h: Likewise.
7074         * math/bits/cmathcalls.h: Likewise.
7075         * posix/bits/unistd.h: Likewise.
7076         * socket/bits/socket2.h: Likewise.
7077         * stdlib/bits/stdlib.h: Likewise.
7078         * stdlib/stdlib.h: Likewise.
7079         * string/argz.h: Likewise.
7080         * string/bits/string2.h: Likewise.
7081         * string/bits/string3.h: Likewise.
7082         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
7083         * sysdeps/generic/inttypes.h: Likewise.
7084         * sysdeps/generic/machine-lock.h: Likewise.
7085         * sysdeps/generic/machine-sp.h: Likewise.
7086         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7087         * sysdeps/i386/i486/bits/string.h: Likewise.
7088         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
7089         * sysdeps/mach/alpha/machine-lock.h: Likewise.
7090         * sysdeps/mach/alpha/machine-sp.h: Likewise.
7091         * sysdeps/mach/i386/machine-lock.h: Likewise.
7092         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
7093         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
7094         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7095         * sysdeps/s390/bits/string.h: Likewise.
7096         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
7097         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7098         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7099         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
7100         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7101         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
7102         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
7103         * wcsmbs/bits/wchar2.h: Likewise.
7104         * wcsmbs/wchar.h: Likewise.
7105         * stdlib/gmp.h: Likewise.  Include <features.h> to get
7106         __extern_inline definition.
7107
7108 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
7109
7110         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
7111         NULL.
7112
7113         [BZ #3919]
7114         * math/libm-test.inc (log_test): Test -Inf and NaN.
7115         (log10_test, log1p_test, log2_test): Test -Inf.
7116         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
7117         FE_INVALID when argument is qNaN.
7118         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
7119         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
7120         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
7121         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
7122         andb $1, %ah with testb $1, %ah, don't test for parity, instead
7123         testb $4, %ah and jump if non-zero.
7124         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
7125         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
7126
7127         [BZ #4101]
7128         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
7129         ancestors with the same depths.
7130         Patch by Niels Moeller <nisse@lysator.liu.se>.
7131         (filter_doc): Don't crash if argp is NULL.
7132         * argp/Makefile (tests): Add tst-argp2.
7133         * argp/tst-argp2.c: New test.
7134
7135         [BZ #4130]
7136         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
7137         open_not_cancel_2.
7138         (updwtmp_file): Likewise.
7139
7140         [BZ #4181]
7141         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
7142         (inet6_opt_append): Don't check extlen is big enough if extbuf
7143         is NULL.
7144         (inet6_opt_finish): Likewise.
7145         * inet/Makefile (tests): Add test-inet6_opt.
7146         * inet/test-inet6_opt.c: New test.
7147
7148         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
7149         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
7150         NLMSG_ERR.  Instead use a page sized buffer.
7151         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
7152         buffer.
7153
7154 2007-03-14  Richard Henderson  <rth@redhat.com>
7155
7156         * sysdeps/alpha/fpu/s_llround.c: New file.
7157         * sysdeps/alpha/fpu/s_llroundf.c: New file.
7158         * sysdeps/alpha/fpu/s_lround.c: New file.
7159         * sysdeps/alpha/fpu/s_lroundf.c: New file.
7160         * sysdeps/alpha/fpu/s_round.c: New file.
7161         * sysdeps/alpha/fpu/s_roundf.c: New file.
7162         * sysdeps/alpha/fpu/s_trunc.c: New file.
7163         * sysdeps/alpha/fpu/s_truncf.c: New file.
7164
7165         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
7166         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
7167         * sysdeps/alpha/fpu/s_floor.c: Likewise.
7168         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
7169         * sysdeps/alpha/fpu/s_rint.c: Likewise.
7170         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7171
7172         * sysdeps/alpha/fpu/s_fmax.S: New file.
7173         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
7174         * sysdeps/alpha/fpu/s_fmin.S: New file.
7175         * sysdeps/alpha/fpu/s_fminf.S: New file.
7176         * sysdeps/alpha/fpu/s_isnan.c: New file.
7177         * sysdeps/alpha/fpu/s_isnanf.c: New file.
7178         * sysdeps/alpha/fpu/s_llrint.c: New file.
7179         * sysdeps/alpha/fpu/s_llrintf.c: New file.
7180         * sysdeps/alpha/fpu/s_lrint.c: New file.
7181         * sysdeps/alpha/fpu/s_lrintf.c: New file.
7182         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
7183         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
7184
7185         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
7186         (__fdimf, fdimf, __fdim, fdim): Remove.
7187         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
7188         (__isnanf, __isnan, __isnanl): New.
7189
7190 2007-03-13  Richard Henderson  <rth@redhat.com>
7191
7192         * sysdeps/ieee754/ldbl-128/Makefile: New file.
7193
7194 2007-03-13  Richard Henderson  <rth@redhat.com>
7195
7196         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
7197         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
7198         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
7199         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
7200         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
7201         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
7202
7203 2007-03-13  Richard Henderson  <rth@redhat.com>
7204
7205         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
7206         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
7207         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
7208         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
7209         Move to dl-auxv.h; initialize instead of extern weak.
7210         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
7211         weak symbol.
7212         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
7213         Extern instead of initialized.
7214
7215 2007-03-13  Richard Henderson  <rth@redhat.com>
7216
7217         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
7218         __sigsuspend_nocancel.
7219
7220 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
7221
7222         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
7223         172.16/12 address range.
7224
7225 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
7226
7227         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
7228         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
7229         message.
7230
7231 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
7232
7233         [BZ #4069]
7234         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
7235         earlier.
7236         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
7237
7238         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
7239         for x qNaN and y either +-inf or non-integer value.
7240         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
7241         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
7242         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7243
7244 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
7245
7246         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
7247         from sysdep_headers.
7248
7249 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
7250
7251         * time/tzfile.c (find_transition): Instead of a linear search try to
7252         guess the transition index, use a linear search if the result is at
7253         most 10 transitions away from the guess or binary search otherwise.
7254
7255 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
7256
7257         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7258         memory reallocation.
7259
7260 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
7261
7262         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7263         and fix some typos.
7264         Optimize use of TOLOWER.
7265
7266         [BZ #3325]
7267         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7268         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7269         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7270
7271         [BZ #3458]
7272         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7273         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7274
7275         [BZ #4076]
7276         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7277         (open_dir_stream): Likewise.
7278         * io/Makefile (tests): Add bug-ftw5.
7279         * io/bug-ftw5.c: New file.
7280
7281         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7282         * nscd/servicescache.c (cache_addserv): Likewise.
7283
7284         * nscd/grpcache.c (cache_addgr): In case a record changed on
7285         refresh, adjust key_copy.
7286
7287         [BZ #4074]
7288         * nscd/pwdcache.c (cache_addpw): In case a record changed on
7289         refresh, adjust key_copy.
7290
7291         [BZ #4070]
7292         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
7293         special cases.
7294         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
7295
7296 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
7297
7298         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7299         optimization.
7300
7301         * stdio-common/vfscanf.c: Small cleanups throughout.
7302
7303 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
7304
7305         [BZ #3325]
7306         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7307         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7308         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7309         Patch by Jared Casper <jaredcasper@gmail.com>.
7310
7311         * sysdeps/unix/closedir.c: Outside libc don't use locking.
7312         * sysdeps/unix/opendir.c: Likewise.
7313         * sysdeps/unix/readdir.c: Likewise.
7314
7315         [BZ #2211]
7316         * stdio-common/vfscanf.c: Handle localized digits etc for floating
7317         point numbers.
7318         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7319
7320         * stdio-common/vfscanf.c: Fix problems in width accounting.
7321         * stdio-common/tst-sscanf.c (double_tests): New tests.
7322         (main): Hook them up.
7323
7324         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
7325         More simplifications of floating-point reader.
7326
7327         * stdio-common/Makefile (tests): Add tst-swscanf.
7328         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7329         testing.
7330         * stdio-common/tst-swscanf.c: New file.
7331
7332 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
7333
7334         [BZ #2633]
7335         * libio/stdio.h: Define struct _IO_FILE in global namespace.
7336         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7337         Remove using for __jmp_buf_tag.
7338         * locale/locale.h (struct lconv): Also define in std namespace.
7339         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7340
7341         [BZ #3842]
7342         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7343         using __libc_enable_secure.
7344
7345         [BZ #3818]
7346         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7347
7348         [BZ #3745]
7349         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7350         of names for ellipsises.
7351
7352         [BZ #3348]
7353         * malloc/memusage.sh: Cleanups.
7354         * debug/xtrace.sh: Quoting and trap changes.
7355
7356 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
7357
7358         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7359
7360         * locale/iso-3166.def: Update entry for Serbia.
7361         * locale/iso-4217.def: Define RSD, remove CSD.
7362
7363         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7364         and 64-bit operations.
7365
7366         [BZ #4040]
7367         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7368         16-bit operations.
7369
7370         * nscd/nscd.c (parse_opt): One more conversion to use send instead
7371         of writev.
7372
7373 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
7374
7375         [BZ #3991]
7376         * assert/assert.h (assert): Simplify.
7377         (assert_perror): Likewise.
7378         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7379
7380         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7381         reqdata.
7382
7383         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7384         change: don't pass NULL in place of an integer.
7385
7386 2007-02-02  Bruno Haible  <bruno@clisp.org>
7387
7388         [BZ #3954]
7389         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7390         Add mapping for U+327E.
7391         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7392         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7393         mapping of 0xD9 0xE8.
7394         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7395         mapping of U+327E.
7396         Reported by Jungshik Shin <jungshik@google.com>.
7397
7398         [BZ #3955]
7399         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7400         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7401         Reported by Jungshik Shin <jungshik@google.com>.
7402
7403 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
7404
7405         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7406         byte variants.
7407
7408         [BZ #4040]
7409         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7410         byte variants.  Patch mostly be tom@tommay.net.
7411
7412 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
7413
7414         [BZ #3996]
7415         * posix/glob.c (attribute_hidden): Define if not defined.
7416         (glob): Unescape dirname, filename or username when needed and not
7417         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
7418         is NULL.  Handle unescaped [ in pattern without closing ].
7419         Don't pass GLOB_CHECK down to recursive glob for directories.
7420         (__glob_pattern_type): New function.
7421         (__glob_pattern_p): Implement using __glob_pattern_type.
7422         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7423         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7424         Remove unreachable code.
7425         * posix/globtest.sh: Add a couple of new tests.
7426
7427 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
7428
7429         * po/ru.po: Update from translation team.
7430
7431 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
7432
7433         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7434         to the list of i486+ CPUs.
7435         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7436
7437 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
7438
7439         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7440         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7441         references.
7442
7443 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
7444
7445         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7446
7447         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7448         * resolv/res_mkquery.c: Define __res_nopt.
7449         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7450         try adding EDNS0 record.
7451         * resolv/res_send.c (send_dg): If request failed with FORMERR and
7452         EDNS0 record was send make sure we don't try it again.
7453         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7454         * include/resolv.h: Declare __res_nopt.
7455
7456 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
7457
7458         [BZ #3944]
7459         * time/strptime_l.c (__strptime_internal): Set have_mon for
7460         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
7461         have been computed from tm_yday and tm_year.  Don't crash
7462         in day_of_the_week or day_of_the_year if not have_mon
7463         and tm_mon contains bogus value.
7464         * time/Makefile (tests): Add tst-strptime3.
7465         * time/tst-strptime3.c: New test.
7466
7467 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
7468
7469         [BZ #3957]
7470         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7471         bit for RE_HAT_LISTS_NOT_NEWLINE.
7472         (build_charclass_op): Remove bogus comment.
7473         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7474         * posix/bug-regex27.c: New test.
7475         * posix/bug-regex28.c: New test.
7476
7477 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
7478
7479         * po/sv.po: Update from translation team.
7480
7481 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
7482
7483         * nscd/nscd_helper.c (open_socket): Minor size optimization.
7484
7485 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
7486
7487         * include/locale.h (__uselocale): Add libc_hidden_proto.
7488         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7489
7490         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7491         gettimeofday.
7492
7493 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
7494
7495         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7496         returning.
7497         (PTR_DEMANGLE): Real definition now that it's not the same as
7498         PRT_MANGLE anymore.
7499         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7500
7501         * string/strerror_l.c: New file.
7502         * string/Makefile (routines): Add strerror_l.
7503         * string/string.h: Declare strerror_l.
7504         * string/Versions: Export strerror_l for GLIBC_2.6.
7505
7506 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
7507
7508         * nscd/nscd_helper.c (open_socket): Now takes request type and key
7509         as parameter.  Construct request record.  Try sending request
7510         before the first poll use, it usually succeeds.  Adjust all
7511         callers.
7512         * nscd/nscd-client.h: Define MAXKEYLEN.
7513         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
7514
7515 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
7516
7517         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7518         from return value.
7519         * nscd/nscd_helper.c: Include string.h.
7520         (__nscd_cache_search): Remove const qualifier from return value.
7521         On strict alignment architectures check hash entry and data head
7522         alignment.
7523         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7524         mmapped data during GC cycle contains garbage.  If
7525         __nscd_drop_map_ref fails, decrement mapped->counter when returning
7526         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7527         dropped to 0.
7528         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7529         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7530         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7531         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7532         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7533
7534 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
7535
7536         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7537
7538 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
7539
7540         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7541         names not numbers in cfi_*.
7542
7543 2007-01-26  Andreas Jaeger  <aj@suse.de>
7544
7545         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
7546         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
7547         Correct values of PER_HPUX and PER_OSF4.
7548
7549 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
7550
7551         * elf/dl-minimal.c: Undefine _itoa first.
7552         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7553         * malloc/mtrace.c: Revert last change.
7554         * posix/wordexp.c: Likewise.
7555
7556 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
7557
7558         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7559         and __geode__ to the list of i486+ CPUs.
7560         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7561
7562 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
7563
7564         * stdio-common/_itoa.c: Include <limits.h>.
7565         * stdio-common/_itowa.c: Likewise.
7566
7567 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
7568
7569         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7570         platforms.
7571         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7572         64-bit platforms.
7573         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7574         possible.
7575         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7576         if possible.
7577
7578         [BZ #3902]
7579         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7580         * stdio-common/Makefile (tests): Add bug17.
7581         * stdio-common/bug17.c: New file.
7582
7583 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
7584
7585         * iconvdata/brf.c: New file.
7586         * iconvdata/testdata/BRF: New file.
7587         * iconvdata/testdata/BRF..UTF8: New file.
7588         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7589         * iconvdata/Makefile: Add rules to build BRF.
7590         * iconvdata/TESTS: Add BRF entry.
7591         * iconvdata/gconv-modules: Likewise.
7592         * iconvdata/tst-tables.sh: Likewise.
7593
7594 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
7595
7596         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7597         type `long long int', not `long int'.
7598         (wcstoq): Likewise.
7599
7600 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
7601
7602         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7603         of values on 64-bit platforms which are too large.
7604
7605 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
7606             Joe Kerian  <jkerian@us.us.ibm.com>
7607
7608         [BZ #2749]
7609         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7610         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
7611         (__copysignl): Use signbit() for comparison.
7612         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7613         SET_LDOUBLE_WORDS64.
7614
7615         [BZ #2423, #2749]
7616         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
7617         (__ceill): Remove calls to fegetround(), fesetround().
7618         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7619         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7620         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7621
7622 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
7623
7624         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
7625
7626         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
7627
7628 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
7629
7630         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
7631         demangle pointer.
7632         * csu/libc-start.c: Likewise.
7633
7634 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
7635
7636         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
7637         really work anyway.
7638
7639 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7640
7641         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
7642         users.
7643         (handle_request): Remove unnecessary tests.
7644
7645         * nscd/cache.c (cache_add): Record the failure to add to the cache.
7646
7647 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
7648
7649         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7650         workbits in semi-raw fraction.
7651
7652         * math/test-misc.c: Add new tests.
7653
7654 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
7655
7656         * math/basic-test.c: Include test-skeleton.c.
7657         (TEST_TRUNC): Define.
7658         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7659         (main): Rename to ...
7660         (do_test): ...this.  Run new tests.
7661         (TEST_FUNCTION): Define.
7662
7663 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
7664             Joe Kerian  <jkerian@us.us.ibm.com>
7665
7666         [BZ #2749]
7667         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7668         handling for high words.
7669         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7670         and overflow for infinity.
7671
7672 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7673
7674         * nscd/connections.c (handle_request): Add a __builtin_expect.
7675
7676         * nscd/connections.c (serv2db): Change type into structure which
7677         also says whether this is a request for data.  Renamed to
7678         servinfo.  All users changed.
7679         (handle_request): Much simpler test whether we should search the cache.
7680
7681         * nscd/connections.c (handle_request): Fix thinko in selinux test
7682         invocation.
7683
7684         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7685         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7686         it before getting dl_load_lock and then relock.
7687         (_dl_lookup_symbol_x): Pass flags to add_dependency.
7688         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
7689         case we unlocked the scope.
7690         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
7691         _dl_lookup_symbol_x in case we locked the scope.
7692         (_dl_profile_fixup): Likewise.
7693         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
7694         set DL_LOOKUP_SCOPE_LOCK.
7695
7696 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
7697
7698         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
7699         CFLAGS-getsrvbynpt_r.c.
7700         * nscd/getsrvbynm_r.c: New file.
7701         * nscd/getsrvbypt_r.c: New file.
7702         * nscd/nscd_getserv_r.c: New file.
7703         * nscd/servicescache.c: New file.
7704         * nscd/Makefile (routines): Add nscd_getserv_r.
7705         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
7706         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
7707         CFLAGS-getsrvbypt_r.c.
7708         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
7709         table.  Add entries for services database.
7710         * nscd/connections.c (serv2str): Mark as const.  Add entries for
7711         services database.
7712         (dbs): Add .reset_res and servdb initialization.
7713         (serv2db): Add entries for services database.
7714         (verify_persistent_db): Accept dbnr == servdb.
7715         (invalidate_cache): Rewrite database name recognition to use a table.
7716         Call res_init() if .reset_res is set for database.
7717         (handle_request): Add code to handle services database.
7718         * nscd/gai.c: Don't define __getservbyname_r.
7719         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
7720         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
7721         (serv_response_header): Define.
7722         (struct datahead): Add serv_response_header member.
7723         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
7724         using table.
7725         * nscd/nscd.conf: Add entries for services database.
7726         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
7727         Declare serv_iov_disabled.
7728         Declare addservbyname, readdservbyname, addservbyport, and
7729         readdservbyport.
7730         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
7731         (find_db): Fix error message.
7732         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
7733         __nscd_getservbyname_r, and __nscd_getservbyport_r.
7734         * nscd/selinux.c (perms): Add entries for services database.
7735         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
7736         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
7737
7738         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
7739         * nscd/hstcache.c: Likewise.
7740         * nscd/pwdcache.c: Likewise.
7741
7742         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
7743         computation of keylen.
7744
7745         * include/string.h: Only redefine strndupa if this is really for
7746         libc code.
7747
7748 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
7749
7750         * nscd/nscd_gethst_r.c: Minor cleanups.
7751
7752         * nscd/connections.c (handle_request): Check selinux permissions
7753         for all non-admin commands.
7754
7755         * sysdeps/i386/i486/bits/atomic.h: Define
7756         atomic_compare_and_exchange_val_acq,
7757         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
7758         using __sync_* built-ins for gcc >= 4.1.
7759         * sysdeps/x86_64/bits/atomic.h: Likewise.
7760
7761         [BZ #3840]
7762         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
7763         and .oS.d files.
7764
7765 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
7766
7767         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
7768         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
7769         (do_test): Check errno and exit(0) if ENOSYS.
7770
7771 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7772
7773         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
7774         thousands separators.
7775         * stdlib/Makefile: Add rules to build and run tst-strtod4.
7776         * stdlib/tst-strtod4.c: New test.
7777
7778         [BZ #3855]
7779         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
7780         hexadecimal digit should accept just the initial 0.
7781         * stdlib/tst-strtod2.c (tests): New variable.
7782         (do_test): Run several tests rather than just one.
7783
7784 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7785
7786         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
7787         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
7788
7789 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
7790
7791         * io/fts.c: Make sure fts_cur is always valid after return from
7792         fts_read.
7793         Patch by Miloslav Trmac <mitr@redhat.com>.
7794
7795 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
7796
7797         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
7798         (R_MIPS_NUM): Bump by 1.
7799
7800 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
7801
7802         * posix/execvp.c: Include alloca.h.
7803         (allocate_scripts_argv): Renamed to...
7804         (scripts_argv): ... this.  Don't allocate buffer here nor count
7805         arguments.
7806         (execvp): Use alloca if possible.
7807         * posix/Makefile: Add rules to build and run tst-vfork3 test.
7808         * posix/tst-vfork3.c: New test.
7809
7810 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
7811
7812         * string/Makefile (tst-strxfrm2-ENV): Define.
7813         * stdlib/Makefile (tst-strtod3-ENV): Define.
7814
7815 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
7816
7817         * posix/getconf.c: Update copyright year.
7818         * nss/getent.c: Likewise.
7819         * iconv/iconvconfig.c: Likewise.
7820         * iconv/iconv_prog.c: Likewise.
7821         * elf/ldconfig.c: Likewise.
7822         * catgets/gencat.c: Likewise.
7823         * csu/version.c: Likewise.
7824         * elf/ldd.bash.in: Likewise.
7825         * elf/sprof.c (print_version): Likewise.
7826         * locale/programs/locale.c: Likewise.
7827         * locale/programs/localedef.c: Likewise.
7828         * nscd/nscd.c (print_version): Likewise.
7829         * debug/xtrace.sh: Likewise.
7830         * malloc/memusage.sh: Likewise.
7831         * malloc/mtrace.pl: Likewise.
7832         * debug/catchsegv.sh: Likewise.
7833
7834 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
7835
7836         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
7837         attempts.
7838
7839 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
7840
7841         * posix/wordexp.c: Remove some unnecessary tests.
7842
7843 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
7844
7845         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
7846         blacklist the group till after we look it up.
7847
7848 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
7849
7850         * include/atomic.h (atomic_forced_read): New macro.
7851
7852 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
7853
7854         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
7855
7856 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
7857
7858         * nss/getXXbyYY_r.c: Include atomic.h.
7859         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
7860         add atomic_write_barrier () in between.
7861
7862         * stdlib/Makefile (tests): Add tst-makecontext.
7863         * stdlib/tst-makecontext.c: New test.
7864
7865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
7866         (__makecontext): Don't realign uc_mcontext.uc_regs.
7867
7868 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
7869
7870         * elf/dl-support.c: Include dl-procinfo.h.
7871         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
7872         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
7873         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
7874         Define.
7875         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
7876         hardcoded constants.
7877         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
7878         PPC_PLATFORM_* macros for array designators.
7879
7880 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
7881
7882         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
7883         names to the beginning.
7884         (_dl_powerpc_platforms): Add "power6x".
7885         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
7886         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
7887         (_DL_PLATFORMS_COUNT): Increase.
7888         (_dl_string_platform): Handle power6x case.
7889         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
7890         PPC_FEATURE_POWER6_EXT): Define.
7891         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
7892
7893 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
7894
7895         [BZ #3747]
7896         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
7897         [-2^31 .. 2^31) range.
7898         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
7899         targets.
7900         * stdlib/tst-rand48-2.c: New test.
7901         * stdlib/Makefile (tests): Add tst-rand48-2.
7902
7903 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
7904
7905         * misc/tst-pselect.c (do_test): Fix sigblock argument.
7906
7907 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
7908
7909         * misc/tst-pselect.c (do_test): Make sure the helper process is
7910         terminating when the test is aborted.
7911
7912 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
7913
7914         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
7915         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7916         Handle relatime mount option.
7917
7918         [BZ #2337]
7919         * libio/Makefile (tests): Add tst-setvbuf1.
7920         * libio/tst-setvbuf1.c: New file.
7921
7922 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
7923
7924         [BZ #2337]
7925         * libio/genops.c (__uflow): Fix a typo.
7926         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
7927         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
7928         the narrow buffer size.
7929
7930 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
7931
7932         [BZ #2337]
7933         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
7934         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
7935         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
7936         in _flags.
7937         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
7938         _IO_wstr_finish): Likewise.
7939         * libio/wmemstream.c (open_wmemstream): Likewise.
7940         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
7941         even for wide streams.
7942
7943 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
7944
7945         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
7946         kernel-features.h.
7947
7948 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
7949
7950         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
7951         separators also if no non-zero digits found.
7952         * stdlib/Makefile (tests): Add tst-strtod3.
7953
7954 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
7955
7956         [BZ #3632]
7957         * include/features.h: Fix comment about default value for
7958         _POSIX_C_SOURCE.
7959
7960         [BZ #3664]
7961         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
7962         empty parsed strings.
7963         * stdlib/Makefile (tests): Add tst-strtod2.
7964         * stdlib/tst-strtod2.c: New file.
7965
7966         [BZ #3673]
7967         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
7968         computation.
7969         * stdlib/Makefile (tests): Add tst-atof2.
7970         * stdlib/tst-atof2.c: New file.
7971
7972         [BZ #3674]
7973         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
7974         correctly if removing trailing zero of hex-float.
7975         * stdlib/Makefile (tests): Add tst-atof1.
7976         * stdlib/tst-atof1.c: New file.
7977
7978 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
7979
7980         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
7981         Start searching for next comma at p rather than rest.
7982         * misc/Makefile (tests): Add tst-mntent2.
7983         * misc/tst-mntent2.c: New test.
7984
7985         * misc/getusershell.c (initshells): Check for integer overflows.
7986         Make strings buffer one bigger as fgets always succeeds when second
7987         argument is 1.  Don't use calloc for shells array.  Disallow
7988         / as shell.
7989
7990 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
7991
7992         * malloc/memusage.c: Handle realloc with new size of zero and
7993         non-NULL pointer correctly.
7994         (me): Really write first record twice.
7995         (struct entry): Make format bi-arch safe.
7996         (dest): Write out more realloc statistics.
7997         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
7998
7999 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
8000
8001         * nis/nis_subr.c (nis_getnames): Revert last change.
8002
8003 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
8004
8005         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
8006         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
8007         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
8008         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
8009         ENOTTY.
8010         * io/Makefile: Add rules to build and run tst-ttyname_r test.
8011         * io/tst-ttyname_r.c: New test.
8012
8013 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8014
8015         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
8016
8017 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
8018
8019         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
8020         jump table entries.
8021
8022 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
8023
8024         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
8025         `clone' function to ensure proper unwinding stop of gdb.
8026         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
8027
8028 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
8029
8030         * nscd/nscd.init: Remove obsolete and commented-out -S option
8031         handling.
8032
8033 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
8034
8035         [BZ #3514]
8036         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
8037
8038         [BZ #3515]
8039         * manual/string.texi (strtok): Remove duplicate paragraph.
8040
8041 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8042
8043         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
8044         libgcc not supporting `rflags' unwinding (register # >= 17).
8045
8046 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
8047
8048         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
8049         succeeded.
8050
8051 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
8052             Jakub Jelinek  <jakub@redhat.com>
8053             Jan Kratochvil  <jan.kratochvil@redhat.com>
8054
8055         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
8056         unwind information.
8057         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
8058         'restore_rt' even in the 'signal' directory.
8059         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
8060
8061 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
8062
8063         [BZ #3559]
8064         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
8065         malloc crashed.  Don't allocate memory unnecessarily in each
8066         loop.
8067
8068 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
8069
8070         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
8071
8072 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
8073
8074         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
8075
8076 2006-11-18  Bruno Haible  <bruno@clisp.org>
8077
8078         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
8079         __sysconf only after having tried to call getgroups32.
8080
8081 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
8082
8083         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
8084         addresses for IPv4 queries if they can be mapped.
8085
8086 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
8087
8088         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
8089         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
8090         (signmask): Add .size directive.
8091         (othermask): Add .type directive.
8092
8093 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
8094
8095         * po/nl.po: Update from translation team.
8096
8097         * timezone/zdump.c: Redo fix for BZ #3137.
8098
8099 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
8100
8101         * nss/nss_files/files-alias.c (get_next_alias): Set line back
8102         to first_unused after parsing :include: file.
8103
8104 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8105
8106         * timezone/africa: Update from tzdata2006o.
8107         * timezone/antarctica: Likewise.
8108         * timezone/asia: Likewise.
8109         * timezone/australasia: Likewise.
8110         * timezone/backward: Likewise.
8111         * timezone/europe: Likewise.
8112         * timezone/iso3166.tab: Likewise.
8113         * timezone/northamerica: Likewise.
8114         * timezone/southamerica: Likewise.
8115         * timezone/zone.tab: Likewise.
8116
8117         * time/tzfile.c (__tzfile_read): Extend to handle new file format
8118         on machines with 64-bit time_t.
8119
8120         * timezone/checktab.awk: Update from tzcode2006o.
8121         * timezone/ialloc.c: Likewise.
8122         * timezone/private.h: Likewise.
8123         * timezone/scheck.c: Likewise.
8124         * timezone/tzfile.h: Likewise.
8125         * timezone/tzselect.ksh: Likewise.
8126         * timezone/zdump.c: Likewise.
8127         * timezone/zic.c: Likewise.
8128
8129         [BZ #3483]
8130         * elf/ldconfig.c (main): Call setlocale and textdomain.
8131         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8132
8133         [BZ #3480]
8134         * manual/argp.texi: Fix typos.
8135         * manual/charset.texi: Likewise.
8136         * manual/errno.texi: Likewise.
8137         * manual/filesys.texi: Likewise.
8138         * manual/lang.texi: Likewise.
8139         * manual/maint.texi: Likewise.
8140         * manual/memory.texi: Likewise.
8141         * manual/message.texi: Likewise.
8142         * manual/resource.texi: Likewise.
8143         * manual/search.texi: Likewise.
8144         * manual/signal.texi: Likewise.
8145         * manual/startup.texi: Likewise.
8146         * manual/stdio.texi: Likewise.
8147         * manual/sysinfo.texi: Likewise.
8148         * manual/syslog.texi: Likewise.
8149         * manual/time.texi: Likewise.
8150         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8151
8152         [BZ #3465]
8153         * sunrpc/clnt_raw.c: Minimal message improvements.
8154         * sunrpc/pm_getmaps.c: Likewise.
8155         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8156         * nis/nis_print_group_entry.c: Likewise.
8157         * locale/programs/repertoire.c: Likewise.
8158         * locale/programs/charmap.c: Likewise.
8159         * malloc/memusage.sh: Likewise.
8160         * elf/dl-deps.c: Likewise.
8161         * locale/programs/ld-collate.c: Likewise.
8162         * libio/vswprintf.c: Likewise.
8163         * malloc/memusagestat.c: Likewise.
8164         * sunrpc/auth_unix.c: Likewise.
8165         * sunrpc/rpc_main.c: Likewise.
8166         * nscd/cache.c: Likewise.
8167         * locale/programs/repertoire.c: Unify output messages.
8168         * locale/programs/charmap.c: Likewise.
8169         * locale/programs/ld-ctype.c: Likewise.
8170         * locale/programs/ld-monetary.c: Likewise.
8171         * locale/programs/ld-numeric.c: Likewise.
8172         * locale/programs/ld-time.c: Likewise.
8173         * elf/ldconfig.c: Likewise.
8174         * nscd/selinux.c: Likewise.
8175         * elf/cache.c: Likewise.
8176         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8177
8178         [BZ #3451]
8179         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
8180         change atomic.
8181         (ceil): Likewise.
8182
8183 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8184
8185         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
8186         if N is one bigger than return value.
8187         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
8188         and l1 last arguments, if buf is defined, verify the return value
8189         equals to strlen (buf) and verify no byte beyond passed length
8190         is modified.
8191
8192 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8193
8194         * po/sv.po: Update from translation team.
8195
8196 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8197
8198         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
8199         noinline attribute.
8200
8201 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8202
8203         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
8204         noinline attribute.
8205
8206         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
8207         Use __new_sys_siglist instead of _sys_siglist_internal as
8208         second macro argument.
8209         (_old_sys_siglist): Use declare_symbol_alias macro instead of
8210         strong_alias.
8211
8212 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8213
8214         [BZ #3493]
8215         * posix/unistd.h (sysconf): Remove const attribute.
8216
8217         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
8218         temporary or deprecated addresses.
8219         Patch by Sridhar Samudrala <sri@us.ibm.com>.
8220
8221         * string/Makefile (tests): Add tst-strxfrm2.
8222         * string/tst-strxfrm2.c: New file.
8223
8224 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
8225
8226         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
8227         rather than r->r_brk.
8228
8229 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
8230
8231         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
8232         optimization even if needed > n.
8233
8234         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
8235         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
8236         return false, otherwise return true.
8237         (cache_rpath): Return decompose_rpath return value.
8238
8239 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
8240
8241         * include/libc-symbols.h (declare_symbol): Rename to...
8242         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
8243         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
8244         .size directive.
8245         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
8246         changes.
8247         * sysdeps/gnu/siglist.c: Likewise.
8248
8249 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
8250
8251         * sysdeps/powerpc/fpu/bits/mathinline.h
8252         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8253         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
8254
8255 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
8256
8257         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8258         Update handling of cache descriptor 0x49 for new models.
8259         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8260         Likewise.
8261
8262 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
8263
8264         * malloc/memusage.c (dest): Reset not_me back to false after
8265         printing statistics.
8266
8267 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
8268
8269         * configure.in: Work around ld --help change and avoid -z relro
8270         test completely if the architecture doesn't care about security.
8271
8272 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
8273
8274         * po/sv.po: Update from translation team.
8275
8276 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
8277
8278         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8279         generate compatibility version.
8280
8281 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
8282
8283         * configure.in: Relax -z relro requirement a bit.
8284
8285         * po/sv.po: Update from translation team.
8286
8287 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
8288
8289         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8290         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8291         * elf/dl-close.c (_dl_close_worker): Likewise.
8292         * elf/dl-open.c (_dl_open_worker): Likewise.
8293         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8294
8295 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
8296
8297         * configure.in: Require assembler support for visibility, compiler
8298         support for visibility and aliases, linker support for various -z
8299         options.
8300         * Makeconfig: Remove conditional code which now is unnecessary.
8301         * config.h.in: Likewise.
8302         * config.make.in: Likewise.
8303         * dlfcn/Makefile: Likewise.
8304         * elf/Makefile: Likewise.
8305         * elf/dl-load.c: Likewise.
8306         * elf/rtld.c: Likewise.
8307         * include/libc-symbols.h: Likewise.
8308         * include/stdio.h: Likewise.
8309         * io/Makefile: Likewise.
8310         * io/fstat.c: Likewise.
8311         * io/fstat64.c: Likewise.
8312         * io/fstatat.c: Likewise.
8313         * io/fstatat64.c: Likewise.
8314         * io/lstat.c: Likewise.
8315         * io/lstat64.c: Likewise.
8316         * io/mknod.c: Likewise.
8317         * io/mknodat.c: Likewise.
8318         * io/stat.c: Likewise.
8319         * io/stat64.c: Likewise.
8320         * libio/stdio.c: Likewise.
8321         * nscd/Makefile: Likewise.
8322         * stdlib/Makefile: Likewise.
8323         * stdlib/atexit.c: Likewise.
8324         * sysdeps/generic/ldsodefs.h: Likewise.
8325         * sysdeps/i386/dl-machine.h: Likewise.
8326         * sysdeps/i386/sysdep.h: Likewise.
8327         * sysdeps/i386/i686/memcmp.S: Likewise.
8328         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8329         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8330         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8331
8332         * Makerules: USE_TLS support is now default.
8333         * tls.make.c: Likewise.
8334         * csu/Versions: Likewise.
8335         * csu/libc-start.c: Likewise.
8336         * csu/libc-tls.c: Likewise.
8337         * csu/version.c: Likewise.
8338         * dlfcn/dlinfo.c: Likewise.
8339         * elf/dl-addr.c: Likewise.
8340         * elf/dl-cache.c: Likewise.
8341         * elf/dl-close.c: Likewise.
8342         * elf/dl-iteratephdr.c: Likewise.
8343         * elf/dl-load.c: Likewise.
8344         * elf/dl-lookup.c: Likewise.
8345         * elf/dl-object.c: Likewise.
8346         * elf/dl-open.c: Likewise.
8347         * elf/dl-reloc.c: Likewise.
8348         * elf/dl-support.c: Likewise.
8349         * elf/dl-sym.c: Likewise.
8350         * elf/dl-sysdep.c: Likewise.
8351         * elf/dl-tls.c: Likewise.
8352         * elf/ldconfig.c: Likewise.
8353         * elf/rtld.c: Likewise.
8354         * elf/tst-tls-dlinfo.c: Likewise.
8355         * elf/tst-tls1.c: Likewise.
8356         * elf/tst-tls10.h: Likewise.
8357         * elf/tst-tls14.c: Likewise.
8358         * elf/tst-tls2.c: Likewise.
8359         * elf/tst-tls3.c: Likewise.
8360         * elf/tst-tls4.c: Likewise.
8361         * elf/tst-tls5.c: Likewise.
8362         * elf/tst-tls6.c: Likewise.
8363         * elf/tst-tls7.c: Likewise.
8364         * elf/tst-tls8.c: Likewise.
8365         * elf/tst-tls9.c: Likewise.
8366         * elf/tst-tlsmod1.c: Likewise.
8367         * elf/tst-tlsmod13.c: Likewise.
8368         * elf/tst-tlsmod13a.c: Likewise.
8369         * elf/tst-tlsmod14a.c: Likewise.
8370         * elf/tst-tlsmod2.c: Likewise.
8371         * elf/tst-tlsmod3.c: Likewise.
8372         * elf/tst-tlsmod4.c: Likewise.
8373         * elf/tst-tlsmod5.c: Likewise.
8374         * elf/tst-tlsmod6.c: Likewise.
8375         * include/errno.h: Likewise.
8376         * include/link.h: Likewise.
8377         * include/tls.h: Likewise.
8378         * locale/global-locale.c: Likewise.
8379         * locale/localeinfo.h: Likewise.
8380         * malloc/arena.c: Likewise.
8381         * malloc/hooks.c: Likewise.
8382         * malloc/malloc.c: Likewise.
8383         * resolv/Versions: Likewise.
8384         * sysdeps/alpha/dl-machine.h: Likewise.
8385         * sysdeps/alpha/libc-tls.c: Likewise.
8386         * sysdeps/generic/ldsodefs.h: Likewise.
8387         * sysdeps/generic/tls.h: Likewise.
8388         * sysdeps/i386/dl-machine.h: Likewise.
8389         * sysdeps/ia64/dl-machine.h: Likewise.
8390         * sysdeps/ia64/libc-tls.c: Likewise.
8391         * sysdeps/mach/hurd/fork.c: Likewise.
8392         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8393         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8394         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8395         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8396         * sysdeps/s390/libc-tls.c: Likewise.
8397         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8398         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8399         * sysdeps/sh/dl-machine.h: Likewise.
8400         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8401         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8402         * sysdeps/x86_64/dl-machine.h: Likewise.
8403
8404         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8405         split out locking and parameter checking.
8406         (_dl_close): Call _dl_close_worker after locking and checking.
8407         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8408         _dl_close.
8409         * elf/Makefile: Add rules to build and run tst-thrlock.
8410         * elf/tst-thrlock.c:  New file.
8411
8412         [BZ #3426]
8413         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8414         reality.
8415
8416         [BZ #3429]
8417         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
8418         we are sure we do not need it anymore for _dl_close.  Also move
8419         the asserts inside the lock region.
8420         Patch mostly by Suzuki <suzuki@in.ibm.com>.
8421
8422 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
8423
8424         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8425         argument.
8426         (_dl_lookup_symbol_x): Adjust caller.
8427
8428         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8429         _ns_global_scope.
8430         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8431
8432         * elf/dl-libc.c: Revert l_scope name changes.
8433         * elf/dl-load.c: Likewise.
8434         * elf/dl-object.c: Likewise.
8435         * elf/rtld.c: Likewise.
8436         * elf/dl-close.c (_dl_close): Likewise.
8437         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
8438         always use __rtld_mrlock_{change,done}.  Always free old scope list
8439         here if not l_scope_mem.
8440         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8441         change.  Never free scope list here.  Just __rtld_mrlock_lock before
8442         the lookup and __rtld_mrlock_unlock it after the lookup.
8443         * elf/dl-sym.c: Likewise.
8444         * include/link.h (struct r_scoperec): Remove.
8445         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8446         with l_scope_mem and l_scoperec_lock with l_scope_lock.
8447
8448 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
8449
8450         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8451
8452 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8453
8454         * configure.in: Disable building profile libraries by default.
8455
8456 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8457
8458         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8459         as signed longs, check for x_base + pos overflow.
8460         * sunrpc/Makefile (tests): Add tst-xdrmem2.
8461         * sunrpc/tst-xdrmem2.c: New test.
8462
8463 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8464
8465         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8466         _dl_lookup_symbol_x code.
8467
8468 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8469
8470         * elf/dl-runtime.c: Include sysdep-cancel.h.
8471         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8472         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
8473         instead of catomic_* macros.
8474         * elf/dl-sym.c: Include sysdep-cancel.h.
8475         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8476         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8477         * elf/dl-close.c: Include sysdep-cancel.h.
8478         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8479         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8480         * elf/dl-open.c: Include sysdep-cancel.h.
8481         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8482         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8483
8484 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8485
8486         [BZ #3313]
8487         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8488         fastbin rather than end of fastbin array.
8489
8490 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8491
8492         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8493         body macro.
8494         * sysdeps/x86_64/bits/atomic.h
8495         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8496         (catomic_decrement): Use correct body macro.
8497
8498 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8499
8500         * include/atomic.h: Add a unique prefix to all local variables
8501         in macros.
8502         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8503
8504 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
8505
8506         [BZ #3369]
8507         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8508         and 7.
8509
8510 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
8511
8512         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8513
8514 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
8515
8516         [BZ #3313]
8517         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8518         determine highest fast bin to consolidate, always look into all of
8519         them.
8520         (do_check_malloc_state): Only require for empty bins for large
8521         sizes in main arena.
8522
8523         * libio/stdio.h: Add more __wur attributes.
8524
8525         * elf/dl-minimal.c (realloc): Optimize last patch.
8526
8527 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
8528
8529         [BZ #3352]
8530         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8531         and use memcpy() if it does.
8532
8533 2006-11-12  Andreas Jaeger  <aj@suse.de>
8534
8535         [BZ #2510]
8536         * manual/search.texi (Hash Search Function): Clarify.
8537         (Array Search Function): Clarify.
8538
8539 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
8540
8541         [BZ #2830]
8542         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8543         shifting.
8544         * math/atest-exp2.c (read_mpn_hex): Likewise.
8545         * math/atest-sincos.c (main): Likewise.
8546
8547 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8548
8549         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8550         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8551         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8552         version GLIBC_2.6.
8553         * Versions.def: Add GLIBC_2.6 for libc.
8554
8555         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8556
8557         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8558
8559 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
8560
8561         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8562
8563         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8564
8565         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8566         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8567
8568 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8569
8570         * include/atomic.c: Define catomic_* operations.
8571         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
8572         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8573         * malloc/memusage.c: Likewise.
8574         * gmon/mcount.c: Likewise.
8575         * elf/dl-close.c: Likewise.
8576         * elf/dl-open.c: Likewise.
8577         * elf/dl-profile.c: Likewise.
8578         * elf/dl-sym.c: Likewise.
8579         * elf/dl-runtime.c: Likewise.
8580         * elf/dl-fptr.c: Likewise.
8581         * resolv/res_libc.c: Likewise.
8582
8583 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
8584
8585         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8586         components which lack them.
8587
8588         * nis/nis_subr.c (nis_getnames): Make sure that we always return
8589         at least one entry consisting of the parameter concatenated with
8590         the domain.
8591
8592 2006-10-10  Roland McGrath  <roland@frob.com>
8593
8594         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8595         * sysdeps/mach/hurd/futimes.c: Likewise.
8596         * sysdeps/mach/hurd/lutimes.c: Likewise.
8597
8598 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
8599             Jakub Jelinek  <jakub@redhat.com>
8600
8601         Implement reference counting of scope records.
8602         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8603         from the list in objects which remain.  Always allocate new scope
8604         record.
8605         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8606         don't resize, allocate a new one.
8607         * elf/dl-runtime.c: Update reference counters before using a scope
8608         array.
8609         * elf/dl-sym.c: Likewise.
8610         * elf/dl-libc.c: Adjust for l_scope name change.
8611         * elf/dl-load.c: Likewise.
8612         * elf/dl-object.c: Likewise.
8613         * elf/rtld.c: Likewise.
8614         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
8615         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
8616         Add l_scoperec_lock.
8617         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
8618         * sysdeps/generic/rtld-lowlevel.h: New file.
8619
8620         * include/atomic.h: Rename atomic_and to atomic_and_val and
8621         atomic_or to atomic_or_val.  Define new macros atomic_and and
8622         atomic_or which do not return values.
8623         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
8624         Various cleanups.
8625         * sysdeps/i386/i486/bits/atomic.h: Likewise.
8626
8627         * po/sv.po: Update from translation team.
8628
8629 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
8630
8631         * Versions.def: Add GLIBC_2.6 to libpthread.
8632
8633         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
8634         (versioned_symbol): Likewise.
8635         (compat_symbol): Likewise.
8636
8637         * po/tr.po: Update from translation team.
8638
8639 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8640
8641         * nis/Banner: Removed.  It's been integral part forever and the
8642         author info is incomplete anyway.
8643         * libio/Banner: Likewise.
8644
8645         * nis/nis_table.c (nis_list): If __follow_path fails in the new
8646         code, make sure the nis_freeresult call doesn't crash and that the
8647         result is reported correctly.
8648
8649 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
8650
8651         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8652         when callback is NULL.
8653
8654         * nis/Versions (libnss_nisplus): Add
8655         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8656         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8657         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8658         _nss_create_tablename): Rename to...
8659         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8660         ... these.  No longer static.
8661         (internal_setgrent): Adjust users.
8662         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8663         Don't use locking around _nss_grp_create_tablename call.
8664         * nis/nss_nisplus/nisplus-initgroups.c: New file.
8665
8666 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8667
8668         * version.h (VERSION): Bump to 2.5.90 for new development tree.
8669
8670 2006-10-06  Andreas Jaeger  <aj@suse.de>
8671
8672         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8673
8674 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8675
8676         * po/pl.po: Update from translation team.
8677
8678         * nscd/nscd.c (main): Fix typo in message.
8679         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
8680
8681 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8682
8683         [BZ #3291]
8684         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8685         errno.h, signal.h, unistd.h and sysdep-cancel.h.
8686         (__sigprocmask): Define.
8687
8688 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
8689
8690         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
8691         used.
8692
8693 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8694
8695         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
8696         in oldtotal and newtotal calculation.
8697         * nscd/nscd-client.h (struct mapped_database): Add datasize
8698         field.
8699         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
8700         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
8701         increased.
8702         (__nscd_cache_search): Add checks to make sure we never reference
8703         data beyond the current mapping.
8704
8705 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
8706
8707         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
8708         variables const to avoid compiler warnings.
8709
8710         * io/fts.c (fts_close): Remove redundant checks.
8711         (fts_build): Likewise.
8712         (fts_palloc): Likewise.
8713
8714         * manual/message.texi (Advanced gettext functions,
8715         Using gettextized software): Fix typos.
8716
8717 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
8718
8719         * posix/glob.c (glob_in_dir): Add some comments and asserts to
8720         explain why there are no leaks.
8721
8722 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
8723
8724         * libio/wmemstream.c: Include <wchar.h>.
8725         * libio/bug-wmemstream1.c: Likewise.
8726         * libio/tst-wmemstream1.c: Likewise.
8727         * libio/tst-wmemstream2.c: Likewise.
8728
8729         * version.h (RELEASE): Bump to 2.5.
8730         * README: Regenerated.
8731
8732         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
8733
8734         [BZ #3273]
8735         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
8736         found no group members.
8737         Patch by Petr Baudis.
8738
8739 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
8740
8741         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
8742         assert bootstrap_map.l_tls_modid is zero.
8743         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
8744         if USE___THREAD.
8745
8746 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
8747
8748         * libio/stdio.h: Move open_wmemstream prototype to ...
8749         * wcsmbs/wchar.h: ... here.
8750
8751 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
8752
8753         [BZ #3252]
8754         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
8755         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
8756         __{,l}chown to handle the rest.
8757         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
8758         fchownat syscall and __ASSUME_32BITUIDS case inline, call
8759         __{,l}chown to handle the rest.
8760         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
8761         i386/fchownat.c.
8762         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
8763         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
8764
8765         [BZ #3253]
8766         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8767         time, rather allocate increasingly bigger arrays of pointers, if
8768         possible with alloca, if too large with malloc.
8769
8770 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
8771
8772         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
8773
8774         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
8775
8776 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
8777
8778         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
8779         home addresses.
8780         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
8781         IFA_F_HOMEADDRESS flag for interfaces.
8782         * include/ifaddrs.h (struct in6addrinfo): Define
8783         in6ai_homeaddress.
8784
8785 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
8786
8787         [BZ #3225]
8788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
8789         PTR_DEMANGLE3): Define.
8790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
8791         PTR_DEMANGLE3): Likewise.
8792         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
8793         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
8794         Likewise.
8795         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8796
8797 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
8798
8799         * po/libc.pot: Regenerated.
8800         * po/be.po: Updated.
8801         * po/ca.po: Likewise.
8802         * po/cs.po: Likewise.
8803         * po/da.po: Likewise.
8804         * po/de.po: Likewise.
8805         * po/el.po: Likewise.
8806         * po/en_GB.po: Likewise.
8807         * po/es.po: Likewise.
8808         * po/fi.po: Likewise.
8809         * po/fr.po: Likewise.
8810         * po/gl.po: Likewise.
8811         * po/hr.po: Likewise.
8812         * po/hu.po: Likewise.
8813         * po/ja.po: Likewise.
8814         * po/ko.po: Likewise.
8815         * po/nb.po: Likewise.
8816         * po/nl.po: Likewise.
8817         * po/pl.po: Likewise.
8818         * po/pt_BR.po: Likewise.
8819         * po/ru.po: Likewise.
8820         * po/rw.po: Likewise.
8821         * po/sk.po: Likewise.
8822         * po/sv.po: Likewise.
8823         * po/tr.po: Likewise.
8824         * po/zh_CN.po: Likewise.
8825         * po/zh_TW.po: Likewise.
8826
8827         [BZ #3137]
8828         * iconv/iconv_prog.c (main): Fix spelling in error message.
8829         * iconv/iconvconfig.c (main): Likewise.
8830         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
8831         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
8832         * locale/programs/localedef.c (main): Likewise.
8833         * locale/programs/repertoire.c (repertoire_read): Likewise.
8834         * timezone/zdump.c (main): Likewise.
8835         * nscd/connections.c (handle_request): Fix spelling in log message.
8836         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
8837
8838 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
8839
8840         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
8841         interfaces.
8842
8843 2006-09-20  Andreas Jaeger  <aj@suse.de>
8844
8845         * math/libm-test.inc (lrint_test_upward): Fix typo.
8846
8847 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
8848
8849         [BZ #2592]
8850         * math/libm-test.inc (lrint_test_tonearest): New function.
8851         (lrint_test_towardzero): New function.
8852         (lrint_test_downward): New function.
8853         (lrint_test_upward): New function.
8854         (main): Run these new tests.
8855         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
8856         of values near to 0.
8857         (two52): Use double not long double.
8858         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8859         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8860         (two23): Use float not double.
8861         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8862         (two23): Use float not double.
8863         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8864         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8865         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8866         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8867
8868 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8869
8870         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
8871         Cast sp to unsigned long to avoid compiler warning.
8872         Use __makecontext_ret function instead of a trampoline on the stack.
8873         (__makecontext_ret): New function.
8874         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
8875
8876 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
8877
8878         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
8879         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
8880         bits.
8881
8882 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
8883
8884         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
8885         sure no reference to the unloaded map's search list remains in the
8886         dependency's scope.
8887
8888 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
8889
8890         * elf/Makefile: Add rules to build and run unload7 test.
8891         * elf/unload7.c: New test.
8892         * elf/unload7mod1.c: New file.
8893         * elf/unload7mod2.c: New file.
8894
8895 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
8896
8897         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
8898         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
8899         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8900         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
8901         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8902         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
8903         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8904         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
8905         PTRACE_GETEVENTMSG): Likewise.
8906         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
8907         values.
8908
8909 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
8910
8911         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
8912         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8913         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
8914         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
8915
8916 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
8917
8918         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
8919         write '\0' to the fd.
8920         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
8921         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
8922         Change regs to unsigned long pointer from unsigned int, fix fscr
8923         offset.
8924
8925 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
8926
8927         * io/Makefile (CFLAGS-fstatat.c): Set.
8928         (CFLAGS-fstatat64.c): Likewise.
8929         (CFLAGS-mknodat.c): Likewise.
8930
8931         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
8932         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8933         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
8934         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
8935
8936 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
8937             Steven Munroe  <sjmunroe@us.ibm.com>
8938
8939         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
8940         names to the beginning.  Rename "cell" to "cellbe".
8941         (_dl_powerpc_platforms): New.
8942         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8943         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
8944         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
8945         (_DL_HWCAP_PLATFORM): Define to new mask.
8946         (_dl_platform_string, _dl_string_platform): New functions.
8947         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
8948         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
8949
8950 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
8951
8952         [BZ #2526]
8953         * README.libm: Fix a thinko in sqrt algorithm description.
8954
8955         [BZ #3143]
8956         * manual/string.texi (argz_delete): Fix prototype.
8957         Patch by <alpt@freaknet.org>.
8958
8959 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
8960
8961         [BZ #3138]
8962         * io/test-lfs.c (do_prepare): Give name_len type size_t.
8963         * io/tst-fcntl.c (do_prepare): Likewise.
8964         * posix/tst-exec.c (do_prepare): Likewise.
8965         * posix/tst-preadwrite.c (do_prepare): Likewise.
8966         * posix/tst-spawn.c (do_prepare): Likewise.
8967         * posix/tst-truncate.c (do_prepare): Likewise.
8968         * rt/tst-aio.c (do_prepare): Likewise.
8969         * rt/tst-aio64.c (do_prepare): Likewise.
8970         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
8971         size_t.
8972
8973 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
8974
8975         [BZ #2821]
8976         * time/mktime.c (guess_time_tm): Fix overflow detection.
8977         * time/Makefile (tests): Add bug-mktime1.
8978         * time/bug-mktime1.c: New file.
8979
8980         [BZ #3189, #3188]
8981         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
8982         (mremap): Likewise.
8983
8984 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
8985
8986         [BZ #1006]
8987         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8988         Ensure relocation doesn't clobber any bits outside of the
8989         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
8990         R_SPARC_HI22 and R_SPARC_H44.
8991
8992         [BZ #2775]
8993         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
8994         (long) (MINSIZE + nb - old_size) is positive.
8995
8996         * malloc/arena.c (grow_heap): When growing bail even if new_size
8997         is negative.
8998
8999         [BZ #3155]
9000         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
9001         stack below r1.
9002
9003 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
9004
9005         * posix/regex_internal.c (re_string_reconstruct): Handle
9006         offset < pstr->valid_raw_len && pstr->offsets_needed case.
9007         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
9008         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
9009         re_string_context_at.
9010         * posix/Makefile: Add rules to build and run bug-regex26 test.
9011         * posix/bug-regex26.c: New test.
9012
9013         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
9014         rather than col_sym_free.  Move seqp declaration earlier.
9015
9016         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
9017
9018 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
9019
9020         * nscd/initgrcache.c (addinitgroupsX): Move any_success
9021         decl before first goto out.
9022
9023 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
9024
9025         * Makerules (shlib.lds): If have-hash-style, put .hash section
9026         at the end of the RO segment.
9027
9028 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
9029
9030         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
9031         style hash table format is used.
9032
9033 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
9034
9035         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
9036         randomization rather than before.
9037         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
9038
9039 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
9040
9041         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
9042
9043         * malloc/malloc.c (_int_malloc): Use full list insert and not
9044         shortcut which assumes the list is empty for large requests
9045         too.
9046
9047         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
9048
9049 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
9050
9051         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
9052         and offout arguments to the prototype.
9053         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
9054         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
9055         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
9056         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
9057         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
9058         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
9059         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
9060         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
9061
9062 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
9063
9064         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
9065
9066         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
9067         dlopen parameters.
9068
9069 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
9070
9071         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
9072         only if herrno is NETDB_INTERNAL.  Handle errors other than
9073         ERANGE outside of the loops, handle TRY_AGAIN.
9074
9075         * locale/programs/ld-ctype.c (translit_flatten): Issue error
9076         if other's ctype category was missing.
9077         * locale/programs/ld-collate.c (collate_read): Return if
9078         copy_locale's collate category is missing.
9079
9080 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
9081
9082         [BZ #2684]
9083         * malloc/malloc.c (public_rEALLOc): Try harder by using other
9084         arenas if allocation failed.
9085         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
9086
9087 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
9088
9089         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
9090         waste bins[0..1].
9091         (malloc_state): Reduce bins size by 2.
9092         (_int_malloc): Fix test for large enough buffer for early termination.
9093         When no unsorted block matches perfectly and an exiting block has
9094         to be split, use full list insert and not shortcut which assumes
9095         the list is empty.
9096
9097         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
9098         failure.
9099
9100 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9101
9102         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
9103         do anything.
9104
9105         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
9106         symbol require exact match (these are PLTs).
9107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
9108         (_dl_ppc64_addr_sym_match): Likewise.
9109
9110         [BZ #2683]
9111         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
9112         If symbol has a value use it.
9113         * elf/tst-dladdr1.c: New file.
9114         * elf/Makefile: Add rules to build and run tst-addr1.
9115
9116 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
9117
9118         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
9119         keeps failing and heap growth or new heap creation isn't
9120         successful either.
9121         * malloc/tst-malloc.c (main): Add new tests.
9122
9123 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9124
9125         [BZ #2734]
9126         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
9127         as in the x86-64 code to use bswap.
9128
9129 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
9130
9131         [BZ #2680]
9132         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
9133         __USE_UNIX98.
9134         * posix/bits/unistd.h: Likewise.
9135
9136 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
9137
9138         [BZ #2751]
9139         * string/strchr.c: Add cast to avoid warning.
9140
9141 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9142
9143         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
9144         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
9145         limit is needed to avoid the exploding of the address space
9146         requirement for secondary heaps.
9147         * malloc/arena.c (HEAP_MAX_SIZE): Define using
9148         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
9149
9150 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
9151
9152         [BZ #3018]
9153         * Makerules (depfiles): Handle extra-test-objs the same as
9154         extra-objs.
9155         (common-mostlyclean): Likewise.
9156         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
9157         instead.
9158         * elf/Makefile (extra-objs): Likewise.
9159         * stdlib/Makefile (extra-objs): Likewise.
9160
9161 2006-08-14  Eric Blake  <ebb9@byu.net>
9162
9163         [BZ #3044]
9164         * misc/error.h: Assume C89 or better.
9165         * misc/error.c: Likewise.
9166
9167 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9168
9169         [BZ #3040]
9170         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
9171         __ASSUME_ATFCTS is defined.
9172
9173 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
9174
9175         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
9176         to sort in each call.
9177
9178         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
9179         is empty simply return and use next service.
9180         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
9181
9182         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
9183         tells us when not finding a charmap file is an error.
9184         * locale/programs/charmap.h: Adjust charmap_read prototype.
9185         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
9186         cannot find a charmap.
9187         * locale/programs/localedef.c (main): Adjust charmap_read call.
9188
9189 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
9190
9191         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
9192         sysdeps/posix/pause.c implementation instead.
9193
9194 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
9195
9196         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
9197         to EPERM.
9198
9199 2006-08-13  Andreas Schwab  <schwab@suse.de>
9200
9201         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
9202         Don't clobber caller's LRSAVE.
9203         (_dl_prof_resolve): Likewise.
9204
9205 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
9206
9207         [BZ #1996]
9208         * libio/memstream.c (open_memstream): Allocate initial buffer with
9209         calloc.
9210         * libio/wmemstream.c (open_wmemstream): Likewise.
9211         * libio/strops.c: Pretty printing.
9212         (_IO_str_overflow): Clear uninitialized part of the new buffer.
9213         (enlarge_userbuf): New function.
9214         (_IO_str_seekoff): Call it if seek position is larger than current
9215         buffer.
9216         * libio/wstrops.c: Likewise.
9217         * libio/vasprintf.c: Add comment as to why we do not have to use
9218         calloc instead of malloc to allocate initial buffer.
9219         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
9220         * libio/bug-memstream1.c: New file.
9221         * libio/bug-wmemstream1.c: New file.
9222
9223 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9224
9225         * libio/wstrops.c: Remove dead macro definitions and comments.
9226         * libio/strops.c: Likewise.
9227
9228         [BZ #2764]
9229         * login/utmpname.c (__utmpname): Remove unnecessary test.
9230
9231 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
9232
9233         [BZ #2832]
9234         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
9235         0s from integers.
9236
9237 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9238
9239         [BZ #2987]
9240         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
9241         for CPU clocks.
9242         * sysdeps/unix/clock_settime.c: Add support for platform-specific
9243         setting of CPU clocks.
9244
9245 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9246
9247         [BZ #2841]
9248         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
9249         since C99 requires the result to promote to 'int' when uint_least8_t
9250         and uint_least16_t promote to 'int'.
9251
9252 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
9253
9254         [BZ #3013]
9255         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9256         lenght of one output field, correct bitmask creation.
9257         * locale/programs/ld-time.c: Add alignment.
9258
9259         [BZ #2997]
9260         * misc/error.c: Add space between program name and message if file
9261         name is missing.
9262
9263 2006-08-03  Eric Blake  <ebb9@byu.net>
9264
9265         [BZ #2998]
9266         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9267
9268 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
9269
9270         * malloc/memusagestat.c: Silence warnings.
9271
9272         * malloc/malloc.c: Dynamically size mmap treshold if the program
9273         frees mmaped blocks.
9274         Patch by Valerie Henson and Arjan van de Ven.
9275
9276 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
9277
9278         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9279         __USE_GNU.
9280
9281         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9282         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9283         (DEF): Don't put the var into .gnu.linkonce.r.* section.
9284         Only provide var definitions in strtol_l (or for *ull*
9285         in strtoll_l).
9286
9287         * stdio-common/bug16.c (tests): New array.
9288         (do_tests): Allow the first hexadecimal digit
9289         to be 1, 2, 4 or 8.  Do 3 additional tests.
9290
9291         * sysdeps/s390/fpu/libm-test-ulps: Update.
9292
9293         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9294         fchownat syscall if available.
9295         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9296         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9297         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9298
9299 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9300
9301         * nis/nis_xdr.c: Avoid some function calls.
9302
9303 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
9304             Ulrich Drepper  <drepper@redhat.com>
9305
9306         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9307         short cut if only one name component is stripped away.
9308
9309 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9310
9311         * nis/nis_call.c: Minor cleanups throughout.
9312         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
9313         (first_shoot): Add search_parent_first parameter.  Only if it is set
9314         search parent server first.
9315         If directory for table found through cold start cache is not the same
9316         as referenced in the cache, don't use it.
9317         (__nisfind_server): Take additional parameter.  Pass it on to
9318         first_shoot.
9319         (__prepare_niscall): Adjust __nisfind_server call.
9320         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9321         * nis/nis_table.c: Adjust __nisfind_server call.
9322         * nis/nis_lookup.c: Likewise.
9323         (nis_lookup): Don't loop endlessly if name is reduced to ".".
9324
9325 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
9326
9327         [BZ #2182]
9328         * math/s_cacosh.c: Return values from positive branch.
9329         * math/s_cacoshf.c: Likewise.
9330         * math/s_cacoshl.c: Likewise.
9331
9332         [BZ #2883]
9333         * sysvipc/sys/msg.h: Change return value to ssize_t.
9334         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9335         * sysvipc/msgrcv.c: Likewise.
9336         * include/sys/msg.h: Likewise.
9337
9338         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9339         test introduced in patch for bz #661.
9340         (getgrouplist): Simplify code a bit.  Don't allocate one additional
9341         element for NEWGROUPS.
9342
9343         [BZ #2908]
9344         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9345         'f', use '1' as leading digit not '\1'.
9346         * stdio-common/Makefile (tests): Add bug16.
9347         * stdio-common/bug16.c: New file.
9348
9349         [BZ #2914]
9350         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9351         and don't try to open it.  The patch introducing the macro
9352         contained a bug and used the same file name as the new file
9353         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
9354         this out completely.
9355
9356         [BZ #2926]
9357         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9358         Patch by Jerry James <Jerry.James@usu.edu>.
9359
9360         * rt/Makefile (tests): Add tst-clock2.
9361         * rt/tst-clock2.c: New file.
9362
9363         [BZ #2978]
9364         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9365         function and its parameters and pass it to new thread.
9366         (__gai_notify): Add support for alternative waiting for completion.
9367         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9368         waiting for completion.
9369         * resolv/getaddrinfo_a.c: Likewise.
9370         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9371         waiting for completion is used.
9372         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9373         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9374         * resolv/gai_error.c: Likewise.
9375         * resolv/gai_sigqueue.c: Likewise.
9376
9377 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
9378
9379         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
9380         errno to EBADF and return MACH_PORT_NULL.
9381
9382 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
9383
9384         [BZ #2980]
9385         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
9386
9387 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
9388
9389         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9390         walk them instead of the symbol table.
9391
9392 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
9393
9394         [BZ #2098]
9395         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9396         status of NSS calls, not the number of returned entries.
9397
9398         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9399         request_key, keyctl.
9400
9401 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9402
9403         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9404
9405 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
9406
9407         * elf/tst-auditmod1.c: Fix typo in #error.
9408
9409 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9410
9411         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9412
9413         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9414
9415 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
9416
9417         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
9418         that the directory is empty even on non-POSIX filesystems.
9419
9420 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9421
9422         * elf/dl-open.c (dl_open_worker): Add branch prediction.
9423
9424         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9425         the backend NSS module.  If backend setgrent call failed, don't have
9426         internal_setgrent fail.  Just remember this until it is needed.
9427         * nis/nss_compat/compat-pwd.c: Likewise.
9428         * nis/nss_compat/compat-spwd.c: Likewise.
9429
9430 2006-07-30  Roland McGrath  <roland@redhat.com>
9431
9432         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9433         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9434         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9435         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9436
9437         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9438         (nanosleep_not_cancel): New macro.
9439         (sigsuspend_not_cancel): new macro.
9440         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9441         (do_sigsuspend): Define as inline.
9442         (__sigsuspend): Always use do_sigsuspend.
9443         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9444         * include/signal.h: Declare __sigsuspend_nocancel.
9445         * sysdeps/posix/pause.c
9446         [! NO_CANCELLATION] (__pause_nocancel): New function.
9447
9448         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9449         * include/time.h (__nanosleep_nocancel): Likewise.
9450
9451 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
9452
9453         * locale/programs/localedef.c (add_to_readlist): Rename local
9454         variables to avoid confusion.
9455
9456         * locale/programs/charmap.c (charmap_read): Emit error message if
9457         charmap couldn't be found or read.
9458
9459 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
9460
9461         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9462         __ASSUME_FUTEX_LOCK_PI.
9463         * include/time.h: Declare __nanosleep_nocancel.
9464         * include/unistd.h: Declare __pause_nocancel.
9465
9466         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9467         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
9468         get the __stack_chk_fail_local definition when it's needed.
9469
9470 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
9471
9472         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9473         * dlfcn/bug-atexit3.c: New file.
9474         * dlfcn/bug-atexit3-lib.cc: New file.
9475
9476         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9477         used when the namespace is not the base namespace.
9478
9479 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
9480
9481         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9482         (__new_exitfn): Bump it in every successful call.
9483         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9484         more exit handlers, call them right away.
9485         * stdlib/exit.h: Declare __new_exitfn_called.
9486
9487 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
9488
9489         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9490         calling registered handler.
9491
9492         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9493         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9494         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9495         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9496         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9497         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9498         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9499         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9500
9501 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
9502
9503         * elf/dl-lookup.c (dl_new_hash): New functions.
9504         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9505         value here.  Compute new-style hash value.  Pass new hash value
9506         and reference to variable with the old value to do_lookup_x.
9507         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9508         old-style hash table.
9509         (_dl_debug_bindings): Pass new hash value and reference to variable
9510         with the old value to do_lookup_x.
9511         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9512         new-style hash value and change old-style hash value parameter to
9513         be a reference.  Reoganize functions to determine whether
9514         new-style hash table is available.  Only fall back on old-style
9515         table.  If old-style hash value is needed, compute it here.
9516         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9517         entry.
9518         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9519         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
9520         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9521         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9522         * Makeconfig: If linker supports --hash-style option add it to all
9523         linker command lines to build DSOs.
9524         * config.make.in: Define have-hash-style.
9525         * configure.in: Test whether linker supports --hash-style option.
9526
9527         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9528         * sysdeps/generic/ldsodefs.h: Adjust prototype.
9529
9530 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
9531
9532         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9533         auditing.
9534
9535         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9536         RPATH of main map twice.
9537
9538 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
9539
9540         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9541         look further, return original strings.
9542         (_nl_find_msg): Do not return found translation if the conversion
9543         failed.  Either signal the string is unusable or that something went
9544         wrong and the original should be used.
9545
9546 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
9547
9548         * string/_strerror.c (__strerror_r): Add __builtin_expect.
9549
9550 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
9551
9552         [BZ #2766]
9553         * misc/insremque.c (insque): Handle prev == NULL.
9554         * misc/Makefile (tests): Add tst-insremque.
9555         * misc/tst-insremque.c: New test.
9556
9557 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
9558
9559         [BZ #2792]
9560         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9561         conflict with DL_DST_REQUIRED.
9562
9563 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
9564
9565         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9566         match what Solaris does.
9567
9568 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
9569
9570         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9571         local_setegid instead of seteuid and setegid.
9572         * sysdeps/generic/local-setxid.h: New file.
9573         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9574
9575         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9576
9577         * string/Makefile (tests): Add bug-envz1.
9578         * string/bug-envz1.c: New file.
9579
9580 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
9581
9582         * posix/regex_internal.c (re_string_skip_chars): If no character has
9583         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
9584         to the byte which couldn't be converted.
9585         (re_string_reconstruct): Don't clear valid_raw_len before calling
9586         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
9587         tip_context using re_string_context_at.
9588         * posix/Makefile: Add rules to build and run bug-regex25 test.
9589         * posix/bug-regex25.c: New test.
9590
9591 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
9592
9593         [BZ #2703]
9594         * string/envz.c (envz_strip): Correct erroneously reversed src
9595         and dest parameters to memmove() invocation.
9596
9597 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
9598
9599         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9600         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9601         to make sure the database has been already invalidated.
9602         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
9603         after the cache has been invalidated.  Use pthread_mutex_lock rather
9604         than pthread_mutex_trylock if fd != -1.
9605         * nscd/connections.c (invalidate_cache): Add fd argument, write
9606         response to fd if not calling prune_cache, pass fd to prune_cache.
9607         (handle_request): Adjust invalidate_cache caller.
9608         (nscd_run): Pass -1 as fd to prune_cache.
9609
9610 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
9611
9612         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9613         the correct place.
9614
9615 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
9616
9617         * nscd/nscd.h (struct database_dyn): Add prunelock field.
9618         * nscd/cache.c (prune_cache): Take prunelock before starting the
9619         work.  Just return in case it is already taken.
9620         * nscd/connections.c (dbs): Initialize .prunelock.
9621
9622 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
9623
9624         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
9625         copying.  No need to allocate new array for group members.  Just
9626         move the pointers and update the size.
9627
9628         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
9629         Avoid memory leak in case realloc fails.  Simplification for
9630         better code generation.
9631
9632         Avoid deprecation warning because of libc_hidden_proto for
9633         inet6_option_alloc.
9634         * inet/inet6_option.c (option_alloc): Renamed from
9635         inet6_option_alloc.  Made static.
9636         (inet6_option_alloc): Now a simple wrapper around option_alloc.
9637         (inet6_option_append): Call option_alloc.
9638         * include/netinet/in.h: Remove libc_hidden_proto for
9639         inet6_option_alloc.
9640
9641         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
9642         for cleanup when cb!=NULL [Coverity CID 233].
9643
9644 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
9645
9646         [BZ #2693]
9647         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9648         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9649         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9650         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9651         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9652         and inet6_rth_getaddr.
9653         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9654         array.
9655         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9656         Mark inet6_option_* interfaces as deprecated.
9657         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9658         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9659         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9660         inet6_rth_segments, and inet6_rth_getaddr.
9661         * inet/inet6_opt.c: New file.
9662         * inet/inet6_rth.c: New file.
9663
9664         * inet/netinet/icmp6.h: Pretty printing.
9665
9666         [BZ #2683]
9667         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9668
9669 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
9670
9671         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9672         doing it all here.  When server does not know the answer do not
9673         fail immediate, try parent first.
9674
9675         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9676         overflow test.
9677
9678 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
9679
9680         * nis/nis_call.c (__prepare_niscall): New function.  Split out
9681         from __do_niscall.
9682         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
9683         and exported.
9684         (__follow_path): New function.  Split out from nis_list.
9685         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9686         _xdr_nis_result.
9687         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
9688         _xdr_nis_result.
9689         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
9690         and __follow_path.
9691         * nis/Versions: Export __prepare_niscall, __create_ib_request,
9692         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
9693         from libnsl for version GLIBC_PRIVATE.
9694         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
9695         Remove entry parameter from _nss_nisplus_parse_pwent and
9696         _nss_nisplus_parse_grent.
9697         * nis/nss_nisplus/nisplus-parser.c: Likewise.
9698         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
9699         again.  Rewrite getpwent handling to not use nis_first_entry and
9700         nis_next_entry.  Roll out own niscall handling.
9701         * nis/nss_nisplus/nisplus-grp.c: Likewise.
9702
9703         * sunrpc/xdr_rec.c: Fix typo in comment.
9704
9705 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
9706
9707         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
9708         handling.
9709
9710         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
9711         to allocate memory for my_pollfd.  Better initialization of
9712         cb_is_running.  Use TEMP_FAILURE_RETRY.
9713
9714         * malloc/memusage.sh (memusageso): Add quotes.
9715         (memusagestat): Likewise.
9716         * debug/xtrace.sh (pcprofileso): Likewise.
9717         (pcprofiledump): Likewise.
9718         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
9719         replacement.
9720         * malloc/Makefile ($(objpfx)memusage): Likewise.
9721
9722         * nis/nis_callback.c (__nis_create_callback): Calls to
9723         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
9724         asprintf call fails.
9725
9726         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
9727         no uninitialized memory is passed to sendto.
9728
9729 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9730
9731         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
9732         of snprintf+strdup.  Handle OOM.
9733         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
9734         cb->serv together.  Remove now obsolete free calls.
9735         (__nis_destroy_callback): Remove now obsolete free call.
9736
9737 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
9738
9739         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
9740         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
9741         and ULA respectively). Set precedence for IPv4 address to 10 as
9742         defined in RFC3484 for preferring IPv6.
9743         * posix/gai.conf: Update to match the new default tables.
9744
9745 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
9746
9747         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
9748         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
9749         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
9750         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
9751
9752         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
9753         Removed.
9754         (init_nss_interface): Remove initialization of these variables.
9755
9756 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9757
9758         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
9759         nis_free_directory forward to avoid duplication.
9760
9761 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
9762
9763         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
9764         rec_dirsearch returning NULL.
9765         (first_shoot): Handle __nis_finddirectory returning NULL.
9766         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
9767
9768         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
9769         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
9770
9771 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
9772
9773         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
9774         pid changed.
9775
9776 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
9777
9778         * include/rpc/pmap_prot.h: Mark all functions as hidden.
9779
9780         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
9781         * nscd/nscd_getgr_r.c: Likewise.
9782
9783         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
9784
9785         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
9786         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
9787
9788         * stdlib/longlong.h (__clz_tab): Mark as hidden.
9789
9790         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
9791
9792         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
9793
9794         * include/rpc/auth.h: Mark xdr_des_block_internal and
9795         xdr_opaque_auth_internal as hidden.
9796
9797         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
9798         hidden.
9799
9800         * include/rpc/xdr.h: Mark all _internal functions as hidden.
9801
9802         * misc/getusershell.c (okshells): Don't use static initializers,
9803         do it dynamically.
9804
9805         * stdlib/fmtmsg.c (keywords): Change type of len element to
9806         uint32_t to not waste space on 64bit machines.
9807
9808         * locale/setlocale.c: Change _nl_category_names into a string.
9809         Add new _nl_category_name_idxs.  Change all users.
9810         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
9811         Declare _nl_category_name_idxs.
9812         * locale/findlocale.c: Adjust for _nl_category_names change.
9813         * locale/loadlocale.c: Likewise.
9814         * locale/newlocale.c: Likewise.
9815         * intl/dcigettext.c: Likewise.
9816
9817         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
9818         (add_alias2): ...here.  New function.
9819         (__gconv_read_conf): Simplify builtin alias handling.
9820         (builtin_aliases): Convert to string to avoid relocations.
9821         * iconv/gconv_builtin.h: Add comment about correct formatting.
9822
9823 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
9824
9825         * resolv/res_debug.c (loc_ntoa): Make error const.
9826
9827 2006-05-14  Andreas Schwab  <schwab@suse.de>
9828
9829         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
9830
9831 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
9832
9833         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
9834         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
9835         sizeof (cpu_set_t).
9836
9837 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
9838
9839         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
9840
9841         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
9842
9843         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
9844         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
9845
9846         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
9847         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
9848
9849         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
9850         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
9851         xdr_cback_data.
9852
9853         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
9854         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9855         xdr_ypupdate_args.
9856
9857         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
9858         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
9859
9860         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
9861         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
9862
9863         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
9864         * include/rpcsvc/nis_callback.h: New file.
9865
9866         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
9867         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
9868
9869         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9870         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9871
9872         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
9873         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
9874
9875         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9876         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9877
9878         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
9879         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9880         xdr_ypdelete_args.
9881
9882         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
9883         __BEGIN_DECLS and __END_DECLS, the header is not installed.
9884
9885         * nis/nis_error.c: Remove table of strings.  Use position
9886         independent mechanism.
9887         * nis/nis_error.h: New file.
9888
9889 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
9890
9891         * locale/programs/ld-time.c (time_finish): If wide era name or
9892         format aren't provided, set both wname and wformat to L"".
9893
9894 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
9895
9896         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
9897         results if the call was succesful.
9898
9899         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
9900
9901         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
9902         as hidden.
9903
9904 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
9905
9906         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
9907
9908 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
9909
9910         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
9911         caller makes sure this is not the case.
9912         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
9913
9914 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
9915
9916         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
9917         calls.
9918
9919         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
9920         [Coverity CID 229, 230]
9921
9922         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
9923         DGETTEXT calls.
9924         (hol_help): Likewise.  [Coverity CID 226, 227]
9925
9926         * string/argz-replace.c (__argz_replace): Unconditionally call
9927         free on SRC.  [Coverity CID 225]
9928
9929         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
9930         the return value of __nis_default_owner and __nis_default_group,
9931         it has been especially allocated.  [Coverity CID 224]
9932
9933         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
9934         searchgroup and searchowner.  Significantly simplified.
9935         (__nis_default_owner): Remove duplication.  Do not locally copy the
9936         string before duplicating it.
9937         (__nis_default_group): Likewise.
9938
9939         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
9940         we must clear the variable before calling __nisfind_server.
9941
9942         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
9943         nis_getnames.  [Coverity CID 223]
9944
9945         * locale/programs/locfile.c (locfile_read): Use alloca instead of
9946         xmalloc to allocate local repertoire name.  [Coverity CID 222]
9947
9948         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
9949         allocate memory for the input to add_bytes.  [Coverity CID 221]
9950
9951         * posix/wordexp.c (w_addword): Free word if realloc fails and it
9952         was allocated here.  [Coverity CID 219, 220]
9953
9954         * posix/getconf.c (print_all): Free confstr data after printing.
9955         [Coverity CID 218]
9956
9957         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
9958         list allocation fails.  [Coverity CID 215]
9959
9960         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
9961         [Coverity CID 213]
9962
9963         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
9964         string is NULL.  [Coverity CID 212]
9965         * argp/Makefile: Add rules to build and run bug-argp1.
9966         * argp/bug-argp1.c: New file.
9967
9968         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
9969         end of string.
9970         * stdlib/canonicalize.c (__realpath): Likewise.
9971
9972         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
9973         pointer.  [Coverity CID 206]
9974
9975         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
9976         in statically linked code.
9977         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
9978         statically built code, be prepared to have no link map.
9979         [Coverity CID 205]
9980
9981         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
9982         dgettext calls. [Coverity CID 204]
9983
9984         * argp/argp-help.c (struct uparams): Remove valid member.  Change
9985         the one user.
9986         (uparam_names): Reduce size.  Avoid relative relocations.
9987         Moved to read-only segment.
9988         (fill_in_uparams): Update for new layout.
9989
9990         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
9991         assumed to always be != NULL. [Coverity CID 202]
9992
9993         * argp/argp-help.c (hol_entry_help): Remove some dead code
9994         [Coverity CID 200].
9995
9996         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
9997         away a few more unconditional yperr2nss calls.
9998         (_nss_nis_getservbyname_r): Likewise.
9999
10000 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
10001
10002         * sysdeps/generic/ldsodefs.h: Remove support for non-core
10003         architectures.
10004
10005         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
10006         that unused memory passed to sendto is nevertheless initialized.
10007
10008         [BZ #2499]
10009         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
10010         possibly unaligned memory accesses.
10011
10012         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
10013         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
10014         and __putlong respectively.  Correct buffer overflow check for
10015         NS_NOTIFY_OP.
10016
10017         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
10018
10019         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
10020         (send_dg): Rewrite error handling to be more compact and avoid
10021         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
10022
10023         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
10024
10025         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
10026         instead of ns_get16.
10027         (res_queriesmatch): Likewise.  Minor optimization.
10028
10029         [BZ #2499]
10030         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
10031         __libc_res_nsend might reallocate the buffer for the answer.  In
10032         this case we have to reload the HP pointer.
10033
10034 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10035
10036         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
10037         some branch prediction hints.
10038
10039         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
10040         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10041         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10042         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10043         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10044         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10045         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10046         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10047
10048 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10049
10050         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
10051         by a GOT relocation to make Scrt1.o position independent.
10052         * sysdeps/s390/s390-64/elf/start.S: Likewise.
10053
10054         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
10055         six system call parameters.
10056         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
10057
10058 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10059
10060         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
10061         malloc&bzero.
10062
10063         * sunrpc/svc_udp.c (BZERO): Remove definition.
10064         (CALLOC): Define.
10065         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
10066
10067         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
10068         (des_SPtrans): Use uint32_t type.
10069         (des_skb): Likewise.
10070
10071         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
10072
10073 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
10074
10075         [BZ #2509]
10076         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
10077         on 32-bit arches.
10078
10079 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10080
10081         * locale/programs/ld-address.c (address_finish): Fix one more
10082         place where the iso639 array might be accessed beyond the limits.
10083
10084 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
10085
10086         * nis/nis_table.c (nis_list): Avoid clearing res twice before
10087         filling it for the first time.
10088
10089         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
10090         Adjust all callers.
10091         Free res object content before returning.
10092
10093         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
10094
10095         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
10096         client->cl_auth.
10097
10098         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
10099         cleanup for initial thread, just the free call on TVP.
10100
10101         * nscd/gai.c (__getline): Define.
10102
10103
10104 See ChangeLog.16 for earlier changes.